- How you use it
- You ask for it
- What it can do
- writes files
- What's inside
The option
| Option | ASkill · v1.0.0documentation-writer skill (GitHub awesome-copilot) |
|---|---|
| How you use it | You ask for it |
| What it can do | writes files |
| What's inside |
What this thread does
The problem
On a large app, even with a good CLAUDE.md, the agent greps the code, guesses how features connect and writes code that compiles but misses business rules (an endpoint that deletes without checking dependencies, a form that does not match the API's validation).
What the post says
A r/ClaudeCode post by u/TheDecipherist (28 February 2026) from a platform with about 200 API routes and 56 dashboard pages. The author's claims, not independently checked:
- A
documentation/folder with 52 markdown files, one per feature, with the same template: data model (every field, type, index), API endpoints (shapes, validation, error cases), dashboard elements and the API each calls, business rules (scoping, cascading deletes, state changes, limits), edge cases. The quality bar: a fresh agent reads only that doc and implements correctly. - CLAUDE.md holds a lookup table ("working on servers? read documentation/04-servers.md first").
- Workflow: write or update the doc first, implement to match, write tests that verify the doc, update the doc if the code forced a change, and merge code, docs and tests together.
- Audit first, then document. The author had Claude walk every page and endpoint, tag findings PASS, WARN, FAIL or TODO, and says about 15% of what looked working was broken or half-built.
- Verify the generated docs. A first pass of 52 docs written by parallel agents looked comprehensive, but a one-doc-at-a-time check against the real interfaces and routes found discrepancies (one doc said a project had no update or delete endpoints while the code had full CRUD). The check marks each doc PHANTOM (doc claims it, code does not), NOT IMPLEMENTED or DIVERGED FROM PLAN, one branch and one commit per doc.
What commenters added
- The top comment: give every doc YAML frontmatter with a table of contents, cross-dependencies and a version, so the agent reads the frontmatter first and jumps to the right content. The author agreed.
- Others: this is classic software process; make it a hook (a pre-commit check that fails if a source file changed without its doc), which the author called the next step beyond a CLAUDE.md rule.
- A commenter who audited their own setup said the value is in non-obvious features (external API quirks, multi-step flows); simple CRUD is self-documenting.
- A sceptic said an app that needs a manual may just be too complex or badly organised, and docs need upkeep while context resets. The author replied that behaviour spread across files cannot be seen from code alone.
How to ask your agent
For theprojectsfeature, writedocumentation/05-projects.mdfrom the code only: data model, every endpoint with auth and validation, business rules, edge cases, and the source files it came from. Add YAML frontmatter with title, source files, related docs and last-verified date. Then re-read each claim against the code and mark anything the code does not support as PHANTOM.
Mistakes to check
- Trusting generated docs without a verify pass; the author's own first pass had errors.
- One huge doc: keep one per feature so the agent loads only what it needs.
- No update rule: put "docs ship in the same commit" in CLAUDE.md, and enforce it with a hook if it matters.
- Documenting everything, including trivial CRUD.
Limits
Not run by me. The numbers are the author's. The post promotes the author's own starter kit.
Started from a post by @TheDecipherist, packaged by the editor. Original post
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.