Skip to content
Back to skills

Writing Docs

ASecurity

Use when writing, rewriting, splitting or reviewing documentation people read — a README, guide, how-to, tutorial, reference page, runbook, troubleshooting page or docs folder — or when a README should sell the project as well as explain it ("showcase", "make the README pop", "use every README feature"). Not for AGENTS.md, CLAUDE.md or skills (writing-for-agents). Audit what is installed or shipped when asked to "update the README", when the "README is out of date", or when asked to "add X to...

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 30, 2026
ai-agentsgogitdocumentation

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned December 6, 2026

npx -y skills add williamblair333/Uncle-J-s-Refinery --skill writing-docs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Writing Docs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Writing Docs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/williamblair333-writing-docs/badge)](https://www.skillsdirectory.com/skills/williamblair333-writing-docs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: writing-docs
description: Use when writing, rewriting, splitting or reviewing documentation people read — a README, guide, how-to, tutorial, reference page, runbook, troubleshooting page or docs folder — or when a README should sell the project as well as explain it ("showcase", "make the README pop", "use every README feature"). Not for AGENTS.md, CLAUDE.md or skills (writing-for-agents). Audit what is installed or shipped when asked to "update the README", when the "README is out of date", or when asked to "add X to the docs" or fix "README missing Y".
---

# Writing docs

Agents already check facts against the code. What they skip is deciding **who the page is for and
which one job it does**, so a request for "docs for X" comes back as one long page that teaches,
lists, explains and troubleshoots at once, and nobody tests it on a fresh reader. This skill adds
those steps. Wording rules live in `feynman-style`; use it for every sentence.

## The four jobs a page can do

A reader comes to a page in one of four states. Each needs a different page (after Diátaxis,
<https://diataxis.fr/>, by Daniele Procida).

| Reader's state | Page type | It is | It never |
|---|---|---|---|
| New, wants to learn by doing | **Tutorial** | One safe path to a first success, every step run by you | Offers options, explains theory |
| Competent, has a goal right now | **How-to** | Steps toward that goal, with "if X, do Y" branches | Teaches basics, lists every flag |
| Mid-task, needs a fact | **Reference** | Complete, dry, shaped like the code (tables for options, codes, config) | Gives steps or opinions |
| Away from the keyboard, wants to understand | **Explanation** | Why it's built this way, trade-offs, history | Gives steps or lists options |

To place a passage, ask two questions. Does it tell the reader to **do** something or help them
**know** something? Will they read it **while working** or **while learning**? Do + learning =
tutorial, do + working = how-to, know + working = reference, know + learning = explanation.

A **README** is none of the four. It's the front door: what this is, who it's for, the shortest
path to running it, and links to the other pages. When a README grows a full reference or a
design essay, move that out and link to it.

## Before you write: fill this in

Write these lines down (in your notes or your reply) before the first sentence of the doc.
Each one is required.

```
Reader:      <who, what they already know>
Arrives:     <the situation or question that brings them here>
Leaves with: <what they can do or know after>
Type(s):     <tutorial | how-to | reference | explanation | README>, one per page
Pages:       <file path for each page; existing pages you'll link instead of repeating>
```

If the request covers more than one type ("document ask_local"), plan one page per type. Say in
your reply what you split and why. Where the repo already has a page that does one of the jobs,
link it rather than writing a second one.

Don't create empty folders for the four types. Only make the pages this request needs.

## While you write

- Each page keeps to its type. When a passage belongs to another type, cut it to one sentence and
  link the page that covers it.
- Title by type. How-to: "How to <goal>". Reference: the thing's name. Tutorial: "Your first
  <thing>". Explanation: "About <topic>" or "Why <decision>".
- Every name, flag, path, default and number comes from the code, a command you ran, or the user.
  Mark anything you couldn't check `[unverified]`.
- Leave alone files written for agents (CLAUDE.md, AGENTS.md, skills), logs (CHANGELOG, HANDOFF)
  and files scripts parse (STANDARDS, ROADMAP), unless the request names them.

## Sync a stale README

Use this when shipped features, optional install steps or the file map have drifted.

1. Before opening files, search memory for prior README work (`memory_search "README <project-name>"`). Ignore hits for other projects.
2. Read the primary README and run `git log --oneline -20` in parallel to see what landed.
3. Inventory what the repo ships: in the Refinery, `features/**`, `scripts/**` and `global-skills/**`; elsewhere, its entry points, plugin, hook or config paths. Compare what ships with the feature table, install steps and file map. Read each undocumented feature's entry point (for example, `features/foo/README.md` or the header of `scripts/bar.sh`) before writing its one-liner.
4. Limit the sync to three targeted edits: missing “What's in the box” rows, missing optional install steps and missing file-map entries. Keep accurate prose. If more sections need work, fix the three highest-priority gaps and report the rest.
5. Re-read the changed sections for truncation or formatting breaks and cross-check that the feature table, install steps and file map agree.

(Folded in from readme-sync on 2026-12-06; that skill stays until William approves removing it.)

## README as showcase

When the README should also sell the project, read [`readme.md`](readme.md) before writing.
It has the opening a README needs, what each forge actually renders (measured on Gitea 1.27 and
GitHub), how to make a hero image without real data, and the render check to run.

## Before you call it done: the cold-reader test

You can't see gaps in a page you just wrote. Hand each finished page to a fresh agent that has
no other context:

1. Write 3–5 questions this page's reader would arrive with (from the Reader and Arrives lines).
2. Spawn a subagent (or `ask_agy`, task=review) with **only the page text and those questions**.
   Tell it to answer from the page alone and to say "not in the page" where it can't.
3. Fix every question it couldn't answer or answered wrong. Re-run if you changed much.

Report the result: "cold reader: 5/5 answered" or "4/5; added the missing port table".

## Common mistakes

| You catch yourself… | Instead |
|---|---|
| Writing one page that explains, lists and troubleshoots | Fill in the block above; one page per type |
| Explaining "under the hood" in the middle of steps | One sentence, then link the explanation |
| A README longer than a couple of screens | Move reference and explanation out; link them |
| Using a feature because it exists (math for 2^10) | Use a feature when it helps this reader |
| Declaring done after rereading your own page | Run the cold-reader test |

Files in this skill

  • SKILL.md4.9 KB
  • TESTING.md2.7 KB
  • readme.md4.8 KB
  • render_check.py5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.