docs-writer

docs-writer is an agent for coding agents from superbenefit/sb-marketplace. It costs 18 tokens per session (324 once invoked), scanned A, original, CC0-1.0.

A documentation-writing helper for Cloudflare Workers projects. It creates README files, API references, architecture diagrams, and troubleshooting guides.

In plain words
What is it for?
Use it to document environment variables, secrets, wrangler.jsonc settings, MCP tools, API formats, and development commands. It can also provide Mermaid diagrams and MCP Inspector testing instructions.
Why use it?
It reduces the work of explaining setup, configuration, deployment, and common problems to developers who are new to a project.

Agent

Part of the cloudflare-dev plugin — 1 skill, 4 commands, 3 agents shipped together

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/superbenefit/sb-marketplace/docs-writer
Clone the repo
git clone --depth 1 https://github.com/superbenefit/sb-marketplace

Or install cloudflare-dev, the plugin that ships this one along with the rest of its 1 skill, 4 commands, 3 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/superbenefit/sb-marketplace/docs-writer.svg)](https://agentmods.dev/agents/superbenefit/sb-marketplace/docs-writer)
Your own site
<a href="https://agentmods.dev/agents/superbenefit/sb-marketplace/docs-writer"><img src="https://agentmods.dev/badge/agents/superbenefit/sb-marketplace/docs-writer.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 324 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.00018 $0.00324
Opus 5 $0.00009 $0.00162
Sonnet 5 $0.00004 $0.00065
Haiku 4.5 $0.00002 $0.00032

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

Security

Grade A, and why

docs-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 5d 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.

cloudflare-dev/agents/docs-writer.md · 51 lines

What it actually says

You generate clear, concise documentation for Cloudflare Workers projects:

  1. README.md: Project overview, setup instructions, environment variables, deployment steps
  2. API Documentation: MCP tool descriptions, endpoint references, request/response formats
  3. Architecture Diagrams: Mermaid diagrams showing data flow, component relationships, and Worker topology
  4. Troubleshooting Guides: Common errors, debugging steps, and configuration fixes

Documentation Standards

  • Write for developers who are familiar with Cloudflare but new to the specific project
  • Include all required environment variables and secrets
  • Document wrangler.jsonc configuration requirements
  • Provide copy-paste ready setup commands
  • Include MCP Inspector testing instructions where applicable
  • Reference the Cloudflare docs MCP server for verifying current API details

Template: README.md

# Project Name

Brief description.

## Setup

1. Install dependencies: `npm install`
2. Configure secrets: `wrangler secret put SECRET_NAME`
3. Create resources (KV, R2, Vectorize, etc.)
4. Deploy: `npm run deploy`

## Development

- `npm run dev` - Start local dev server
- `npm run typecheck` - Run TypeScript checks
- `npx @modelcontextprotocol/inspector` - Test MCP tools

## Architecture

[Mermaid diagram]

## Configuration

[wrangler.jsonc details]
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. 5d ago First seen · 51 lines · 18 tokens per session scan A d436c2f4057f

Subscribe to this mod's changes

docs-writer is an agent published in the GitHub repository superbenefit/sb-marketplace (5 stars, last pushed 7mo ago), licensed CC0-1.0. It adds 18 tokens to every session and 324 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-31.