Arkhe-claude-plugins sync-docs
install
source · Clone the upstream repo
git clone https://github.com/joaquimscosta/arkhe-claude-plugins
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/joaquimscosta/arkhe-claude-plugins "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/sync-docs" ~/.claude/skills/joaquimscosta-arkhe-claude-plugins-sync-docs && rm -rf "$T"
manifest:
.claude/skills/sync-docs/SKILL.mdsource content
Sync Docs
Sync official Anthropic documentation into
docs/reference/ and produce an impact analysis report.
Quick Start
Run the sync and diff script:
scripts/sync_and_diff.py
Preview changes without overwriting:
scripts/sync_and_diff.py --dry-run
Execution
Phase 1: Sync & Diff
- Execute
(or withscripts/sync_and_diff.py
if--dry-run
contains$ARGUMENTS
)--dry-run - Parse the JSON output from stdout
- Display a summary table of changed/unchanged files
Phase 2: Impact Analysis
For each changed file, perform the following analysis. See WORKFLOW.md for detailed steps.
2a. Skill Validator Impact (CRITICAL priority)
Check
discrepancies in the JSON output:
(CRITICAL): New fields in SKILLS.md the validator will reject as unknown (FM009). Report exact fields and line inskill_frontmatter_keys.in_docs_not_validator
to update (validate_skill.py
, ~line 151).ALLOWED_FRONTMATTER_KEYS
(WARNING): Fields the validator allows but SKILLS.md no longer documents. May be from SUBAGENTS.md (valid forskill_frontmatter_keys.in_validator_not_docs
) or deprecated.context: fork
(INFO): New subagent fields from SUBAGENTS.md. Not all are valid in skill frontmatter — report for context. Only flag fields that overlap with skill usage (e.g.,subagent_frontmatter_keys
,maxTurns
,mcpServers
,memory
).skills
(CRITICAL): New hook events the validator will reject (HK001). Report the line to update (hook_events.in_docs_not_validator
, ~line 1021).VALID_HOOK_EVENTS
(WARNING): Hook events the validator knows but docs no longer list.hook_events.in_validator_not_docs
: Review manually if SUBAGENTS.md changed — check if memory scope options expanded.memory_scopes
2b. Plugin Component Impact (WARNING priority)
For each changed synced doc, identify the conceptual areas that changed (new fields, deprecated features, renamed concepts). Then:
- Use Grep to search
for references to changed conceptsplugins/*/ - Flag plugins using deprecated patterns
- Note new capabilities not yet leveraged (as INFO)
2c. Project Documentation Impact (WARNING priority)
Check these files for stale references to synced doc content:
— Plugin Component Guidelines section, Key Documentation Files sectionCLAUDE.md
— Synced Documentation section, learning pathsdocs/README.md
— Frontmatter reference, patternsdocs/SKILL_DEVELOPMENT_BEST_PRACTICES.md
Output Format
Present findings as a structured report:
=== Documentation Sync Impact Report === ## Sync Summary | File | Status | +Lines | -Lines | New Sections | Removed Sections | |------|--------|--------|--------|--------------|-----------------| ... ## CRITICAL: Skill Validator Updates Required (List each discrepancy with file, line number, and fix) ## WARNING: Plugin Components Affected (List affected plugins and what changed) ## WARNING: Project Documentation Stale (List affected doc files and what to update) ## INFO: New Capabilities Available (List new features from updated docs that could be leveraged)
If no files changed, report: "All documentation is up to date. No impacts detected."
References
- WORKFLOW.md — Detailed impact analysis steps
- EXAMPLES.md — Example report outputs
- TROUBLESHOOTING.md — Common issues