Agent skill

Codebase Documenter

by travisjneuman in travisjneuman/.claude

Write codebase documentation: READMEs, architecture docs, getting-started guides, API docs, and code comments.

MITAuto-check passedDevelopment

Install Codebase Documenter

skills CLI
$ npx skills add travisjneuman/.claude --skill codebase-documenter -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install travisjneuman/.claude codebase-documenter --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/travisjneuman/.claude.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/codebase-documenter .claude/skills/codebase-documenter && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
codebase-documenter
GitHub stars
101
Token cost
~1.1k tokens
SKILL.md length
290 words
Files
9 (incl. references, assets)
Skills in repo
21
Repo updated
First seen
Licence
MIT

At a glance

Write codebase documentation: READMEs, architecture docs, getting-started guides, API docs, and code comments.

  • Works in 7 steps: Start with "Why" - Explain purpose… → Progressive Disclosure - Simple to complex → Provide Context - Why code exists, not… → …
  • Documenting code
  • SKILL.md covers When to Use, Core Principles, Documentation Workflow and Documentation Types, plus 4 more sections
  • Runs JavaScript scripts from its folder

What it does

Codebase Documenter is an agent skill from travisjneuman/.claude. Write codebase documentation: READMEs, architecture docs, getting-started guides, API docs, and code comments. Use when documenting code or making a project easier for new developers.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 11 other files, including reference files and assets (for example `assets/templates/API.template.md`, `assets/templates/ARCHITECTURE.template.md` and `assets/templates/CODE_COMMENTS.template.md`).

It sits in Development, covering Technical documentation. The repository describes itself as: The Ultimate Claude Code Toolkit: 180 skills, 10 agents, 29 commands, 7 hooks, and 81 marketplace repos (11,000+ community skills). Drop-in ~/.claude config with a generated… The licence is MIT.

When your agent uses it

  • Documenting code
  • Making a project easier for new developers

Example prompts

  • “/codebase-documenter”

Requirements

  • Node.js

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Start with "Why" - Explain purpose before implementation
  2. Progressive Disclosure - Simple to complex
  3. Provide Context - Why code exists, not just what it does
  4. Include Examples - Concrete usage for every concept
  5. Assume No Prior Knowledge - Define terms, avoid jargon
  6. Visual Aids - Diagrams, file trees, flowcharts
  7. Quick Wins - Get something running in 5 minutes

What it can do on your machine

Read from SKILL.md and the folder at commit 139c07b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (JavaScript), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Codebase Documenter loads about 1.1k tokens when it runs, and up to ~11k if it reads all its reference files. Until then it costs about 51 tokens; SKILL.md has 290 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~51
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~11k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from travisjneuman/.claude at commit 139c07b, republished under its MIT licence (© travisjneuman). 290 words, ~1,085 tokens.

Download SKILL.mdSave it as .claude/skills/codebase-documenter/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.
name
codebase-documenter
description
Write codebase documentation: READMEs, architecture docs, getting-started guides, API docs, and code comments. Use when documenting code or making a project easier for new developers.
context
fork

Codebase Documenter

Create comprehensive, beginner-friendly documentation for any codebase.

When to Use

Use for:

  • Writing or updating README files
  • Creating architecture documentation
  • Adding meaningful code comments
  • Documenting APIs and endpoints
  • Creating getting-started guides
  • Explaining project structure

Don't use when:

  • Code review → use generic-code-reviewer
  • UX design decisions → use generic-ux-designer
  • Adding code features → use generic-feature-developer

Core Principles

  1. Start with "Why" - Explain purpose before implementation
  2. Progressive Disclosure - Simple to complex
  3. Provide Context - Why code exists, not just what it does
  4. Include Examples - Concrete usage for every concept
  5. Assume No Prior Knowledge - Define terms, avoid jargon
  6. Visual Aids - Diagrams, file trees, flowcharts
  7. Quick Wins - Get something running in 5 minutes

Documentation Workflow

  1. Analyze - Entry points, dependencies, core concepts, configuration
  2. Choose Type - README → Architecture → API → Comments
  3. Generate - Use templates, customize for project
  4. Verify - Read as beginner, check examples against the code by reading

Documentation Types

README (Project Entry Point)
markdown
# Project Name

## What This Does

[1-2 sentence explanation]

## Quick Start

[< 5 minute setup]

## Project Structure

[Visual file tree]

## Key Concepts

[Core abstractions]

## Common Tasks

[Step-by-step guides]
Architecture Documentation
markdown
# Architecture Overview

