codebase-exploration

codebase-exploration is a skill for Claude Code, Codex 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 CodeCodex

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.

agentmods
npx agentmods add skills/bhaumikmaan/claude-code-master-skills/codebase-exploration
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, 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 codebase-exploration

README.md
[![agentmods](https://agentmods.dev/badge/skills/bhaumikmaan/claude-code-master-skills/codebase-exploration.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00032 $0.00644
Sonnet 5 $0.00013 $0.00258
Haiku 4.5 $0.00006 $0.00129

Measured 5d ago against content hash 973206be25b7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 5d 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. 5d 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 5mo ago), licensed MIT. It adds 63 tokens to every session and 1,288 once invoked, about $0.0003 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 skills, from other repositories

metrics-instrumentation

Specification for instrumenting an opik-backend workflow with operational OpenTelemetry metrics — per-stage throughput/latency/error counters and native histograms, dimensioned per-customer (workspace). Use when a pipeline (scoring, ingestion, experiments, jobs) needs per-stage visibility. Covers metric emission only…

comet-ml/opik · 93 tokens

happiness-skill

当用户问「怎么才能更幸福/为什么得到了还不满足/怎么减少焦虑」时调用。 核心理念: 幸福是缺憾感清空的默认状态, 是可训练的技能; 欲望是与自己的契约(得到前不快乐), 同时只留一个重大欲望; 活在当下。 不适用于: 临床抑郁等需要专业治疗的场景(本书方法不能替代医疗)。 Triggers: 幸福/不快乐/欲望/焦虑/知足/活在当下/happiness/desire/anxiety.

kangarooking/cangjie-skill · 136 tokens

short-drama-storyboard

把剧本和视觉事实转成有镜头职责、空间连续性和可冻结起点的 剧集/ /分镜.md。 每镜使用二级标题 ## SHOT-...,同镜下用 ### 冻结关键帧提示词 写起始帧正文。.

zenstory-ai/drama-skills · 102 tokens

setup-matt-pocock-skills

为本仓库配置工程技能——设置其 issue tracker、分诊标签词汇表和领域文档布局。首次使用其他工程技能前运行一次。.

devcxl/mattpocock-skills-zh · 43 tokens

pixel-art-studio

Create production-quality pixel art and animations programmatically. Use when the user asks to "create pixel art", "draw a sprite", "make pixel animation", "generate sprite sheet", "convert image to pixel art", "pixelate this image", "make a pixel character", "пиксель арт", "пиксельная графика", "спрайт", "像素画"…

AnastasiyaW/codex-claude-code-config · 349 tokens

frontend-design

Создание высококачественных, визуально выдающихся фронтенд-интерфейсов. Используй ВСЕГДА когда пользователь просит создать веб-страницу, компонент, лендинг, дашборд, UI-кит, форму, карточки, навигацию, анимации, или любой другой веб-интерфейс. Скилл покрывает: HTML/CSS/JS компоненты, React/Vue/Svelte, Tailwind CSS…

AnastasiyaW/codex-claude-code-config · 264 tokens