Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
acedergren avatar

Doc Sync

  • 21 installs
  • 22 repo stars
  • Updated May 28, 2026
  • acedergren/agentic-tools

doc-sync is a Claude Code skill that audits or fixes drift between project documentation and the actual codebase.

About

doc-sync is a Claude Code skill that audits or fixes drift between project documentation and the actual codebase. It detects stale architecture diagrams, wrong file paths, outdated test counts, and undocumented structural changes, classifying drift into structural, path rot, count, and roadmap lag. By default it reports only; passing 'fix' applies targeted repairs and commits. Developers use it to keep docs, CLAUDE.md, and roadmaps in sync with the code.

  • Audits project docs against codebase reality to detect drift
  • Detects stale architecture diagrams, wrong file paths, outdated test counts, and undocumented changes
  • Report-only by default; pass 'fix' to apply targeted repairs and commit

Doc Sync by the numbers

  • 21 all-time installs (skills.sh)
  • Ranked #1,001 of 1,879 Documentation skills by installs in the Skillselion catalog
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

doc-sync capabilities & compatibility

Capabilities
doc drift audit · documentation sync · path validation · doc repair
Use cases
documentation · code review
Pricing
Free
From the docs

What doc-sync says it does

Audit project docs against codebase reality. Report drift or fix it.
SKILL.md
Never update a doc based on what the code *should* look like — only sync to what it *actually* is now.
SKILL.md
npx skills add https://github.com/acedergren/agentic-tools --skill doc-sync

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs21
repo stars22
Last updatedMay 28, 2026
Repositoryacedergren/agentic-tools

What it does

Audit or fix drift between project docs and the codebase, detecting stale paths, counts, diagrams, and roadmap lag.

Who is it for?

Detecting and fixing stale docs, wrong file paths, outdated counts, and roadmap lag against the real codebase.

Skip if: Authoring new documentation or rewriting prose; it only syncs docs to what the code actually is.

When should I use this skill?

You want to audit or fix drift between project documentation and the actual codebase.

What you get

A drift report (or applied fixes) aligning docs, CLAUDE.md, and roadmaps with the codebase reality.

  • Doc-drift report grouped by severity
  • Targeted doc fixes committed (fix mode)

By the numbers

  • 4 drift types: structural, path rot, count, roadmap lag
  • ships 2 scripts: list-doc-targets.sh, check-doc-paths.js

Files

SKILL.mdMarkdownGitHub ↗

Documentation Sync Audit

Audit project docs against codebase reality. Report drift or fix it.

NEVER

  • Never update a doc based on what the code should look like — only sync to what it actually is now.
  • Never fix docs for a section you didn't audit — partial fixes create false confidence.
  • Never mark a roadmap item complete based on code presence alone — check git log for the deliberate completion commit.
  • Never skip auditing CLAUDE.md / agent instructions — stale agent instructions cause cascading errors in future sessions.

Drift Classification: What Actually Goes Stale

Most doc-code drift falls into four categories with different detection approaches:

Drift TypeDetection SignalFalse Positive Risk
Structural driftDirectory tree, plugin/middleware chain orderLow — filesystem is ground truth
Path rotFile paths in docs that no longer existLow — use check-doc-paths.js
Count driftTest counts, permission counts, route countsMedium — recount from actual files
Roadmap lagCompleted work not reflected in docsHigh — confirm git log intent

Decision: Audit vs Fix

  • $ARGUMENTS = empty or audit → report only, no edits
  • $ARGUMENTS = fix → report then apply targeted edits, commit

When fixing: edit the minimum to correct drift. Don't rewrite prose, restructure sections, or add new content — this is sync, not authoring.

What to Audit

Architecture docs — plugin/middleware chain order, route module list, monorepo package list, directory structure tree.

Security docs — security plugins listed vs what's registered, permission counts, any security-related commits since last doc update (git log --oneline --since="$(git log -1 --format=%ai docs/SECURITY.md)" -- src/).

Test docs — actual test file count vs documented count, pass/fail counts (run suite to get current numbers).

Roadmap/changelog — git log for completed work not reflected in any phase. Flag commits with feat: or fix: prefixes that postdate the last roadmap update.

CLAUDE.md / agent instructions — naming conventions match actual patterns, documented file paths exist, anti-patterns section is current.

Scripts

bash scripts/list-doc-targets.sh
node scripts/check-doc-paths.js README.md docs/ARCHITECTURE.md

Report Format

| Doc | Section | Issue | Severity |
|-----|---------|-------|----------|

Severity: Critical (broken paths, missing security docs), Warning (stale counts, missing routes), Info (minor wording drift, outdated roadmap phases).

Commit (fix mode only)

docs: sync documentation with codebase [doc-sync]

Related skills

FAQ

Does doc-sync edit my docs automatically?

Only if you pass 'fix'. By default it is report-only; 'fix' applies targeted edits to correct drift and commits.

What kinds of drift does it detect?

Structural drift, path rot, count drift (test/permission/route counts), and roadmap lag, each with a different detection approach.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.