## System Design

[High-level diagram]

## Data Flow

[How data moves through system]

## Key Design Decisions

[Why certain choices were made]

## Extension Points

[Where to add new features]
Code Comments
typescript
// ✅ GOOD - Explains WHY and context
// IndexedDB quota check: Prevents silent failures when storage is full.
// Without this, writes fail with cryptic QuotaExceededError.
if (quota.percentUsed > 80) showStorageWarning();

// ❌ BAD - Just repeats what code does
// Check if quota is over 80
API Documentation
markdown
## Endpoint: POST /api/resource

### What It Does

[Plain-English purpose]

### Request/Response

[JSON examples]

### Common Errors

[Error codes and meanings]

Visual Patterns

File Tree
project/
├── src/                    # Source code
│   ├── components/        # Reusable UI
│   ├── services/          # Business logic
│   └── types/             # TypeScript types
├── tests/                 # Test files
└── package.json           # Dependencies
Data Flow
User Request Flow:
1. User submits → 2. Validation → 3. API → 4. Database → 5. Response

[1] components/Form.tsx
    ↓ validates
[2] services/validation.ts
    ↓ calls API
[3] services/api.ts
    ↓ queries
[4] Database
    ↓ returns
[5] Form.tsx (updates UI)
Design Decision (ADR)
markdown
## Why We Use [Technology]

**Decision:** [What we chose]
**Context:** [Why we needed to choose]
**Reasoning:** [Why this option]
**Trade-offs:** [What we gave up]

Documentation Quality Checklist

Before Publishing
  • Quick start works in < 5 minutes
  • Code examples are copy-pasteable
  • File paths are accurate
  • Links work
  • Jargon is defined
  • Diagrams are included for complex flows
Common Mistakes to Avoid
  • Assuming reader knows the codebase
  • Outdated code examples
  • Missing prerequisites
  • No visual aids for complex systems
  • Explaining "what" without "why"

Verification Workflow

After writing documentation:

  1. Fresh Eyes Test - Read as if you've never seen the codebase
  2. Check Examples - Read each example against the current code, APIs, and paths it uses
  3. Check Links - All internal/external links resolve
  4. Beginner Review - Would a new developer understand?
  5. Update Check - Does it reflect current code?

See Also

© travisjneuman, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 8 other files (references, assets) in skills/codebase-documenter of travisjneuman/.claude.

  • SKILL.md
  • assets/templates/API.template.md
  • assets/templates/ARCHITECTURE.template.md
  • assets/templates/CODE_COMMENTS.template.md
  • assets/templates/README.template.md
  • index.js
  • package.json
  • references/documentation_guidelines.md
  • references/visual_aids_guide.md

Open the folder on GitHubat commit 139c07b

Compare with similar skills

Codebase Documenter next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Codebase Documenter compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Codebase Documenter this skilltravisjneuman/.claude101—~1.1kAutomated safety check: PassMIT
Diagram Designcathrynlavery/diagram-design44k1 repos~7.5kAutomated safety check: PassMIT
Simple Englishmoeru-ai/airi50k2 repos~4.6kAutomated safety check: PassMIT
Get API Docs with chubandrewyng/context-hub14k2 repos~775Automated safety check: PassMIT
Doc SyncJetBrains/ideavim10k2 repos~2.6kAutomated safety check: PassMIT
Mailspring App ScreenshotsFoundry376/Mailspring18k—~1.4kAutomated safety check: PassGPL-3.0

Similar skills

  • Diagram Design

    cathrynlavery/diagram-design

    Creates branded diagrams, from architecture, flowchart and sequence to charts and maps, as self-contained HTML with inline SVG, with import from draw.io, Mermaid and Excalidraw.

    44k GitHub starsUsed in 1 repo~7.5k tokens
    DevelopmentAuto-check passed
  • Simple English

    moeru-ai/airi

    Write or rewrite technical text with the rules of ASD-STE100 Simplified Technical English so it is clear, unambiguous, and free of AI slop.

    50k GitHub starsUsed in 2 repos~4.6k tokens
    DevelopmentAuto-check passed
  • Get API Docs with chub

    andrewyng/context-hub

    Fetches current documentation for third-party APIs and SDKs with the chub CLI before the agent writes code against them, instead of relying on remembered API shapes.

    14k GitHub starsUsed in 2 repos~775 tokens
    DevelopmentAuto-check passed
  • Doc Sync

    JetBrains/ideavim

    Official

    Keeps IdeaVim documentation in sync with code changes. An agent skill from JetBrains/ideavim.

    10k GitHub starsUsed in 2 repos~2.6k tokens
    DevelopmentAuto-check passed
  • Mailspring App Screenshots

    Foundry376/Mailspring

    Captures screenshots of the running Mailspring dev app for docs, PRs or visual checks by launching it with a debugging port, driving the UI and clipping to an element.

    18k GitHub stars~1.4k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Draw.io Diagram Studio

    Agents365-ai/drawio-skill

    Creates and edits editable draw.io diagrams from descriptions, code, infrastructure files, SQL and API schemas, with sync, review, test and export tools.

    10k GitHub stars~2.4k tokensUpdated 5 days ago
    DevelopmentAuto-check: notes

