docs-sync
БесплатноБез исполняемых скриптовНе проверен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…
от laurigates★ 61 звезда на GitHubОб этом скилле
/docs:sync [OPTIONS]
When to Use This 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.
Usage
/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
Parameters
--scope <type>- Limit sync to specific type:skills,commands,agents, orall(default)--dry-run- Preview changes without modifying files--verbose- Show detailed progress during scanning
Execution
Execute this documentation sync workflow:
Step 1: Discover codebase items
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 fExtract metadata from each item:
- Skills: Parse YAML frontmatter for
nameanddescription - Commands: Parse
descriptionfrom frontmatter, infer namespace from path - Agents: Parse frontmatter for
name,description,tools
- Skills: Parse YAML frontmatter for
Parse existing documentation:
.claude/skills/CLAUDE.md- Current skill catalog with categories.claude/skills/CLAUDE.md- Command reference with namespaces- Root
CLAUDE.md- Summary counts and highlights
Step 2: Analyze differences
Compare actual vs documented:
- Find items in directories but not in documentation (NEW)
- Find items in documentation but not in directories (STALE)
- Check if counts match
Categorize new items:
For skills, determine category by:
- Name patterns:
ux-*,git-*,python-*→ matching category - Description keywords: "accessibility", "testing", "infrastructure"
- Similar existing skills in same domain
- If uncertain, suggest "Uncategorized" for manual review
For user-invocable skills, determine namespace from directory name:
skills/git-commit/SKILL.md→git:namespaceskills/handoffs/SKILL.md→ Root level
For agents, determine domain from description keywords
- Name patterns:
Identify documentation sections to update:
- Count patterns:
**N skills**,N total,(N skills) - List sections by category/namespace
- Summary tables
- Count patterns:
Step 3: Apply updates
Update counts throughout documentation:
- Search for patterns like
**63 skills**or63 specialized skills - Replace with accurate count
- Update category counts like
### Core Development (9 skills)
- Search for patterns like
Add new items to appropriate sections:
Skills catalog format:
### Category Name (N skills) - **skill-name** - Description from SKILL.md frontmatterCommand 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:
- "See also" sections
- Related skills/commands lists
Step 4: Report results
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
Documentation Files to Update
Primary targets (always check):
.claude/skills/CLAUDE.md- Skills catalog.claude/skills/CLAUDE.md- Commands referenceCLAUDE.md(root) - Repository ove
Установить docs-sync в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(find *)GrepGlobReadEditWriteTodoWriteFAQ
Что делает скилл docs-sync?
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.
Как установить скилл docs-sync?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл docs-sync запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic