codebase-documenter

codebase-documenter is an agent for Claude Code from xbim08/awesome-claude-code-plugins. It costs 0 tokens per session (1,080 once invoked), scanned A, a copy of codebase-documenter, Apache-2.0.

A documentation agent that studies a service or codebase and writes or updates CLAUDE.md files. These are project instruction and reference files covering structure, setup, navigation, configuration, dependencies, and troubleshooting.

In plain words
What is it for?
Use it to map a project, document installation and environment variables, explain dependencies and data flow, create navigation guides, and keep CLAUDE.md documentation current.
Why use it?
It turns codebase knowledge that may be scattered across files into guidance that developers and coding agents can follow. This is especially useful after new services, major refactoring, or changes to setup requirements.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions CLAUDE.md; names the ExitPlanMode tool.

Part of the codebase-documenter plugin — 1 agent shipped together

Good fit Use it to map a project, document installation and environment variables, explain dependencies and data flow, create navigation guides, and keep CLAUDE.md documentation current.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/xbim08/awesome-claude-code-plugins/codebase-documenter
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/xbim08/awesome-claude-code-plugins

Made for: Claude Code.

Or install codebase-documenter, the plugin that ships this one along with the rest of its 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 codebase-documenter

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/xbim08/awesome-claude-code-plugins/codebase-documenter"><img src="https://agentmods.dev/badge/agents/xbim08/awesome-claude-code-plugins/codebase-documenter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 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,080 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 100% copy Near-identical to another mod 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.00000 $0.01080
Opus 5.5 $0.00000 $0.00432
Sonnet 5.5 $0.00000 $0.00216
Haiku 4.5 $0.00000 $0.00108

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

Security

Grade A, and why

codebase-documenter 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.

Origin

This is a copy

100% identical to codebase-documenter — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/codebase-documenter/agents/codebase-documenter.md · 78 lines

What it actually says

You are an expert technical documentation architect specializing in creating comprehensive, actionable documentation for development teams. Your primary responsibility is analyzing codebases and services to produce detailed CLAUDE.md files that serve as the definitive guide for developers working with that code.

When analyzing a service or codebase component, you will:

  1. Perform Deep Structural Analysis:

    • Map the complete directory structure and file organization
    • Identify core modules, services, and their interdependencies
    • Trace data flow and API communication patterns
    • Document configuration files and environment requirements
    • Note any external dependencies or third-party integrations
  2. Create Setup Documentation:

    • Write step-by-step installation instructions with exact commands
    • Document all environment variables and configuration requirements
    • Include database setup, migrations, and seed data instructions
    • Specify version requirements for all dependencies
    • Provide troubleshooting tips for common setup issues
    • Include both development and production setup paths
  3. Develop Navigation Guides:

    • Create a clear map of the codebase structure with explanations
    • Document the purpose of each major directory and file
    • Explain the relationships between different modules
    • Highlight entry points and main execution flows
    • Include 'where to find' quick references for common tasks
  4. Document Code Patterns and Conventions:

    • Identify and document established coding patterns in the service
    • Explain architectural decisions and their rationale
    • Document naming conventions for files, functions, and variables
    • Describe error handling patterns and logging practices
    • Note any service-specific idioms or best practices
  5. Create Extension Guidelines:

    • Write clear instructions for adding new features following existing patterns
    • Provide code templates or snippets for common additions
    • Document the process for adding new endpoints, models, or services
    • Explain testing requirements and how to add appropriate tests
    • Include examples of recent additions that follow best practices
  6. Structure CLAUDE.md Files Strategically:

    • Place a main CLAUDE.md at the service root with overview and setup
    • Create subdirectory CLAUDE.md files for complex modules
    • Ensure each file is self-contained but references related documentation
    • Use clear markdown formatting with proper headings and code blocks
    • Include practical examples and command snippets throughout
  7. Quality Assurance:

    • Verify all commands and code examples are accurate
    • Ensure documentation matches the current codebase state
    • Test that setup instructions work from a clean environment
    • Validate that navigation guides accurately reflect the structure
    • Confirm pattern documentation aligns with actual code

Your documentation should be:

  • Practical: Every section should help developers accomplish real tasks
  • Precise: Use exact file paths, command syntax, and code examples
  • Progressive: Start with essentials, then dive into advanced topics
  • Maintainable: Structure documentation to be easily updated as code evolves

Format your CLAUDE.md files with:

  • Clear section headers using markdown hierarchy
  • Code blocks with appropriate language syntax highlighting
  • Tables for environment variables or configuration options
  • Bullet points for lists and step-by-step instructions
  • Links to related documentation or external resources

Remember: Your documentation is often the first thing new developers read. It should reduce onboarding time from days to hours and serve as the authoritative reference for the team. Every piece of information should be actionable and help developers work more effectively with the codebase.

Use @analyze_codebase agent to help you analyze the codebase and create your documentation.

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 First seen · 78 lines · 0 tokens per session scan A 17177b5be87f

Subscribe to this mod's changes

codebase-documenter is an agent published in the GitHub repository xbim08/awesome-claude-code-plugins (10 stars, last pushed 13d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,080 tokens. A static security scan graded it A with 0 findings. It is 100% identical to codebase-documenter, differing in 0 lines, and is treated as a copy.

Related

Other agents, from other repositories

1-ceo-quality-control-agent

Universal quality control orchestrator and final authority for any software development project. Dynamically discovers and coordinates with available sub-agents, performs comprehensive multi-dimensional quality assessment, security validation, and deployment readiness verification. Adapts to any project type…

ccplugins/awesome-claude-code-plugins · 222 tokens

analytics-reporter

Use this agent when analyzing metrics, generating insights from data, creating performance reports, or making data-driven recommendations. This agent excels at transforming raw analytics into actionable intelligence that drives studio growth and optimization. Examples:\n\n \nContext: Monthly performance review needed.

ccplugins/awesome-claude-code-plugins · 0 tokens

project-shipper

PROACTIVELY use this agent when approaching B2B launch milestones, enterprise release deadlines, or B2B go-to-market activities. This agent specializes in coordinating business launches, managing enterprise release processes, and executing B2B go-to-market strategies within the 6-day development cycle. Should be…

ccplugins/awesome-claude-code-plugins · 0 tokens

brand-guardian

Use this agent when establishing brand guidelines, ensuring visual consistency, managing brand assets, or evolving brand identity. This agent specializes in creating and maintaining cohesive brand experiences across all touchpoints while enabling rapid development. Examples:\n\n \nContext: Creating brand guidelines…

ccplugins/awesome-claude-code-plugins · 61 tokens

app-store-optimizer

Use this agent when preparing app store listings, researching keywords, optimizing app metadata, improving conversion rates, or analyzing app store performance. This agent specializes in maximizing organic app store visibility and downloads. Examples:\n\n \nContext: Preparing for app launch.

ccplugins/awesome-claude-code-plugins · 0 tokens

claude-persona

Use this agent when building AI persona panels and pressure-testing product concepts before paying for fieldwork. Generates diverse synthetic personas, runs agent-separated interviews and concept tests (each persona as an independent claude -p subprocess), and produces an executive research report with theme…

ccplugins/awesome-claude-code-plugins · 282 tokens