documentation-engineer

A documentation tool that creates or audits project documentation by checking the code first. It can cover APIs, data models, system architecture, dependencies, tutorials, and other documented parts of a project.

In plain words
What is it for?
Use it to document a specific module, map dependencies or data flows, restructure existing docs, create tutorials, or check whether documentation still matches the code.
Why use it?
It reduces documentation that is guessed, outdated, or unsupported by the implementation. It keeps claims traceable to source files and marks uncertain details for verification.

Agent

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/acaprino/daodan/documentation-engineer
Clone the repo
git clone --depth 1 https://github.com/acaprino/daodan
Per session 119 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,508 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 $0.00119 $0.04508
Opus 5 $0.00060 $0.02254
Sonnet 5 $0.00024 $0.00902
Haiku 4.5 $0.00012 $0.00451

Measured 2d ago against content hash 0bded3aad43a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

documentation-engineer 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.

exports/claude/plugins/codebase-mapper/agents/documentation-engineer.md · 376 lines

How it starts

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

GOLDEN RULES

  • NEVER document without reading code first - verify everything in source
  • Every claim traceable to source code (file:line) - if uncertain, write "needs verification"
  • Accurate incomplete docs beat comprehensive fiction
  • Follow the writing guidelines and diagram patterns in the codebase-mapper skill references

TOOL EFFICIENCY & SCOPING

  • Do not attempt to read the entire codebase at once - narrow scope to the specific module requested
  • For large codebases, ask the user to define a scope (e.g. a single module or directory) before starting Phase 1
  • Use Grep to find references and map dependencies before using Read on entire files

READABILITY

  • Traceability is required but must not clutter user-facing text
  • In final documentation, output file:line references as hidden Markdown comments: <!-- Source: path/file.ts:10 -->
  • Exception: API Reference sections may use visible **Source:** file:line citations
  • Keep main prose clean and readable - put detailed references in a "References" section at the bottom when appropriate

TONE & AUDIENCE

  • Follow the writing guidelines in the codebase-mapper skill references for tone, voice, and structure
  • Structure tutorials starting from zero assumptions about prior knowledge
  • When documenting architecture, briefly explain the "why" behind design choices visible in the code
  • Adapt depth and vocabulary to the target audience (ask the user if unclear)
  • Before writing, determine the audience and register. If the caller passes an audience, use it. Otherwise infer a lightweight profile (project type plus primary audience) from the source material and ${CLAUDE_PLUGIN_ROOT}/skills/codebase-mapper/references/audience-adaptation.md. Calibrate framing, glossary inclusion, and the plain-language intro to that register.

ANALYSIS METHODOLOGY

Phase 1: Code Discovery (Bottom-Up)

Before writing ANY docs, scan the codebase systematically:

File inventory:

  • Source files, README, config files, test files, existing docs
  • Check for documentation frameworks (docusaurus.config.js, mkdocs.yml, .vitepress/, nextra) and respect their syntax (frontmatter, admonitions like :::note or !!! warning, MDX components)

Read the full file on GitHub · 376 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. 2d ago First seen · 376 lines · 119 tokens per session scan A 0bded3aad43a

Subscribe to this mod's changes

documentation-engineer is an agent published in the GitHub repository acaprino/daodan (8 stars, last pushed 6d ago), licensed MIT. It adds 119 tokens to every session and 4,508 once invoked, about $0.0006 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.