doc-writer
Skill8 starsChanged 9 months agoMITView on GitHub
Writes technical documentation structured from concept to reference with a concrete example in every section.
- Installs packages
12 other projects use a version of this.
Adopted by
Most recently taken up by
- zeroclaw-labs/zeroclaw-skillstheir own version, first seen Sep 24, 2026
- ayushgoel/skillstheir own version, first seen Aug 23, 2026
- chanjarster/skillstheir own version, first seen Jul 26, 2026
- craig-ai-tooling/claude-skillstheir own version, first seen Jul 10, 2026
- microsoft/aspire.devtheir own version, first seen Jun 1, 2026
- squarerf/claude-skillstheir own version, first seen May 31, 2026
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- microsoft/vscode-docs★ 6.7ksame name
- microsoft/aspire.dev★ 196same name
- claude-world/director-mode-lite★ 80same name
- zeroclaw-labs/zeroclaw-skills★ 65same name
- nimbalyst/skills★ 28same name
- k1lgor/virtual-company★ 4same name
- dqtx760/skills-manage★ 2same name
- grantkee/claude-extensions★ 2same name
- ayushgoel/skills★ 1same name
- craig-ai-tooling/claude-skills★ 1same name
2 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- code-reviewerSkill
- data-analystSkill
- frontend-designSkill
- skill-creatorSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. 0 are common, 17 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
17
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when:
- Distinctive: line 13
Do not use this skill when:
- Distinctive: line 34
If the user's request is ambiguous, ask one question: "Is this for someone who has never used the tool (tutorial) or someone who needs to …
- Distinctive: line 38
Always move in this order.
- Distinctive: line 50
Every section except the title must contain at least one example.
- Distinctive: line 55
Usage: before/after pairs for migration docs.
- Very specific: line 72
Directness: Start sentences with the subject.
- Distinctive: line 74
One idea per sentence: If a sentence contains "and", "also", or "additionally", split it.
- Distinctive: line 80
No jargon without definition: If you use a term the reader might not know, define it the first time it appears.
- Distinctive: line 82
No filler openings: Never start a section with "In this section, we will explore..." — start with the content.
- Very specific: line 86
Use ## for top-level sections, ### for subsections.
- Very specific: line 87
Use code fences with a language identifier on every code block:
python ,bash , `http . - Distinctive: line 88
Use a table when comparing three or more options or properties.
- Distinctive: line 89
Use a numbered list for sequential steps.
- Distinctive: line 91
Keep lines under 100 characters in prose sections.
- Very specific: line 112
Don't use it for distributed rate limiting across multiple servers — throttle-valve stores state in memory.
- Very specific: line 153
Do not write documentation without code examples.
- Distinctive: line 154
Do not use "simply", "just", "easily", or "straightforward".
- Distinctive: line 155
Do not start documentation with the history of the project, who built it, or what motivated it.
- Distinctive: line 156
Do not write exhaustive API reference prose in a tutorial.
- Distinctive: line 157
Do not use passive voice for instructions: "the config file should be created" — write "create the config file".
- Distinctive: line 158
Do not repeat the library name in every sentence.
- Very specific: line 159
Do not document behavior that hasn't been confirmed.
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
When to use this skill
Use this skill when:
- The user asks to write, draft, or improve a README, guide, tutorial, API reference, or any technical documentation.
- The user says "document this", "write docs for", "explain how to use", or "write a guide for".
- The user has a library, API, CLI tool, or system and needs written documentation for it.
Do not use this skill when:
- The user wants inline code comments (JSDoc, docstrings) — that is a different task with different conventions.
- The user wants a changelog, release notes, or commit message.
- The user is asking for non-technical writing (marketing copy, blog posts, emails).
Instructions
Step 1 — Identify the documentation type before writing
Determine which of these types the user is asking for, because each has a different structure:
| Type | Primary reader | Primary question answered |
| README | Developer evaluating the project | "Should I use this, and how do I start?" |
| Tutorial | Developer learning the tool | "How do I accomplish a complete task from scratch?" |
| How-to guide | Developer with a specific goal | "How do I do X?" |
| API reference | Developer integrating the tool | "What does this function/endpoint accept and return?" |
| Concept doc | Developer building a mental model | "How does this system work and why?" |
If the user's request is ambiguous, ask one question: "Is this for someone who has never used the tool (tutorial) or someone who needs to look up a specific thing (reference)?"
Step 2 — Structure documentation from concept to reference
Always move in this order. Skip sections that don't apply, but never reverse the order:
- What it is — one sentence. What problem does this solve? Not what it does technically, but what pain it removes.
- When to use it — two to four bullet points describing the right context. Include at least one "when NOT to use it" bullet.
- Quick start — the minimum code to get something working. No explanation yet, just working code. Target: under 10 lines.
- Core concepts — explain the mental model. Define the 2–4 terms the user must understand to use the tool effectively. One example per term.
- Usage — task-oriented sections, each answering one "how do I..." question with code.
- API reference — only if the user asked for it. Exhaustive, not narrative.
- Troubleshooting — only for tools complex enough to fail in non-obvious ways.
Step 3 — Put a concrete example in every section
Every section except the title must contain at least one example. The rule:
- What it is: one real-world sentence about who uses it and what for
- Quick start: complete, runnable code — not pseudocode, not
// your logic here - Concepts: a short code snippet or diagram showing the concept in action
- Usage: before/after pairs for migration docs; input/output pairs for transformation docs; complete working snippets for how-to docs
Bad example (do not write this):
Authentication
The API uses token-based authentication. Pass your token in the Authorization header.
Good example (write this instead):
Authentication
Every request requires a Bearer token in the
Authorizationheader.GET /api/v1/users Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo0Mn0.abc123Tokens expire after 24 hours. When a request returns
401, fetch a new token withPOST /auth/refresh.
Step 4 — Apply these writing rules throughout
Directness: Start sentences with the subject. Not "It should be noted that the timeout can be configured" — write "Configure the timeout with --timeout <ms>."
One idea per sentence. If a sentence contains "and", "also", or "additionally", split it.
Active voice for actions: "The function returns a Promise" not "A Promise is returned by the function."
Consistent terms: Pick one word for each concept and use it throughout. Do not alternate between "endpoint", "route", and "URL". Pick one.
No jargon without definition: If you use a term the reader might not know, define it the first time it appears. If you find yourself defining more than three terms, move the definitions to a "Concepts" section.
No filler openings: Never start a section with "In this section, we will explore..." — start with the content.
Step 5 — Format for scanability
- Use
##for top-level sections,###for subsections. Never skip a heading level. - Use code fences with a language identifier on every code block:
```python,```bash,```http. - Use a table when comparing three or more options or properties.
- Use a numbered list for sequential steps. Use a bullet list for parallel, unordered items.
- Bold the exact term being defined when introducing it for the first time.
- Keep lines under 100 characters in prose sections.
Examples
Input:
Write docs for a Node.js rate limiting library called
throttle-valve. It limits requests per IP per time window. It's middleware for Express.
Output:
throttle-valve
Limit the rate at which clients can hit your Express routes without writing middleware from scratch.
When to use it
- You need per-IP rate limiting on a public API
- You want to protect a specific route (login, signup) from brute-force attempts
- You need different limits on different routes
Don't use it for distributed rate limiting across multiple servers — throttle-valve stores state in memory. Use Redis-backed middleware for that.
Quick start
npm install throttle-valveimport express from 'express'
import { rateLimit } from 'throttle-valve'
const app = express()
app.use('/api', rateLimit({ windowMs: 60_000, max: 100 }))
app.get('/api/data', (req, res) => res.json({ ok: true }))
app.listen(3000)Clients that exceed 100 requests per minute receive 429 Too Many Requests.
Core concepts
Window: the rolling time period over which requests are counted. Set with windowMs in milliseconds. A 60-second window resets the counter 60 seconds after the first request in that window, not at clock boundaries.
Limit: the maximum number of requests allowed per client per window. Set with max. When exceeded, the middleware responds with 429 and sets Retry-After to the number of seconds until the window resets.
Key: what identifies a "client". Defaults to req.ip. Override with keyGenerator:
rateLimit({
windowMs: 60_000,
max: 10,
keyGenerator: (req) => req.headers['x-api-key'] ?? req.ip
})What to avoid
- Do not write documentation without code examples. Every section must have at least one concrete snippet — not pseudocode, not
<your value here>, not// implementation. - Do not use "simply", "just", "easily", or "straightforward". These words signal that the author found the thing easy, which is not useful information and can make readers feel inadequate.
- Do not start documentation with the history of the project, who built it, or what motivated it. Start with what it does and how to start.
- Do not write exhaustive API reference prose in a tutorial. A tutorial answers "how do I accomplish a task". A reference answers "what does parameter X do". Keep them separate.
- Do not use passive voice for instructions: "the config file should be created" — write "create the config file".
- Do not repeat the library name in every sentence. Name it once in the title, once in the quick start, then use "it" or refer to the relevant function/method directly.
- Do not document behavior that hasn't been confirmed. If you are unsure whether a function accepts
null, write a TODO rather than documenting incorrect behavior.
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.

