trace-codebase

trace-codebase is a skill for Claude Code, Codex from EzraApple/skills-init. It costs 26 tokens per session (304 once invoked), scanned A, original, MIT.

A repository-mapping skill for understanding an unfamiliar codebase, service, feature, or path through the system.

In plain words
What is it for?
Use it when onboarding to a project, explaining how a subsystem works, mapping architecture before a change, or finding where a behavior is implemented.
Why use it?
It reduces the time spent searching by identifying the relevant files, entry points, boundaries, callers, and tests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when onboarding to a project, explaining how a subsystem works, mapping architecture before a change, or finding where a behavior is implemented.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ezraapple/skills-init/trace-codebase
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.

Any agent
npx skills add EzraApple/skills-init --skill trace-codebase
Clone the repo
git clone --depth 1 https://github.com/EzraApple/skills-init

Made for: Claude Code, Codex.

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 trace-codebase

README.md
[![agentmods](https://agentmods.dev/badge/skills/ezraapple/skills-init/trace-codebase/github.svg)](https://agentmods.dev/skills/ezraapple/skills-init/trace-codebase)
Your own site
<a href="https://agentmods.dev/skills/ezraapple/skills-init/trace-codebase"><img src="https://agentmods.dev/badge/skills/ezraapple/skills-init/trace-codebase/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 trace-codebase

Your own site · 80×15
<a href="https://agentmods.dev/skills/ezraapple/skills-init/trace-codebase"><img src="https://agentmods.dev/badge/skills/ezraapple/skills-init/trace-codebase.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 304 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.00026 $0.00304
Opus 5.5 $0.00010 $0.00122
Sonnet 5.5 $0.00005 $0.00061
Haiku 4.5 $0.00003 $0.00030

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

Security

Grade A, and why

trace-codebase 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 18d 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.

skills/trace-codebase/SKILL.md · 34 lines

What it actually says

Trace a codebase

Build a useful mental model from current code. Start at the named feature, entrypoint, or symbol and follow one representative execution path. Answer a narrow lookup directly rather than mapping the whole repository.

Trace inputs, important data shapes, decisions, side effects, and returned or visible results. Identify who owns state, validation, lifecycle, errors, and cancellation. Read representative callers and consumers so a helper is not mistaken for the owning boundary.

Use history when a surprising design, compatibility promise, or regression requires it. Start with the relevant commits and linked discussion; expand to other available sources only when the question needs them. Current behavior does not prove the author's original intent.

Keep observed facts, documented rationale, and inference distinct. Cite the source for consequential claims, preserve contradictions, and say when the reason could not be found.

For a broad subsystem, independent readers can cover separate paths. Give each a bounded question and require source pointers and unknowns. Reconcile their claims against the code before using them.

Explain the main flow, ownership boundaries, contracts that constrain changes, and the few files worth reading next. Use a diagram when it saves explanation. Include only unknowns that matter to the question. Stop at understanding unless the user also requested implementation or redesign.

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. 18d ago Changed · -91 lines · -25 tokens per session cd28b8d75b79
  2. 2mo ago First seen · 125 lines · 51 tokens per session scan A 75b33dd786bf

Subscribe to this mod's changes

trace-codebase is a skill published in the GitHub repository EzraApple/skills-init (2 stars, last pushed 19d ago), licensed MIT. It adds 26 tokens to every session and 304 once invoked, about $0.0001 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.

Related

Other skills, from other repositories