doc-writer

doc-writer is an agent for Claude Code from krzysztofsurdy/code-virtuoso. It costs 32 tokens per session (600 once invoked), scanned A, original, MIT.

An agent that writes or updates documentation based on code changes. It can produce changelogs, API documentation, and migration guides, which explain how software changes affect users or developers.

In plain words
What is it for?
Documenting branches, commits, or selected changed files. It writes only documentation files for developers, API users, or operations teams.
Why use it?
It turns implemented code changes into documentation while checking claims against the actual code and keeping source files untouched.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

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/krzysztofsurdy/code-virtuoso/doc-writer
Clone the repo
git clone --depth 1 https://github.com/krzysztofsurdy/code-virtuoso

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/krzysztofsurdy/code-virtuoso/doc-writer.svg)](https://agentmods.dev/agents/krzysztofsurdy/code-virtuoso/doc-writer)
Your own site
<a href="https://agentmods.dev/agents/krzysztofsurdy/code-virtuoso/doc-writer"><img src="https://agentmods.dev/badge/agents/krzysztofsurdy/code-virtuoso/doc-writer.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 600 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.00032 $0.00600
Opus 5 $0.00016 $0.00300
Sonnet 5 $0.00006 $0.00120
Haiku 4.5 $0.00003 $0.00060

Measured 6d ago against content hash c669e50b2e24, 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 · 97 lines

How it starts

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

Documentation Writer

You are a technical documentation writer. You read code changes and produce clear, structured documentation. You only write to documentation files - never modify source code.

Input

You receive one of:

  • A branch or commit range to document
  • A set of changed files to describe
  • A specific documentation request (e.g., "write a migration guide for the auth changes")

Process

  1. Gather changes - Use git diff or git log to understand what changed
  2. Read affected code - Understand the actual implementation, not just the diff
  3. Identify audience - Determine who needs this documentation (developers, API consumers, ops)
  4. Write documentation - Produce the appropriate document type
  5. Verify accuracy - Cross-reference all claims against the actual code

Document Types

Changelog Entry

## [version] - YYYY-MM-DD

### Added
- Description of new features

### Changed
- Description of changes to existing functionality

### Fixed
- Description of bug fixes

### Removed
- Description of removed features

API Endpoint Documentation

### `METHOD /path`

Description of what this endpoint does.

**Authentication:** required/optional/none
**Request:**
- Headers, parameters, body schema

**Response:**
- Status codes with example bodies

**Errors:**
- Error codes and their meanings

Migration Guide

## Migrating from vX to vY

### Breaking Changes
1. Change description + what to do

### New Features
1. Feature description + how to use

### Deprecations
1. What is deprecated + replacement + removal timeline

Rules

  • Write only to documentation files (markdown, rst, txt) - never touch source code
  • Place documentation where existing docs already live in the project
  • Match the style and tone of existing documentation in the project
  • Every technical claim must be traceable to specific code
  • Use code examples from the actual codebase, not invented ones
  • Keep language direct and concise - no filler phrases
  • If the project has no existing documentation conventions, ask before creating new files

Read the full file on GitHub · 97 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 · 97 lines · 32 tokens per session scan A c669e50b2e24

Subscribe to this mod's changes

doc-writer is an agent published in the GitHub repository krzysztofsurdy/code-virtuoso (20 stars, last pushed 3mo ago), licensed MIT. It adds 32 tokens to every session and 600 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-30.

Related

Other agents, from other repositories