name: claude-gen-add-skill description: Add a skill from the library to this project. Usage: /claude-gen-add-skill [skill-name] or /claude-gen-add-skill to see available list.
Steps
-
No argument given → read
_index.json, list available skills not yet active:Available skills for your stack ({profile}): golang-pro — Go 1.22+ goroutines, GORM [cached] python-pro — Python 3.12+ async, typing [cached] ... Already active: debugging, docker, git-advanced -
Argument given → find {skill}:
- Check
.claude/skills/{skill}/→ already active? Skip. - Check
.claude/skills/_library/_cache/{skill}/→ cached? Copy to active. - Check
.claude/skills/_library/{skill}/→ local skill? Copy to active. - Not found locally? Check
_registry.json→ fetch from source.
- Check
-
Fetching from registry (when not in cache):
# Read _registry.json for source repo + ref (commit SHA) # SHA cannot use --branch, so clone then checkout: git clone --depth 50 {repo} /tmp/skill-fetch cd /tmp/skill-fetch && git checkout {ref} # Copy the skill directory from {path} to cache -
Validate after fetch:
- SKILL.md exists
- Count files matches
file_countin_registry.json - All files listed in
filesarray are present - If validation fails → report error, do NOT copy broken skill
-
On network failure:
- Report: "Cannot fetch {skill} — network unavailable."
- If skill exists in
_cache/: "Using cached version from {fetched date}." - If not cached: "Skill not available offline. Try again when connected."
-
Copy to active:
.claude/skills/_library/_cache/{skill}/ → .claude/skills/{skill}/ -
Report: "Added: {name} — {description}"
Skills similaires
Expert Next.js App Router
Developpement
Un skill qui transforme Claude en expert Next.js App Router.
Claude CodeCursoradvanced
890
234
3,180
Générateur de README
Developpement
Crée des README.md professionnels et complets pour vos projets.
claudeCursorWindsurfbeginner
259
72
1,081
Rédacteur de Documentation API
Developpement
Génère de la documentation API complète au format OpenAPI/Swagger.
claudeCursorWindsurfintermediate
156
44
941