agentleFS
michael-muirmichael-muir/agentic-dev-kit/skills/docs-writing/SKILL.md

docs-writing

Skill1 starsChanged 13 days agoMITView on GitHub

Use when writing or updating user-facing documentation (README, guides, API reference, examples, changelog), to document what changed for readers, keep every example runnable, and avoid docs that drift from the code.

19 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 19 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write for someone arriving cold who wants to get something done.

    line 8
  2. Very specific:

    Prove it: Run every command and example, or turn it into a doc test (Python doctest, Rust doc tests, go test examples, .NET <example> …

    line 28
  3. Distinctive:

    Remove what's stale: Search the docs for the old names, flags and behaviour you changed, and update or delete each hit.

    line 33
  4. Distinctive:

    Write from the user's side: "You can now export reports as CSV", not "Added CsvWriter class".

    line 38

“Common” is measured: kept by at least 6 in 10 of the 19 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Docs writing

Write for someone arriving cold who wants to get something done. Docs that are wrong are worse than missing docs, so everything you write must be checkable against the code.

Steps

  1. Know the reader's task. For each change, name who reads about it (a new user, an integrator, an operator, a contributor) and what they're trying to do. Done when: each change has a reader and a task in your notes.
  2. Put it where they'll look.
    Reader needsGoes in
    What it is, and the first five minutesREADME.md
    How to do a specific taska guide in docs/
    Exact options, parameters, errorsreference docs, or generated API docs
    What changed since last timeCHANGELOG.md → ## Unreleased
    Why it's built this wayan ADR (architect), linked from the docs
    Done when: each change lands in one place, and other places link to it rather than repeating it.
  3. Write it. Task-first headings ("Rotate an API key", not "Key management"). Steps numbered, with one action each. Examples you can copy as they are, with real values or obvious placeholders (<your-token>). State defaults, limits and units. Use glossary terms. Done when: a reader can complete the task without opening the source code.
  4. Prove it. Run every command and example, or turn it into a doc test (Python doctest, Rust doc tests, go test examples, .NET <example> blocks compiled in a test project). Check that every link resolves. Done when: each example has an observed result in the handoff. An example that can't be run is marked as illustrative.
  5. Remove what's stale. Search the docs for the old names, flags and behaviour you changed, and update or delete each hit. Done when: the search for old terms returns nothing outside the changelog.

Changelog entries

  • Write from the user's side: "You can now export reports as CSV", not "Added CsvWriter class".
  • Mark breaking changes Breaking, with the migration step in the same entry.
  • One line per change, with the task or AC id at the end: (T-04, REPORT-AC-2).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.