claude-copilot: Agent for Claude Code

.claude/agents/doc.md

doc is an agent for Claude Code from Everyone-Needs-A-Copilot/claude-copilot. It costs 26 tokens per session (1,473 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

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

This is Everyone-Needs-A-Copilot/claude-copilot's own configuration. It tells Claude Code how to work on claude-copilot itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-copilot configures →

Part of the claude-copilot plugin — 73 skills, 18 commands, 16 agents, 6 hooks shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to Everyone-Needs-A-Copilot/claude-copilot. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Everyone-Needs-A-Copilot/claude-copilot/main/.claude/agents/doc.md
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 73 skills, 18 commands, 16 agents, 6 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/github.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/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

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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,473 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.00026 $0.01473
Opus 5.5 $0.00010 $0.00589
Sonnet 5.5 $0.00005 $0.00295
Haiku 4.5 $0.00003 $0.00147

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

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

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

How it starts

The opening of the file, as written. The whole thing — 123 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.

Read/apply .claude/agents/_shared/work-lifecycle.md once per task.

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. Update canonical records; memory links only.
  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 · 123 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. 6d ago Changed b93cb8dec50a
  2. 7d ago Changed · +2 lines 0b20c168410f
  3. 15d ago Changed cf3c43fc5cea
  4. 1mo ago Changed · -4 lines 89cc049b25a5
  5. 1mo ago 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 (14 stars, last pushed yesterday), licensed MIT. It adds 26 tokens to every session and 1,473 once invoked, about $0.0001 per session on Opus 5.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.

Related

Other agents, from other repositories