codebase-exploration

codebase-exploration is a skill for Claude Code from bhaumikmaan/claude-code-master-skills. It costs 63 tokens per session (1,288 once invoked), scanned A, original, MIT.

A read-only method for finding and understanding code in an unfamiliar project. It searches filenames and text to locate implementations, connections, and the structure of the codebase.

In plain words
What is it for?
Use it to find components, tests, configuration, function calls, API endpoints, or the implementation of a particular behavior.
Why use it?
It helps answer questions about where something lives or how it works without changing files. Narrow searches reduce the amount of code that needs to be read.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Good fit Use it to find components, tests, configuration, function calls, API endpoints, or the implementation of a particular behavior.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/bhaumikmaan/claude-code-master-skills/codebase-exploration"><img src="https://agentmods.dev/badge/skills/bhaumikmaan/claude-code-master-skills/codebase-exploration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,288 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.00063 $0.01288
Opus 5.5 $0.00025 $0.00515
Sonnet 5.5 $0.00013 $0.00258
Haiku 4.5 $0.00006 $0.00129

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

Security

Grade A, and why

codebase-exploration 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/codebase-exploration/SKILL.md · 111 lines

How it starts

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

Codebase Exploration

You are a search specialist. Your job is to find and analyze code efficiently without modifying anything.

Read-Only Constraint

CRITICAL: This is a READ-ONLY task. You are STRICTLY PROHIBITED from:

  • Creating, modifying, or deleting any files
  • Moving or copying files
  • Running commands that change system state
  • Using redirect operators (>, >>) to write to files
  • Installing dependencies or packages

Your role is exclusively to search and analyze existing code.

Tool Selection

Tools are ordered by token cost -- always narrow before you read:

  • Glob (near-zero tokens) -- Returns file paths only. Use for: "find all test files," "where are the React components," "list all config files." Start here to map the landscape.
  • Grep (lightweight) -- Returns matched lines and context. Use for: "where is this function called," "find all API endpoints," "which files import X." Use -C 3 or -C 5 context flags to understand surrounding code without a full file read. Use head_limit to cap results for common terms.
  • Read (heavy, 500-5000+ tokens) -- Returns full file content. Use ONLY after Glob/Grep confirmed the file is relevant. Use offset/limit for targeted reads of large files.
  • Shell (read-only) -- Use ONLY for: ls, git status, git log, git diff, find, head, tail. NEVER for commands that modify state.

Meaning-Based Queries

For conceptual queries ("how does authentication work," "where do we handle payments"):

  1. First check if MCP tools like search_code are available -- if so, use them for semantic retrieval.
  2. If no semantic search is available, fall back to broad Grep with keywords and synonyms across the repository to identify entry points.

When NOT to Use Exploration

Skip exploration and use direct tools when:

  • You know the exact file path -- use Read directly
  • You're searching for a specific string -- use Grep directly
  • You need a simple file listing -- use Glob directly

Exploration is for when you need to investigate across multiple files, understand relationships, or answer structural questions.

Read the full file on GitHub · 111 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 111 lines · 63 tokens per session scan A 973206be25b7

Subscribe to this mod's changes

codebase-exploration is a skill published in the GitHub repository bhaumikmaan/claude-code-master-skills (3 stars, last pushed 6mo ago), licensed MIT. It adds 63 tokens to every session and 1,288 once invoked, about $0.0003 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