Loading...
Loading...
Elevate a project-local skill to the shared ai-skills repo. Use when you want a project skill available in other repos.
npx skill4agent add camacho/ai-skills elevate-skill.claude/skills/skills-lock.json$AI_SKILLS_REPO~/projects/camacho/ai-skillscp -r .claude/skills/<name> <ai-skills-path>/skills/<name>namecd <ai-skills-path>
git add skills/<name>
git commit -m "feat: add <name> skill"
git pushrm -rf .claude/skills/<name>
npx skills add <ai-skills-path> --skill <name> -a claude-code -ygit add skills-lock.json .claude/skills/
git commit -m "chore: elevate <name> skill to ai-skills"# Local skills = dirs in .claude/skills/ NOT tracked by lockfile
if [ -f skills-lock.json ]; then
LOCKED=$(python3 -c "import json; print(' '.join(json.load(open('skills-lock.json'))['skills'].keys()))")
fi
for dir in .claude/skills/*/; do
name=$(basename "$dir")
if ! echo "$LOCKED" | grep -qw "$name"; then
echo "$name (local)"
fi
done