docs-writer
Skill10 starsChanged 14 days agoMITView on GitHub
Write developer docs: README content, API references, code comments, changelog entries. Use when "write docs", "document this API", or "explain for contributors". README visuals → enhance-readme. Co-authored specs → docs-coauthor.
31 other projects use a version of this.
Adopted by
Most recently taken up by
- davidgfolch/AI-job-searchtheir own version, first seen Nov 29, 2026
- Manram/esc-skillstheir own version, first seen Nov 29, 2026
- adeonir/agent-skillstheir own version, first seen Nov 24, 2026
- kensaurus/skillsword for word, first seen Nov 17, 2026
- LIXIAO199115/skillrigtheir own version, first seen Nov 15, 2026
- delorenj/skillstheir own version, first seen Nov 7, 2026
Used with
Projects with it also use docs-planner, docs-reviewer and 5 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
strands-agentsSkilldocs-planner
Find the gaps in the Box documentation and produce a prioritized backlog for docs/user/ and docs/design/. Use when planning documentation work, after a feature or a binary ships without a page, for a periodic health check of the docs, or when asked "what docs need writing", "plan the docs work", "prioritize the docs backlog", or "what should we document next".
Also in 3 projects that use this
strands-agentsSkilldocs-reviewer
Review Box drafts in docs/user/ or docs/design/, and wording-only rewrites in docs/dev/. Use after docs-writer, before a docs pull request, or for a requested doc review. Check style and preservation of meaning, then give a Ship it, Tighten, or Rethink verdict. Read-only.
Also in 3 projects that use this
VercelSkilldocs-diagrams
Draw diagrams for the Next.js docs in the style of the ones already published there: the light/dark PNGs an mdx references with `<Image srcLight="/docs/light/<name>.png" srcDark="/docs/dark/<name>.png">`. Use when a guide or API reference needs a new diagram or an existing one needs a change. Hand-written SVG from a primitives library, rendered by headless Chrome at 2x. No AI image generation.
Also in 3 projects that use this
khairoldSkilldocs-audit
Audit project documentation for agent effectiveness. Identifies docs that are stale, contradictory, duplicated, ghost-referenced, or simply unnecessary — because coding agents read code, not inventories. Produces a concrete reduction plan. Use when asked to "audit docs", "clean up documentation", "are these docs useful", or "optimize docs for agents".
Also in 3 projects that use this
SentrySkillsecurity-review
Finds exploitable application security vulnerabilities in code changes. Use for Warden security scans, appsec review, OWASP-style checks, authentication or authorization bugs, injection, XSS, SSRF, path traversal, secrets, unsafe crypto, webhook verification, open redirects, or sensitive data exposure.
Also in 4 projects that use this
GoogleSkilltdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
Also in 4 projects that use this
Other versions31 projects use a version of this.
Word for word · 1
- kensaurus/skills★ 10100% same
Edited · 0
None found.
Wrote their own version · 30
- google-gemini/gemini-cli★ 109ksame name
- maximhq/bifrost★ 9.6ksame name
- strands-agents/sdk-python★ 9.3ksame name
- strands-agents/harness-sdk★ 9.3ksame name
- Devolutions/IronRDP★ 3.4ksame name
- prisma/docs★ 1.1ksame name
- prisma/web★ 1.1ksame name
- strands-agents/box★ 650same name
- event-driven-io/emmett★ 568same name
- Cosmian/kms★ 380same name
20 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 repository166 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/approved-plan-execution.mdcCursor rule
- .cursor/rules/skill-workflows.mdcCursor rule
- .cursor/rules/verification-before-completion.mdcCursor rule
- llms.txtllms.txt
- audit-accessibilitySkill
- audit-agent-speedSkill
- audit-analyticsSkill
- audit-auth-flowsSkill
- audit-backend-architectureSkill
- audit-bundle-sizeSkill
- audit-cicdSkill
- audit-codemod-safetySkill
- audit-code-qualitySkill
- audit-code-reviewSkill
- audit-db-schemaSkill
- audit-doctrineSkill
- audit-env-paritySkill
- audit-fe-apiSkill
- audit-gate-logicSkill
- audit-i18nSkill
- audit-infra-costSkill
- audit-langfuse-llmSkill
- audit-llm-securitySkill
- audit-monetization-iapSkill
- audit-payment-systemSkill
- audit-performanceSkill
- audit-realworldSkill
- audit-registry-listingSkill
- audit-resilienceSkill
- audit-responsiveSkill
- audit-securitySkill
- audit-skill-conflictsSkill
- audit-ui-statesSkill
- audit-uiux-design-systemSkill
- audit-ux-journeysSkill
- audit-uxSkill
- backend-db-performanceSkill
- backend-error-handlingSkill
- backend-observabilitySkill
- backend-patternsSkill
- backend-realtimeSkill
- burndown-fullSkill
- complete-everythingSkill
- data-pipelineSkill
- data-visualizationSkill
- debug-errorSkill
- debug-fe-be-integrationSkill
- debug-sentry-monitorSkill
- deploy-npmSkill
- deploy-verifySkill
- design-apiSkill
- design-canvasSkill
- design-emailSkill
- design-frontendSkill
- design-generative-artSkill
- design-mobile-firstSkill
- design-motionSkill
- design-prdSkill
- design-systemSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 9 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 29 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Create clear, useful documentation for developers.
- Distinctive: line 29
Write in plain language. Follow references/plain-language-ste.md: short active sentences, one instruction per sentence, one meaning per …
- Distinctive: line 46
Show, don't just tell: Every abstract capability gets a concrete, copy-pasteable example.
- Very specific: line 84
Use Glob to find existing README files:
- Distinctive: line 91
Read the actual code being documented to ensure accuracy:
- Distinctive: line 92
Check function signatures match documentation
- Distinctive: line 93
Verify example code actually works
- Distinctive: line 97
Before writing docs, state:
- Distinctive: line 110
Add the building-blocks glossary (next section) when the project is novel or uses 3+ domain terms.
- Distinctive: line 134
Put it *above* the counts, options, or API — it's the decoder ring for everything below it.
- Very specific: line 135
Drop it when the domain is already familiar: Don't gloss useState for a React audience.
“Common” is measured: kept by at least 6 in 10 of the 29 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
Documentation Writer Skill
Degree of freedom: MIXED. Voice and structure [HIGH freedom];
pre-documentation checks and the verification statement
[LOW freedom — run exactly].
Create clear, useful documentation for developers.
This skill vs neighbors
| Skill | Owns |
| docs-writer (this) | Developer docs: README content, API references, code comments, changelog entries |
enhance-readme | README visuals: theme-aware hero, feature tour, screenshots, accurate badges |
docs-coauthor | Co-authored specs, PRDs, RFCs, proposals in three stages |
Core principle — write for the reader's mental model first
Write in plain language. Follow references/plain-language-ste.md: short active sentences, one instruction per sentence, one meaning per word, and no AI tells. It also has a Vale prose-lint recipe to keep the docs that way.
Documentation rarely fails because it's incomplete. It fails because the reader can't build a mental model fast enough to care. So before any reference detail, answer the questions the reader is silently asking — in their words, in this order:
| The reader is silently asking… | Answer it with… |
| What is this? | One plain-English sentence — what it does, not how it's built |
| Why should I care? | The problem it solves / the pain it removes |
| Who is it for? | The audience + stack, so a wrong-fit reader can leave early |
| How do I start? | The shortest path to a first win: install → one command → result |
| When / where do I use it? | The situations it fits — and its boundaries (what it's not) |
Rules that follow from this:
- Lead with the goal, not the implementation. "Turn a CSV into a chart" beats "A streaming transform pipeline built on X."
- Progressive disclosure. Newcomer on-ramp first (plain language + one example), reference depth below. A pro scrolls past the primer in two seconds; a newcomer can't skip to it if it was never written.
- Beat the curse of knowledge. You know the jargon; the reader may not. Define a term on first use, or add a plain-language glossary when the project leans on 3+ domain terms (pattern below).
- Show, don't just tell. Every abstract capability gets a concrete, copy-pasteable example.
- Write the sentence you'd say out loud to a smart colleague who's never seen the project. Mannered prose is the anti-pattern — sentences that perform writing instead of saying something: throat-clearing openers, stacked hedges, "it's worth noting", triplets for rhythm, a closing line that restates the paragraph. One plain sentence per idea.
Everything else in this skill (templates, API docs, comments) serves this principle — structure and polish never substitute for orienting the reader first.
How to reason
- Observe — existing README/docs, the code being documented, the audience
- Interpret — which silent reader questions (what / why / who / how / when) are unanswered
- Classify — README / API reference / comments / architecture — match the repo's pattern
- Verify — signatures and examples match the code you read
Worked example
Observe: "document createUser";
src/users.tsiscreateUser({ email, role }) → Promise<User>; README linksdocs/api.mdwith signature tables. Interpret: the reader needs the signature, errors, and a copy-paste call — not another project README. Classify: API reference in the existing table pattern. Write only after: "Pre-documentation check: existing docs read: README.md, docs/api.md; pattern: signature tables; code verified: src/users.ts"
Self-critique before reporting
- Pre-doc check stated — existing docs and code listed, not assumed
- First screen — what / why / who in plain language
- Examples run — copy-pasteable; signatures match the file you read
- Right owner — visual README makeover →
enhance-readme; docs/code drift plan →plan-docs-sync; long-form collab →docs-coauthor
Pre-documentation checks [LOW freedom — run exactly]
Before writing any documentation:
1. Read Existing Documentation
README.md (project root)
docs/ (existing docs)
src/[domain]/@_[domain]-README.md (feature-specific READMEs)2. Check Documentation Patterns
Use Glob to find existing README files:
Glob: "**/*README.md" to find all READMEs
Glob: "**/*.md" in docs/ to find documentation patterns3. Verify Code Matches Documentation
Read the actual code being documented to ensure accuracy:
- Check function signatures match documentation
- Verify example code actually works
- Confirm database schema matches any data documentation
4. Verification statement — so the docs rest on files you read, not assumptions
Before writing docs, state:
"Pre-documentation check:
- Existing docs read: [list]
- Documentation pattern identified: [pattern from existing READMEs]
- Code verified: [files read to ensure accuracy]"README Template [HIGH freedom]
- Open with one plain-English sentence (what it does, who it is for), then Why it exists and Who it's for lines
- Add the building-blocks glossary (next section) when the project is novel or uses 3+ domain terms; omit it for a common domain
- Then: Features → Quick Start (install, one command) → Installation (prerequisites, setup) → Usage (basic example, link to advanced) → API Reference → Contributing → License
Full template: references/templates.md §README Template.
Newcomer on-ramp (novel or jargon-heavy projects) [HIGH freedom]
When a project introduces its own concepts, the reader can't parse the feature list until they know the vocabulary. Add a compact building-blocks glossary high in the README — plain meaning + how the reader actually uses each thing. This is the single highest-leverage block for making docs land with non-experts:
**The building blocks** — what the terms below actually mean:
| Building block | In plain English | You use it by… |
|:--|:--|:--|
| **Widget** | A self-contained unit that does one job | dropping it into a page |
| **Pipeline** | The path your data takes from input to output | pointing it at a source |
| **Adapter** | A connector to an outside service | adding its key to config |Guidelines:
- Three columns beat prose. Term → plain meaning → how you trigger/use it. Use concrete verbs ("drop in", "point at", "add a key"), not dictionary definitions.
- Put it above the counts, options, or API — it's the decoder ring for everything below it.
- Drop it when the domain is already familiar. Don't gloss
useStatefor a React audience; do gloss a term you invented.
Documentation Types [HIGH freedom]
1. API Documentation
Per function: one-line purpose → ### Signature → ### Parameters table (Name / Type / Required / Description) → ### Returns → ### Example → ### Errors table (Error / Cause).
Template: references/templates.md §API Documentation.
2. Code Comments
JSDoc on public functions: purpose, @param with units or format (e.g. "decimal, 0.1 for 10%"), @returns with unit, @example. Inline comments say why a step exists, not what the line does.
Example: references/templates.md §Code Comments.
3. Architecture Documentation
# Architecture Overview → ## System Components (ASCII or Mermaid diagram) → ## Data Flow (numbered steps) → ## Key Decisions ("Why X?" with 2–3 reasons each).
Template: references/templates.md §Architecture Documentation.
Writing Guidelines [HIGH freedom]
Be Concise
# ❌ Too verbose
This function is responsible for taking an array of user objects
and filtering them based on the active status property, returning
only those users who have an active status of true.
# ✅ Concise
Filter users by active status.Use Examples
# ❌ Abstract description
The function accepts configuration options.
# ✅ With example
Configure the logger:
\`\`\`typescript
const logger = createLogger({
level: 'info',
format: 'json',
output: 'stdout'
});
\`\`\`Structure Information
Format by content shape: a list, table, or numbered steps when the content is multifaceted (options, parameters, an ordered setup); prose when it is one idea. Headings only where a reader would scan for them.
Wall-of-text vs numbered-steps example: references/templates.md §Structured setup steps.
Kill the Jargon (beat the curse of knowledge)
# ❌ Assumes the reader shares your context
Configure the RLS policy on the tenant-scoped RPC before hydrating the store.
# ✅ Plain first, precise second
Set who's allowed to read each row (a "policy") before the app loads its data.
(Supabase calls row rules "RLS"; loading data into the app is "hydrating the store.")Lead with the plain-language version; put the precise term in parentheses or right after it. Never make a newcomer look up three words just to parse one sentence.
Documentation Checklist [LOW freedom — do not skip]
README
- Opens by answering what / why / who in the first screen (plain language)
- Clear project description
- Quick start (< 5 steps)
- Prerequisites listed
- Installation instructions
- Basic usage example
- Jargon defined on first use, or a glossary added for 3+ domain terms
- Link to detailed docs
API Docs
- All public functions documented
- Parameters and return types
- Usage examples
- Error cases documented
Code Comments
- Complex logic explained
- "Why" not just "what"
- JSDoc for public APIs
- No obvious comments
Architecture
- System overview diagram
- Component relationships
- Key decisions documented
- Data flow explained
Helpful Diagrams [HIGH freedom]
Mermaid Flowchart
\`\`\`mermaid
flowchart LR
A[User] --> B[Frontend]
B --> C[API]
C --> D[Database]
C --> E[Cache]
\`\`\`Sequence Diagram
\`\`\`mermaid
sequenceDiagram
User->>+API: POST /login
API->>+DB: Verify credentials
DB-->>-API: User data
API-->>-User: JWT token
\`\`\`Keep Docs Updated [HIGH freedom]
# In PR template:
## Documentation
- [ ] README updated (if needed)
- [ ] API docs updated (if endpoints changed)
- [ ] Code comments added (for complex logic)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.

