agentleFS
LIXIAO199115LIXIAO199115/skillrig/skills/docs-writer/SKILL.md

docs-writer

Skill0 starsChanged 25 days agoMITView on GitHub

Use when writing or updating README files, how-to guides, reference docs, migration notes, or architecture explanations for a software project. Produces documentation with tested commands, explicit audience, and no invented behavior. Also use when docs are stale after an API or CLI change.

  • Installs packages

29 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use docs-planner, docs-reviewer and 4 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • strands-agentsSkill

    docs-planner

    Find the gaps in the Box documentation and produce a prioritized backlog for docs/user/ and docs/design/. Use when planning documentation work, after a feature or a binary ships without a page, for a periodic health check of the docs, or when asked "what docs need writing", "plan the docs work", "prioritize the docs backlog", or "what should we document next".

    Also in 3 projects that use this

  • strands-agentsSkill

    docs-reviewer

    Review Box drafts in docs/user/ or docs/design/, and wording-only rewrites in docs/dev/. Use after docs-writer, before a docs pull request, or for a requested doc review. Check style and preservation of meaning, then give a Ship it, Tighten, or Rethink verdict. Read-only.

    Also in 3 projects that use this

  • hiroppySkill

    docs-audit

    Audit docs/ design documents, specs, and implementation plans against current source code for drift. Outputs a drift report and updates documents. Triggers on "check if docs are up to date", "diff docs vs code", "update design docs", "docs consistency check", "verify specs match source", "check plan completion status". Most effective after code or documentation changes.

    Also in 3 projects that use this

  • SentrySkill

    security-review

    Finds exploitable application security vulnerabilities in code changes. Use for Warden security scans, appsec review, OWASP-style checks, authentication or authorization bugs, injection, XSS, SSRF, path traversal, secrets, unsafe crypto, webhook verification, open redirects, or sensitive data exposure.

    Also in 4 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 4 projects that use this

  • GoogleSkill

    tdd

    Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 27 edited versions we read keep these.

  • 24

    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:

    Write only what you verified.

    line 18
  2. Distinctive:

    Use this skill when:

    line 22
  3. Distinctive:

    Do not mix all six into one README.

    line 50
  4. Distinctive:

    Run each command in a clean environment.

    line 54
  5. Distinctive:

    Use the real package name, binary name, and version.

    line 56
  6. Distinctive:

    Do not use ellipses inside commands.

    line 58
  7. Distinctive:

    Test on the platforms you claim to support, or say which one you tested.

    line 61
  8. Distinctive:

    If you cannot run a command, write "not verified" in the draft and remove it before publishing, or mark it clearly as untested.

    line 63
  9. Distinctive:

    Put the most valuable information above the fold.

    line 78
  10. Distinctive:

    Use realistic values, never real credentials.

    line 93
  11. Distinctive:

    Keep examples short enough to read in one screen.

    line 94
  12. Distinctive:

    Prefer copy-paste blocks over pseudo-code.

    line 96
  13. Distinctive:

    Update docs in the same pull request as the behavior change.

    line 129
  14. Distinctive:

    Put a test around critical snippets.

    line 130
  15. Distinctive:

    Add a link checker to CI.

    line 131
  16. Distinctive:

    Remove screenshots that show an interface that no longer exists.

    line 133
  17. Distinctive:

    Delete deprecated sections after the deprecation window.

    line 134
  18. Distinctive:

    Do not invent flags, fields, limits, prices, or platform support.

    line 174
  19. Distinctive:

    Do not copy commands from another project without running them here.

    line 175
  20. Distinctive:

    Do not use "simply", "just", or "obviously" for steps that can fail.

    line 176
  21. Distinctive:

    Do not hide prerequisites in a later section.

    line 177
  22. Distinctive:

    Do not publish secrets, internal URLs, customer names, or personal data in examples.

    line 178
  23. Distinctive:

    Do not describe a future feature as available.

    line 179
  24. Distinctive:

    Do not let a screenshot be the only explanation of a workflow.

    line 180

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

Documentation is a contract with a reader who cannot see the code. A wrong command costs more than a missing paragraph, because the reader trusts it and fails.

Write only what you verified. Mark what you did not.

When to use

Use this skill when:

  • Creating a README for a new project.
  • Adding a how-to for a workflow users struggle with.
  • Updating docs after a CLI flag, API field, or default changed.
  • Writing migration notes for a breaking change.
  • Explaining architecture to a new contributor.
  • Reviewing documentation for accuracy before release.

Workflow

1. Name the reader and the job

