Fix doc drift
Agent skills for shipping small paper-cut maintenance PRs
npx -y skills add tomquirk/papercut-skills --skill fix-doc-driftAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Find, fix, verify, and publish one weekly documentation-drift cleanup PR for a target repository. Use when Codex should compare docs under doc/ with current code, package scripts, routes, configuration, env schemas, tests, and ADRs; update stale or missing canonical explanations in a coherent docs-only batch; and skip the run when drift is not clearly evidenced.
SKILL.md
4.2 KB, as published. Nobody here has run it
Fix Doc Drift
Use this skill to run a weekly documentation-drift sweep for a target repository. Prefer source-backed corrections, canonical explanations, and a useful PR trail over broad rewriting.
Weekly Contract
- Run at most once per week unless the user explicitly asks for an extra pass.
- Produce one coherent docs-only PR, not several unrelated cleanups.
- Fix multiple stale references when they share a theme, such as changed commands, moved routes, renamed env vars, outdated architecture notes, or stale setup steps.
- Skip the PR when the pass finds only subjective wording preferences, formatting churn, or drift that cannot be proven from the repo.
Workflow
-
Prepare the repo.
- Read
AGENTS.md,doc/index.md, and any docs that appear related to likely drift. - Run
git status -sband preserve unrelated user work. - Stay in the current branch unless the user asks to switch.
- Use Australian English.
- Read
-
Pick a drift theme.
- Start from likely drift sources:
package.jsonscripts, app routes, env schemas, deployment config, feature docs, ADRs, README-style setup notes, tests that encode expected behaviour, and recently changed files when git history is useful. - Compare docs against code and configuration with
rg, targeted file reads, and narrow source inspection. - Choose one theme once evidence is clear. Examples: local setup commands, deployment flow, analytics events, route names, auth/data boundaries, env vars, billing behaviour, or feature-specific docs.
- Avoid a repo-wide rewrite. A good weekly batch normally touches one to four closely related docs.
- Start from likely drift sources:
-
Reject unsafe or noisy work.
- Do not change product code, tests, configuration, generated files, dependencies, migrations, permissions, payments, auth semantics, analytics meaning, or legal/marketing claims.
- Do not invent product behaviour from intuition; use code, tests, config, existing docs, ADRs, or explicit user context as evidence.
- Do not make style-only edits, large prose rewrites, glossary churn, or speculative future-state documentation.
- If the code and docs disagree but the intended truth is unclear, open a draft PR only when the doc update can state the uncertainty and the required reviewer check plainly. Otherwise stop and report the ambiguity.
-
Update canonical docs.
- Keep canonical explanations in
doc/; useAGENTS.mdonly for editing rules. - Update
doc/index.mdwhen adding, removing, renaming, or materially relocating docs. - Prefer direct, precise wording with links to the relevant canonical page instead of repeating the same explanation in multiple places.
- Keep the diff small and reviewable, even though the run is a weekly batch.
- Keep canonical explanations in
-
Verify.
- Re-read the changed docs and the source files used as evidence.
- Check links and paths touched by the edit with
rgor targeted shell commands. - Run
pnpm prafter changes. Add narrower checks only when the docs reference generated artefacts, examples, or commands that can be cheaply validated. - If verification is blocked, keep the PR draft-ready and record the blocker plus the exact next check.
-
Publish the PR.
- Use the GitHub
yeetworkflow for branch, commit, push, and draft PR creation. - Stage only files that belong to the documentation-drift batch.
- Prefer a branch name like
codex/fix-doc-drift-<theme>and a terse commit message. - Create a draft PR unless the user explicitly asks for ready review.
- Use the GitHub
PR Description
Use a concise PR body with this shape:
## Summary
- Fixes documentation drift around <theme>.
- Keeps the change contained to <docs/files/surface>.
## Evidence
- <Source file, config, test, command, or ADR that proves the updated doc is current.>
- <Second source if useful.>
## Verification
- `pnpm pr`
If a required check cannot run, state exactly what blocked it and what should be run next.