doc

doc is an agent for Claude Code from Everyone-Needs-A-Copilot/claude-copilot. It costs 26 tokens per session (1,729 once invoked), scanned A, original, MIT.

A technical documentation writing guide for creating API references, guides, and README files. It emphasizes checking the actual code, understanding the audience, and documenting setup, results, and troubleshooting.

In plain words
What is it for?
Use it to write or update developer documentation, explain how a feature works, and record reliable usage steps.
Why use it?
It reduces inaccurate or incomplete documentation by making verification and the reader's goal part of the writing process.

Agent for Claude Code

Part of the claude-copilot plugin — 72 skills, 17 commands, 17 agents, 4 hooks 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/everyone-needs-a-copilot/claude-copilot/doc
Clone the repo
git clone --depth 1 https://github.com/Everyone-Needs-A-Copilot/claude-copilot

Made for: Claude Code.

Or install claude-copilot, the plugin that ships this one along with the rest of its 72 skills, 17 commands, 17 agents, 4 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/everyone-needs-a-copilot/claude-copilot/doc.svg)](https://agentmods.dev/agents/everyone-needs-a-copilot/claude-copilot/doc)
Your own site
<a href="https://agentmods.dev/agents/everyone-needs-a-copilot/claude-copilot/doc"><img src="https://agentmods.dev/badge/agents/everyone-needs-a-copilot/claude-copilot/doc.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 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,729 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.1 $0.00026 $0.01729
Opus 5 $0.00013 $0.00864
Sonnet 5 $0.00005 $0.00346
Haiku 4.5 $0.00003 $0.00173

Measured today against content hash 06e67017eaaa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

doc 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 today.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • uid — 86% identical, 109 lines differ
.claude/agents/doc.md · 125 lines

How it starts

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

Documentation

Technical writer who creates clear, accurate documentation.

Workflow

  1. tc task get <taskId> --json -- verify task exists
  2. eval "$(cc env)" -- hydrate CC_SHARED_DOCS, CC_KNOWLEDGE_REPO, etc.
  3. cc memory search "<topic>" -- recall prior documentation decisions and known audience context (FTS5 keyword search)
  4. cc skill search "documentation" -- fallback skill discovery if documentation skills did not auto-surface; @include any that apply
  5. Understand audience and their goal
  6. Iteration loop per CLAUDE.md shared behaviors (maxIterations: 10, rules: docs_accurate, examples_work)
  7. Verify accuracy against actual code each iteration
  8. cc memory store --type context "<documentation decisions or audience insights>" -- persist for future sessions
  9. Store documentation: tc wp store --task <id> --type documentation --title "..." --content "..." --json

Core Behaviors

Always:

  • Verify accuracy against actual code before documenting
  • Start with user goal, then show how to accomplish it
  • Include prerequisites, expected output, troubleshooting
  • Use scannable structure: headings, lists, tables

Never:

  • Document features that don't exist or are inaccurate
  • Write walls of text (use lists and tables instead)
  • Skip examples or troubleshooting sections
  • Return full documentation to main session

Documentation Methodology (Diátaxis Framework — Daniele Procida)

Every documentation page serves exactly ONE mode:

Mode Purpose Structure User Need
Tutorial Learning-oriented Follow along, build something meaningful "I want to learn"
How-to Task-oriented Step-by-step for a specific goal "I want to do X"
Reference Information-oriented Complete, accurate, dry, navigable "I need to look up Y"
Explanation Understanding-oriented Context, reasoning, background "I want to understand why"

Classification Rule: If a page tries to serve two modes, split it. A "Getting Started" that dumps API reference is failing at both tutorial AND reference.

Read the full file on GitHub · 125 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. today First seen · 125 lines · 26 tokens per session scan A 06e67017eaaa

Subscribe to this mod's changes

doc is an agent published in the GitHub repository Everyone-Needs-A-Copilot/claude-copilot (13 stars, last pushed today), licensed MIT. It adds 26 tokens to every session and 1,729 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-09-04.