docs-writer

docs-writer is an agent for Claude Code from sequenzia/agent-alchemy. It costs 37 tokens per session (1,747 once invoked), scanned A, original, MIT.

An agent that turns codebase analysis and review findings into Markdown documentation, such as API references, architecture guides, standalone pages, and change summaries.

In plain words
What is it for?
Use it to write documentation pages with examples, notes, tabs, code blocks, diagrams, and links that match the chosen Markdown format.
Why use it?
It helps produce accurate documentation from the source code while following either MkDocs or standard GitHub Markdown conventions.

Agent for Claude Code

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

Part of the agent-alchemy-dev-tools plugin — 9 skills, 4 agents shipped together

Good fit Use it to write documentation pages with examples, notes, tabs, code blocks, diagrams, and links that match the chosen Markdown format.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/sequenzia/agent-alchemy/docs-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/sequenzia/agent-alchemy

Made for: Claude Code.

Or install agent-alchemy-dev-tools, the plugin that ships this one along with the rest of its 9 skills, 4 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 docs-writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/sequenzia/agent-alchemy/docs-writer/github.svg)](https://agentmods.dev/agents/sequenzia/agent-alchemy/docs-writer)
Your own site
<a href="https://agentmods.dev/agents/sequenzia/agent-alchemy/docs-writer"><img src="https://agentmods.dev/badge/agents/sequenzia/agent-alchemy/docs-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 docs-writer

Your own site · 80×15
<a href="https://agentmods.dev/agents/sequenzia/agent-alchemy/docs-writer"><img src="https://agentmods.dev/badge/agents/sequenzia/agent-alchemy/docs-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 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,747 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00037 $0.01747
Opus 5.5 $0.00015 $0.00699
Sonnet 5.5 $0.00007 $0.00349
Haiku 4.5 $0.00004 $0.00175

Measured 1mo ago against content hash f8671b5445ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docs-writer scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

response = requests.get("/api/users")
claude/dev-tools/agents/docs-writer.md · 248 lines

How it starts

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

Documentation Writer Agent

You are a technical documentation specialist. Your job is to generate high-quality Markdown documentation from codebase analysis findings, in either MkDocs-flavored or standard GitHub-flavored format.

Your Mission

Given exploration findings, existing page content, and documentation context, you will:

  1. Generate complete documentation pages or files ready to write to disk
  2. Follow the specified output format conventions (MkDocs or Basic Markdown)
  3. Ensure accuracy by reading source code directly
  4. Produce clear, well-structured content with practical examples

Output Format Modes

Your prompt will specify one of two output formats. Default to MkDocs mode if no format is specified (backward compatibility).

MkDocs Mode (Output format: MkDocs)

Use Material for MkDocs extensions and conventions:

  • Admonitions (!!! note, !!! warning, etc.)
  • Tabbed content (=== "Tab Name")
  • Code block titles (```python title="path/to/file.py")
  • Mermaid diagrams (```mermaid)
  • Cross-reference with MkDocs relative paths: [Page](../path/to/page.md)

Basic Markdown Mode (Output format: Basic Markdown)

Standard GitHub-flavored Markdown only — no MkDocs-specific extensions:

  • Replace admonitions with blockquotes: > **Note:** content or > **Warning:** content
  • Replace tabbed content with separate labeled code blocks
  • Mermaid diagrams are still supported (GitHub renders natively)
  • Standard relative links: [File](./path/to/file.md)
  • No code block titles (use a comment or heading above the block instead)

Documentation Types

API Reference

  • Document public functions, classes, methods, and types
  • Include signatures, parameters, return types, and descriptions
  • Provide usage examples for each public API
  • Group by module or logical category

Architecture & Design

  • Explain system structure, component relationships, and data flow
  • Use Mermaid diagrams for visual architecture representation
  • Document design decisions and their rationale
  • Cover integration points and boundaries

Read the full file on GitHub · 248 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 · 248 lines · 37 tokens per session scan A f8671b5445ee

Subscribe to this mod's changes

docs-writer is an agent published in the GitHub repository sequenzia/agent-alchemy (45 stars, last pushed 4mo ago), licensed MIT. It adds 37 tokens to every session and 1,747 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). 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

agents-expert

Expert on creating and configuring custom Claude Code agents (subagents). Use PROACTIVELY when the user mentions creating an agent, custom agent, or subagent; when designing specialized agents for project tasks; when troubleshooting agent invocation, tools, or model config; or during /agents-generate. Knows the…

claude-world/director-mode-lite · 138 tokens

planner

Drafts the execution Plan (plan.md) AND emits task records for a SpecManager feature, grounded in the approved Architecture and the existing codebase. Plans MUST be organised into phases with Fibonacci-scored tasks ≤3.

joanseg/specmanager · 46 tokens

requirement-analyzer

Deep requirement analysis agent for the Self-Evolving Loop. Use when executing /evolving-loop Phase ANALYZE — starting a new loop session, when the user provides a new requirement or feature request, or when re-analyzing after a failed iteration. Extracts acceptance criteria, a complexity score, an implementation…

claude-world/director-mode-lite · 130 tokens

reviewer

Read-only spec-compliance reviewer. Given a parent-assembled spec slice (the phase's plan section + task titles/notes + the named Architecture sections) and the just-built diff, returns a structured pass/fail verdict on whether the implementation matches the spec. Never writes. Invoked by /specmanager-build after the…

joanseg/specmanager · 79 tokens

seo-assets

Evaluates asset and structured data SEO dimensions: Open Graph, JSON-LD, images, and performance.

greglas75/zuvo · 24 tokens

geo-schema-render

Evaluates schema graph connectivity, SSR rendering of structured data, and freshness signals for GEO readiness.

greglas75/zuvo · 23 tokens