explore-codebase

explore-codebase is a skill for Claude Code, Codex from edimuj/tokenlean. It costs 60 tokens per session (636 once invoked), scanned A, original, MIT.

A workflow for understanding an unfamiliar codebase by mapping its structure and examining important files progressively. It gathers focused context instead of reading the whole project at once.

In plain words
What is it for?
Use it when joining a new project, investigating how a codebase works, locating important files, tracing dependencies, or preparing to make changes safely.
Why use it?
It helps developers get oriented quickly while using less context and avoiding unnecessary code reading. The process highlights entry points, active areas, symbols, dependencies, and exports.

Skill for Claude CodeCodex

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

Good fit Use it when joining a new project, investigating how a codebase works, locating important files, tracing dependencies, or preparing to make changes safely.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/edimuj/tokenlean/explore-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 edimuj/tokenlean --skill explore-codebase
Clone the repo
git clone --depth 1 https://github.com/edimuj/tokenlean

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/edimuj/tokenlean/explore-codebase"><img src="https://agentmods.dev/badge/skills/edimuj/tokenlean/explore-codebase.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 636 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.00060 $0.00636
Opus 5.5 $0.00024 $0.00254
Sonnet 5.5 $0.00012 $0.00127
Haiku 4.5 $0.00006 $0.00064

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

Security

Grade A, and why

explore-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 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.

skills/claude/explore-codebase/SKILL.md · 101 lines

How it starts

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

Explore Codebase

Understand a project in minutes by reading as little raw code as possible.

Workflow

Structure → Key areas → Drill down → Report

1. Get the map

tl structure

This shows directories, file counts, and token estimates. Identify:

  • Where the bulk of the code lives
  • Entry points (usually obvious from directory names)
  • Test coverage presence

2. Find entry points and hot files

tl parallel "tl entry" "tl hotspots"

Entry points tell you where execution starts. Hotspots tell you where development is active.

3. Understand key files

For each important file identified above:

File size → Decision
  ├─ <150 lines → Just read it
  ├─ 150-400 lines → tl symbols first, tl snippet for specifics
  └─ 400+ lines → tl symbols only, then tl snippet as needed
# Per file, gather context in one call:
tl parallel "symbols=tl symbols <file>" "deps=tl deps <file>" "exports=tl exports <file>"

# Or for entire directories:
tl symbols src/           # All files in a directory (compact one-liner per file)
tl symbols a.ts b.ts      # Multiple specific files (compact)

4. Trace the dependency graph

Pick the most central file (usually has the most importers):

tl parallel "impact=tl impact <file>" "flow=tl flow <function> <file>"

This reveals the architecture: which modules are core infrastructure vs. leaf nodes.

5. Check conventions

tl style              # Coding conventions (naming, formatting, patterns)

Run once at the start of a session to match the project's style.

6. Report

Summarize your understanding:

## Project overview
What it does, in one sentence.

## Architecture
Key directories and their roles. How data/control flows.

## Key files
The 5-10 most important files with one-line descriptions.

## Patterns
Conventions, frameworks, notable architectural decisions.

## Entry points
Where execution starts, how to run/test.

Tips

  • Use tl parallel to gather context on multiple files simultaneously
  • tl context <dir> shows token cost of a directory — skip reading dirs over 50k tokens directly
  • For React/frontend projects, also run tl component on main UI files
  • For API projects, tl api and tl routes reveal endpoint structure

Read the full file on GitHub · 101 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. 1mo ago First seen · 101 lines · 60 tokens per session scan A 09ae61a6efec

Subscribe to this mod's changes

explore-codebase is a skill published in the GitHub repository edimuj/tokenlean (13 stars, last pushed 3mo ago), licensed MIT. It adds 60 tokens to every session and 636 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories

wireshark-analysis

This skill should be used when the user asks to "analyze network traffic with Wireshark", "capture packets for troubleshooting", "filter PCAP files", "follow TCP/UDP streams", "detect network anomalies", "investigate suspicious traffic", or "perform protocol analysis". It provides comprehensive techniques for network…

zebbern/claude-code-guide · 79 tokens

log-error-digest

Analyze log files to troubleshoot errors, identify peak error periods, and produce error clustering, frequency statistics, and time distribution reports. Supports JSON, syslog, and Nginx formats with automatic detection. Use when a user uploads a .log file and asks to analyze errors, find patterns, debug issues, or…

zebbern/claude-code-guide · 71 tokens

vs-search-tuning-partial-case

Use when the user provides 1-50 concrete bad-case search queries for one Viking Search app and wants local deterministic fixes. This skill only verifies request-level fine-operation interventions against a read-only baseline scene and delivers a console-ready configuration sheet, validated payloads, and a replay…

volcengine/SearchCLI · 85 tokens

vs-search

Search runtime and scene management: verify queries, inspect scenes, debug app readiness, and diagnose recall or scene-config issues.

volcengine/SearchCLI · 27 tokens

weed

Weed the Allium garden. Find where Allium specifications and implementation code have diverged, and help resolve the divergences. Use when the user wants to check spec-code alignment, compare specs against implementation, audit for spec drift or violations, sync specs with code or code with specs, or verify whether…

juxt/allium · 71 tokens

graph-it-live

Analyze code dependencies, call graphs, and architecture using the graph-it CLI. Use this skill whenever the user wants to understand how their code is connected — even if they don't say "dependency graph" explicitly. Trigger for: "what calls this function", "who uses this class", "is it safe to delete X", "what…

magic5644/Graph-It-Live · 165 tokens