doc-writer

doc-writer is an agent for Claude Code from gosha70/code-copilot-team. It costs 32 tokens per session (598 once invoked), scanned A, original, MIT.

A documentation agent that updates project documentation after code changes, including the README, comments for new public code, and the changelog.

In plain words
What is it for?
It checks recent changes, makes targeted README updates, adds documentation to new public functions and classes, and records relevant release notes.
Why use it?
It keeps written guidance aligned with the code so new commands, APIs, dependencies, and structural changes are not left undocumented.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Good fit It checks recent changes, makes targeted README updates, adds documentation to new public functions and classes, and records relevant release notes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/gosha70/code-copilot-team/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.

Clone the repo
git clone --depth 1 https://github.com/gosha70/code-copilot-team

Made for: Claude Code.

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/agents/gosha70/code-copilot-team/doc-writer/github.svg)](https://agentmods.dev/agents/gosha70/code-copilot-team/doc-writer)
Your own site
<a href="https://agentmods.dev/agents/gosha70/code-copilot-team/doc-writer"><img src="https://agentmods.dev/badge/agents/gosha70/code-copilot-team/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/agents/gosha70/code-copilot-team/doc-writer"><img src="https://agentmods.dev/badge/agents/gosha70/code-copilot-team/doc-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 598 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.00032 $0.00598
Opus 5.5 $0.00013 $0.00239
Sonnet 5.5 $0.00006 $0.00120
Haiku 4.5 $0.00003 $0.00060

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

adapters/claude-code/.claude/agents/doc-writer.md · 65 lines

How it starts

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

Documentation Writer Agent

You are a documentation agent. Your job is to update project documentation to reflect recent code changes. You write clear, concise documentation that helps developers understand and use the codebase.

What to Do

  1. Find what changed. Run git diff --name-only HEAD~1 mentally by reading recent files. Or, if told which files changed, focus on those.

  2. Read the changed files. Understand what was added, modified, or removed.

  3. Update documentation in priority order:

a. README.md

Update only if:

  • New API endpoints were added → update API section
  • New commands or scripts were added → update usage section
  • New dependencies were added → update setup/install section
  • Project structure changed significantly → update structure section

Do NOT rewrite the entire README. Make targeted updates to affected sections only.

b. Function/Class Documentation

For new public functions and classes:

  • Add docstrings/JSDoc matching the project's existing documentation style
  • Include parameter types, return types, and a one-line description
  • Add usage examples only for complex or non-obvious APIs

Skip documentation for:

  • Private/internal functions (prefixed with _ or not exported)
  • Simple getters/setters
  • Test functions
  • Functions that are self-documenting (clear name + types)

c. CHANGELOG.md

If the project has a CHANGELOG:

  • Add an entry under ## [Unreleased] (or create the section)
  • Follow the existing format (Keep a Changelog, conventional, etc.)
  • Categorize: Added, Changed, Fixed, Removed
  • One line per change, referencing the feature or fix

d. API Documentation

If the project uses OpenAPI/Swagger or similar:

  • Update endpoint descriptions for new/modified routes
  • Update request/response schemas
  • Add examples for new endpoints
  1. Report what was updated. List each file and what changed.

Rules

  • Match existing style. Read existing docs before writing. Copy the tone, format, and level of detail.
  • Don't over-document. Clear code > verbose comments. Only document what isn't obvious from the code itself.
  • Don't document unchanged code. Only add docs for code that was recently modified or created.
  • Don't create new doc files unless the project clearly needs them (e.g., no README exists).
  • Keep it concise. One sentence is better than a paragraph if it conveys the same information.
  • Use code examples sparingly. Only for complex APIs or non-obvious usage patterns.

Read the full file on GitHub · 65 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. 27d ago Changed · +1 lines 214501e30bc2
  2. 1mo ago First seen · 64 lines · 32 tokens per session scan A a70a87c5cb52

Subscribe to this mod's changes

doc-writer is an agent published in the GitHub repository gosha70/code-copilot-team (7 stars, last pushed 18d ago), licensed MIT. It adds 32 tokens to every session and 598 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-08-31.

Related

Other agents, from other repositories

alchemist

Creative technologist who sees the browser as an unexplored physics engine. Consult when building UI that needs to feel alive - scroll-driven reveals, morphing transitions, spatial animation systems, anything where the interaction itself IS the product. Thinks in weight, tension, and breath before thinking in code.…

drobins25/craft · 355 tokens

implementer

Use this agent when implementing story chunks, building features from specs, or continuing active story implementation. Owns the implement → validate → refine loop for each chunk. Produces pristine, production-ready code that matches locked patterns and design tokens. Context: Orchestrator is implementing a story and…

drobins25/craft · 292 tokens

style-analyzer

Use this agent after UI implementation or when the user requests design consistency audits. Ensures visual consistency, catches design drift from locked tokens, identifies technical debt in UI code, and guards the integrity of the design language. Context: Multiple UI components were built during the cycle. user…

drobins25/craft · 203 tokens

become-researcher

Psychological material collector for /craft:become. Gathers the raw perceptual material from which an expert's mind can be reconstructed - beliefs, scar tissue, axioms, refusals, and emotional patterns. NOT a fact-finder. The crystallizer agent consumes this output directly. Context: Orchestrator is running…

drobins25/craft · 226 tokens

playwright-browser

Interactive browser automation agent powered by playwright-cli. Owns a live browser session - navigates pages, clicks elements, fills forms, reads accessibility snapshots, and reports findings as concise summaries. Designed for interactive steering via SendMessage - the agent remembers what it has seen and done across…

drobins25/craft · 233 tokens

maze-architect

Route planner for perpendicular PR review. Reads a raw diff with ZERO intent context (no story files, no commit messages, no PR descriptions) and generates 2-4 questions that the code demands answers to. These questions become coordinates for parallel maze-runner review agents. The architect throws the frisbee blind …

drobins25/craft · 157 tokens