Skip to content
Skills Library
Programming · Writing

writing-documentation

/writing-documentation

Use when writing or rewriting documentation the user will actually read or ship, including README.md, docs/*.md, package docs, and skill bodies. Also use when they say the docs are verbose, bloated, disconnected, hard to scan, or out of date, or when a change needs its documentation updated to match. Also use when asked whether a document should be British or US English, first or third person, or which style guide it follows. For inline code comments and docblocks, invoke writing-docblocks instead of this skill.

Licence
MIT
Last repository change
23.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
10
Scripts
2
HTML comments
1
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 23.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 2 scripts in this package. Review them before installing, as Claude may execute them.
  • SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.

Scripts: scripts/prose-scan.selftest.sh, scripts/prose-tells-guard.sh

What it does and when to use it

Use when writing or rewriting documentation the user will actually read or ship, including README.md, docs/*.md, package docs, and skill bodies. Also use when they say the docs are verbose, bloated, disconnected, hard to scan, or out of date, or when a change needs its documentation updated to match. Also use when asked whether a document should be British or US English, first or third person, or which style guide it follows. For inline code comments and docblocks, invoke writing-docblocks instead of this skill.

Original author description

Use when writing or rewriting documentation the user will actually read or ship, including README.md, docs/*.md, package docs, and skill bodies. Also use when they say the docs are verbose, bloated, disconnected, hard to scan, or out of date, or when a change needs its documentation updated to match. Also use when asked whether a document should be British or US English, first or third person, or which style guide it follows. For inline code comments and docblocks, invoke writing-docblocks instead of this skill.

How it works

  1. Prose style
  2. 1. Interview before you draft
  3. 2. Name the document type
  4. 3. Agree a contract before drafting
  5. 4. Draft in two passes
  6. 5. Reader-test before handing it over
  7. Updating an existing document
Original SKILL.md headings · 209 lines, 2,509 words
SKILL.md preview
---
name: writing-documentation
description: Use when writing or rewriting documentation the user will actually read or ship, including README.md, docs/*.md, package docs, and skill bodies. Also use when they say the docs are verbose, bloated, disconnected, hard to scan, or out of date, or when a change needs its documentation updated to match. Also use when asked whether a document should be British or US English, first or third person, or which style guide it follows. For inline code comments and docblocks, invoke writing-docblocks instead of this skill.
hooks:
  PreToolUse:
    - matcher: "Write|Edit"
      hooks:
        - type: command
          command: "sh -c 'g=$HOME/.claude/skills/writing-documentation/scripts/prose-tells-guard.sh; [ -x \"$g\" ] && exec \"$g\"; exit 0'"
---

<!-- Last updated: 2026-10-22T22:52+10:00 -->

# Writing documentation

For documentation someone reads: `README.md`, `docs/*.md`, package docs, skill bodies.

Inline code comments and docblocks are a different standard. Stop and invoke `writing-docblocks` for those rather than applying the rules below to them. This is a redirection, not a boundary: reading it and going no further leaves the comments ungoverned.

## Prose style

`references/prose.md` governs every sentence written here: punctuation, the substance rules, and the word list a checker would hold. Read it once before drafting. Do not carry a copy of it into a project doc; point at the project's own style note where one exists.

`scripts/prose-tells-guard.sh` flags that word list on every Markdown write once this skill has been invoked. `references/prose.md` says when to keep a flagged word.

A checker catches words, not shapes. `references/tells.md` holds the sentence shapes that pass every rule here and still read as generated. Read it during the line-level pass in step 4.

## 1. Interview before you draft

Four questions, in one `AskUserQuestion` call, which takes four at most:

1. British or US English?
2. Which person for the reader, and does the author appear?
3. Which of the four document types?
4. Which external guide settles what you did not ask?

Ask all four together. A dialect answer arriving after the first draft respells every sentence in it, and a person answer arriving late rewrites all of them.

Where the answers already exist, offer them instead of skipping the interview. An existing document shows its own dialect, person and type, and a repo's `CLAUDE.md` or style note may record them for a new one. Ask one `AskUserQuestion` question: use the answers found, naming the file each came from, or run the interview. Where nothing records them, run the interview.

Reference the chosen guide; do not copy it into the repo. Record only where the project departs from it, with the reason. `references/style-guides.md` compares the four worth referencing.

`references/interview.md` carries the options, the author's recorded defaults, and what changes in the text when an answer flips.

## 2. Name the document type

Four types, and they are not interchangeable. Mixing them is the most common reason a document fails to help anyone.

| Type | Reader is | Opens with |
|---|---|---|
| Tutorial | learning by doing | the thing they will have built |
| How-to guide | solving a specific problem | the problem it solves |
| Reference | looking something up | the signature, the flags, the shape |
| Explanation | trying to understand | the question being answered |

Diátaxis opens a tutorial with "In this tutorial, we will…" and a how-to guide with "This guide shows you how to…". Start with the words after that frame. A sentence about the document is the one a reader skips, and `references/tells.md` lists it as a tell.

**Lead with what the reader gets, not where the code came from.** A first paragraph explaining the project's origin ("extracted from a real client project") spends the most-read line on context nobody needs yet.

That holds for a README and a how-to guide. It does not hold for reference, where opening with the signature is correct and a value proposition is padding.

A README is usually a how-to guide with a reference section attached. Say which sections are which before outlining.

## 3. Agree a contract before drafting

Ask for a contract rather than a tone. "Concise and clear" cannot be checked, so it cannot be met or missed. A contract can:

> British English, second person for the reader with first person for choices, value-first opener, single requirements block, at most 5 bullets per section, sentences under 20 words, front-loaded at every level, one action per numbered step, examples over 30 lines lifted to their own file.

State it back in one line before writing, with the interview answers in it, and flag any section that cannot fit it.

Defaults where the user has no preference, from GitLab: sentences under 20 words, prose around an eighth-grade reading level.

### Shape terms

1. **Front-load at four levels.** Document, section, paragraph, sentence. Most documents do the first and skip the rest.
2. **One action per numbered step.** "Install the CLI and authenticate" is two steps wearing one number, and a reader interrupted between them loses the second.
3. **A summary block above anything past 100 lines.** The reader decides whether to continue from it.
4. **In a tutorial, every step says what the reader should see.** Give the output or the change it makes. Where a likely mistake shows a sign, name it: "If the list is empty, step 2 did not trust the key." A learner who cannot tell whether a step worked stops trusting the steps after it.

### Voice terms

Limits alone produce prose that breaks none of them and still reads as though nobody wrote it. Name the voice in terms you can check by reading.

- **First person for the choices you made.** "I would not skip that step" beats "that step matters more than it sounds".
- **Second person for what the reader does**, including permission to disagree with you.
- **Reference takes no first person.** It describes the thing and does not opine.
- **No sentence whose only job is to introduce the next one.**
- **Give the consequence rather than saying there is one.**

These are for sentences the document already needs. Do not add a sentence to satisfy one. `references/attention.md` carries the effect sizes.

### Substance terms

Every term above constrains shape. A draft can satisfy all of them and still say nothing about this particular thing. These two ask whether it does.

1. **Every feature claim carries a checkable specific**: a number, a default, a mechanism, or a named cost. The failure has a name, marketese: "exaggeration, subjective claims, and boasting, rather than just simple facts."
2. **A limitation a reader would hit is stated**, next to the feature it limits.

Padding is not neutral. The reader spends attention rejecting an unearned claim, which is time taken from the text that mattered.

Avoid the superlatives "best, simplest, fastest, never, and always". Treat "ensure" and "guarantee" as claims you will stand behind. Google's rule: "The safest approach is always to write factually and objectively, limiting what you say to verifiable information."

Explanation is the exception. It weighs alternatives and gives judgements, each with a reason the reader can check: "Polling suits a single server better than webhooks, because webhooks need a public endpoint."

`references/tells.md` holds the sentence shapes that produce this failure. `references/attention.md` holds the measurements.

### Emotion attaches to stakes, not to decoration

A sentence carrying feeling has to change what the reader does. Emotionally interesting but inessential material reduces recall of the content around it.

| Passes | Fails |
|---|---|
| "I lost an afternoon to this before working out the cache was stale." | "Caching is one of the two hard problems, as the joke goes." |
| "Skip this and the build succeeds locally and fails in CI." | "This next part is the fun bit." |

The left column is a consequence the reader can act on. The right column is atmosphere, and it costs them the paragraph it sits in.

## 4. Draft in two passes

Mixing structural and line-level editing produces unfocused work.

**Match the file's line wrapping before writing the first line.** Look at the file you are editing: one line per paragraph, or paragraphs broken at a fixed width. Write the same, at the same width. A new file matches its neighbours, and you say which file you matched. Mixing wrapped and unwrapped paragraphs in one file produces diffs nobody can read. Where nothing settles it, do not wrap, which is how the author's own skills are written.

**Structural pass.** Section order, consolidation, what gets lifted out.

- Every fact once, in the section where the reader needs it. Where it appears twice, it stays in the earlier, more specific section. If the skill set appears under "What's included", it does not also appear under "How it works".
- Cut what the reader already knows. Step 2's reader column says who they are. A how-to guide for a WordPress plugin does not explain what a hook is, and a README does not explain what npm does.
- **Content of another type moves out, and a link stays behind.** An explanation inside a how-to guide or tutorial, or instructions inside reference, go to a section or file of their own type. Moving keeps them for the reader who wants them later, and cutting does not. A one-clause reason stays inline: "HTTPS, because it is more secure" needs no page.
- Prerequisites collapse into one "Requirements" block, not spread across "What this assumes", "Compatibility" and "Notes".
- Examples past roughly 30 lines move to their own file with a short teaser left behind.

**Every section is a re-entry point.** Attention leaves partway through and comes back at a heading, so the structure has to survive being entered anywhere.

1. **Headings lead with the words carrying the information.** "How to configure the cache" over "Configuration", "When the build fails in CI" over "Troubleshooting". A heading naming a category has told the reader nothing. A gerund is not enough for a how-to guide: "Configuring the cache" could be about whether to, not how. An explanation heading takes an implicit "About": "About cache invalidation".
2. **No section depends on having read the one above it.** Where it genuinely does, its first line says what it is assuming.

**Line-level pass.** Sentence shape and bullets. Read `references/tells.md` here.

- One idea per sentence. Cut compound modifiers and "which" clauses hiding a second clause.
- **A paragraph of parallel sentences is a list.** Two or more consecutive sentences of the same shape, reorderable without loss, are a list the reader has to assemble themselves.
- **Reordering is the test.** If it does not matter which sentence comes first, stop writing prose. `references/formatting.md` settles bullets against numbers.
- **For a fact, the shortest carrier wins.** A table row beats a bullet, a bullet beats a sentence, a sentence beats a paragraph. An argument stays prose.
- **Banned openers:** "It is important to note", "It is worth noting", "Notably", "To be clear", "In plain terms", "In this section", "Let me walk you through", "As we'll see". Delete the opener and keep the sentence after it. `references/tells.md` holds the shapes a list cannot catch.
- A bullet that wraps to three terminal lines is a paragraph. Make it one, or split it.
- Do not write a bullet that restates the one above it.
- Sections past about five bullets are usually doing two jobs. A genuine list of eight flags stays a list of eight flags.

## 5. Reader-test before handing it over

Three tests, and they fail in different ways. Run substitution first: it takes seconds and it fails the drafts that are not worth walking.

| Test | Catches |
|---|---|
| Substitution | A claim that is true of anything |
| Walk | A step the reader cannot complete |
| Scan | A point buried where nobody looks |

### The substitution test

Swap the product name for a competitor's and reread. Every sentence that is still true belongs to no particular piece of software, and the reader learned nothing from it.

A subjective claim survives substitution because it was never about this thing. A fact does not, because a fact names a version, a default, a mechanism or a limit.

This opener passes every shape rule in step 3:

> Retry failed webhooks without writing the retry logic yourself. You supply a transport, and the queue handles the rest.
>
> - Configurable backoff strategies
> - Dead-letter routing with no setup
> - Survives process restarts

It survives substitution whole. Nothing distinguishes this library from any other queue, and the three bullets name no default, no schedule and no cost.

The repair puts the specifics back:

> Retries webhooks that failed on a 5xx or a timeout, so a deploy on the receiving end does not cost you events.
>
> - Backoff is exponential and fixed at 2s, 8s, 32s, then dead-letter
> - Retry state lives in Redis, so a Redis restart drops anything mid-backoff
> - 4xx is terminal on purpose: a 422 will not become valid on a retry

Substitute a competitor's name into that and the second bullet is a lie about them. That is the test passing. That bullet also states the limitation, next to the feature it limits.

### The walk test

Pick the first task the document promises. Follow it literally, using only what the document says, as though the codebase is unfamiliar.

The finding is the first point where a reader would need something the document has not given them. It usually takes one of these shapes:

- an unstated prerequisite
- a command that assumes a directory
- a variable introduced without saying where it comes from
- a step with no sign of whether it worked
- an install command that fetches somebody else's package

The last one hides behind a successful lookup. A registry entry with the same name is a match only when its `repository` field, maintainer or published description is this project's. A name alone matching proves that the name is taken, and the install section then says so and gives the path or URL that does work.

Reference and explanation have no task to follow. Walk reference as a lookup: pick a fact a reader would come for, and find it from the headings alone. For explanation, check that the question it opens with is answered by the end.

### The scan test

Read only the headings, the bold text and the first sentence of each paragraph. If the document's main claim and its first action do not survive that pass, the document fails. The fix is never to add more text. Move what matters up into the parts that get read.

Run this one last. It reads shape rather than content, so it finds different faults from the other two.

Report what you tested and what stopped you. Where nothing stopped you, say that, and say which path you walked. "I read it and it seems fine" is a different claim.

## Updating an existing document

Diagnose before rewriting, because the two failures need opposite fixes:

- **Verbose** means the same idea appears several times. Cut.
- **Disconnected** means the reader wades through caveats before reaching the point. Reorder, lifting the value paragraph and the quick start above the prerequisites.

Then run both passes. Check every documented command still works before leaving it in place: one that fails is worse than an absent one, because it gets trusted.

The document records the current state. Drop what it used to say, which rewrite changed it, and what the earlier version got wrong. A changelog carries that where the repo keeps one.
Files in this package (10)
  • SKILL.md 15 KB
  • references/attention.md 8 KB
  • references/formatting.md 3 KB
  • references/interview.md 4 KB
  • references/prose.md 4 KB
  • references/style-guides.md 3 KB
  • references/tells.md 7 KB
  • scripts/prose-scan.awk 7 KB
  • scripts/prose-scan.selftest.sh 7 KB
  • scripts/prose-tells-guard.sh 4 KB

Versions

RepositoryScoreLicence
This page · stuartshields/stuartshields-skills100MIT
adelrodriguez/skills100MIT

Database snapshot: 13.11.2026 · package version f8ff8de0e57c (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100code-documentation
    Writing effective code documentation - API docs, README files, inline comments, and technical guides. Use for documenting codebases, APIs, or writing developer guides.
  • 100documentation
    Write and maintain technical documentation. Trigger with "write docs for", "document this", "create a README", "write a runbook", "onboarding guide", or when the user needs help with any form of technical writing — API docs, architecture docs, or operational runbooks.
  • 100writing-docs
    Use when writing or editing a repository documentation surface — a README, an architecture document, a CLAUDE.md or AGENTS.md pointer file, or a surface the project has registered. Do NOT activate for code comments, commit messages, or PR descriptions.
  • 90ns-docs-writer
    (NS) Human-facing project docs — README, docs/ guides, runbooks, contributor markdown. Use whenever the user asks for documentation, README updates, how-to guides, or docs/ content — even if they say \"explain how to use\" instead of \"write docs\". Do NOT use for code comments,…
  • 100documentation
    Creates clear, comprehensive documentation. Use when writing READMEs, API docs, code comments, or user guides. Follows documentation best practices.
  • 100documentation
    Guide for writing technical documentation. Use when creating README files, API documentation, guides, or inline code documentation.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.