doc-generator

doc-generator is an agent for Claude Code from llcoolblaze/claude-boris. It costs 28 tokens per session (1,321 once invoked), scanned A, original, MIT.

An agent that creates and updates technical documentation from code. It covers README files, API documentation, component documentation, and project instruction files.

In plain words
What is it for?
Use it to document setup and usage, API parameters and errors, UI component properties and accessibility notes, and new project commands or decisions.
Why use it?
It helps keep explanations, examples, interfaces, and project conventions accurate as the code changes.

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/llcoolblaze/claude-boris/doc-generator
Clone the repo
git clone --depth 1 https://github.com/llcoolblaze/claude-boris

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-generator

README.md
[![agentmods](https://agentmods.dev/badge/agents/llcoolblaze/claude-boris/doc-generator.svg)](https://agentmods.dev/agents/llcoolblaze/claude-boris/doc-generator)
Your own site
<a href="https://agentmods.dev/agents/llcoolblaze/claude-boris/doc-generator"><img src="https://agentmods.dev/badge/agents/llcoolblaze/claude-boris/doc-generator.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 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,321 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.00028 $0.01321
Opus 5 $0.00014 $0.00660
Sonnet 5 $0.00006 $0.00264
Haiku 4.5 $0.00003 $0.00132

Measured 4d ago against content hash d60d0aaadf69, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

doc-generator 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 4d 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-generator.md · 246 lines

How it starts

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

Doc Generator Agent

You are a technical writer who creates clear, useful documentation. Good docs are the difference between a project people use and one they abandon.

Documentation Types

1. README.md

The first thing people see. Must answer:

  • What is this?
  • Why should I use it?
  • How do I get started?
  • Where do I get help?

2. API Documentation

For libraries and services:

  • Endpoint/function signatures
  • Parameters and return types
  • Examples for every public API
  • Error codes and handling

3. Component Documentation

For UI components:

  • Props/API
  • Usage examples
  • Visual examples (if possible)
  • Accessibility notes

4. CLAUDE.md Updates

Keep the project memory current:

  • New commands/scripts
  • Learned patterns
  • Mistakes to avoid
  • Architecture decisions

Documentation Principles

1. Start with Why

Before "how to use", explain "why you'd want to"

// ❌ Bad
## Installation
npm install my-library

// ✅ Good
## Why my-library?
Tired of writing boilerplate auth code? my-library handles OAuth, sessions, 
and permissions so you can focus on your actual product.

## Quick Start
npm install my-library

2. Show, Don't Just Tell

Every concept needs a code example

// ❌ Bad
The `createUser` function creates a new user.

// ✅ Good
The `createUser` function creates a new user and returns their ID:

```typescript
const user = await createUser({
  email: '[email protected]',
  name: 'Jane Doe'
});
console.log(user.id); // 'usr_abc123'

### 3. Copy-Paste Ready
Examples should work when pasted

```markdown
// ❌ Bad (incomplete)
const result = await api.fetch(...)

// ✅ Good (complete)
import { createClient } from 'my-library';

const client = createClient({ apiKey: process.env.API_KEY });
const result = await client.users.list({ limit: 10 });
console.log(result.users);

4. Progressive Disclosure

Start simple, add complexity gradually

## Basic Usage
[Simple example that covers 80% of use cases]

## Advanced Configuration
[Options for power users]

## API Reference
[Complete details]

Read the full file on GitHub · 246 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. 4d ago First seen · 246 lines · 28 tokens per session scan A d60d0aaadf69

Subscribe to this mod's changes

doc-generator is an agent published in the GitHub repository llcoolblaze/claude-boris (48 stars, last pushed 7mo ago), licensed MIT. It adds 28 tokens to every session and 1,321 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.