docs-create

docs-create is a command for Claude Code from acaprino/daodan. It costs 113 tokens per session (2,361 once invoked), scanned A, original, MIT.

A command that reads a codebase and creates technical documentation, such as API, architecture, data-model, and dependency guides.

In plain words
What is it for?
Use it to create documentation for a whole project, a folder, a file, or a named module.
Why use it?
It reduces the risk of documenting how the project is assumed to work instead of how the source code actually works.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the codebase-mapper plugin — 1 skill, 5 commands, 1 agent shipped together

Good fit Use it to create documentation for a whole project, a folder, a file, or a named module.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add acaprino/daodan
Claude Code
/plugin install codebase-mapper

Made for: Claude Code.

Or install codebase-mapper, the plugin that ships this one along with the rest of its 1 skill, 5 commands, 1 agent.

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-create

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/acaprino/daodan/docs-create"><img src="https://agentmods.dev/badge/commands/acaprino/daodan/docs-create.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 113 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,361 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.00113 $0.02361
Opus 5.5 $0.00045 $0.00944
Sonnet 5.5 $0.00023 $0.00472
Haiku 4.5 $0.00011 $0.00236

Measured 16d ago against content hash 8b83af6b7af1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docs-create 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 16d 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/commands/docs-create.md · 209 lines

How it starts

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

Create Documentation

CRITICAL RULES

  1. Analyze code before writing. Read the actual source code first. Never write documentation based on assumptions.
  2. Bottom-up approach. Start from code structure, then build documentation that reflects reality.
  3. Confirm scope with user. Present what will be documented before generating.
  4. Never enter plan mode. Execute immediately.

Step 1: Analyze Target

Determine what to document from $ARGUMENTS:

  • If a file/directory path: scan the code structure
  • If a class/module name: find it in the codebase
  • If no target: scan the entire project
# Discover project structure
find [target] -type f \( -name "*.py" -o -name "*.ts" -o -name "*.js" -o -name "*.rs" -o -name "*.go" -o -name "*.java" \) | head -50

Identify:

  • Language & framework (from package.json, Cargo.toml, pyproject.toml, etc.)
  • Key modules (entry points, API routes, core business logic)
  • Existing docs (README, docstrings, JSDoc, rustdoc, etc.)
  • Public API surface (exports, endpoints, CLI commands)

Step 2: Confirm Documentation Plan

Present the plan and ask for approval. The documentation dimensions are grouped into 5 fasce. The user can pick one dimension, several (combined into a single artifact with sections), an entire fascia, or --full for everything.

Documentation plan for: [target]

Language: [detected]
Framework: [detected]

Files to document:
- [file1] -- [type: API endpoint / class / module / ORM model / config / etc.]
- [file2] -- [type]
- ...

Documentation dimensions (pick one or more; can also pick a whole fascia):

SURFACE (what the system exposes)
- [ ] interfaces       -- HTTP/REST, gRPC, GraphQL, WebSocket, CLI, library exports, events emitted (Kafka topics, RabbitMQ exchanges, webhooks emitted)
- [ ] config           -- env vars, config files, feature flags, secrets references, runtime profiles
- [ ] integrations     -- webhooks consumed, third-party APIs called, message queues, scheduled jobs/cron

INTERNALS (what the system is)
- [ ] architecture     -- layers, bounded contexts, component boundaries, design decisions (ADR-style)
- [ ] data-model       -- entities, DB schema, DTO/Pydantic/Zod/dataclass, ER diagram, constraints, indexes, migrations
- [ ] data-flows       -- request lifecycle, data pipelines, event flows, sequence diagrams, sagas
- [ ] state-machines   -- FSMs, lifecycle of domain objects, allowed transitions
- [ ] dependencies     -- internal module-to-module call graph + external libraries (with versions) + external services / SaaS
- [ ] concurrency      -- workers, queues, schedulers, async tasks, locking, idempotency
- [ ] glossary         -- ubiquitous language, domain terminology, business rules

OPERATIONS (how the system runs)
- [ ] auth             -- authn/authz flows, RBAC/ABAC, secrets management, PII handling, threat surface
- [ ] errors           -- error catalog, retry policy, circuit breaker, fallback, idempotency boundaries
- [ ] observability    -- logs emitted, metrics exposed, traces, alerts, referenced dashboards
- [ ] deployment       -- Docker/K8s/Terraform, CI/CD, environments, DNS/networking, operational runbooks

PROCESS (how the system evolves)
- [ ] build-release    -- versioning, changelog, release cadence, hot-fix process
- [ ] testing          -- test pyramid, fixtures, mocks, coverage gaps
- [ ] migrations       -- upgrade paths, breaking changes, deprecation cycle

CROSS-CUTTING
- [ ] performance      -- SLA/SLO, latency, throughput, known bottlenecks
- [ ] compliance       -- GDPR/PCI/HIPAA/SOC2 controls visible in code

TARGETED
- [ ] component        -- deep dive on a single module/class (zoom)

FULL
- [ ] full             -- all of the above, indexed with table of contents

Output: [format] at [output path]

1. Proceed with this plan
2. Adjust scope -- I'll tell you what to change
3. Cancel

Read the full file on GitHub · 209 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. 16d ago Changed 8b83af6b7af1
  2. 1mo ago First seen · 209 lines · 113 tokens per session scan A 479804656579

Subscribe to this mod's changes

docs-create is a command published in the GitHub repository acaprino/daodan (9 stars, last pushed today), licensed MIT. It adds 113 tokens to every session and 2,361 once invoked, about $0.0005 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.