docs

docs is an agent for Claude Code from laurigates/claude-plugins. It costs 22 tokens per session (1,313 once invoked), scanned A, original, MIT.

A code-analysis assistant that writes README files, API references, and explanations inside source files.

In plain words
What is it for?
Use it to document a codebase, describe its API, or add inline comments based on the code's structure.
Why use it?
It reduces the manual work of explaining existing code and helps keep basic documentation alongside the code.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions subagents; names the TodoWrite tool.

Part of the agents-plugin plugin — 1 skill, 13 agents shipped together

Good fit Use it to document a codebase, describe its API, or add inline comments based on the code's structure.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/laurigates/claude-plugins/docs
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/laurigates/claude-plugins

Made for: Claude Code.

Or install agents-plugin, the plugin that ships this one along with the rest of its 1 skill, 13 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

README.md
[![agentmods](https://agentmods.dev/badge/agents/laurigates/claude-plugins/docs/github.svg)](https://agentmods.dev/agents/laurigates/claude-plugins/docs)
Your own site
<a href="https://agentmods.dev/agents/laurigates/claude-plugins/docs"><img src="https://agentmods.dev/badge/agents/laurigates/claude-plugins/docs/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 docs

Your own site · 80×15
<a href="https://agentmods.dev/agents/laurigates/claude-plugins/docs"><img src="https://agentmods.dev/badge/agents/laurigates/claude-plugins/docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 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,313 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.00022 $0.01313
Opus 5.5 $0.00009 $0.00525
Sonnet 5.5 $0.00004 $0.00263
Haiku 4.5 $0.00002 $0.00131

Measured 1mo ago against content hash 7ecad57a4de2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docs 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 1mo 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.

agents-plugin/agents/docs.md · 159 lines

How it starts

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

Docs Agent

Generate documentation from code. Analyzes code structure and creates appropriate documentation.

Tool Selection

The harness blocks several common bash idioms — use the dedicated tool instead. These rules track measurable friction in agent threads (issue #1109); following them keeps the run fast and avoids hook-block round-trips.

Avoid Use instead
find . -name '*.ts' Glob(pattern="**/*.ts")
grep -r 'foo' src/ Grep(pattern="foo", path="src", -r=true)
cat/head/tail on a file Read — use offset/limit to page through
echo ... > file / cat > file Write(file_path=..., content=...)
git add . / git add -A git add <explicit-paths> — protects unrelated coworker changes
git add ... && git commit ... Two separate Bash calls — git's index.lock does not survive &&

Read before Edit/Write. The harness tracks read-state per agent thread. Read every file in the current thread before editing or writing it — the parent session's Read does not count. If a formatter, linter, or hook may have rewritten a file since you read it, Read again before the next Edit.

Scope

  • Input: Code to document, documentation type needed
  • Output: Written documentation files
  • Steps: 5-10, focused output

Checkpoint Discipline

Doc generation across multiple modules can exhaust context (issue #1390). If you sense the response is getting long — many reads, large generated files, multi-module coverage — commit work-in-progress before continuing:

  1. Stage what's done with explicit paths: git add <path1> <path2> (never -A or .)
  2. Commit as a separate Bash call: git commit -m "wip: <description> — checkpoint" (do not chain with &&)
  3. Continue with the next module

A checkpoint commit makes partial docs recoverable if context exhausts. The orchestrator can rebase or squash checkpoints into the final commit. Checkpoint after each module's docs land, not in the middle of generating a single file.

Read the full file on GitHub · 159 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. 1mo ago Changed 7ecad57a4de2
  2. 1mo ago First seen · 159 lines · 22 tokens per session scan A d44c074515f1

Subscribe to this mod's changes

docs is an agent published in the GitHub repository laurigates/claude-plugins (60 stars, last pushed yesterday), licensed MIT. It adds 22 tokens to every session and 1,313 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-30.

Related

Other agents, from other repositories

code-researcher

Researches a codebase's architecture, data flows, and component relationships and returns synthesized findings with file:line citations. Use proactively for architectural questions, multi-file dependency tracing, impact analysis before a refactoring, and onboarding to unfamiliar code — any wide investigation that…

shopwareLabs/ai-coding-tools · 86 tokens

dev-tooling-runner

Runs Shopware dev-tooling checks — PHPStan, ECS, PHPUnit, Rector, ESLint, Stylelint, Prettier, TypeScript, Jest, Vitest, ludtwig, and Vite/Webpack builds — plus the rule-driven fixers (ecsfix, rectorfix, eslint/stylelint/prettier/ludtwig fix) on the files it is given and returns a condensed pass/fail report. Use when…

shopwareLabs/ai-coding-tools · 141 tokens

theme-extractor

Analyzes interview transcripts to identify recurring themes and patterns.

animalzinc/claude-plugins · 14 tokens

guardrail-checker

Use this agent to verify that code changes follow development guardrails -- git safety, security practices, PR workflow, and coding standards. Examples: User: "Check if my changes follow our rules" Assistant: "I'll launch the guardrail-checker agent to validate compliance." User: "Audit this PR for best practice…

Sagargupta16/claude-skills · 89 tokens

doc-writer

Generate or update documentation from code changes - changelogs, API docs, migration guides. Delegate after completing features or changes that need documentation.

krzysztofsurdy/code-virtuoso · 32 tokens

backend-dev

Backend development agent for API implementation, data modeling, and testing. Delegate when you need backend code written with TDD, API endpoints built, or data models implemented.

krzysztofsurdy/code-virtuoso · 36 tokens