agentleFS
89jobrien89jobrien/godmode/skills/doc-writer/SKILL.md

godmode:doc-writer

Skill1 starsChanged 57 days agoMITView on GitHub

Write new documentation grounded in actual code. Use when a README, architecture doc, API reference, or CLAUDE.md does not exist or needs to be written from scratch. Triggers on "write docs", "document this", "add a README", "write an architecture doc".

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write documentation that reflects what the code actually does.

    line 13
  2. Distinctive:

    No README exists for a crate, skill, or directory

    line 18
  3. Distinctive:

    Before drafting a single line, read:

    line 27
  4. Distinctive:

    Write one section at a time.

    line 48
  5. Very specific:

    Every CLI flag documented → confirm it exists in --help

    line 57
  6. Distinctive:

    Every file path mentioned → confirm it exists

    line 58
  7. Very specific:

    Every module/crate name → confirm it matches Cargo.toml

    line 59
  8. Very specific:

    Remove [UNVERIFIED] markers or resolve them

    line 60
  9. Distinctive:

    No placeholder text — every section must be complete or explicitly marked TODO

    line 66
  10. Distinctive:

    No invented examples — use real command output or real code snippets

    line 68
  11. Very specific:

    After writing, run godmode:doc-review to catch accuracy and completeness issues before committing.

    line 72

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Doc Writer

Write documentation that reflects what the code actually does. Never invent features, flags, or behaviour — read the source first.

When to Use

  • No README exists for a crate, skill, or directory
  • CLAUDE.md is missing or empty
  • An API or module needs a reference doc written from scratch
  • Architecture or design decisions need to be captured after the fact

Process

Step 1: Read before writing

Before drafting a single line, read:

  • All Cargo.toml files in scope (name, description, version, deps)
  • Entry points: src/lib.rs, src/main.rs, src/bin/*.rs
  • Public API surface: all pub fn, pub struct, pub enum, pub trait
  • CLI help: <binary> --help and <binary> <subcommand> --help
  • Existing docs if any (even stale ones reveal intent)
  • git log --oneline -20 for recent context

Step 2: Identify the doc type

TypeContents
READMEWhat it is, install, quickstart, key concepts, links to deeper docs
CLAUDE.mdBuild commands, architecture, conventions, agent instructions
Architecture docComponent ownership, data flow, key decisions, tradeoffs
API referenceEvery public export: signature, purpose, parameters, return, example
Skill/agent docWhen to use, process steps, output format, next skill

Step 3: Write in sections, verify each

Write one section at a time. After each section:

  • Re-read the source to confirm every claim is accurate
  • Flag any claim you cannot verify as [UNVERIFIED] rather than guessing

Step 4: Cross-check

Before finishing:

  • Every CLI flag documented → confirm it exists in --help
  • Every file path mentioned → confirm it exists
  • Every module/crate name → confirm it matches Cargo.toml
  • Remove [UNVERIFIED] markers or resolve them

Output Standards

  • Code blocks for all commands and paths
  • Tables for flag/option references
  • No placeholder text — every section must be complete or explicitly marked TODO
  • 100-column line width for markdown prose
  • No invented examples — use real command output or real code snippets

Handoff

After writing, run godmode:doc-review to catch accuracy and completeness issues before committing.

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.