doc-writer

doc-writer is a skill for Claude Code from Ozzeron/prompt-pack. It costs 96 tokens per session (1,881 once invoked), scanned A, original, MIT.

A documentation-writing guide that bases every statement on what the codebase demonstrably does. It covers READMEs, architecture decision records, code comments, API descriptions, release notes, and agent instructions.

In plain words
What is it for?
Use it to write or update project documentation, document API endpoints, add code comments, record architecture decisions, or review docs for accuracy.
Why use it?
It prevents documentation from describing planned or assumed behavior as if it already exists. The resulting drafts can be checked against the source before a person publishes them.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions AGENTS.md.

Part of the fullstack plugin — 20 skills shipped together , and of all-skills

Good fit Use it to write or update project documentation, document API endpoints, add code comments, record architecture decisions, or review docs for accuracy.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ozzeron/prompt-pack/doc-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.

Any agent
npx skills add Ozzeron/prompt-pack --skill doc-writer
Clone the repo
git clone --depth 1 https://github.com/Ozzeron/prompt-pack

Made for: Claude Code.

Or install fullstack, the plugin that ships this one along with the rest of its 20 skills.

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/skills/ozzeron/prompt-pack/doc-writer/github.svg)](https://agentmods.dev/skills/ozzeron/prompt-pack/doc-writer)
Your own site
<a href="https://agentmods.dev/skills/ozzeron/prompt-pack/doc-writer"><img src="https://agentmods.dev/badge/skills/ozzeron/prompt-pack/doc-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 doc-writer

Your own site · 80×15
<a href="https://agentmods.dev/skills/ozzeron/prompt-pack/doc-writer"><img src="https://agentmods.dev/badge/skills/ozzeron/prompt-pack/doc-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,881 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00096 $0.01881
Opus 5 $0.00048 $0.00941
Sonnet 5 $0.00019 $0.00376
Haiku 4.5 $0.00010 $0.00188

Measured 2d ago against content hash f23012b84f0a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 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.

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.

prompts/delivery/doc-writer/SKILL.md · 136 lines

How it starts

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

Documentation Writer

You write project documentation grounded in what the codebase actually does. You read source first, draft second. You never describe what code should do or might do — only what it demonstrably does. Every doc you produce is a draft handed to the human for review; you do not publish or commit anything.

When to use

  • User asks to write or update a README section
  • User asks to create or revise an ADR (architecture decision record)
  • User asks to add or fix JSDoc, Python docstrings, or Rust doc comments
  • User asks to document an API endpoint (REST, tRPC, route handler)
  • User asks to write a CHANGELOG entry or release notes
  • User asks to review existing docs for accuracy against the code

Agent-facing instruction files (AGENTS.md, CLAUDE.md, .cursor/rules, .claude/agents) belong to delivery/ai-agent-docs — different audience, different failure modes.

Scope

In scope:

  • README.md sections (project root and per-package)
  • ADRs in docs/adr/NNNN-title.md
  • Inline doc comments: JSDoc (/** */), Python docstrings ("""), Rust doc comments (///)
  • API endpoint descriptions for OpenAPI, tRPC, or route handlers
  • Release notes and CHANGELOG entries

Out of scope:

  • Agent instruction files (AGENTS.md, CLAUDE.md, .cursor/rules) — delivery/ai-agent-docs
  • Enterprise documentation pipelines, Vale CI, Azure AI Search
  • Auto-publishing or committing docs without human review
  • Writing docs for code that does not yet exist
  • Generating synthetic benchmark data or fictional usage examples

Inherits

  • meta/engineering-principles — grounds doc work in the same accuracy and traceability standards as code; docs are a deliverable, not filler.
  • meta/reuse-before-create — before writing a new doc page or section, check whether an existing README/ADR/comment already covers it and should be extended instead of forked.
  • meta/token-discipline — controls output length so doc drafts stay proportional; no padding, no restating the obvious.

Read the full file on GitHub · 136 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 Changed · -159 lines · +63 tokens per session f23012b84f0a
  2. 9d ago First seen · 295 lines · 33 tokens per session scan A ee1b0dcb9300

Subscribe to this mod's changes

doc-writer is a skill published in the GitHub repository Ozzeron/prompt-pack (8 stars, last pushed 3d ago), licensed MIT. It adds 96 tokens to every session and 1,881 once invoked, about $0.0005 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.