Write one sentence:

A developer who has never used this project wants to install it and make one successful request in under five minutes.

Different readers need different documents:

DocumentReaderJob
READMENew userUnderstand, install, run one example
TutorialNew userLearn by doing, in order
How-toExisting userSolve one specific problem
ReferenceExisting userLook up an exact option or field
ExplanationContributor or operatorUnderstand why the system works this way
Migration guideUpgrading userChange code safely

Do not mix all six into one README. Link to the others.

2. Verify every command

Run each command in a clean environment. Copy the output that proves it worked.

  • Use the real package name, binary name, and version.
  • Show the working directory when it matters.
  • Do not use ellipses inside commands; readers paste them.
  • Show expected output, at least one line.
  • Note prerequisites and the command that checks them.
  • Test on the platforms you claim to support, or say which one you tested.

If you cannot run a command, write "not verified" in the draft and remove it before publishing, or mark it clearly as untested.

3. Structure for scanning

Most readers scan, then read one section.

  • Title: what it is, in plain language.
  • One-paragraph description: problem, solution, who it is for.
  • Quick start: the shortest working path.
  • Features: what it does, each with one concrete detail.
  • Usage: commands or API examples.
  • Configuration: options with defaults and types.
  • Troubleshooting: the five failures users hit.
  • Contributing and license.

Put the most valuable information above the fold. Do not open with a badge wall or a table of contents for a short document.

4. Write examples that run

<!-- skillrig-ignore-block: global-install -- install instructions for the CLI this document ships -->
npm install --global skillrig@1.0.0
skillrig search testing
NAME                GRADE  DESCRIPTION
test-first-fix      A      Turn a bug report into a failing test
  • Use realistic values, never real credentials.
  • Keep examples short enough to read in one screen.
  • Show one success and the most common failure.
  • Prefer copy-paste blocks over pseudo-code.
  • For APIs, show request and response, including status codes.

5. Write reference accurately

Every option needs:

  • Name and type.
  • Default.
  • Allowed values.
  • What it changes.
  • A one-line example.
  • Since which version, when relevant.

Generate reference from code when possible, and add a test that fails when the docs drift. A hand-maintained flag table will be wrong within two releases.

6. Explain decisions, not just behavior

For architecture or design docs:

  • State the constraint that forced the decision.
  • List the alternatives considered.
  • State the trade-off accepted.
  • Record what would cause a revisit.
We store the registry index as a single JSON file instead of a database because the catalog is under 10 MB, updates are batched, and clients need offline verification. The trade-off is slow full-text search at catalog sizes above roughly 5,000 skills. Revisit when search latency exceeds 300 ms at p95.

That paragraph is useful in a year. "We use JSON for simplicity" is not.

7. Keep docs alive

  • Update docs in the same pull request as the behavior change.
  • Put a test around critical snippets.
  • Add a link checker to CI.
  • Date time-sensitive claims.
  • Remove screenshots that show an interface that no longer exists.
  • Delete deprecated sections after the deprecation window.

Examples

Weak quick start:

Install the package and configure it as needed, then run the app.

Strong quick start:

<!-- skillrig-ignore-block: global-install -- install instructions for the CLI this document ships -->
npm install --global skillrig@1.0.0
skillrig doctor
skillrig search "code review"
SkillRig doctor
  Node.js      22.17.0  ok
  Registry     verified  ok
  Codex skills ~/.codex/skills  ok

Weak option description:

--force: force the operation.

Strong option description:

`--force`: replace a skill directory that SkillRig does not manage. Requires the target to contain a `SKILL.md`. Refuses to delete a directory without one. Default: `false`.

Guardrails

  • Do not invent flags, fields, limits, prices, or platform support.
  • Do not copy commands from another project without running them here.
  • Do not use "simply", "just", or "obviously" for steps that can fail.
  • Do not hide prerequisites in a later section.
  • Do not publish secrets, internal URLs, customer names, or personal data in examples.
  • Do not describe a future feature as available. Use a roadmap section.
  • Do not let a screenshot be the only explanation of a workflow.

Verification checklist

  • Reader and job stated before writing.
  • Every command run in a clean environment.
  • Prerequisites listed and checked.
  • Expected output shown.
  • All options documented with defaults.
  • Failure modes and troubleshooting included.
  • Links and relative paths resolve.
  • No stale screenshots or version claims.
  • Docs updated in the same change as the code.
  • Untested claims removed or marked.

References

  • references/doc-patterns.md contains a README skeleton, a how-to skeleton, and a migration note template.

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.