Skip to content
Back to skills

Doc Sync

ASecurity

Audit project documentation against the codebase and fix drift. Run before PRs or after major changes. Compares documented architecture, test counts, and file paths against actual state.

  • 225 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 4, 2026
documentationtestinggitsecuritydocumentation

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned September 4, 2026

npx -y skills add NeverSight/skills_feed --skill doc-sync --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Doc Sync?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Doc Sync
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-doc-sync/badge)](https://www.skillsdirectory.com/skills/neversight-doc-sync)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: doc-sync
description: "Audit project documentation against the codebase and fix drift. Run before PRs or after major changes. Compares documented architecture, test counts, and file paths against actual state."
---

# Documentation Sync Audit

Audit all project documentation against the actual codebase and report (or fix) any drift.

## Steps

1. **Identify documentation files**: Find all `.md` files in `docs/`, project root, and `.claude/reference/` that describe architecture, security, testing, or roadmap.

2. **Audit architecture docs** against the codebase:
   - Check main entry point — does the plugin/middleware chain match the documented order?
   - Check routes directory — are all route modules listed?
   - Check shared packages — are all exports documented?
   - Check monorepo layout — does the documented tree match actual directory structure?

3. **Audit security docs**:
   - Check security plugins/middleware — are all documented?
   - Check for new security-related commits since last doc update
   - Verify permission counts match actual definitions

4. **Audit test docs**:
   - Count actual test files
   - Run test suite to get current pass counts
   - Compare documented test counts to actual counts

5. **Audit roadmap/changelog**:
   - Check git log for commits not reflected in any documented phase
   - Verify completed phases are marked done

6. **Audit CLAUDE.md / agent instructions**:
   - Check naming conventions match actual code patterns
   - Verify documented file paths still exist
   - Confirm anti-patterns section is current

7. **Report findings**:

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

8. **Fix drift** (if `$ARGUMENTS` contains "fix"):
   - Make targeted edits to fix each drift item
   - Commit with `docs: sync documentation with codebase [doc-sync]`

If `$ARGUMENTS` is empty or "audit", only report — don't edit.

## Arguments

- `$ARGUMENTS`: `audit` (default, report only) or `fix` (report and fix drift)

## When to Run

- Before creating a pull request (`/doc-sync audit`)
- After completing a development phase (`/doc-sync fix`)
- After any structural changes (new plugins, routes, migrations)

Files in this skill

  • SKILL.md2.2 KB
  • description_ar.txt375 B
  • description_cn.txt173 B
  • description_de.txt244 B
  • description_en.txt187 B
  • description_es.txt281 B
  • description_fr.txt250 B
  • description_it.txt247 B
  • description_ja.txt297 B
  • description_ko.txt245 B
  • description_ru.txt433 B
  • description_tw.txt176 B
  • stats.json65 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in documentation →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.