Sync self-documentation reference files with latest Claude Code releases. Use when maintaining the meta-claude plugin to update feature documentation, run doc sync, or update documentation.
Orchestrates atomic agents to keep self-documentation reference files current with Claude Code releases.
You MUST follow these steps in order. Each step has specific actions you take directly or agents you invoke.
Location: .claude/cache/doc-sync-state.json
The state file enables:
Create fresh state file using the Write tool:
Action: Write .claude/cache/doc-sync-state.json with:
{
"workflow_id": "sync-YYYYMMDD-HHMMSS",
"started_at": "ISO timestamp",
"current_step": "parsing",
"iteration_count": 0
}Generate workflow_id using current date/time (e.g., "sync-20260201-143052").
Action: Use the Task tool with subagent_type: "doc-release-parser".
Prompt: Parse Claude Code releases and update the state file.
After agent completes:
.claude/cache/doc-sync-state.jsonparser_output.new_features is empty AND versions.tracked == versions.latestAction: Use the Task tool with subagent_type: "doc-migration-checker".
Prompt: Check existing undocumented features for official documentation and update the state file.
Action: Use the Task tool with subagent_type: "doc-content-writer".
Prompt: Write feature entries to reference files based on state file inputs.
Action: Use the Task tool with subagent_type: "doc-consistency-auditor".
Prompt: Verify reference file consistency and write audit results to state file.
After agent completes:
.claude/cache/doc-sync-state.jsonaudit_historyIf PASS:
If FAIL with fixable errors:
iteration_count in state fileiteration_count > 5, STOP with error "Max iterations reached"subagent_type: "doc-content-writer":
Prompt: Fix audit errors: {list errors}. Make targeted fixes only.If FAIL with unfixable errors:
Only execute if audit passed.
Action 1: Bump versions
Read and update plugins/meta-claude/.claude-plugin/plugin.json:
"version": "X.X.X""X.X.X" → "X.X.Y" (e.g., "1.4.8" → "1.4.9")Update .claude-plugin/marketplace.json:
plugins array"version" to matchAction 2: Update state file
Update .claude/cache/doc-sync-state.json:
"current_step": "complete""completed_at": "ISO timestamp"Do NOT delete the state file (enables debugging).
Action 3: Report summary
Generate and output:
## Documentation Sync Complete
**Version range:** vX.X.X → vY.Y.Y
### New Features Added
- Feature A → undocumented.md
- Feature B → core-features.md
### Migrations
- Feature C: undocumented.md → workflows.md
### Audit
- Iterations: N
- Final status: PASS
### Version Updates
- meta-claude plugin: X.X.X → X.X.Y
- marketplace: X.X.X → X.X.Y| Error | Handling |
|---|---|
| WebFetch fails for release notes | Abort workflow, report error |
| WebFetch fails for doc check | Treat feature as undocumented, continue |
| Auditor returns fixable errors | Iterate: fix → re-audit |
| Auditor returns unfixable errors | Stop, report to user, preserve state file |
| Max iterations reached | Stop, report partial progress, preserve state file |
| File | Purpose |
|---|---|
references/undocumented.md | Features without official docs |
references/core-features.md | Skills, agents, MCP, plugins, hooks |
references/configuration.md | Settings, permissions, sandboxing |
references/integrations.md | VS Code, IDE extensions |
references/workflows.md | Shortcuts, git automation |
references/topic-index.md | Keyword-to-file mapping |
references/sdk-behavioral-bridges.md | Behavioral info from Agent SDK |
All reference files are in: plugins/meta-claude/skills/self-documentation/references/
https://code.claude.com/docs/llms.txthttps://code.claude.com/docs/en/<page>.mdhttps://raw.githubusercontent.com/anthropics/claude-code/main/CHANGELOG.mdhttps://platform.claude.com/docs/en/agent-sdk/561b70e
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.