More from travisjneuman/.claude

All 21 skills in this repo
  • Test Specialist

    travisjneuman/.claude

    Test-writing patterns for JS/TS, Python, Go, and Rust (unit, integration, E2E, visual regression).

    101 GitHub stars~3.7k tokensUpdated yesterday
    Auto-check passed
  • Data Science

    travisjneuman/.claude

    Data science and analytics expertise for statistical analysis, machine learning pipelines, data governance, business intelligence, predictive modeling, and analytics strategy.

    101 GitHub starsUsed in 1 repo~2.3k tokens
    Auto-check passed
  • Finance

    travisjneuman/.claude

    Financial analysis expertise for financial modeling (DCF, LBO, M&A), valuation, financial statement analysis, capital allocation, treasury management, and corporate finance decisions.

    101 GitHub starsUsed in 1 repo~3k tokens
    Auto-check passed
  • Business Strategy

    travisjneuman/.claude

    Business strategy expertise for strategic planning, competitive analysis, market entry, M&A strategy, portfolio management, and strategic decision-making.

    101 GitHub stars~2.7k tokensUpdated yesterday
    Auto-check passed
  • Health Wellness

    travisjneuman/.claude

    Workplace health and wellness expertise for employee wellness programs, mental health initiatives, ergonomics and safety, healthcare benefits strategy, and health analytics.

    101 GitHub stars~2.4k tokensUpdated yesterday
    Auto-check passed
  • Hr Talent

    travisjneuman/.claude

    HR and talent management expertise for talent acquisition, performance management, compensation strategy, organizational design, culture building, succession planning, and D&I programs.

    101 GitHub stars~3.2k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Codebase Documenter

What does Codebase Documenter do?

Write codebase documentation: READMEs, architecture docs, getting-started guides, API docs, and code comments. claude. Write codebase documentation: READMEs, architecture docs, getting-started guides, API docs, and code comments.

When should I use Codebase Documenter?

Codebase Documenter fits situations like: documenting code; making a project easier for new developers.

How do I install Codebase Documenter in Claude Code?

Run `npx skills add travisjneuman/.claude --skill codebase-documenter -a claude-code`. Or copy the skill folder (skills/codebase-documenter in travisjneuman/.claude) into .claude/skills/codebase-documenter in your project. Claude Code loads it when a task matches its description.

How do I install Codebase Documenter in Codex?

Run `npx skills add travisjneuman/.claude --skill codebase-documenter -a codex`. Or copy the skill folder (skills/codebase-documenter in travisjneuman/.claude) into .agents/skills/codebase-documenter in your project. Codex loads it when a task matches its description.

Can I use Codebase Documenter in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add travisjneuman/.claude --skill codebase-documenter -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/codebase-documenter, .gemini/skills/codebase-documenter, .github/skills/codebase-documenter and .opencode/skills/codebase-documenter in your project.

What does Codebase Documenter need to run?

Going by SKILL.md and its folder, Codebase Documenter needs JavaScript for the scripts in its folder. Our summary lists: Node.js.

Does Codebase Documenter access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Codebase Documenter safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Codebase Documenter use?

Codebase Documenter is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Codebase Documenter use?

About 1.1k tokens (SKILL.md is roughly 4.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 10k tokens, read only when the agent opens those files.

What are the alternatives to Codebase Documenter?

Skills that share tags, products or a category with Codebase Documenter: Diagram Design (cathrynlavery/diagram-design, 44k stars), Simple English (moeru-ai/airi, 50k stars), Get API Docs with chub (andrewyng/context-hub, 14k stars) and Doc Sync (JetBrains/ideavim, 10k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Codebase Documenter?

travisjneuman (a GitHub user) maintains it in travisjneuman/.claude, which has 101 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on October 6, 2026.

Source: travisjneuman/.claude on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.