-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·66 lines (53 loc) · 1.42 KB
/
install.sh
File metadata and controls
executable file
·66 lines (53 loc) · 1.42 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/env bash
# shotkit. Install all four skills into ~/.claude/skills/
#
# Usage:
# ./install.sh # install to ~/.claude/skills/ (user scope)
# ./install.sh --project # install to ./.claude/skills/ (project scope)
set -euo pipefail
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
SKILLS_DIR="${SCRIPT_DIR}/skills"
if [[ ! -d "${SKILLS_DIR}" ]]; then
echo "skills/ directory not found at ${SKILLS_DIR}"
echo "Are you running this from the shotkit repo root?"
exit 1
fi
# Default: user-scope install
TARGET="${HOME}/.claude/skills"
SCOPE="user"
if [[ "${1:-}" == "--project" ]]; then
TARGET="$(pwd)/.claude/skills"
SCOPE="project"
fi
mkdir -p "${TARGET}"
SKILLS=(
"storyboard-architect"
"visual-prompt-forge"
"visual-asset-critic"
"storyboard-html-preview"
)
echo ""
echo "Installing shotkit"
echo " scope: ${SCOPE}"
echo " target: ${TARGET}"
echo ""
for skill in "${SKILLS[@]}"; do
src="${SKILLS_DIR}/${skill}"
dst="${TARGET}/${skill}"
if [[ ! -d "${src}" ]]; then
echo " [skip] ${skill}: source missing"
continue
fi
if [[ -d "${dst}" ]]; then
echo " [replace] ${skill}"
rm -rf "${dst}"
else
echo " [install] ${skill}"
fi
cp -R "${src}" "${dst}"
done
echo ""
echo "Done. Restart your Claude Code session to pick up the new skills."
echo ""
echo 'Try: "30-second founder explainer for your-brand. Pain-reframe-promise structure."'
echo ""