doc-sync
Synchronize documentation and code with bounded, scope-first drift checks
от jmagly★ 233 звезды на GitHub
Установить doc-sync в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Documentation-Code Sync
Detect and resolve drift between code and documentation without front-loading a full repository audit. Treat standard Sonnet context as the baseline.
Invocation
/doc-sync <direction> [options]
Directions:
code-to-docs: code is source of truthdocs-to-code: docs are source of truthfull: bidirectional reconciliation; conflicts require human review
Options:
--scope "path": limit the run to a subtree or file group--incremental: inspect changed files first--dry-run: report only--parallel N: cap concurrent auditors; default2, maximum4--guidance "text": use operator guidance for ambiguous cases--no-commit: do not commit
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
- Start with
git status --shortandgit diff --name-only; do not read broad diffs before the changed-file set is known. - If neither
--scopenor--incrementalis supplied, derive a candidate scope from changed files and ask before expanding to full repo. - Prefer shell inventories (
find,rg --files,git diff --name-only) over reading file bodies. - Dispatch subagents only after scope is known. Use at most
min(--parallel, 4)auditors, and prefer2for broad or release requests. - Each auditor must return at most 10 findings and 600 words. It should write
detailed evidence to
$AIWG_ARTIFACT_ROOT/working/doc-sync/and return only the path plus a summary. - Do not preload other skills into subagents. If another capability is needed, invoke it after this skill finishes or in an isolated follow-up.
Workflow
- Parse direction and options.
- Build a cheap scope inventory:
git status --shortgit diff --name-onlygit diff --cached --name-onlyrg --files docs README.md CHANGELOG.md package.json src agentic toolsonly when the changed-file set is insufficient.
- Choose audit lanes from the scoped files:
- CLI/API docs
- provider/deployment docs
- skill/agent catalogs
- README, changelog, release, or blog material
- config/schema docs
- Run bounded auditors for only the selected lanes. Each prompt must include:
- exact paths to inspect
- direction
- max 10 findings
- max 600-word return summary
- instruction to store detailed notes under
$AIWG_ARTIFACT_ROOT/working/doc-sync/
- Merge summaries into
$AIWG_ARTIFACT_ROOT/reports/doc-sync-audit-{date}.mdwith:- scope
- findings by severity
- auto-fixable vs human-required items
- files changed or proposed changes
- If not
--dry-run, apply high-confidence fixes only. - Validate modified files with targeted checks:
- markdown link/anchor checks where available
npm run lint:claude-contextif Claude-facing skills or agents changed- project-specific build/test checks only when source changed
- Record
$AIWG_ARTIFACT_ROOT/.last-doc-sync. - Commit only when requested by the surrounding workflow and not blocked by
--no-commit; otherwise leave a concise final summary.
Release or Blog Coverage Requests
For combined requests such as "docSync code2doc, ensure the monthly blog covers the work, then commit-and-push":
- Keep this skill to documentation drift detection and fixes.
- Treat blog/release coverage as one selected audit lane with changed files plus month-bounded git history, not a full repository read.
- Return a handoff summary for
commit-and-pushinstead of invoking it inside this skill.
Output Contract
Return:
- audit report path
- files changed
- remaining human-review items
- validation commands run
- next recommended skill, if any
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл doc-sync?
Synchronize documentation and code with bounded, scope-first drift checks
Как установить скилл doc-sync?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл doc-sync запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…