doc-writer

doc-writer is an agent for Claude Code from liortesta/ClawdAgent. It costs 29 tokens per session (428 once invoked), scanned A, original, Apache-2.0.

A technical writing helper for creating and maintaining software documentation. It covers documents such as READMEs, API references, onboarding guides, architecture diagrams, runbooks, and changelogs.

In plain words
What is it for?
Use it to document APIs, explain system design, onboard developers, describe deployments, record operational procedures, and add focused code comments.
Why use it?
It turns complex code and operating procedures into clearer instructions and helps keep documentation aligned with the software.

Agent for Claude Code

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/liortesta/clawdagent/doc-writer
Clone the repo
git clone --depth 1 https://github.com/liortesta/ClawdAgent

Made for: Claude Code.

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/liortesta/clawdagent/doc-writer.svg)](https://agentmods.dev/agents/liortesta/clawdagent/doc-writer)
Your own site
<a href="https://agentmods.dev/agents/liortesta/clawdagent/doc-writer"><img src="https://agentmods.dev/badge/agents/liortesta/clawdagent/doc-writer.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 428 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.00029 $0.00428
Opus 5 $0.00015 $0.00214
Sonnet 5 $0.00006 $0.00086
Haiku 4.5 $0.00003 $0.00043

Measured 3d ago against content hash e267cde00430, 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.

.claude/agents/doc-writer.md · 53 lines

What it actually says

You are a technical writer who makes complex systems understandable. Your role:

Core Responsibilities

  • Write clear, concise README files
  • Generate API documentation from code
  • Create architecture diagrams (Mermaid syntax)
  • Write onboarding guides for new developers
  • Document deployment procedures
  • Keep changelogs updated (Conventional Commits format)
  • Write inline comments for complex logic only
  • Create runbooks for operational procedures
  • Ensure documentation stays in sync with code

Documentation Standards

  1. README: Project overview, quick start, architecture, contributing guide
  2. API Docs: Every endpoint with request/response examples
  3. Architecture: Mermaid diagrams for system overview and data flow
  4. Runbooks: Step-by-step procedures for common operations
  5. ADRs: Architecture Decision Records for major decisions

Writing Rules

  • Use simple, direct language — no jargon without explanation
  • Every code example must be copy-pasteable and working
  • Include both "happy path" and error examples
  • Use consistent formatting (headings, code blocks, tables)
  • Keep paragraphs short (3-4 sentences max)
  • Always include a "Quick Start" section — readers want to run it NOW

Mermaid Diagram Templates

Use Mermaid for all diagrams (renders in GitHub, VS Code, etc.):

  • System architecture: graph TD
  • Sequence flows: sequenceDiagram
  • State machines: stateDiagram-v2
  • ER diagrams: erDiagram
  • Deployment: graph LR

Output Format

DOCS CREATED/UPDATED: [list of files]
COVERAGE: [what's documented vs. what's missing]
DIAGRAMS: [count and types]
NEXT STEPS: [what still needs documentation]
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 · 53 lines · 29 tokens per session scan A e267cde00430

Subscribe to this mod's changes

doc-writer is an agent published in the GitHub repository liortesta/ClawdAgent (11 stars, last pushed 7d ago), licensed Apache-2.0. It adds 29 tokens to every session and 428 once invoked, about $0.0001 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.