docs
Skill3.2k starsChanged 2 months agoMITView on GitHub
Use when writing, editing, or organizing documentation, when planning what docs a feature needs, and whenever planning or implementing a new feature or change in a repo (docs ship with the code). Also use when tempted to write docs without showing the discovered readers to the user, without asking for tone, or without loading simple-english and i-have-adhd. Triggers on "write docs for X", "document this feature", "add a guide", "update the docs", "reorganize the docs", "plan feature X", "implement X", or /docs.
83 other projects use a version of this, 1 of them edited.
Trending
More talk lately.about the whole repository
Most recently taken up by
- muon-m2/magento2-toolstheir own version, first seen Oct 4, 2026
- grimoire-rs/grimoiretheir own version, first seen Oct 4, 2026
- sgbaird/cringe-filtertheir own version, first seen Oct 4, 2026
- delorenj/skillstheir own version, first seen Oct 2, 2026
- iamwavecut/Manifoldtheir own version, first seen Oct 2, 2026
- gal-a/qiklytheir own version, first seen Oct 1, 2026
Who's talking about TanStack/ai
- nuxt/ui“Integrate chat components with Tanstack AI”GitHub · Jan 27, 2026 · 2 reactions
- getsentry/sentry-javascript“Add instrumentation for `@tanstack/ai`”GitHub · Jan 5, 2026 · 2 reactions
- kubb-labs/kubb“Use Knip for unused code detection”GitHub · Dec 18, 2025 · 2 reactions
- @jp-knj.bsky.social“github.com/TanStack/ai I’m curious”Bluesky · Dec 5, 2025 · 2 likes
- TanStack/tanstack.com“fix(builder): unlock BYOK passkey on the click, not mid-send”GitHub · Sep 5, 2026 · 1 reactions
The biggest 5 of 30 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 30
Talked about on GitHub and Bluesky (30 times).
On GitHub · 28
- Jan 27, 2026Integrate chat components with Tanstack AI — nuxt/ui2 reactions · 7 comments
- Jan 5, 2026Add instrumentation for `@tanstack/ai` — getsentry/sentry-javascript2 reactions · 1 comment
- Dec 18, 2025Use Knip for unused code detection — kubb-labs/kubb2 reactions · 2 comments
- Sep 5, 2026fix(builder): unlock BYOK passkey on the click, not mid-send — TanStack/tanstack.com1 reaction · 3 comments
- Jun 30, 2026build(deps): bump the bun-dependencies group with 9 updates — endalk200/skopeo1 reaction
23 more on GitHub
- Oct 5, 2026fix(ai-search): Haiku keyword extraction has fallen back on every search since 2026-06-12 — viclafouch/petit-meme0 reactions
- Oct 5, 2026chore(deps): bump the framework-deps group with 13 updates — clanker25/ui0 reactions
- Oct 5, 2026build(deps): Bump the production-minor-patch group across 1 directory with 22 updates — kvpendergast/jackline0 reactions
- Oct 3, 2026[Add] TanStack AI (TanStack/ai) — PyTorchKR/landscape0 reactions
- Oct 1, 2026chore(deps-dev): bump the development-dependencies group across 1 directory with 19 updates — cbangera2/BudgetLens0 reactions · 1 comment
- Oct 1, 2026Bump @tanstack/ai-client from 0.35.1 to 0.36.0 — unacms/UNA0 reactions · 1 comment
- Sep 30, 2026chore(deps): bump the framework-deps group with 13 updates — zhcndoc/shadcn0 reactions
- Sep 28, 2026chore(deps): bump the runtime-dependencies group across 1 directory with 4 updates — changbaebang/career-radar0 reactions
- Sep 27, 2026chore(deps): bump @tanstack/ai-code-mode from 0.4.10 to 0.4.13 — FRFlo/dumbdiscordbot0 reactions
- Sep 27, 2026chore(deps): bump @tanstack/ai from 0.55.0 to 0.58.0 — FRFlo/dumbdiscordbot0 reactions
- Sep 21, 2026fix(deps): bump @tanstack/ai-vue from 0.19.4 to 0.24.0 — vinayakkulkarni/tileserver-rs0 reactions · 2 comments
- Sep 17, 2026chore(deps): bump the framework-deps group with 13 updates — morganfeeney/shadcn-ui-fork0 reactions · 1 comment
- Sep 9, 2026chore(web)(deps): bump the web-dependencies group across 1 directory with 16 updates — najmuzzaman-mohammad/gawkbot0 reactions · 1 comment
- Sep 8, 2026chore(deps): bump @tanstack/ai-react from 0.16.4 to 0.24.0 — moodyawhvh/ui-chinese0 reactions
- Sep 1, 2026Bump @tanstack/ai from 0.39.1 to 0.52.0 — MrLightful/scopra0 reactions · 1 comment
- Aug 31, 2026chore(deps): bump the tanstack-ai group across 1 directory with 4 updates — linuxing3/openstory0 reactions · 1 comment
- Aug 24, 2026build(deps): bump @tanstack/ai-react from 0.19.2 to 0.21.1 — sushindustries/sushindustries0 reactions · 1 comment
- Aug 15, 2026build(deps-dev): bump the npm-dependencies group across 1 directory with 7 updates — sbonnick/openai-oauth-ai-provider0 reactions
- Aug 10, 2026chore(deps): bump the tanstack group across 1 directory with 17 updates — RLukas2/portfolio0 reactions · 1 comment
- Aug 4, 2026chore(deps): bump @tanstack/ai-react from 0.16.4 to 0.18.1 — raynilkumar-bs/Agent-V20 reactions · 2 comments
- Jul 8, 2026build(deps): Bump the tanstack group with 4 updates — fly-apps/tanstack-sprite-agent0 reactions
- Jun 12, 2026Bump the all-deps group across 1 directory with 27 updates — pantha-dapp/CORE0 reactions
- May 22, 2026Bump the all-deps group across 1 directory with 5 updates — pantha-dapp/CORE0 reactions
On Bluesky · 2
- Dec 5, 2025github.com/TanStack/ai I’m curious — @jp-knj.bsky.social2 likes and reposts
- Mar 19, 2026https://github.com/TanStack/ai — @tom-doerr.bsky.social1 likes and repost
Used with
Projects with it also use perf, incident and 10 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.
MicrosoftSkillperf
Speed and memory performance rules for Rust crates, the Node addon, webui-framework, and webui-router.
Also in 6 projects that use this
pvnarpSkillincident
Guides incident response and post-mortem analysis. Covers triage, mitigation, root cause analysis, and prevention. Use when responding to active incidents, writing post-mortems, or improving incident processes.
Also in 4 projects that use this
vbrevikSkillwork
Use when the user says 'plan', 'todo', 'copy plan', 'append plan', 'resume plan', 'priorities', or 'what's next'.
Also in 5 projects that use this
iankikuSkillgate
(forwward) Runs lint, typecheck, build, and test in a self-healing loop that reads errors, fixes them, and retries up to 4 times. Triggers on verify, check, make sure it works, pre-commit validation, pre-deploy checks, or any quality gate.
Also in 3 projects that use this
nicolasestremSkillgit
Git operations with intelligent commit messages and branch management
Also in 5 projects that use this
Google CloudSkillfix
Plan a remediation strategy after a test failure.
Also in 5 projects that use this
Other versions83 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- AlemTuzlak/skills★ 4288% same
Wrote their own version · 82
- samuelgursky/davinci-resolve-mcp★ 3.3ksame name
- Ikalus1988/MisakaNet★ 521same name
- haoruilee/awesome-agent-native-services★ 476same name
- automagik-dev/genie★ 345same name
- Mats2208/MCP-Packet-Tracer★ 234same name
- guardana/guardana★ 145same name
- The01Geek/prflow★ 99same name
- Rune-kit/rune★ 88same name
- Azure/azure-kusto-spark★ 82same name
- uczltw6/trace-file-lineage★ 67same name
72 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 repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/instructions/copilot-instructions.mdCopilot instructions
- add-example-tutorialSkill
- bugfix-prSkill
- gap-analysisSkill
- i-have-adhdSkill
- new-react-playgroundSkill
- ponytailSkill
- pr-descriptionSkill
- pr-sweepSkill
- simple-englishSkill
- triage-githubSkill
- add-example-tutorialSkill
- bugfix-prSkill
- docsSkill
- gap-analysisSkill
- i-have-adhdSkill
- new-react-playgroundSkill
- ponytailSkill
- pr-descriptionSkill
- pr-sweepSkill
- simple-englishSkill
- triage-githubSkill
- tanstack-ai-migrationSkill
- tanstack-aiSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
31 rules. 0 are common, 23 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 68 edited versions we read keep these.
23
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Write docs a real person wants to read.
- Distinctive: line 47
If either file is missing, stop and tell the user.
- Very specific: line 55
When i-have-adhd is loaded from this skill, apply it to the pages only.
- Distinctive: line 59
Before writing anything, find where docs live.
- Very specific: line 61
Look for a docs folder. Check docs/ first, then documentation/, content/docs/, site/, website/docs/.
- Very specific: line 95
Do not use this for env files, sandbox setup: arrays, or a fence that mixes install with other commands.
- Distinctive: line 97
If there is no page like the one you are about to write, read the closest one you can find and match it.
- Distinctive: line 111
Do this before you write a word of content.
- Distinctive: line 114
Write one user story per reader: "As a X, I want to Y, so I can Z."
- Distinctive: line 116
Check every reader has a path.
- Distinctive: line 125
After step 4, send a message that contains only:
- Distinctive: line 130
If the harness has an AskQuestion (or similar) tool, use it for that question.
- Distinctive: line 136
Skip the wait: continue in this same turn: Use this path only when one of these is true:
- Distinctive: line 157
Do not force thousands of words into one page.
- Distinctive: line 159
When a topic has several angles, give each its own short page and link them.
- Distinctive: line 190
If the harness has an AskQuestion (or similar) tool, use it.
- Very specific: line 214
Do not write page content until the persona gate has passed, the tone gate has passed, and simple-english plus i-have-adhd are loaded.
- Distinctive: line 220
Keep it digestible. No walls of text, no huge paragraphs.
- Distinctive: line 222
Keep markdown light. Lists are fine.
- Distinctive: line 223
Prefer plain ASCII and normal keyboard characters over fancy glyphs.
- Distinctive: line 252
Do not explain in four paragraphs what one sentence and a code block can show.
- Distinctive: line 303
A table: when every item has the same two or three attributes to compare (name, meaning, when to use).
- Distinctive: line 304
A paragraph: only for a single idea that genuinely flows as prose.
- Very specific: line 306
Keep bullets short and parallel: the same grammatical shape, the item in code or bold at the front, the explanation after it.
- Very specific: line 308
If a list grows past five items, split it.
- Very specific: line 325
Never justify the current API by comparing it to a version that did not ship.
- Distinctive: line 376
Never use these. Ever. This list has no exceptions: not "the neighboring pages use them", not "the repo's house style uses them", not "it …
- Distinctive: line 383
If you catch yourself reaching for one of these, stop and rewrite the sentence in plain words.
- Very specific: line 385
Before you call a page done, search your own added text for —, –, ×, and ·.
- Distinctive: line 391
Put new pages where they fit the reader's path, grouped by what the reader is doing ("Building with React"), not by code layer ("Frontend …
- Distinctive: line 394
Do not over-link. One well-placed "need X?
“Common” is measured: kept by at least 6 in 10 of the 68 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
docs
Write docs a real person wants to read. Short, plain, built around someone trying to do a real thing.
"Document feature X" is not the job. "Help someone do Y with X" is the job.
Work in two phases. First plan the story: who reads this, what they want, and how many pages it should be. Then write.
The plan is not private. The user must see the readers and must choose the tone before any page is written.
Find docs
→ read neighbors
→ Phase 1: readers + pages
→ PERSONA GATE (show the list, then stop)
→ TONE GATE (ask, then stop) [when writing pages]
→ load simple-english + i-have-adhd [when writing pages]
→ Phase 2: writeA doc-impact list in a feature plan still runs the persona gate. It does not run the tone gate or load the writing skills until pages are actually written.
When to run
Docs ship with the code. Run this skill at three moments, not only when asked.
- Someone asks for docs. Write them.
- Planning a feature or change in a repo. Before the plan is done, list which docs are new and which need updating. This doc-impact list is part of the plan, the same as the code changes. Name the reader for each page.
- Finishing an implementation. Write or update those docs before you call the work done. A change to how something behaves that ships no doc change is not finished.
Required skills for the final pages
simple-english and i-have-adhd are prerequisites. They apply to the documentation pages, not to this planning chat.
Load both immediately before writing page content. Use the Skill tool if this harness has one. If it does not, Read:
.claude/skills/simple-english/SKILL.md.claude/skills/i-have-adhd/SKILL.md
Copies also live at .agents/skills/ (Codex) and .grok/skills/ (Grok). Keep those three files identical.
If either file is missing, stop and tell the user. Do not write the pages without them.
How they compose:
- This skill owns who the page is for, the page split, problem-then-fix, show-don't-tell, no history leak, forbidden glyphs, and neighbor structure.
simple-englishowns the sentences. Use pragmatic mode. Run its self-check before you call a page done.i-have-adhdowns the shape of the page: next action first, numbered steps, lists capped at 5 (split must vs later, or split the page), no preamble, a visible win at the end.
When i-have-adhd is loaded from this skill, apply it to the pages only. Do not switch the rest of the session into ADHD mode. The persistence section of i-have-adhd does not apply here.
Find the docs first
Before writing anything, find where docs live.
- Look for a docs folder. Check
docs/first, thendocumentation/,content/docs/,site/,website/docs/. - Found nothing? Ask the user where docs should go. Do not guess and do not create a folder on a hunch.
- Open 2 or 3 existing pages near where the new content belongs. Read them for copy, structure, frontmatter fields, and components. Note the apparent tone as a candidate for the tone gate. Do not adopt it yet.
- Note which components the site already uses (steps, tabs, callouts, cards, accordions, code groups, and so on). Different sites have different ones.
- Reuse those components to tell the story. If the site has a steps component, use it for walkthroughs. If it has tabs, use them for framework variations. If the site has none, use plain markdown. Never invent a component the site does not have.
Package manager tabs
Install commands use the site's package-manager tabs. Do not stack npm / pnpm / yarn in one fence.
Core chat install (every framework):
<!-- ::start:tabs variant="package-manager" mode="install" -->
react: @tanstack/ai @tanstack/ai-react @tanstack/ai-openai
vue: @tanstack/ai @tanstack/ai-vue @tanstack/ai-openai
solid: @tanstack/ai @tanstack/ai-solid @tanstack/ai-openai
svelte: @tanstack/ai @tanstack/ai-svelte @tanstack/ai-openai
preact: @tanstack/ai @tanstack/ai-preact @tanstack/ai-openai
angular: @tanstack/ai @tanstack/ai-angular @tanstack/ai-openai
octane: @tanstack/ai @tanstack/ai-octane @tanstack/ai-openai octane
vanilla: @tanstack/ai @tanstack/ai-client @tanstack/ai-openai
<!-- ::end:tabs -->Rules:
- A page that is already one framework lists only that framework's line.
- A package that does not change by framework repeats the same packages on every framework line (
reactthroughvanillaandoctane). - Octane's UI package is
@tanstack/ai-octaneplus theoctanecompiler package. mode="install"is the default add.mode="dev-install"is-D.mode="local-install"isnpx/pnpx/yarn dlx/bunx.mode="custom"is any other command shape (install -g ...).- Repeat a framework line to emit more than one command.
- Do not use this for env files, sandbox
setup:arrays, or a fence that mixes install with other commands. Split the install out, then leave the rest as a fence.
If there is no page like the one you are about to write, read the closest one you can find and match it.
What "match the neighbors" covers, and what it does not
Matching neighbors is about copy, structure, frontmatter, and components: whether headings are sentence case, how much setup a section gets, which components carry the walkthrough, how code samples are introduced, what the frontmatter fields are.
It is not a substitute for the tone gate. Neighbors can suggest a default. They cannot answer for the user.
It is not permission to copy a neighbor's bad habits. Everything in Forbidden and every rule in this skill still applies to the content you write, no matter what the surrounding pages do. An existing page full of em dashes does not license one more.
So: never reason "the other pages do it, so I will too" about a rule this skill states. If existing pages break a rule and you think the whole set should be brought in line, that is a separate cleanup to raise with the user, not something to settle by quietly matching the violation.
Phase 1: plan the story
Do this before you write a word of content.
- List who reads this and what each one wants. A person building on a React SPA, a person on a server-rendered app, someone who just wants a quick demo, someone extending the internals. Do not stop at the first reader.
- Write one user story per reader: "As a X, I want to Y, so I can Z."
- Turn stories into pages. One journey is one page. Different journeys are different pages. A feature with three real journeys is three pages plus maybe a short overview, not one giant page.
- Check every reader has a path. A reader with no page is a hole in the plan. Add a page or a route for them.
The page split comes out of this step. Do not skip it.
Gate: show the personas
<HARD-GATE>
The user must see the list. Listing readers in a thought, a todo, or a buried plan is not this gate.After step 4, send a message that contains only:
- Each reader, one user story, and the page you will write for them.
- One question: confirm, drop a reader, or add one.
If the harness has an AskQuestion (or similar) tool, use it for that question. If it does not, use a numbered list.
Then pick one path:
Default: stop. This message is the entire turn. End the turn. Do not write files. Do not start Phase 2. Do not say you will proceed unless they object.
Skip the wait: continue in this same turn. Use this path only when one of these is true:
- This conversation already has the user's confirmation of this persona list.
- The user said "use sane defaults", "just write it", or "don't ask questions". Still SHOW the list in this turn, then continue.
- The change is a tiny copy edit: typo, broken link, code-fence language, or a factual fix. No new page, no new section, no rewrite of a journey.
On this path, do not end the turn. After you show the list (or after a tiny copy edit, with no list), continue to the next step.
These are not skips:
- "The readers are obvious."
- "The user asked for docs, so they do not want a question."
- "I already named them in the plan."
- "There is only one reader."
- "This is part of implementing a feature, keep going."
Writing docs is why this gate exists. It is not a reason to skip it.
</HARD-GATE>
Less is more: split, do not cram
Do not force thousands of words into one page. Long pages hide the answer.
When a topic has several angles, give each its own short page and link them. A reader lands on the overview, then clicks into the exact thing they need.
Example. A feature for tool interrupts:
Bad: one page
interrupts.md (overview + simple case + many interrupts + custom, all crammed in)
Good: a small set of linked pages
interrupts/index.md what it is, when to use it, links out
interrupts/basic.md one interrupt, start to finish
interrupts/multiple.md several interrupts in a flow
interrupts/custom.md build your ownEach page is short and does one thing. The overview stitches them into a story.
Gate: ask for tone
This gate sits between Phase 1 and Phase 2. Run it before you write any page. Do not nest it inside Phase 2.
<HARD-GATE>
This gate runs before any page content is written. It does not run for a doc-impact list that is only a plan.Neighbors can suggest a default. They cannot answer for the user.
Send a message that contains only:
- The tone you inferred from neighboring pages, in one line (how formal, how much setup, second person or not).
- One question with options: use that tone, more casual, more formal, or the user names another.
If the harness has an AskQuestion (or similar) tool, use it. If it does not, use a numbered list.
Then pick one path:
Default: stop. This message is the entire turn. End the turn. Do not write page content.
Skip the wait: continue in this same turn. Use this path only when one of these is true:
- This conversation already has the user's tone choice, including an explicit "match the existing pages".
- The user said "use sane defaults", "just write it", or "don't ask questions". Still STATE the inferred tone in one line, then continue.
- Tiny copy edit, same carve-out as the persona gate.
On this path, do not end the turn. After you state the tone (or after a tiny copy edit, with no question), continue to Phase 2.
These are not skips:
- "I can tell from the neighbors."
- "The site already has a voice."
- "Tone does not matter for a reference page."
- "I'll match neighbors and mention it later."
</HARD-GATE>
Phase 2: write like a human
Do not write page content until the persona gate has passed, the tone gate has passed, and simple-english plus i-have-adhd are loaded.
The tone gate is the heading above this one. Run that gate first. Then load the two skills. Then write.
Legibility is the goal, above everything else.
- Keep it digestible. No walls of text, no huge paragraphs. Break ideas into small pieces. Give the smallest amount of info that does the job.
- Sentences follow
simple-english(pragmatic mode). Do not inline a weaker substitute. - Keep markdown light. Lists are fine. Bold headings on every line are not. Let the words carry the page.
- Prefer plain ASCII and normal keyboard characters over fancy glyphs. Write the way a person types.
- Second person, action first. Start with what the reader has now and what they will have at the end. No "In this guide we will explore..." openings. Just start.
- Shape the page with
i-have-adhd: the first line is something the reader can do, multi-step work is numbered, a list longer than 5 is split, the page ends on a visible win.
Lead with the problem, then solve it
Every page opens with the problem the reader came for, in their own words, before any API. Name the situation they are stuck in. Then say in a sentence or two how the feature solves it. Only after that do you go into the technical parts and the code.
A reader who sees the problem first knows in seconds whether they are on the right page. A reader who hits an API signature first has to reverse-engineer what it is even for.
The first line of the how is the next action (from i-have-adhd). The problem still comes first so they know they are on the right page.
Bad:
Call useInterrupts() and pass a resolver. The resolver runs once per
pending item inside a transaction...
Good:
Some tool calls shouldn't run without a human saying yes: moving money,
deleting data. An interrupt pauses the run for that decision, then picks up
where it left off. Here is how to gate a tool behind an approval:
[code]The order for a guide is problem, one-line fix, then the how (steps, snippets, API). Keep the problem to a couple of sentences, not a background essay. The code shows how it is solved, so do not narrate the solution in prose first.
Show, do not tell
Do not explain in four paragraphs what one sentence and a code block can show. Readers grasp a diff or a snippet faster than prose.
Bad:
Three paragraphs describing how the config object accepts a
middleware array, what each slot does, and how ordering works.
Good:
Add your middleware to the `middleware` array. Order runs top to bottom:
const app = createApp({
middleware: [auth, logging],
})One good runnable example beats a page of description. Every code sample must run when copied, not need imagination to fill gaps.
List anything that is a list
The moment a sentence covers more than one item, option, store, flag, or step, it becomes a list. Do not chain them into a paragraph with commas and semicolons. A reader scanning a bulleted list finds their item in a second. In a paragraph they have to read the whole thing to learn it does not apply to them.
The tell is a sentence that names two or more things and says something about each. Cut it into one bullet per thing, one or two sentences each.
Bad:
Each store is independent. Provide only the ones you need. For chat:
`messages` for the transcript, `runs` for run lifecycle, `interrupts` for
durable approvals (needs `runs`), `metadata` for namespaced key/value state.
For generation: `generationRuns` for the run lifecycle, plus `artifacts` and
`blobs` to keep generated bytes.
Good:
Each store is independent, so provide only the ones you need.
For chat:
- `messages`: the transcript.
- `runs`: run lifecycle.
- `interrupts`: durable approvals. Needs `runs`.
- `metadata`: namespaced key/value state.
For generation:
- `generationRuns`: run lifecycle for a generation.
- `artifacts` + `blobs`: keep the generated bytes.Which form to reach for:
- Bullets for a set where order does not matter: options, stores, fields, reasons, gotchas.
- Numbered steps for a sequence the reader performs in order.
- A table when every item has the same two or three attributes to compare (name, meaning, when to use).
- A paragraph only for a single idea that genuinely flows as prose. One thought, two or three sentences, no embedded set.
Keep bullets short and parallel: the same grammatical shape, the item in code or bold at the front, the explanation after it. A bullet that grows past two sentences wants to be its own subsection.
If a list grows past five items, split it. Put "do now" first. Put the rest on a later page, or under "later". That is the i-have-adhd cap, not a style preference.
Page shape for a guide
Problem, fix, steps, done.
- Open with the problem the reader has, in their words, and what they will have at the end.
- Say in a sentence how the feature solves it.
- Walk through steps they can follow and test as they go, with the code doing the explaining.
- End when they reach the goal. Show what now works. Do not close with a vague "next steps" dump.
Reference pages (props, types, signatures) stay scannable and link back to the guide that shows them in use.
Write for the reader, not the history
Docs describe what exists now. The reader never saw the old design, the earlier name, the draft PR, or the API you replaced along the way. Do not make them read about it.
Never justify the current API by comparing it to a version that did not ship. A line like "instead of useAssistant, this uses usePlugin, which makes more sense because..." is noise to someone who never knew useAssistant existed. Cut it and just describe usePlugin.
Bad:
We renamed useAssistant to usePlugin and moved the tools onto it,
so instead of calling assistant.addTool you now use plugin.tools.
Good:
Register tools on the plugin with plugin.tools:
const plugin = usePlugin({ tools: [search] })Ban this framing from the output: "instead of X", "we renamed", "previously called", "this replaces the old", "unlike the earlier", and any transitional name that never reached a release.
The one exception is a real migration. If users had X in a shipped, public release and you are moving them to Y, a short "Migrating from X" note is worth writing, because those readers actually used X. A name that only lived in a branch or a draft is not that. When unsure whether an old name shipped, leave it out.
Don't leak the build process
The doc is read by someone who just arrived. They never saw the pull request, the refactor, or the conversation where the design was decided (including a conversation with an agent while writing the code and the docs). Write as if the current design was always the design. Anything that only makes sense to someone who watched it change is noise to the reader.
Cut rejected alternatives. If a discussion weighed option A against option B and picked B, the doc documents B. It never names A, never says B is "better than" A, never says A "is no longer needed." The reader is not choosing between them; they use what shipped.
Bad:
We use a plain JSON Schema here instead of zod, since it is lighter
and zod is no longer a dependency.
Good:
Pass the tool's input shape as a JSON Schema:
[code]Do not explain what something is not, when the reader never thought it was. If a piece moved out of a module during a refactor, the doc for its new home does not warn against the old arrangement. A reader who never knew locks lived inside persistence is only confused by a paragraph insisting locks are not a persistence store and must not be passed in as one. State what the thing is now, in its own terms.
Bad (in the locks doc):
Locks are not a persistence store. Do not pass a lock into the stores
map. That used to be possible but is wrong now.
Good (in the locks doc):
A lock coordinates work across instances. Wire it with withLocks:
[code]The test: read the sentence as a brand-new user. If it answers a question they would never ask ("wait, was this somewhere else before?") or defends a choice they never knew existed, delete it. The doc has no memory of how it got here.
Forbidden
Never use these. Ever. This list has no exceptions: not "the neighboring pages use them", not "the repo's house style uses them", not "it reads better here".
- Em dashes and en dashes: the long
—and the shorter–. Rewrite the sentence with a comma, colon, period, or parentheses instead. - Separator glyphs like
×or·. - The pattern "It's not X: it's Y." and the "Not just X, but Y" three-part build-up.
- The phrases "key insight", "gap", and variations of them.
If you catch yourself reaching for one of these, stop and rewrite the sentence in plain words.
Before you call a page done, search your own added text for —, –, ×, and ·. If a hit survived, you rationalized it. Fix it. Flagging it in your summary is not a substitute for fixing it.
Then run the simple-english self-check on the same added text.
Cross-linking and placement
- Put new pages where they fit the reader's path, grouped by what the reader is doing ("Building with React"), not by code layer ("Frontend Package API"). Update the site's nav or index so the page is reachable. An orphan page does not ship.
- Link related pages at the moment they help, inline in the flow, not as a "Related" dump at the bottom.
- Cross-linking goes both ways. When you add a page, update the older pages that should point into it.
- Do not over-link. One well-placed "need X? see Y" beats a list of maybes.
Red flags
| You catch yourself | Do instead |
| Opening with an API signature or config before the problem | Name the problem the reader has first, then the one-line fix, then the code. |
| Writing three paragraphs before any code | Cut to one sentence plus a snippet. Show it. |
| Writing a sentence that names two or more things and explains each | Make it a bulleted list, one item per bullet. |
| A paragraph with commas or semicolons separating a set of options/stores/flags | Same fix: that is a list, format it as one. |
| Cramming every angle into one page | Split into short linked pages, one job each. |
| "In this guide we will explore..." | Delete it. Start with the reader's state and goal. |
| "Let me describe what this component does" | Describe what the reader does with it. |
| Reaching for an em dash | Rewrite with a comma, period, or parentheses. |
| "The surrounding pages do X, so I will too" where X breaks a rule here | Match neighbors on structure only. Follow this skill on everything it covers, and raise the existing violations as their own cleanup. |
| Using a big word (utilize, leverage, facilitate) | Swap in the plain word. simple-english owns this. |
| One page for everyone | Name the readers. Give each a path or a page. Show the list. Stop. |
| Posting a snippet "they can adapt" | Make it complete and runnable. |
| Guessing where docs go | Find the docs folder, or ask. Read neighbors first. |
| Calling a feature done with no doc change | If behavior changed, docs change too. Write them before you finish. |
| Planning a feature without a doc-impact list | Add the list of new and changed docs to the plan. Name the reader for each page. |
| "Unlike the old X, this now..." / "we renamed X to Y" | The reader never saw X. Describe only what ships now. |
| "we chose Y over zod because..." / "X is no longer needed" | Cut the rejected alternative. Document only what shipped, no comparison. |
| Warning readers not to do a thing they never knew was possible (e.g. "don't pass locks as a store") | Delete it. If they never saw the old arrangement, the warning only confuses. Describe the thing in its own terms. |
| Inventing a component the site lacks | Use only components the site already has. |
Stacking npm / pnpm / yarn in one install fence | Use <!-- ::start:tabs variant="package-manager" mode="install" -->. |
| Skipping the persona message because readers are obvious | Show the list. Stop. Obvious is not a skip. |
| Skipping the tone question because neighbors have a voice | Neighbors are the proposed default. Ask. Then stop. |
| Writing pages without loading simple-english and i-have-adhd | Load both. If either is missing, stop. |
| Treating "write the docs" as permission to skip the gates | Writing docs is why the gates exist. |
| Listing personas inside a larger plan and continuing | That is not the gate. The gate is a dedicated message that ends the turn. |
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.

