curating-docs
Skill1 starsChanged 5 months agoMITView on GitHub
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.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- analyzing-over-engineeringSkill
- brainstormingSkill
- executing-plansSkill
- finishing-workSkill
- planningSkill
- reviewing-codeSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- using-devflowSkill
- verifying-completionSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 10 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
git working tree must be clean before reorg: If dirty, abort and prompt — do NOT auto-stash.
- Distinctive: line 14
No batch auto-rewrite in content remediation: Every content judgment needs per-item user confirmation.
- Distinctive: line 18
Stop if you catch yourself thinking:
- Distinctive: line 25
Run the phases in order. Each phase gates the next.
- Distinctive: line 66
Update cross-references (relative links) between docs.
- Distinctive: line 67
Verify: git status shows only intended changes + link check (no broken links) + no files lost.
- Distinctive: line 74
No batch rewriting. Content semantics cannot be mechanically verified — the user is the safety net here, just as git is the safety net for …
- Distinctive: line 78
Default directory/naming skeleton, selected by inferred project type.
- Distinctive: line 100
Write to the first existing file.
- Distinctive: line 120
After Phase 5, report the outcome.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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.
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
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.

