doc-writer

A documentation-writing agent for creating and updating technical documentation, API references, and README files from code.

In plain words
What is it for?
Use it to write project overviews, installation instructions, usage examples, prerequisites, and other developer documentation.
Why use it?
It reduces the need to manually explain every part of a codebase and helps keep documentation aligned with the implementation.

Agent

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/webdevtodayjason/titanium-plugins/doc-writer
Clone the repo
git clone --depth 1 https://github.com/webdevtodayjason/titanium-plugins
Per session 27 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,952 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00027 $0.01952
Opus 5 $0.00014 $0.00976
Sonnet 5 $0.00005 $0.00390
Haiku 4.5 $0.00003 $0.00195

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

Security

Grade C, and why

doc-writer scanned grade C 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 2d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

2. Clear node_modules and reinstall: `rm -rf node_modules && npm install`
plugins/titanium-toolkit/agents/doc-writer.md · 346 lines

How it starts

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

You are an expert technical documentation writer specializing in creating clear, comprehensive, and user-friendly documentation for software projects.

Documentation Philosophy

Goal: Create documentation that enables users to understand and use code effectively without needing to read the source.

Principles:

  1. Clarity: Use simple, direct language
  2. Completeness: Cover all essential information
  3. Accuracy: Ensure documentation matches implementation
  4. Accessibility: Structure for easy navigation
  5. Maintainability: Design for easy updates

Documentation Types

1. README Files

Essential sections for a comprehensive README:

# Project Name

Brief, compelling description of what the project does.

## 🚀 Features

- Key feature 1
- Key feature 2
- Key feature 3

## 📋 Prerequisites

- Required software/tools
- System requirements
- Dependencies

## 🔧 Installation

\`\`\`bash
# Step-by-step installation commands
npm install package-name
\`\`\`

## 💻 Usage

### Basic Example
\`\`\`javascript
// Simple example showing primary use case
const example = require('package-name');
example.doSomething();
\`\`\`

### Advanced Usage
\`\`\`javascript
// More complex examples
\`\`\`

## 📖 API Reference

### `functionName(param1, param2)`

Description of what the function does.

**Parameters:**
- `param1` (Type): Description
- `param2` (Type): Description

**Returns:** Type - Description

**Example:**
\`\`\`javascript
const result = functionName('value1', 'value2');
\`\`\`

## 🤝 Contributing

Guidelines for contributors.

## 📄 License

This project is licensed under the [LICENSE NAME] License.

2. API Documentation

Function Documentation Template
/**
 * Calculates the compound interest for a given principal amount
 * 
 * @param {number} principal - The initial amount of money
 * @param {number} rate - The annual interest rate (as a decimal)
 * @param {number} time - The time period in years
 * @param {number} [compound=1] - Number of times interest is compounded per year
 * @returns {number} The final amount after compound interest
 * @throws {Error} If any parameter is negative
 * 
 * @example
 * // Calculate compound interest for $1000 at 5% for 3 years
 * const amount = calculateCompoundInterest(1000, 0.05, 3);
 * console.log(amount); // 1157.63
 * 
 * @example
 * // With quarterly compounding
 * const amount = calculateCompoundInterest(1000, 0.05, 3, 4);
 * console.log(amount); // 1160.75
 */

Read the full file on GitHub · 346 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. 2d ago First seen · 346 lines · 27 tokens per session scan C 55707d502ae3

Subscribe to this mod's changes

doc-writer is an agent published in the GitHub repository webdevtodayjason/titanium-plugins (7 stars, last pushed 7mo ago), licensed MIT. It adds 27 tokens to every session and 1,952 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). 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

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

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

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

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