Sync docs

From joaquimscosta/arkhe-claude-plugins · View interactive version

Sync docs is an AI agent skill from the GitHub repository joaquimscosta/arkhe-claude-plugins. Sync official Anthropic documentation and analyze impact on project components. Runs docs/reference/update-claude-docs.sh, computes diffs, and reports impacts on the skill validator, plugins, and project documentation. Use when user mentions "sync docs", "update reference docs", "refresh docs", or "

How to use this skill

Skill file

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

  1. Execute scripts/sync_and_diff.py (or with --dry-run if $ARGUMENTS contains --dry-run)

Capture the whole JSON document. Never pipe it through tail/head — sync_health and sync_result are at the top of the output and are the first things to read.

  1. Gate on sync_health before anything else:

> update-claude-docs.sh exits 0 when at least one file downloads, so a non-zero exit code is not the signal — a 1-of-8 sync also exits 0. Trust sync_health, not sync_result.exit_code.

  1. Parse the rest of the JSON output
  2. Display a summary table of changed/unchanged files, using download_status to mark any file that was not fetched

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:

2b. Plugin Component Impact (WARNING priority)

For each changed synced doc, identify the conceptual areas that changed (new fields, deprecated features, renamed concepts). Then:

  1. Use Grep to search plugins/*/ for references to changed concepts
  2. Flag plugins using deprecated patterns
  3. Note new capabilities not yet leveraged (as INFO)
2c. Project Documentation Impact (WARNING priority)

Check these files for stale references to synced doc content:

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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.