Doc sync

From jmagly/aiwg · View interactive version

Doc sync is an AI agent skill from the GitHub repository jmagly/aiwg. Synchronize documentation and code with bounded, scope-first drift checks

How to use this skill

Skill file

Doc Sync

Detect and resolve documentation drift without front-loading a full repository

audit. Treat standard Claude Code Sonnet context as the baseline.

Triggers

Users may say:

Parameters

direction is required:

Options:

git changed files if no last-run record exists

Artifact root resolution

Treat every .aiwg/... path below as a logical artifact path. Before reading

or writing sync state, working evidence, or reports, run aiwg artifacts path

from the active workspace and use the returned absolute directory as

AIWG_ARTIFACT_ROOT. Never write these payloads to a literal project-local

.aiwg/ when AIWG_ARTIFACTS_PATH or .aiwg-location redirects the corpus.

Context Budget Rules

git diff --cached --name-only.

changed files and ask before expanding to the full repo.

bodies.

Detailed evidence goes under $AIWG_ARTIFACT_ROOT/working/doc-sync/.

as one scoped lane and return a handoff summary for commit-and-push.

Workflow

  1. Parse direction and options.
  2. Build the cheap scope inventory from git path lists.
  3. Select relevant lanes only: CLI/API docs, provider docs, skill/agent catalogs,

README/changelog/release/blog material, or config/schema docs.

  1. Run bounded auditors for selected lanes only.
  2. Write $AIWG_ARTIFACT_ROOT/reports/doc-sync-{timestamp}.md with scope, findings,

auto-fixable items, human-review items, and changed files.

  1. If not --dry-run, apply high-confidence fixes only.
  2. Validate modified files with targeted checks.
  3. Record $AIWG_ARTIFACT_ROOT/reports/doc-sync-last-run.json.
  4. Return report path, files changed, validation commands, and remaining review

items.

Output Contract

Return:

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.