File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 python -m py_compile scripts/install_skills.py
2323 bash install.sh --help
2424
25+ list_output="$(bash install.sh --list)"
26+ printf '%s\n' "$list_output" | grep -q '^Available skills:$'
27+ printf '%s\n' "$list_output" | grep -q '^- reduce-to-facts$'
28+ printf '%s\n' "$list_output" | grep -q '^- status-update$'
29+
2530 tmp_home="$(mktemp -d)"
2631 HOME="$tmp_home" ./install.sh --claude-user --dry-run
2732 test ! -e "$tmp_home/.claude/skills"
Original file line number Diff line number Diff line change @@ -44,6 +44,12 @@ git clone https://github.com/tmusser/context-to-action-skills.git
4444cd context-to-action-skills
4545```
4646
47+ See the available skill names:
48+
49+ ``` sh
50+ ./install.sh --list
51+ ```
52+
4753Then choose one install target.
4854
4955Claude Code:
Original file line number Diff line number Diff line change 22set -eu
33
44SCRIPT_DIR=$( CDPATH= cd -- " $( dirname -- " $0 " ) " && pwd)
5+
6+ case " ${1:- } " in
7+ --list)
8+ printf ' %s\n' " Available skills:"
9+ for skill_file in " $SCRIPT_DIR " /skills/* /SKILL.md; do
10+ [ -f " $skill_file " ] || continue
11+ skill_dir=${skill_file%/ SKILL.md}
12+ printf ' %s\n' " - ${skill_dir##*/ } "
13+ done
14+ exit 0
15+ ;;
16+ esac
17+
518exec python3 " $SCRIPT_DIR /scripts/install_skills.py" " $@ "
You can’t perform that action at this time.
0 commit comments