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".
In this repository76 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- godmode:agent-governanceSkill
- godmode:agent-improvement-loopSkill
- agents-skill-saveSkill
- baml-add-typesSkill
- godmode:brainstormSkill
- godmode:capSkill
- godmode:changelogSkill
- godmode:ci-fixSkill
- godmode:code-reviewSkill
- godmode:context-mapSkill
- godmode:cross-issueSkill
- godmode:crs-discoverSkill
- godmode:crs-hook-testingSkill
- godmode:crs-installSkill
- godmode:crs-propose-rulesSkill
- godmode:crs-validateSkill
- godmode:dead-codeSkill
- godmode:decomposeSkill
- godmode:dep-auditSkill
- godmode:dep-bumpSkill
- godmode:designSkill
- devloop-session-primerSkill
- godmode:dialecticSkill
- godmode:doc-maintainerSkill
- godmode:doc-reviewSkill
- godmode:doc-syncSkill
- doob-db-inspectorSkill
- doob-release-managerSkill
- godmode:doublecheckSkill
- dual-forge-pr-mergeSkill
- gh-bulk-issuesSkill
- godmode:health-scoreSkill
- godmode:ingestSkill
- godmode:introspectionSkill
- godmode:issue-triageSkill
- godmode:memory-bankingSkill
- godmode:mergeSkill
- godmode:mini-context-graphSkill
- godmode:mistake-trackerSkill
- godmode:moaSkill
- notfiles-release-workflowSkill
- godmode:observability-as-infrastructureSkill
- godmode:parallel-agentsSkill
- godmode:pattern-learnerSkill
- planning-with-cruxSkill
- godmode:pr-authorSkill
- godmode:receiving-reviewSkill
- godmode:refactoringSkill
- godmode:release-notesSkill
- release-readiness-checkSkill
- remote-upstream-triageSkill
- repo-gap-backlogSkill
- godmode:rust-conventionsSkill
- rustqualSkill
- rustqual-workspaceSkill
- rust-release-workflow-authorSkill
- godmode:self-reflectSkill
- session-wrap-commit-pushSkill
- godmode:systematic-debuggingSkill
- The first 60 shown.
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
- Distinctive: line 13
Write documentation that reflects what the code actually does.
- Distinctive: line 18
No README exists for a crate, skill, or directory
- Distinctive: line 27
Before drafting a single line, read:
- Distinctive: line 48
Write one section at a time.
- Very specific: line 57
Every CLI flag documented → confirm it exists in --help
- Distinctive: line 58
Every file path mentioned → confirm it exists
- Very specific: line 59
Every module/crate name → confirm it matches Cargo.toml
- Very specific: line 60
Remove [UNVERIFIED] markers or resolve them
- Distinctive: line 66
No placeholder text — every section must be complete or explicitly marked TODO
- Distinctive: line 68
No invented examples — use real command output or real code snippets
- Very specific: line 72
After writing, run godmode:doc-review to catch accuracy and completeness issues before committing.
≈ “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.
Files
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.tomlfiles 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> --helpand<binary> <subcommand> --help - Existing docs if any (even stale ones reveal intent)
git log --oneline -20for recent context
Step 2: Identify the doc type
| Type | Contents |
| README | What it is, install, quickstart, key concepts, links to deeper docs |
| CLAUDE.md | Build commands, architecture, conventions, agent instructions |
| Architecture doc | Component ownership, data flow, key decisions, tradeoffs |
| API reference | Every public export: signature, purpose, parameters, return, example |
| Skill/agent doc | When 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.
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
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.

