agentleFS
pbans-agentpbans-agent/skillpack/skills/docs-writer/SKILL.md

docs-writer

Skill0 starsChanged 7 months agoMITView on GitHub

Writes clear, structured technical documentation including READMEs, API docs, architecture guides, inline code comments, and user guides. Use when the user asks to write documentation, create a README, document an API, explain code, write a tutorial, or improve existing docs.

18 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

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

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 7

    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:

    Create high-quality technical documentation that is clear, accurate, well-structured, and genuinely useful to its audience.

    line 19
  2. Distinctive:

    Every project needs one. Structure:

    line 34
  3. Distinctive:

    Use headers liberally — scannable is readable

    line 77
  4. Distinctive:

    Always runnable (include imports)

    line 105
  5. Distinctive:

    Use realistic data (not "foo", "bar")

    line 106
  6. Distinctive:

    Keep minimal — one concept per example

    line 108
  7. Distinctive:

    Test your examples actually work

    line 109

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

Purpose

Create high-quality technical documentation that is clear, accurate, well-structured, and genuinely useful to its audience.

When to Use

  • Writing or updating a README
  • Documenting APIs and endpoints
  • Creating architecture or design docs
  • Writing user guides and tutorials
  • Improving inline code comments
  • Creating changelog entries
  • Writing onboarding documentation

Documentation Types

README

Every project needs one. Structure:

  1. What it is — one-sentence description
  2. Why use it — key benefits
  3. Quick Start — get running in < 5 minutes
  4. Installation — all methods
  5. Usage — common scenarios with examples
  6. Configuration — all options
  7. Contributing — how to help
  8. License — what others can do

API Documentation

For each endpoint/function:

  1. What it does — one sentence
  2. Parameters — name, type, required/default, description
  3. Returns — type and structure
  4. Throws — error types and when
  5. Example — realistic usage
  6. Notes — edge cases, gotchas

Architecture Documentation

  1. Overview — system diagram and data flow
  2. Components — what each part does
  3. Decisions — why, not what (what is in code)
  4. Trade-offs — what was considered and rejected
  5. Growth areas — where the architecture may need to change

Tutorial / Guide

  1. Goal — what the reader will achieve
  2. Prerequisites — what they need first
  3. Steps — numbered, testable, one action each
  4. Verification — how to confirm each step worked
  5. Next steps — where to go from here

Writing Principles

Clarity

  • Short sentences. One idea per sentence.
  • Active voice: "The function returns..." not "It is returned by..."
  • Concrete examples over abstract descriptions
  • Define jargon on first use

Structure

  • Lead with the answer, then explain
  • Use headers liberally — scannable is readable
  • Tables for parameters and options
  • Code blocks for examples — always runnable
  • Numbered lists for sequences, bullets for options

Audience Awareness

  • Know who is reading and what they already know
  • Beginner docs: explain WHY, not just HOW
  • Expert docs: be precise and complete
  • Internal docs: can assume context
  • External docs: must be self-contained

Code Examples

# BAD: incomplete, won't run
# Just call the function with some data
result = process(data)

# GOOD: complete, runnable, shows real usage
from mylib import process

data = {"users": [{"name": "Alice", "age": 30}]}
result = process(data, format="json", validate=True)
print(result)
# Output: {"processed": 1, "errors": []}

Rules for code examples:

  • Always runnable (include imports)
  • Use realistic data (not "foo", "bar")
  • Show expected output
  • Keep minimal — one concept per example
  • Test your examples actually work

Anti-Patterns

  • Dead documentation — docs that describe code that no longer exists
  • Vague documentation — "configures the system" (what system? how?)
  • Duplicate documentation — same info in 3 places, all different
  • Over-documentation — restating what the code clearly shows
  • Documentation debt — docs that were never updated after a change

Maintenance

Documentation is code. It should be:

  • Version-controlled alongside the code it describes
  • Updated in the same commit as code changes
  • Reviewed like code
  • Tested (do the examples still work?)

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.