agentleFS
pankaj-mahaurpankaj-mahaur/Agent-Daemon/skills/engineering/docs-sync-audit/SKILL.md

docs-sync-audit

Skill0 starsChanged 6 days agoMITView on GitHub

Audit and update project documentation to match current code. Use for docs audit, documentation drift, README updates, API docs sync, configuration docs, keeping project docs aligned with current code, or stale documentation cleanup.

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 8 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this when project documentation may be stale or inconsistent with the actual codebase.

    line 13
  2. Distinctive:

    Do documented commands still work?

    line 26
  3. Distinctive:

    Do documented environment variables match what the code reads?

    line 27
  4. Distinctive:

    Do documented API endpoints match actual routes/views?

    line 28
  5. Distinctive:

    Do documented architecture descriptions match the actual file structure?

    line 29
  6. Distinctive:

    Do documented dependencies match what's in package files?

    line 30
  7. Distinctive:

    Update with changes: When you change code that has corresponding docs, update the docs in the same commit or immediately after.

    line 51
  8. Very specific:

    Don't duplicate: If a deployment guide exists in docs/deploy.md, the README should link to it, not reproduce it.

    line 52
  9. Distinctive:

    Date your snapshots: If a doc captures a point-in-time state (e.g., "current architecture"), include the date so readers know when it was …

    line 53

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Docs Sync Audit

Use this when project documentation may be stale or inconsistent with the actual codebase.

Workflow

  1. Inventory documentation sources:
    • Root README and project docs
    • Per-package or per-service READMEs
    • API documentation (OpenAPI, Swagger, manual docs)
    • Architecture decision records (ADRs)
    • Deployment and operations guides
    • Inline code documentation (CLAUDE.md, AGENTS.md, CONTRIBUTING.md)
    • Audit notes, review records, changelog
  2. Compare docs against current code/config:
    • Do documented commands still work?
    • Do documented environment variables match what the code reads?
    • Do documented API endpoints match actual routes/views?
    • Do documented architecture descriptions match the actual file structure?
    • Do documented dependencies match what's in package files?
  3. Check common drift categories (see below).
  4. Update docs where behavior, commands, routes, environment, or status has changed.
  5. Keep meta-docs concise — link to detailed docs instead of duplicating content.

Common Drift Categories

These are the most frequent sources of documentation drift:

  • README reverting to boilerplate — framework-generated READMEs overwrite project-specific content after upgrades or re-initialization
  • API endpoint docs disagreeing with code — routes added/removed/renamed but docs not updated
  • Environment variable docs missing new vars — new config added to code but not documented
  • Command examples that don't work — package scripts renamed, Docker commands changed, CLI flags deprecated
  • Architecture docs describing removed components — features deleted but docs still reference them
  • Deployment docs with wrong steps — infrastructure changed but deploy guide not updated
  • Stale audit/review status — work marked "pending" that was already completed
  • Version numbers and dependency lists — outdated version references

Sync Policy

  • Single source of truth. Each fact should live in one place. Other docs link to it.
  • Update with changes. When you change code that has corresponding docs, update the docs in the same commit or immediately after.
  • Don't duplicate. If a deployment guide exists in docs/deploy.md, the README should link to it, not reproduce it.
  • Date your snapshots. If a doc captures a point-in-time state (e.g., "current architecture"), include the date so readers know when it was last verified.

Output

For each stale item:

FieldDescription
Doc filePath to the stale document
Stale contentWhat's wrong (quote or summarize)
Source of truthWhere the correct information lives (code file, config, etc.)
UpdateWhat was changed or needs to be changed
VerificationHow to confirm the doc is now accurate

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.