Regenerate project workflow skills (.claude/skills/) without touching any documentation. TRIGGER when: user says "update skills", "regenerate skills", "refresh skills", "update project skills", "只更新skill", "重新生成技能", or wants to update skills after ai-dev-setup without redoing docs. DO NOT TRIGGER when: user wants full setup (use /ai-dev-setup instead).
Regenerate .claude/skills/ workflow files for the current project. Docs are untouched.
/update-skills [doc-directory-name]
If $ARGUMENTS is provided, use it as DOC_DIR. Otherwise detect from CLAUDE.md.
CLAUDE.md — extract:
DOC_DIR: look for documentation links like (./.docs/ or (./docs/ — use that directory nameBUILD_CMD, TEST_CMD, LINT_CMD, TEST_COVER_CMD from Build & Run / Testing sections$ARGUMENTS is provided, override DOC_DIR with itDOC_DIR and commands before proceedingSet variables: DOC_DIR, TEST_CMD, LINT_CMD, TEST_COVER_CMD, RACE_FLAG (Go projects only, -race)
Report extracted values. Wait for confirmation.
List .claude/skills/ contents. Report which of these already exist:
If any exist: warn they will be overwritten. Wait for confirmation.
Generate all 6 skills into .claude/skills/, replacing placeholders:
{DOC_DIR} → detected DOC_DIR{TEST_CMD} → detected TEST_CMD{LINT_CMD} → detected LINT_CMD{TEST_COVER_CMD} → detected TEST_COVER_CMD{RACE_FLAG} → detected RACE_FLAGSkills to generate: plan, dev, dev-resume, test, test-resume, sync-docs
## Skills Updated
DOC_DIR: {DOC_DIR}
TEST_CMD: {TEST_CMD}
Updated:
- .claude/skills/plan/SKILL.md
- .claude/skills/dev/SKILL.md
- .claude/skills/dev-resume/SKILL.md
- .claude/skills/test/SKILL.md
- .claude/skills/test-resume/SKILL.md
- .claude/skills/sync-docs/SKILL.md
Docs untouched. Run /plan to start planning, /dev to develop, /test to improve coverage.
| Situation | Action |
|---|---|
| CLAUDE.md missing | Ask user for DOC_DIR and commands |
| DOC_DIR not found in CLAUDE.md | Ask user which directory to use |
| skill-templates.md not found | Report path tried, ask user to provide commands manually |
.claude/skills/ missing | Create it |