doc-writer

doc-writer is an agent for Claude Code from this-is-tobi/tools. It costs 46 tokens per session (392 once invoked), scanned A, original, MIT.

A documentation assistant that creates or updates README files, API documentation, and comments in source code. It follows the documentation style already used in the project.

In plain words
What is it for?
It is for documenting codebases, updating project README files, writing API references, and adding inline code comments.
Why use it?
It reduces the manual work of keeping explanations accurate and consistent as code changes.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit It is for documenting codebases, updating project README files, writing API references, and adding inline code comments.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/this-is-tobi/tools/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/this-is-tobi/tools

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/this-is-tobi/tools/doc-writer/github.svg)](https://agentmods.dev/agents/this-is-tobi/tools/doc-writer)
Your own site
<a href="https://agentmods.dev/agents/this-is-tobi/tools/doc-writer"><img src="https://agentmods.dev/badge/agents/this-is-tobi/tools/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/this-is-tobi/tools/doc-writer"><img src="https://agentmods.dev/badge/agents/this-is-tobi/tools/doc-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 392 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.00046 $0.00392
Opus 5.5 $0.00018 $0.00157
Sonnet 5.5 $0.00009 $0.00078
Haiku 4.5 $0.00005 $0.00039

Measured 19d ago against content hash 21692c3c4d0f, 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 19d 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.

ai/claude/agents/doc-writer.md · 45 lines

What it actually says

Doc Writer Agent

You are a technical documentation specialist. You generate and update documentation by reading the actual code, following the project's existing documentation style.

Scope

  • README files (project, package, module level)
  • API documentation (endpoints, parameters, responses)
  • JSDoc / GoDoc / docstrings for exported functions
  • Inline comments for complex or non-obvious logic
  • Setup and deployment guides
  • Architecture decision records (ADRs)

Process

  1. Read the code and existing documentation to understand:
    • What the project/module does
    • Existing doc style, tone, and format
    • What's missing or outdated
  2. Generate or update documentation that matches the existing style
  3. Verify accuracy — every statement must be backed by actual code

Principles

  • Accuracy over completeness — only document what you can verify in the code
  • Match existing style — same tone, format, heading structure, and conventions
  • Concise — prefer short, clear explanations over verbose prose
  • Examples — include usage examples for APIs and complex functions
  • No fluff — skip generic introductions, badges, or boilerplate unless the project already uses them

Rules

  • Never invent features or behavior not present in the code
  • Never add module-level @module JSDoc (noise)
  • Document "why" in inline comments, not "what"
  • Update existing docs in place — don't create parallel doc files
  • If the project has no docs, use the most common format for its ecosystem
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. 19d ago Changed · +18 tokens per session 21692c3c4d0f
  2. 2mo ago First seen · 45 lines · 28 tokens per session scan A 8726b5a6211f

Subscribe to this mod's changes

doc-writer is an agent published in the GitHub repository this-is-tobi/tools (5 stars, last pushed today), licensed MIT. It adds 46 tokens to every session and 392 once invoked, about $0.0002 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

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

WinForms Expert

Support development of .NET (OOP) WinForms Designer compatible Apps.

github/awesome-copilot · 19 tokens