-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinstall.sh
More file actions
31 lines (25 loc) · 862 Bytes
/
Copy pathinstall.sh
File metadata and controls
31 lines (25 loc) · 862 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
#!/usr/bin/env bash
set -euo pipefail
REPO="codeprakhar25/optimize"
BRANCH="main"
RAW="https://raw.githubusercontent.com/${REPO}/${BRANCH}"
SKILL_DIR="${HOME}/.claude/skills/skill-optimize"
echo "Installing skill-optimize..."
mkdir -p "${SKILL_DIR}/scripts"
# download SKILL.md
curl -fsSL "${RAW}/skills/skill-optimize/SKILL.md" -o "${SKILL_DIR}/SKILL.md"
# download scripts alongside SKILL.md so \${CLAUDE_SKILL_DIR}/scripts/ resolves correctly
for f in audit.py apply.py restore.py; do
curl -fsSL "${RAW}/scripts/${f}" -o "${SKILL_DIR}/scripts/${f}"
chmod +x "${SKILL_DIR}/scripts/${f}"
done
echo ""
echo "Done. Installed to: ${SKILL_DIR}"
echo ""
echo "Restart Claude Code, then run /skill-optimize"
echo ""
echo "To undo applied overrides:"
echo " python3 ${SKILL_DIR}/scripts/restore.py"
echo ""
echo "To uninstall:"
echo " rm -rf ${SKILL_DIR}"