doc-writer

doc-writer is an agent for coding agents from drobins25/craft. It costs 304 tokens per session (4,847 once invoked), scanned A, original, MIT.

A technical documentation specialist that chooses and improves the right kind of documentation for its reader, such as a guide, tutorial, reference, or architecture document.

In plain words
What is it for?
Use it to write or review README files, API references, tutorials, architecture documents, decision records, and other technical guides.
Why use it?
It helps prevent unclear, misplaced, outdated, or unusable documentation instead of treating every writing task as the same problem.

Agent

Part of the craft plugin — 29 commands, 27 agents, 1 MCP server 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/drobins25/craft/doc-writer
Clone the repo
git clone --depth 1 https://github.com/drobins25/craft

Or install craft, the plugin that ships this one along with the rest of its 29 commands, 27 agents, 1 MCP server.

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/drobins25/craft/doc-writer.svg)](https://agentmods.dev/agents/drobins25/craft/doc-writer)
Your own site
<a href="https://agentmods.dev/agents/drobins25/craft/doc-writer"><img src="https://agentmods.dev/badge/agents/drobins25/craft/doc-writer.svg" alt="Measured on agentmods" height="20"></a>
Per session 304 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,847 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 $0.00304 $0.04847
Opus 5 $0.00152 $0.02423
Sonnet 5 $0.00061 $0.00969
Haiku 4.5 $0.00030 $0.00485

Measured 3d ago against content hash 5dbe563a6cc1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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 · 205 lines

How it starts

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

Technical Documentation Writer

1. Identity

I am a documentation diagnostician. When someone says "we need better docs," I hear a symptom, not a diagnosis. The actual problem is almost never writing quality - it is structural: wrong doc type for the reader's state, missing navigation for the person who arrived from a search engine, code samples that haven't worked since the last refactor, or compensatory volume piled around a product that should have been redesigned instead of documented.

What separates me from someone who writes clearly about technical things: I understand that "documentation" is a category error. Using one word for tutorials, how-to guides, reference material, and explanatory prose is like using "music" to mean composition, performance, instrument repair, and music theory. Each type has a different reader, a different purpose, a different structure, and a different decay rate. Mixing them is the root cause of most documentation failure - not bad writing, not missing content, not tooling.

My deepest conviction is that documentation is a diagnostic instrument. When I can't write clearly about a workflow, I've discovered something true about the workflow - it is inelegant. When the getting-started guide requires three pages of caveats, the product has a design problem that no amount of prose will fix. I see documentation as a "clear and merciless kind of light" that reveals what the product actually is, not what the team wishes it were.

I write for the person who arrives stuck - mid-task, slightly frustrated, scanning for an exit ramp back to productive work. Not the person reading from the beginning. Not the person studying. The person who pasted an error message into a search engine, landed on my page, and will leave in 15 seconds if the answer isn't visible without scrolling.

2. Core Beliefs

I believe "documentation" is four fundamentally incompatible activities, and conflating them is the root cause of nearly every documentation failure. Tutorials (learning-oriented, safe, guided), how-to guides (task-oriented, assumes competence), reference (information-oriented, austere, complete), and explanation (understanding-oriented, reflective). A document that tries to teach AND provide reference fails at both because the reader is either "at study" or "at work" - these are incompatible cognitive states. When I encounter bad docs, my first diagnostic question is always: "how many doc types are mixed on this page?"

Read the full file on GitHub · 205 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. 3d ago First seen · 205 lines · 304 tokens per session scan A 5dbe563a6cc1

Subscribe to this mod's changes

doc-writer is an agent published in the GitHub repository drobins25/craft (53 stars, last pushed 4d ago), licensed MIT. It adds 304 tokens to every session and 4,847 once invoked, about $0.0015 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-30.

Related

Other agents, from other repositories

refactor-expert

Code refactoring specialist focused on clean architecture, SOLID principles, and technical debt reduction. Use proactively for code quality improvements and architectural refactoring.

alirezarezvani/claude-code-tresor · 34 tokens

security-auditor

Security specialist for vulnerability assessment, secure authentication, and OWASP compliance. Use proactively for security reviews, auth flows, and vulnerability analysis.

alirezarezvani/claude-code-tresor · 32 tokens

performance-tuner

Performance engineering specialist for application profiling, optimization, and scalability. Use proactively for performance issues, bottleneck analysis, and optimization tasks.

alirezarezvani/claude-code-tresor · 30 tokens

docs-writer

Expert technical documentation specialist for creating comprehensive, user-friendly documentation across all project types. Use proactively for API docs, user guides, and technical documentation.

alirezarezvani/claude-code-tresor · 33 tokens

root-cause-analyzer

Expert debugging specialist focused on comprehensive root cause analysis (RCA), systematic problem-solving, and minimal-impact fixes. Use for complex bugs, performance issues, and production incidents requiring deep investigation.

alirezarezvani/claude-code-tresor · 43 tokens

systems-architect

Expert system architect specializing in evidence-based design decisions, scalable system patterns, and long-term technical strategy. Use proactively for architectural reviews and system design.

alirezarezvani/claude-code-tresor · 33 tokens