agentleFS
gustavovalverdegustavovalverde/skills/skills/docs-writing/SKILL.md

docs-writing

Skill7 starsChanged 57 days agoMITView on GitHub

Write or restructure documentation such as tutorials, how-to guides, READMEs, reference pages, conceptual explanations, proposals, RFCs, and ADRs, plus explanatory text for slides and diagrams. Use when creating or substantially revising documentation that readers learn from, follow, look up, or decide with, even when the piece is small, such as one reference entry or one caption. Not for interface text (ui-copy), pull request descriptions or release notes (pr-writing), or line editing that keeps a draft's structure (text-editing).

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

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 19 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the reference for the form:

    line 13
  2. Distinctive:

    Check existing documentation before adding a page, and update or link useful material instead of duplicating it.

    line 19

“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

Write documentation

Choose the form by the reader's task, not the publishing platform, and ground every instruction and example in the implementation or supplied specification.

Approach

Read the reference for the form:

  • Documentation forms for tutorials, how-to guides, reference pages, and explanations, and for shaping a section within any of them.
  • Decision records for proposals, RFCs, and ADRs.
  • Visual content for slide copy and text that accompanies charts or diagrams. Presentation and design tools handle layout and rendering.

Check existing documentation before adding a page, and update or link useful material instead of duplicating it. Match the reader's knowledge and the project's terminology. Before a section relies on a concept, establish whether the reader already knows it or needs an explanation.

Keep prerequisites before dependent actions. Choose the smallest representation that answers the reader's question: prose for reasoning, a table for comparable options, a sequence for ordering, or a shallow tree for responsibility. Show a focused diff when the surrounding shape is familiar, and the complete example when omitted context would hide ownership, order, or a usable result. Place a visual beside the explanation it supports.

Write sentences that a reader who is not a native English speaker can follow on the first pass. Give each sentence one idea and name who acts, as in "your proxy sets the header." Put an effect in its own sentence instead of a ", so" clause. When a claim has several conditions, list them under the claim.

Address the reader as "you." Let the main explanation state the default path. Keep a condition that decides whether an instruction is safe beside that instruction. Put other exceptions after the main point, or in the reference entry when one exists. When a reviewer or review bot asks for another qualification, place it by these rules instead of adding it to the main sentence. Where a rule is not obvious, add one sentence of why that the source or specification supports. Never invent a reason.

Gotchas

  • Familiar words can hide a missing conceptual step. Add that context before shortening the prose.
  • An inspected example is not an executed one. Say which you have.
  • Supported behavior, proposals, and unknowns read alike unless they are labeled.
  • Shortening can drop exact identifiers, version limits, and supporting evidence. Keep them, and explain unfamiliar concepts without weakening their technical meaning.
  • Code format only what a reader types or searches for, not plain words, HTTP methods, or status codes. Refer back to an introduced identifier with a plain noun, such as "the client."
  • Merging sentences to shorten a passage turns its conditions into asides that the reader must hold open. Remove repeated or unneeded sentences instead.
  • Drafting history and unrelated internal process details do not help the reader.

Finish

Check whether readers can complete the task, locate the fact, or assess the decision. Verify examples and links within the available environment, preview rendered pages at phone width, and report material limits. A check that reports zero files checked did not pass. After revising for review comments, reread each changed sentence as a reader new to the topic would. Leave the rest of the documentation set alone during a narrow edit.

Rewording for voice can change a claim, and so can an added fix or example. Compare each reworded sentence with the original, and each addition with the source, for the shifts listed in documentation forms.

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.