Skip to content
Back to skills

Write Docs

ASecurity

Write or critique prose that ships with a codebase — READMEs, guides and runbooks, CLI help and error text, code comments, AGENTS.md/CLAUDE.md, commit messages, PR titles and descriptions, and changelog entries. Use when drafting or editing these, including commits and PRs written as part of another task. Do NOT use to review the code in a PR (use code-review), or for blog posts (blog-review), design docs (grill-me), ADRs or glossaries (domain-modeling), or skills (write-skill).

  • 4 stars
  • 0 votes
  • 0 copies
  • 9 views
  • Added September 11, 2026
ai-agentspythonrustgobashcode-reviewgitapi

Works with

  • cli
  • api

Security analysis

A100/100

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

Scanned November 29, 2026

npx -y skills add wilbeibi/wilbeibi-skills --skill write-docs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Write Docs?

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

Security grade badge for Write Docs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wilbeibi-write-docs/badge)](https://www.skillsdirectory.com/skills/wilbeibi-write-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: write-docs
description: Write or critique prose that ships with a codebase — READMEs, guides and runbooks, CLI help and error text, code comments, AGENTS.md/CLAUDE.md, commit messages, PR titles and descriptions, and changelog entries. Use when drafting or editing these, including commits and PRs written as part of another task. Do NOT use to review the code in a PR (use code-review), or for blog posts (blog-review), design docs (grill-me), ADRs or glossaries (domain-modeling), or skills (write-skill).
---

# write-docs

Pick the artifact, read that file, then write. Do not load more than one — the conventions differ and mixing them produces documents that serve nobody.

| Writing… | Read | Reader you are serving |
|---|---|---|
| A README for a public lib, CLI, or agent tool | [READMES.md](READMES.md) | someone deciding in 30 seconds whether to use this |
| A developer guide, tutorial, runbook, migration, or deprecation | [GUIDES.md](GUIDES.md) | someone trying to complete a task without guessing |
| CLI flags, subcommands, `--help`, error text, output contracts | [CLI.md](CLI.md) | someone typing at a prompt, and the script that wraps them |
| Code comments, docstrings, inline rationale | [COMMENTS.md](COMMENTS.md) | the maintainer reading this during an outage |
| `AGENTS.md` / `CLAUDE.md` operating guides | [AGENTSMD.md](AGENTSMD.md) | an agent with no memory of your project |
| Commit messages, PR descriptions, changelog entries | [PR.md](PR.md) | a maintainer running `git log` in two years; for a PR, also the reviewer who must act today |

Not this skill: blog posts and essays (use `blog-review`), design docs (use `grill-me`), ADRs and glossaries (use `domain-modeling`), internal service wikis, or authoring a skill (use `write-skill`).

## Workflow

1. Read the implementation, schema, tests, `--help`, or diff that establishes the facts.
2. Name the reader and the action this document must enable.
3. Choose one canonical term for each repeated concept. Preserve exact API names and identifiers.
4. Draft through the selected artifact lens.
5. Check that every claim, command, caveat, and boundary still matches the source.
6. Apply the clarity mode below, then run the checker. Treat heuristic findings as questions, not automatic edits.

## Clarity modes

- **Strict** — procedures, safety rules, agent workflows, CLI help, and recovery instructions. Also any text whose reader cannot ask a follow-up question: tool and function descriptions, error messages, and output another agent or script parses. Put conditions before commands. Use imperative steps, one action per step, direct verbs, simple tenses, and sentences of at most 20 words.
- **Natural** — README narrative, explanations, comments, and PR rationale. Keep terminology and actors clear, but allow contractions, semicolons, sentence rhythm, and passive voice when the actor is unknown or irrelevant.

Apply modes by content block. A README quickstart can be strict while its motivation remains natural.

## Shared rules

- Lead with the reader's goal and shortest path. Put provenance and history later or omit them.
- Use evidence instead of quality adjectives. Give the measurement, example, or boundary behind the claim.
- Use one name for one thing. Do not rotate synonyms unless they identify different concepts.
- Name the doer and the action within the first eight words of a sentence. An abstract noun as subject (`the configuration of`, `the handling of`) hides them: make the doer the subject and the action the verb.
- One idea per sentence. Open on what the reader already holds and end on the new name or value; this outranks active voice. A condition longer than ten words becomes its own step.
- Break noun stacks of four or more words: “calibration of the connection resistance,” not “connection resistance calibration procedure.”
- Say each fact once. Omit template sections that do not change the reader's next action.
- Cut words that announce or reassure: `This document describes`, `simply`, `obviously`. Readers assume the opposite of an intensifier, and `simply` blames them when the step fails.
- A hedge in a procedure is a missing condition: write `if X, do Y`, not `you may need to do Y`. In explanation, one hedge states uncertainty and two in a sentence hide it.
- State unsupported cases and tradeoffs. Simpler wording must not erase precise technical meaning.

## Check the draft

```bash
python3 scripts/prose_lint.py --mode strict <path>
python3 scripts/prose_lint.py --mode natural <path>
```

Use `-` for stdin and `--json` for structured findings. Exit 1 means strict errors; review-only findings return 0. Add `<!-- prose-lint-ignore -->` to ignore one line. The checker cannot detect synonym rotation without project context, so check terminology manually. This is not an STE certification or a substitute for factual review. See [CLARITY-REFERENCE.md](CLARITY-REFERENCE.md) for rationale and sources.

## Rewriting an existing document

- Grep tests and CI for strings pinned from the document before you restructure it. If a test pins wording, make it assert the requirement (order, a link's presence) instead of the exact text. Name the changed assertion in the PR.
- Find copies derived from it: package README, docs site, translations. Update them or state that they are out of scope.

## Reviewing rather than writing

Same lens, inverted: verify the artifact against its source, then report what the target reader cannot do, cannot trust, or must read twice. Lead with the defect and its location, not with praise.

Files in this skill

  • AGENTSMD-REFERENCE.md4.7 KB
  • AGENTSMD.md4.5 KB
  • CLARITY-REFERENCE.md3.2 KB
  • CLI.md4.2 KB
  • COMMENTS.md2.3 KB
  • GUIDES.md2.1 KB
  • PR.md3.3 KB
  • READMES-REFERENCE.md14.5 KB
  • READMES.md3.2 KB
  • SKILL.md4.2 KB
  • scripts/prose_lint.py13.4 KB
  • scripts/test_prose_lint.py7.6 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.