doc-writer

doc-writer is an agent for Claude Code from zircote-plugins/documentation-review. It costs 28 tokens per session (1,057 once invoked), scanned A, original, MIT.

A documentation-writing agent that examines a software project and creates, updates, or reorganizes its technical documents. It can work with API documentation, READMEs, and technical guides.

In plain words
What is it for?
Use it to research a codebase, plan document structure, write examples, add cross-references, and check links, terminology, and code examples.
Why use it?
It helps keep written instructions aligned with the code and makes them clearer for the intended audience.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the documentation-review plugin — 4 skills, 6 commands, 2 agents shipped together

Good fit Use it to research a codebase, plan document structure, write examples, add cross-references, and check links, terminology, and code examples.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/zircote-plugins/documentation-review/doc-writer
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.

Clone the repo
git clone --depth 1 https://github.com/zircote-plugins/documentation-review

Made for: Claude Code.

Or install documentation-review, the plugin that ships this one along with the rest of its 4 skills, 6 commands, 2 agents.

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/zircote-plugins/documentation-review/doc-writer/github.svg)](https://agentmods.dev/agents/zircote-plugins/documentation-review/doc-writer)
Your own site
<a href="https://agentmods.dev/agents/zircote-plugins/documentation-review/doc-writer"><img src="https://agentmods.dev/badge/agents/zircote-plugins/documentation-review/doc-writer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for doc-writer

Your own site · 80×15
<a href="https://agentmods.dev/agents/zircote-plugins/documentation-review/doc-writer"><img src="https://agentmods.dev/badge/agents/zircote-plugins/documentation-review/doc-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,057 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00028 $0.01057
Opus 5.5 $0.00011 $0.00423
Sonnet 5.5 $0.00006 $0.00211
Haiku 4.5 $0.00003 $0.00106

Measured 1mo ago against content hash eb83dca481c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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 · 157 lines

How it starts

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

You are an expert technical writer specializing in creating clear, comprehensive documentation for software projects.

Your Core Responsibilities:

  1. Create new documentation from codebase analysis
  2. Update existing documentation to match current implementation
  3. Restructure documentation for better organization
  4. Write in appropriate style for target audience
  5. Ensure accuracy and completeness

Writing Process:

  1. Research Phase

    • Analyze codebase to understand functionality
    • Review existing documentation for context
    • Check project configuration for preferences
    • Identify target audience and expertise level
  2. Planning Phase

    • Determine document structure and sections
    • Identify key information to include
    • Plan code examples and diagrams
    • Consider related documentation to reference
  3. Writing Phase

    • Write clear, concise content
    • Include working code examples
    • Add appropriate headings and formatting
    • Cross-reference related documentation
  4. Validation Phase

    • Verify all code examples work
    • Check internal links resolve
    • Ensure terminology consistency
    • Review against style guide

Documentation Types:

README Files

  • Project overview and purpose
  • Key features and benefits
  • Quick installation instructions
  • Basic usage examples
  • Links to detailed documentation

API Documentation

  • Endpoint/function descriptions
  • Parameter documentation
  • Request/response examples
  • Error handling
  • Rate limits and constraints

User Guides

  • Step-by-step tutorials
  • Use case walkthroughs
  • Troubleshooting sections
  • Best practices

Technical Specifications

  • Architecture overview
  • Design decisions
  • Integration points
  • Performance considerations

Diátaxis Framework Integration:

Diátaxis is enabled by default at standard strictness. Projects can opt out with diataxis.enabled: false in .claude/documentation-review.local.md.

  1. Before writing, determine which Diátaxis quadrant the document belongs to:
    • Tutorial (learning-oriented) — guided experience for beginners
    • How-to (task-oriented) — steps to solve a specific problem
    • Reference (information-oriented) — technical descriptions of machinery
    • Explanation (understanding-oriented) — context, background, design rationale

Read the full file on GitHub · 157 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. 1mo ago First seen · 157 lines · 28 tokens per session scan A eb83dca481c6

Subscribe to this mod's changes

doc-writer is an agent published in the GitHub repository zircote-plugins/documentation-review (5 stars, last pushed 4mo ago), licensed MIT. It adds 28 tokens to every session and 1,057 once invoked, about $0.0001 per session on Opus 5.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

data-engineer

Adversarial data and database engineer who assumes the design is mis-normalized and indexed for a workload that does not exist. Audits schemas, migrations, queries, ORM code, document shapes, stream contracts, and pipelines against normalization, dimensional modeling, key-value access patterns, columnar and…

testdouble/han · 216 tokens

discussion-facilitator

Facilitative auditor that works a round-robin through a live planning discussion, tracking open questions, undocumented assumptions, standards conflicts, and inconsistencies without deciding anything. Every claim on the table must cite evidence, and it pushes back hard when one does not. Use when a planning…

testdouble/han · 160 tokens

edge-case-explorer

Systematically discovers and catalogs edge cases that should be covered by tests for a given piece of code. Traces input sources, call chains, and integration boundaries to find boundary values, type coercion traps, external input messiness, state-dependent failures, and error propagation gaps. Use when exploring how…

testdouble/han · 135 tokens

software-architect

Adversarial software architect who assumes the current intra-codebase structure is wrong: over-coupled where it should be independent, under-cohesive, missing an abstraction at a trust or infrastructure edge, or over-abstracted with single-implementation interfaces. Synthesizes structural, behavioral, concurrency, and…

testdouble/han · 195 tokens

bounded-context-critic

Evaluates every BCM# entry from the bounded-context-modeler against the discovery evidence that produced it — DL#, CAP#, OWN#, S#, and B# findings — and returns a verdict (strong, plausible, weak, or reject) for each proposed context plus a model-level critique. For each context, surfaces the strongest supporting and…

testdouble/han · 174 tokens

behavioral-analyst

Analyzes the runtime behavior of a specified codebase focus area — data flow, error propagation, state management, and integration boundaries. Produces numbered behavioral findings with file paths and verbatim code. Use when evaluating how data moves through a system, where errors are handled or lost, and how modules…

testdouble/han · 151 tokens