一键导入
doc-sync
Synchronize documentation and code with bounded, scope-first drift checks
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Synchronize documentation and code with bounded, scope-first drift checks
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Generate a corpus snapshot report — computes dimensions, topology, degree distribution, delta from previous. Helps with cluster, chain, and gap analysis sections.
Detect requests for iterative autonomous agent loops and route to the appropriate loop executor
Orchestrate multi-loop background operations via the Mission Control dashboard — start sessions, dispatch missions, monitor, and stop
Launch an AIWG Mission — durable, audited dynamic agent orchestration toward a completion criterion. AIWG owns the conductor (activity-log, gates, best-output, checkpoint/resume, cost); native primitives drive worker mechanism. Surfaces as /aiwg-mission in Codex (AIWG-owned, no plugin dependency).
Config-driven release orchestration — reads .aiwg/release.config plus optional .aiwg/releases/<plan-id> sidecars and walks the selected release plan's gates
Update AIWG CLI and redeploy frameworks/tools to current project without leaving the session
| namespace | aiwg |
| name | doc-sync |
| platforms | ["all"] |
| description | Synchronize documentation and code with bounded, scope-first drift checks |
| commandHint | {"argumentHint":"<direction> [--scope \"path\" --dry-run --parallel N --incremental --guidance \"text\" --no-commit]","allowedTools":"Task, Read, Write, Bash, Glob, Grep, Edit","model":"sonnet","category":"documentation"} |
Detect and resolve drift between code and documentation without front-loading a full repository audit. Treat standard Sonnet context as the baseline.
/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 reviewOptions:
--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; default 2, maximum 4--guidance "text": use operator guidance for ambiguous cases--no-commit: do not commitgit status --short and git diff --name-only; do not read broad
diffs before the changed-file set is known.--scope nor --incremental is supplied, derive a candidate scope
from changed files and ask before expanding to full repo.find, rg --files, git diff --name-only) over
reading file bodies.min(--parallel, 4)
auditors, and prefer 2 for broad or release requests..aiwg/working/doc-sync/ and return only the path plus a
summary.git status --shortgit diff --name-onlygit diff --cached --name-onlyrg --files docs README.md CHANGELOG.md package.json src agentic tools
only when the changed-file set is insufficient..aiwg/working/doc-sync/.aiwg/reports/doc-sync-audit-{date}.md with:
--dry-run, apply high-confidence fixes only.npm run lint:claude-context if Claude-facing skills or agents changed.aiwg/.last-doc-sync.--no-commit; otherwise leave a concise final summary.For combined requests such as "docSync code2doc, ensure the monthly blog covers the work, then commit-and-push":
commit-and-push instead of invoking it inside
this skill.Return: