0x2e/dev-skills/curating-docs
Claude Code and agent skill by 0x2e/dev-skills
- community
Checking that the SKILL.md file is still in the repository.
Use to tame documentation chaos in a project — surveys scattered/stale/duplicate/orphaned docs, recommends an organization convention from built-in best practices, codifies it into the AI config file (AGENTS.md/CLAUDE.md/etc.), reorganizes the file structure, and remediates content health.
Install
npx vskill@latest install 0x2e/dev-skills/curating-docsSKILL.md
The same SKILL.md was published earlier as 0x2e/dev-skills/curating-docs.
Curating Docs
Governs a project's documentation assets across two first-class dimensions — structure (physical organization) and content (health). Use when docs have accumulated chaos: scattered root files, multiple competing docs/ directories, inconsistent naming, stale/duplicate/orphaned docs.
Iron Law
- No file move/delete without a user-confirmed migration plan.
- git working tree must be clean before reorg. If dirty, abort and prompt — do NOT auto-stash.
- No batch auto-rewrite in content remediation. Every content judgment needs per-item user confirmation.
Red Flags
Stop if you catch yourself thinking:
- "Let me also refactor this unrelated old code while I'm here" — out of doc scope.
- "This README looks stale, delete it" — content deletion always needs user confirmation.
- "Working tree is dirty but I'll just proceed" — breaks reversibility.
Process
Run the phases in order. Each phase gates the next.
Phase 1: Survey
One scan, two diagnoses. Output a survey report with two sections.
Structure signals:
- Root-level scattered
.md(excluding convention files:README,LICENSE,CHANGELOG,CONTRIBUTING) - Multiple doc directories (
docs/,doc/,documentation/,wiki/) - Naming chaos (inconsistent case, no prefixes, mixed date/version schemes)
- Physical duplication — same/near-same filename in multiple locations
Content signals:
- Stale — apparent from the doc's own content: broken internal cross-references, outdated version/date/deprecated-tool cues, or explicit stale markers
- Duplicate — overlapping content across distinct documents
- Contradictory — conflicting descriptions of the same subject
- Orphaned — no inbound links/references
- Missing — doc types the convention requires but the project lacks
For large projects, dispatch an explore subagent to map doc distribution. Bound the scan to documentation files (.md primarily; .rst/.adoc if present) — do not scan source code in depth.
Boundary rule: physical duplication (same file scattered in multiple locations) → handled in Phase 4. Content duplication (overlapping semantic content across distinct files) → handled in Phase 5.
Phase 2: Recommend
Load the Built-in Defaults below, identify the project's existing sensible structures as keep-items, merge, and present: directory structure + naming convention + doc-type taxonomy. The user confirms or adjusts item by item.
Lead with the recommendation; do not present a menu of equal options. Note where the project's existing structure deviates and whether to preserve or migrate it.
Phase 3: Codify
Detect the AI config file by Config File Priority below — write to the first one that already exists; if none exist, create AGENTS.md. Add the confirmed documentation conventions to the file. Write only after user confirmation.
Match the existing file's format and conventions. Do not overwrite existing content.
Phase 4: Reorganize (structure)
- Precondition:
git statusmust be clean. If dirty, abort and tell the user to commit/stash first. - Generate a migration plan:
old path → new pathmap + delete/merge list. - User confirms the plan.
- Dispatch an
implementersubagent to perform moves/renames. - Update cross-references (relative links) between docs.
- Verify:
git statusshows only intended changes + link check (no broken links) + no files lost. - Produce a change report (what moved, what merged, what deleted, links updated).
Phase 5: Remediate (content)
Act on the Phase 1 content diagnosis. For each item, present the finding + recommended action (update/merge/delete/write-missing) and confirm with the user before acting. Group by category (stale → duplicate → contradictory → orphaned → missing) for review efficiency, but each action remains individually confirmed.
No batch rewriting. Content semantics cannot be mechanically verified — the user is the safety net here, just as git is the safety net for structure.
Built-in Defaults
Default directory/naming skeleton, selected by inferred project type. Present the matching default in Phase 2, then adjust to the project.
Library / application:
| Path | Purpose | Naming | |
|---|---|---|---|
README.md (root) | Project overview, required | — | |
docs/specs/ | Specifications | NNN-{desc}.md | |
docs/adrs/ | Architecture decisions | NNN-{desc}.md | |
docs/design/ | Design docs | {desc}.md | |
docs/runbooks/ | Ops / playbooks | {desc}.md | |
docs/api/ | API reference | {desc}.md | |
CHANGELOG.md, CONTRIBUTING.md (root) | Convention files | — |
NNN- numbering: three-digit sequential, incremented independently per directory; description in lowercase English, hyphen-separated.
Monorepo: apply the library/application layout per package, or hoist shared specs/ADRs to the repo root docs/. Infer from the existing structure.
These are defaults, not dogma — if the project already has a coherent convention, preserve it and only fill gaps.
Config File Priority
Write to the first existing file; if none exist, create AGENTS.md:
AGENTS.mdCLAUDE.md.cursor/rules/*.mdcGEMINI.md.github/copilot-instructions.md
Subagent Usage
- Phase 1 Survey —
exploresubagent for large-project doc distribution mapping. Include all scan context in the prompt (subagents have no conversation history). - Phase 4 Reorganize —
implementersubagent for file moves + link updates (deterministic batch ops). Pass the full migration plan in the prompt.
Gotchas
- Root-level convention files (
README,LICENSE,CHANGELOG,CONTRIBUTING,CODE_OF_CONDUCT) must not be moved intodocs/. - Link updates are the most error-prone step — relative links break when files move. Re-check after reorg.
- Multiple AI config files may coexist; write to only one (the highest-priority existing one) to avoid divergence.
- A doc with zero inbound links isn't always orphaned — entry points (README, indexes) are legitimately link-free. Check whether it's referenced from source/config/comments before flagging.
After Phase 5, report the outcome. No further skill is invoked.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/curating-docs/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/0x2e/dev-skills/curating-docs)