documentation-plugin/skills/docs-sync/SKILL.md
Sync docs with actual skills, commands, and agents. Use when docs are out of sync, updating the skill catalog, or regenerating command reference to fix mismatches.
npx skillsauth add laurigates/claude-plugins docs-syncInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
| 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 versioning/project:new or major feature additionstesting
Verify accumulated bug claims at upstream HEAD and dedup against trackers before filing issues. Use when filing upstream reports from backlogs, audit docs, or git-history findings.
documentation
Gate outward-bound text (upstream issues, docs, PR bodies) through isolated haiku fresh-reader critique before publishing. Use when an artifact must survive a reader with zero project context.
tools
Suggest improvements to SKILL.md content, descriptions, or tool config from eval results. Use when raising pass rates, fixing triggering, or iterating on a skill after evaluation.
tools
deadbranch CLI for stale-branch cleanup — dry-run preview, TUI or non-interactive delete, protects main/develop/WIP. Use when asked to clean up branches, prune branches, or remove stale branches.