Skills
Skill 139 of 200
Run a read-only documentation drift audit for a feature, PR, branch, release, API, configuration change, workflow, CLI, package, or repository area.
8 minutes · 1,666 words · 10 sections
Install
npx skills add github/awesome-copilot --skill docs-sync-auditnpx skills add github/awesome-copilot/plugin marketplace add github/awesome-copilotThe first command installs just this skill, by the name in its SKILL.md; the second installs the whole repository.
Check whether documentation still matches the code, configuration, API behavior, commands, examples, and user workflows. Report stale or missing docs with concrete evidence and update direction.
Accept any docs-sync target, including:
audit docs for this PR, what docs need updating before release.docs sync for uploads, check billing docs after this change.audit OpenAPI docs against handlers, check SDK examples for the new endpoint.env docs drift, README setup audit, Docker docs sync.check command docs, does onboarding match the current flow.If scope is unclear, infer the smallest useful boundary and state it. If no scope is stated, do not ask for one; proceed with a full-repo docs audit. Ask only when different scopes would produce materially different doc checks.
Establish source of truth.
git status --short.Locate related documentation.
Compare code and docs.
scripts/docs_drift.py first when it is available. It checks only claims with a definite answer: documented npm run scripts and make targets against the ones that exist, relative Markdown links against the filesystem, and environment variable names in both directions between docs and code. The path is relative to this skill’s own directory, which varies by host. Use python if python3 is not on PATH.python <skill-dir>/scripts/docs_drift.py --top 30, or --format json to filter results yourself.--check-paths only when you want backticked paths checked too. It is off by default because most such references are ambiguous, and on a large repo the noise buries the real findings. Read its output as leads, not findings.Verify safely.
python -m compileall and py_compile emit .pyc files, formatters rewrite sources, and installers touch lockfiles. .pyc output is usually gitignored, so git status will look clean while the tree has in fact been modified. Prefer checks that write nothing, and if a language offers no read-only check, say so under checks skipped..env.example, deployment docs, or runbooks missing required configuration.P0: Docs drift could cause production outage, data loss, security exposure, broken deploy, credential mishandling, or critical operational failure.P1: High-impact docs drift that blocks setup, release, API integration, migration, support, or a common user/admin workflow.P2: Meaningful stale or missing docs likely to confuse users, reviewers, operators, SDK consumers, or contributors.P3: Lower-risk docs cleanup, naming drift, examples, comments, or polish that should be queued.Use this structure unless the user asks otherwise:
**Docs Sync Audit: <scope>**
No code changed. I compared <source/code/change scope> against <docs checked>. <verification summary>. No P0s found / P0s found: <count>.
1. **P1: <finding title>.**
Drift: <what docs say or omit vs what code/config does>.
Impact: <who is misled or blocked>.
Evidence: source `<path>:<line>`; docs `<path>:<line>`.
Suggested update: <specific docs change direction>.
2. **P2: <finding title>.**
Drift: <what is stale/missing>.
Impact: <why it matters>.
Evidence: source `<path>:<line>`; docs `<path>:<line>` or expected docs area.
Suggested update: <specific direction>.
**Likely Docs To Update**
- `<path>`: <why>
**Surveyed But Not Deeply Inspected**
- <For full-repo audits only: surfaces that were inventoried but not inspected deeply this pass, and which to run next. Omit this section entirely for scoped audits.>
**Checks Run**
- `<command>`: <result>
**Not Tested**
- <docs build, link check, generated-doc rebuild, or external-doc gaps and why; state residual risk when generated output was not rebuilt>
**Assumptions**
- <only include if useful>If no drift is found, say that clearly and list residual risks such as generated docs not rebuilt, docs build/link checks not run, or external docs not accessible.
When the user asks to update docs:
This skill is one of seven review skills that share a single report contract:
every finding carries a P0-P3 severity and a path:line you can open.
test-gap-audit is the other one in this repository. The remaining five cover
launch readiness, security, repo structure, improvement ideas, and pull
request communication, at https://github.com/specialone0007/review-skills (opens in a new tab).
Run a read-only documentation drift audit for a feature, PR, branch, release, API, configuration change, workflow, CLI, package, or repository area. Use when the user asks whether docs are stale, missing, inconsistent with code, or need updates after code changes. Checks README files, setup guides, API docs, env docs, changelogs, examples, comments, generated docs, and user-facing instructions. This is not a general code review; it compares what the docs claim against what the code does.
The verbatim description from this skill’s front matter — the string an agent matches on to decide whether to load it.
skills/docs-sync-audit/SKILL.mdmain, last pushed 24 September 2026.SKILL.md, not by matching a directory convention. 2 distinct layouts observed: .github/skills/*/SKILL.md, skills/*/SKILL.md.h1 and no skipped levels:.github/plugin/marketplace.json by GitHub, declaring 162 plugins. It is read for editorial metadata only — never as the skill index, which is always the repository tree./github/awesome-copilot.md, and each skill at its own .md URL.1 file · 21 KB
Everything this skill ships beside its prose. All of it is set here, as a subchapter of skill 139.
Executable code the skill can run.