-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·34 lines (27 loc) · 1008 Bytes
/
install.sh
File metadata and controls
executable file
·34 lines (27 loc) · 1008 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env bash
set -euo pipefail
# Resilience Stack — bulk installer
# Usage: curl -fsSL https://raw.githubusercontent.com/petrichorprojects/resilience-stack/main/install.sh | bash
REPO="petrichorprojects/resilience-stack"
BRANCH="main"
DEST="${HOME}/.claude/skills"
echo "Installing Resilience Stack to ${DEST}/"
mkdir -p "${DEST}"
TMP=$(mktemp -d)
trap "rm -rf ${TMP}" EXIT
curl -fsSL "https://github.com/${REPO}/archive/refs/heads/${BRANCH}.tar.gz" \
| tar -xz -C "${TMP}"
SRC="${TMP}/resilience-stack-${BRANCH}/skills"
for track in positioning diagnostic brand growth market-definition intelligence investor; do
if [ -d "${SRC}/${track}" ]; then
for skill in "${SRC}/${track}"/*; do
[ -d "$skill" ] || continue
name=$(basename "$skill")
cp -R "$skill" "${DEST}/${name}"
echo " ✓ ${track}/${name}"
done
fi
done
echo ""
echo "Done. 18 skills installed to ${DEST}/"
echo "License: CC BY 4.0 — credit Petrichor Projects (https://petrichorgrowth.com)"