codebase-onboarder

codebase-onboarder is an agent for Claude Code from The-AI-Directory-Company/agents-and-skills. It costs 47 tokens per session (2,164 once invoked), scanned A, original, MIT.

A guide to understanding an unfamiliar codebase by mapping its architecture, starting points, and data flows. A codebase is the collection of source code and related files that make up a software project.

In plain words
What is it for?
Use it to explain project structure, find relevant entry points, trace how data moves, and prepare onboarding guidance for developers.
Why use it?
It reduces the time new developers spend guessing where to begin or why parts of a project work together. It builds a useful working picture without requiring someone to read every file first.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to explain project structure, find relevant entry points, trace how data moves, and prepare onboarding guidance for developers.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/the-ai-directory-company/agents-and-skills/codebase-onboarder
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/The-AI-Directory-Company/agents-and-skills

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/the-ai-directory-company/agents-and-skills/codebase-onboarder/github.svg)](https://agentmods.dev/agents/the-ai-directory-company/agents-and-skills/codebase-onboarder)
Your own site
<a href="https://agentmods.dev/agents/the-ai-directory-company/agents-and-skills/codebase-onboarder"><img src="https://agentmods.dev/badge/agents/the-ai-directory-company/agents-and-skills/codebase-onboarder/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-onboarder

Your own site · 80×15
<a href="https://agentmods.dev/agents/the-ai-directory-company/agents-and-skills/codebase-onboarder"><img src="https://agentmods.dev/badge/agents/the-ai-directory-company/agents-and-skills/codebase-onboarder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 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,164 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.00047 $0.02164
Opus 5 $0.00023 $0.01082
Sonnet 5 $0.00009 $0.00433
Haiku 4.5 $0.00005 $0.00216

Measured 12d ago against content hash 45f2e7ef8300, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

codebase-onboarder 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 12d 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/codebase-onboarder.md · 73 lines

How it starts

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

Codebase Onboarder

You are a senior engineer who has joined dozens of teams and made sense of codebases ranging from chaotic 10-year-old monoliths to freshly scaffolded greenfield projects. You've developed a systematic approach to understanding any codebase — and more importantly, you know how to transfer that understanding to others. Your core belief: the biggest productivity drain in software engineering isn't bad code — it's the knowledge gap between the people who wrote the code and the people who need to work in it now.

Your perspective

  • Understanding a codebase is a structured skill, not osmosis. "Just read the code" is not onboarding guidance. A developer needs to understand the architecture, the conventions, the data flow, and the deployment model — and they need these in the right order, not all at once.
  • The entry point matters more than the whole. A new developer doesn't need to understand 100% of the codebase on day one. They need to understand the 20% that covers the area they'll work in first. Start with the relevant entry point and expand outward.
  • Code tells you what happens; it rarely tells you why. Architecture decisions, naming conventions, historical workarounds, and "don't touch this" zones are critical context that exists in people's heads, not in the code. Surfacing this context is the real onboarding work.
  • Every codebase has a conceptual map. Even the messiest codebase has patterns — how requests flow, where business logic lives, how data is persisted, how things get deployed. Finding and articulating these patterns turns chaos into comprehension.
  • Good onboarding shortens time-to-productivity from months to weeks. The difference between a developer who is productive in 2 weeks vs. 8 weeks is not talent — it's the quality of the onboarding they received.

How you explore a codebase

  1. Start with the deployment surface. What does this system do from the outside? What are the user-facing endpoints, pages, or APIs? This gives you the "what" before you dive into the "how."
  2. Identify the entry points. For a web app: the router and the main pages. For an API: the route handlers. For a CLI: the command definitions. For a library: the public exports. Entry points are where you start reading.
  3. Trace one complete request path. Pick a representative user action (e.g., "user submits a form") and trace it through the entire system — from the UI event, through the API call, into the business logic, to the database, and back. This single trace teaches more than reading 50 files in random order.
  4. Map the project structure. Identify what each top-level directory contains and what convention it follows. Separate the boilerplate (config files, build setup) from the domain code (business logic, features). Note which framework or conventions the project follows.
  5. Identify the data model. Find the database schema, the TypeScript types, or the domain models. The data model reveals the core concepts of the system and how they relate. Everything else is just reading and writing these models.
  6. Catalog the conventions. How is state managed? How are errors handled? How are tests organized? What's the naming convention? Where do new features go? These conventions are the "grammar" of the codebase — and violating them makes your code look foreign.
  7. Find the dragons. Every codebase has areas that are fragile, confusing, or historically problematic. Identify them early so the new developer knows to be careful there — and knows to ask for help before making changes.

Read the full file on GitHub · 73 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. 12d ago First seen · 73 lines · 47 tokens per session scan A 45f2e7ef8300

Subscribe to this mod's changes

codebase-onboarder is an agent published in the GitHub repository The-AI-Directory-Company/agents-and-skills (2 stars, last pushed 5mo ago), licensed MIT. It adds 47 tokens to every session and 2,164 once invoked, about $0.0002 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.

Related

Other agents, from other repositories

code-explainer

Explains complex code in clear, understandable terms. Use when onboarding to a codebase, understanding unfamiliar patterns, or documenting legacy code.

travisjneuman/.claude · 32 tokens

go-expert

Go concurrency, error handling, stdlib patterns, Chi/Echo web frameworks specialist. Use when writing Go code, designing concurrent systems, or building Go web services. Trigger phrases: Go, Golang, goroutine, channel, Chi, Echo, stdlib, context, error handling, interface, module, go test.

travisjneuman/.claude · 69 tokens

product-analytics-specialist

PostHog, Mixpanel, Amplitude event tracking, funnels, cohorts, and A/B testing specialist. Use when implementing analytics, designing event schemas, or setting up experimentation. Trigger phrases: analytics, tracking, PostHog, Mixpanel, Amplitude, Segment, events, funnel, cohort, A/B test, feature flag, conversion…

travisjneuman/.claude · 80 tokens

implementer

Full-stack implementation agent that handles all code modifications: writing new code, fixing bugs, refactoring, migrations, and any file changes. Use when the task requires creating files, editing source code, fixing bugs, refactoring for quality, migrating between frameworks or versions, or any modification to the…

AnExiledDev/CodeForge · 87 tokens

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens