/documentation-plugin:docs-sync --scope skills|commands|agents, --dry-run to preview, --verbose for detailsfrom documentation-plugin
Scans the codebase for skills, commands, and agents, then updates documentation to fix count mismatches, add missing entries, and remove stale references.
Ships in documentation-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
| Use this skill when... | Use docs-generate instead when... |
|---|---|
| Skill / command / agent counts in README or CLAUDE.md drift from what the directories actually contain | Producing fresh API reference, README rewrites, or CHANGELOG content from code |
| New skills were added but not yet listed in the catalog tables | The catalog itself is fine and you need to author new documentation |
| Removed items still appear as stale entries in documentation | Drafting a service teardown checklist (use docs-decommission) |
| Cross-references and category groupings need reconciliation after a refactor | Converting an existing Markdown document to a print-ready PDF (use docs-latex) |
Scan the codebase for skills, commands, and agents, then update all documentation to reflect the current state. Fixes count mismatches, adds missing entries, and removes stale references.
/docs:sync # Sync all documentation
/docs:sync --scope skills # Only sync skill documentation
/docs:sync --scope commands # Only sync command documentation
/docs:sync --scope agents # Only sync agent documentation
/docs:sync --dry-run # Show what would change without modifying
/docs:sync --verbose # Show detailed scanning output
--scope <type> - Limit sync to specific type: skills, commands, agents, or all (default)--dry-run - Preview changes without modifying files--verbose - Show detailed progress during scanningExecute this documentation sync workflow:
Scan source directories:
# Skills
find .claude/skills -name "SKILL.md" -type f
# Commands
find .claude/commands -name "*.md" -type f ! -name "CLAUDE.md"
# Agents
find .claude/agents -name "*.md" -type f
Extract metadata from each item:
name and descriptiondescription from frontmatter, infer namespace from pathname, description, toolsParse existing documentation:
.claude/skills/CLAUDE.md - Current skill catalog with categories.claude/skills/CLAUDE.md - Command reference with namespacesCLAUDE.md - Summary counts and highlightsCompare actual vs documented:
Categorize new items:
For skills, determine category by:
ux-*, git-*, python-* → matching categoryFor user-invocable skills, determine namespace from directory name:
skills/git-commit/SKILL.md → git: namespaceskills/handoffs/SKILL.md → Root levelFor agents, determine domain from description keywords
Identify documentation sections to update:
**N skills**, N total, (N skills)Update counts throughout documentation:
**63 skills** or 63 specialized skills### Core Development (9 skills)Add new items to appropriate sections:
Skills catalog format:
### Category Name (N skills)
- **skill-name** - Description from SKILL.md frontmatter
Command table format:
| Namespace | Commands | Purpose |
| `/command` | Description | Usage context |
Agent inventory format:
| Agent | Purpose | Key Tools |
| **agent-name** | Description | Tool1, Tool2 |
Remove stale entries that no longer exist in codebase
Update cross-references:
Generate summary of changes:
## Documentation Sync Report
### Skills
- ✅ Added N new skills to catalog
- skill-name → Category Name
- ✅ Removed N stale skills
- ✅ Updated skill count: OLD → NEW
### Commands
- ✅ Added N new commands
- /namespace:command → Description
- ✅ Updated command counts
### Agents
- ✅ Added N new agents
- agent-name → Domain
- ✅ Updated agent inventory
### Files Modified
- path/to/file.md (N changes)
### Manual Review Needed
- item-name: Could not determine category
.claude/skills/CLAUDE.md - Skills catalog.claude/skills/CLAUDE.md - Commands referenceCLAUDE.md (root) - Repository overviewREADME.md - Project READMEdocs/ directory content| Pattern | Category |
|---|---|
ux-*, accessibility-*, design-* | UX & Accessibility |
git-*, github-* | Version Control & GitHub |
python-*, uv-*, ruff-* | Python Development |
typescript-*, nodejs-*, vitest-* | TypeScript/JavaScript |
rust-*, cpp-*, embedded-* | Systems Languages |
container-*, kubernetes-*, helm-*, terraform-* | Infrastructure & DevOps |
test-*, playwright-*, mutation-* | Testing & Quality |
agent-*, multi-agent-* | Meta & Coordination |
Determined by skill directory name prefix:
skills/git-*/SKILL.md → git: namespaceskills/docs-*/SKILL.md → docs: namespaceskills/*/SKILL.md (no prefix) → Root level skillsdocs: conventional commit prefix# After adding new skills
/docs:sync --dry-run
# Review output, then apply
/docs:sync
# Commit the documentation updates
git add .claude/
git commit -m "docs: sync documentation with new UX implementation features"
/docs:generate for generating new documentationrelease-please-protection for automated versioningWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub laurigates/claude-plugins --plugin documentation-plugin11 skills in this plugin
/claude-blog-sourcesFetch Claude Blog and official Claude Code docs. Use when researching Claude Code capabilities, CLAUDE.md optimization, memory hierarchy, or @import patterns./docs-claim-hygieneKeep figures in docs true: cite the command, not a count that moves; scope measurements; fix a corrected claim in every summary. Use when writing a number into docs or correcting a finding./docs-decommissionGenerate DECOMMISSION-<service>.md covering infra, data, access, DNS, dependencies, monitoring, and financial checklists. Use when decommissioning a service.Other plugins' skills for the same job