doc-writer

doc-writer is an agent for Claude Code from SyloRei/claude-godmode. It costs 36 tokens per session (586 once invoked), scanned A, original, MIT.

A documentation agent that writes or updates technical documentation while following the project's existing style. It covers public code interfaces, READMEs, API documentation, architecture decisions, and comments for non-obvious logic.

In plain words
What is it for?
Use it to create JSDoc or docstrings, README sections, API references, architecture decisions, and comments explaining business rules or workarounds.
Why use it?
It reduces the risk of vague, inconsistent, or incorrect documentation by first examining the code and existing documentation patterns. It focuses on useful explanations instead of documenting obvious code.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the claude-godmode plugin — 14 skills, 4 commands, 19 agents, 7 hooks, 3 MCP servers shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/sylorei/claude-godmode/doc-writer
Clone the repo
git clone --depth 1 https://github.com/SyloRei/claude-godmode

Made for: Claude Code.

Or install claude-godmode, the plugin that ships this one along with the rest of its 14 skills, 4 commands, 19 agents, 7 hooks, 3 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for doc-writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/sylorei/claude-godmode/doc-writer.svg)](https://agentmods.dev/agents/sylorei/claude-godmode/doc-writer)
Your own site
<a href="https://agentmods.dev/agents/sylorei/claude-godmode/doc-writer"><img src="https://agentmods.dev/badge/agents/sylorei/claude-godmode/doc-writer.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 586 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.00586
Opus 5 $0.00018 $0.00293
Sonnet 5 $0.00007 $0.00117
Haiku 4.5 $0.00004 $0.00059

Measured 6d ago against content hash a188875512d0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

doc-writer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/doc-writer.md · 75 lines

How it starts

The opening of the file, as written. The whole thing — 75 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a technical writer who creates clear, accurate documentation. Document what's non-obvious, skip what's self-evident.

Before writing: Use /onboard findings or @researcher to understand the codebase first.

Process

1. DETECT

  • Identify existing doc patterns (JSDoc, docstrings, README style)
  • Check for doc generation tools (typedoc, sphinx, rustdoc)
  • Find existing documentation to maintain consistency

2. ANALYZE

  • Read the code thoroughly before documenting
  • Identify: public API surface, complex logic, non-obvious decisions
  • Determine audience: library users, contributors, or both

3. WRITE

JSDoc / Docstrings:

  • Document public API only (exported functions, classes, interfaces)
  • Include: description, @param, @returns, @throws, @example
  • Skip obvious getters/setters

README:

  • What it does (1-2 sentences)
  • Quick start (install + minimal usage)
  • API reference or link to docs
  • Configuration options
  • Examples

Inline Comments:

  • Only for non-obvious logic (WHY, not WHAT)
  • Business rules, workarounds, performance decisions

Rules

  • Accuracy over completeness — wrong docs are worse than no docs
  • Concise — no filler, no restating the obvious
  • Examples — show, don't just tell
  • Follow existing style — match project conventions exactly
  • Don't document implementation details that may change

Output Format

## Docs: [COMPLETE | PARTIAL]

## Files Written
- path/file.ts — [doc type: JSDoc | README | inline | architecture]

## Coverage
- [What was documented and what changed — brief]

## Next Step
- [e.g. /verify N to confirm criteria, or @code-reviewer for a review pass]

Handoffs

  • For understanding codebase first → /onboard or @researcher
  • For API design decisions → @architect
  • Once the docs are written → hand back to the spine: /verify N to confirm the unit's criteria, then /ship to release; for a documentation review pass first, @code-reviewer

Read the full file on GitHub · 75 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 75 lines · 36 tokens per session scan A a188875512d0

Subscribe to this mod's changes

doc-writer is an agent published in the GitHub repository SyloRei/claude-godmode (3 stars, last pushed 3mo ago), licensed MIT. It adds 36 tokens to every session and 586 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

plan-creation-eng-lead

Engineering and Delivery Lead for implementation planning. Produces work breakdown structures, effort estimates, dependency graphs, milestones, parallel opportunities, and risk registers. Use when you need structured delivery planning for any implementation topic.

QBall-Inc/the-bulwark · 48 tokens

product-ideation-segment-analyzer

Identifies target user segments, develops detailed personas using Jobs-to-be-Done framework, estimates willingness to pay, and refines TAM/SAM/SOM by segment. Reads competitive analysis output from logs/. Use when the orchestrator needs target user segment profiles from competitive data.

QBall-Inc/the-bulwark · 63 tokens

product-ideation-market-researcher

Researches market size, growth trends, key players, regulatory landscape, and technology enablers for a product idea using web sources. Produces evidence-based market assessment with TAM/SAM/SOM estimates. Use when the orchestrator needs market landscape data for a product idea.

QBall-Inc/the-bulwark · 64 tokens

skill-eval-grader

Artifact-based grader for subjective skill evaluations. Reads evidence files (generated SKILL.md, templates, run traces) against a rubric and returns PASS/FAIL with structured reasoning. Used by grade.ts for fuzzy assertions where deterministic checks cannot apply.

QBall-Inc/the-bulwark · 53 tokens

implementer

Feature-sized coding work where the decisions live inside the task - multi-file changes, refactors, end-to-end implementation from a spec. Used by senior-fable mode for the code the lead specifies but does not type. Not for mechanical edits with an obvious diff, and not for open-ended investigation.

AndyShaman/senior-fable · 63 tokens

security-engineer

Use for application-security review — threat-modelling a change, auditing code for vulnerabilities, or reviewing auth, crypto, secrets, and input-handling. A senior AppSec engineer who maps the attack surface, runs STRIDE against the diff, and rates every finding by severity with a concrete fix. Pick this for any…

e1024kb/wise-claude · 86 tokens