Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
python -m py_compile scripts/install_skills.py
bash install.sh --help

list_output="$(bash install.sh --list)"
printf '%s\n' "$list_output" | grep -q '^Available skills:$'
printf '%s\n' "$list_output" | grep -q '^- reduce-to-facts$'
printf '%s\n' "$list_output" | grep -q '^- status-update$'

tmp_home="$(mktemp -d)"
HOME="$tmp_home" ./install.sh --claude-user --dry-run
test ! -e "$tmp_home/.claude/skills"
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ git clone https://github.com/tmusser/context-to-action-skills.git
cd context-to-action-skills
```

See the available skill names:

```sh
./install.sh --list
```

Then choose one install target.

Claude Code:
Expand Down
13 changes: 13 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,17 @@
set -eu

SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)

case "${1:-}" in
--list)
printf '%s\n' "Available skills:"
for skill_file in "$SCRIPT_DIR"/skills/*/SKILL.md; do
[ -f "$skill_file" ] || continue
skill_dir=${skill_file%/SKILL.md}
printf '%s\n' "- ${skill_dir##*/}"
done
exit 0
;;
esac

exec python3 "$SCRIPT_DIR/scripts/install_skills.py" "$@"
Loading