Add list-skills tool for Claude

- Shell script (not .md) that lists all skill names
- Shows paths like 'testing/test-driven-development'
- Helps Claude avoid useless skill searches
- Added to getting-started workflow
This commit is contained in:
Jesse Vincent
2025-10-09 13:31:09 -07:00
parent 78a2446148
commit 0b58a84e6e
3 changed files with 30 additions and 16 deletions

View File

@@ -0,0 +1,22 @@
#!/usr/bin/env bash
# list-skills - Show all available skill names without descriptions
# For Claude to quickly see what exists before searching
set -euo pipefail
# Detect if running from repo or installed location
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if [[ "$SCRIPT_DIR" == *"/.claude/plugins/cache/"* ]]; then
# Installed as plugin
SKILLS_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
else
# Running from repo
SKILLS_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
fi
# Find all SKILL.md files and extract their paths
find "$SKILLS_DIR" -name "SKILL.md" -type f | \
sed "s|$SKILLS_DIR/||; s|/SKILL.md||" | \
sort
exit 0