config/codex/skills/docs-consolidator/SKILL.md
Audit and consolidate project documentation in the docs/ folder, including AGENTS.md optimization and CLAUDE.md migration. Use when the user wants to clean up docs, check docs are up to date, deduplicate information across docs, ensure information lives in the right doc, reorganize documentation, or slim down AGENTS.md / CLAUDE.md files. Triggers on "consolidate docs", "clean up documentation", "audit docs", "organize docs", "sync docs with code", "audit agents.md", "review agents.md", "audit claude.md", "review claude.md", "slim down agents.md", "optimize agents.md", "slim down claude.md", "optimize claude.md".
npx skillsauth add cryptofish7/dotfiles docs-consolidatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Audit, deduplicate, and reorganize project documentation so every piece of information has one home and all docs stay current.
.codex/doc-registry.md exists in the project root.
docs/, root AGENTS.md (or docs/AGENTS.md if symlinked), root CLAUDE.md if present for migration, README.md, and any other .md files referenced by the agent instruction file..codex/doc-registry.md in the project root using this format:# Document Registry
Each doc has ONE purpose. Information belongs in the doc that owns that domain.
| File | Purpose | Owns |
|------|---------|------|
| `path/to/doc.md` | Brief purpose | What information this doc is the canonical source for |
## Overlap Rules
- [category] → `canonical-doc.md`, not [other doc]
Present the generated registry to the user and ask for approval before continuing. The user may want to adjust purposes or ownership boundaries.
Read every doc (if not already read in Phase 1) and compare against the registry. Flag:
If the registry identifies a tasks/progress doc (e.g., docs/TASKS.md), audit it for:
[ ] items. Flag any item whose work has shipped — Phase 4 will tick [x].(PR #N), (#N), or branch: foo/bar in task descriptions, sub-bullets, or section headings. Git log/blame is the audit trail — flag for strip.Additionally, collect all AGENTS.md files (root, docs/AGENTS.md, packages/*/AGENTS.md, ~/.codex/AGENTS.md) and any leftover CLAUDE.md files still used for migration, then audit them for:
~/.codex/memories/<project-slug>.md), not the repo.Present findings as a structured report to the user:
## Doc Audit Report
### Misplaced Information
- [ ] [source doc] → [target doc]: [what to move]
### Duplications
- [ ] [info]: found in [doc A] and [doc B]. Keep in [canonical doc], remove from [other].
### Stale Content
- [ ] [doc]: [what's stale and why]
### Organization Issues
- [ ] [doc]: [what to reorder/restructure]
### AGENTS.md Optimization
#### Redundancy
- [ ] [file] lines X-Y: [description] — duplicates [other location]
#### Verbosity
- [ ] [file] lines X-Y: [current text snippet] → [compressed version]
#### Memory Candidates
- [ ] [file] lines X-Y: [content] — stable/personal, move to project memory
Ask the user to approve the plan before making any changes.
After approval, apply changes doc by doc:
ARCHITECTURE.md for database schema")For each doc flagged as needing feature documentation, add content to the appropriate existing sections following the doc's style.
Tasks/progress docs: tick [x] items completed by the current branch/PR. Strip any (PR #N) / (#N) / branch: qualifiers and parenthetical scope notes describing implementation detail from descriptions and headings. Add new milestone entries only for genuinely new scope; otherwise fold into the matching existing milestone. Items describe outcomes, not PR contents. Collapse "Superseded" tombstones to a one-liner or delete. Run a hygiene pass on neighboring items each edit.
[x], do NOT append a parenthetical scope note describing what shipped, a date stamp, or a verification observation tail. Forbidden patterns:
[x] Leaderboard page (8-column table layout, pill sort/period filter row, …) ← implementation scope ❌[x] Wallet activity panel (adds scope dropdown + popover focus management) ← implementation scope ❌[x] Header shows "Login" button — verified 3/17/2026 ← date stamp ❌[x] Header shows "Login" button — verified 2026-03-17: logged out, header showed blue "Login" button ← date stamp + observation tail ❌[x] Trade panel — partial 2026-05-12: only bear branch confirmed ← partial-verification tail ❌[x] Trade panel — note: observed slippage popover at 12px offset ← point-in-time observation ❌[x] Item wording (PR #471) ← PR reference ❌[x] Leaderboard page ← tick only ✅[x] already means "verified in browser with screenshot evidence." Git blame is the timestamp. The existing wording is the outcome; specific observed values are point-in-time and rot. If you need to record evidence for yourself, it lives in the PR description or test fixtures, not the tracker. If the existing wording is so vague the outcome isn't clear, fix the wording in a separate hygiene pass — never as an annotation at tick time.Architecture docs: add new components, endpoints, schemas, or data flows.
Product/PRD docs: add new feature specs or user flows.
Security docs: add new trust assumptions or threat analysis.
AGENTS.md: additions must pass all three tests, or they go elsewhere:
grep surface this? If yes, don't write it. Hook names, file paths, function signatures, component lists, UI flow steps, API field lists all fail this test. AGENTS.md is for things that bite silently — knowledge no amount of reading the code reveals.docs/. Move the body there and leave a one-line cross-reference here.If your edit fails any test, the right answer is almost always "add it to the appropriate doc in docs/ and update the cross-reference here, if one's needed at all." Adding nothing to AGENTS.md is a valid outcome of feature work.
Only update docs where the feature introduces something new for that doc's domain. Don't force updates.
All existing guidelines apply: prefer cross-references over duplication, keep AGENTS.md lean, preserve writing style, one source of truth per topic.
~/.codex/memories/<project-slug>.md (create the file if needed, append to existing)(PR #N), (#N), or branch: foo/bar qualifiers in headings/items — git log/blame is the audit trail; (b) PR-numbered sub-sections that should fold into the surrounding section; (c) "Superseded" / "Replaced by" tombstones — collapse to one line or delete; (d) "(new in vN)" / "(post X migration)" qualifiers that turn stale once X ships. On any edit to an existing doc, run a hygiene pass on neighboring items. Two genres get dedicated doctrine on top of this rule: regression checklists (see BUG_BASH_GUIDE Discipline in the project AGENTS.md) and forward-looking trackers (see Tasks Tracker Discipline). Stable reference docs (PRD, architecture, security, design system) just follow the universal rule — don't add doc-specific doctrine for them.archive/ directory exists, move superseded docs there rather than deleting.testing
Generate and maintain a local deploy script (scripts/deploy.sh). Discovers project services, deploys them locally, and health-checks each one. Use when the user asks to "smoke test", "deploy locally", "test local deploy", "update deploy script", "run deploy", or "run smoke test".
testing
Audit installed skills and agents for bloat, overlap, and improvement opportunities. Use when the user wants to review, audit, list, or improve their skills and agents. Triggers on "review skills", "audit skills", "list skills", "skill review", "improve skills".
development
Set up the autonomous post-task workflow for a project. Injects the standard development pipeline into AGENTS.md and installs all required skills and agents (docs-consolidator, ci-cd-pipeline, smoke-test, bug-bash-update, code-reviewer, debugger). Use at the start of a new project. Triggers on "setup workflow", "init workflow", "add workflow", or "set up project workflow".
tools
Analyze the current conversation for learnings and persist approved insights. Triggers on "reflect", "retrospective", "session review", "what did we learn", "conversation review".