Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
akillness avatar

Codebase Search

  • 27 installs
  • 40 repo stars
  • Updated August 4, 2026
  • akillness/skills-template

Codebase Search is a skill that routes repo-navigation requests into a single search packet to locate definitions, call sites, config owners, and likely impact before editing code.

About

Codebase Search is a skill that routes repo-navigation requests to the right search approach before editing anything. A developer uses it to find where something is defined, who references it, which files own a config or content surface, and what to inspect before a change without drifting into debugging or refactoring. It normalizes the request into one search packet, narrows scope, and returns a compact evidence map.

  • Routes repo-navigation requests into one search packet: exact-text, symbol-indexed, structural, config-content, hosted-s
  • Narrows scope before dumping matches and returns a compact evidence map
  • Routes out to debugging, code-refactoring, code-review, or graphify once search is no longer the bottleneck

Codebase Search by the numbers

  • 27 all-time installs (skills.sh)
  • Ranked #684 of 1,352 Code Review & Quality skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

codebase-search capabilities & compatibility

Capabilities
code search · call site tracing · impact analysis · repo navigation
Works with
github · gitlab
Use cases
research · refactoring
Pricing
Free
From the docs

What codebase-search says it does

The main job is **repo navigation before edits**.
SKILL.md
npx skills add https://github.com/akillness/skills-template --skill codebase-search

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs27
repo stars40
Last updatedAugust 4, 2026
Repositoryakillness/skills-template

What it does

Find definitions, call sites, and likely impact surface in a large repo before making an edit.

Who is it for?

Large app, infra, content, or game repos where random file reading wastes time and you need to find where something lives first.

Skip if: Root-cause diagnosis, behavior-preserving cleanup plans, diff/PR judgment, or persistent whole-repo structure maps.

When should I use this skill?

The real request is where does this live, what uses it, or what should I inspect first before a change.

What you get

A compact evidence map of the winning files - definition, key consumers, and one config or test - instead of a raw match dump.

  • Compact evidence map of winning files with definitions and key references

By the numbers

  • Six search packets: exact-text, symbol-indexed, structural, config-content, hosted-search, graph-path

Files

SKILL.mdMarkdownGitHub ↗

Codebase Search

When to use this skill

  • The main job is repo navigation before edits.
  • The user needs to find definitions, call sites, entry points, config owners, tests, templates, content references, or likely impact surface.
  • The repo is large enough that random file reading will waste time.
  • The request is really "where does this live / what uses it / what should I inspect first?" even if the user never says "search".
  • The repo may be app code, infra/config, content/templates, or game tooling/assets, and the first step is still discovery.

Do not use this skill as the main workflow when:

  • The user already found the area and now needs root-cause diagnosis → use debugging or log-analysis.
  • The user wants a behavior-preserving cleanup or migration plan → use code-refactoring.
  • The user wants judgment on a concrete diff / PR → use code-review.
  • The user wants a persistent whole-repo or mixed-corpus structure map → use graphify.

Core idea

codebase-search should act like a packet router, not a giant search tutorial.

1. Normalize the request into one primary packet. 2. Narrow scope before dumping matches. 3. Read only the winning files. 4. Return a compact evidence map. 5. Route out as soon as search is no longer the bottleneck.

Read these support docs before choosing the packet:

  • references/intake-packets-and-route-outs.md
  • references/search-modes.md
  • references/evidence-map-template.md
  • references/handoff-boundaries.md

Instructions

Step 1: Normalize the request

Convert the prompt into this intake shape first:

codebase_search_packet:
  primary_packet: exact-text | symbol-indexed | structural | config-content | hosted-search | graph-path
  repo_shape: app | infra | content | game | mixed | unknown
  search_goal: locate | references | ownership | impact | archaeology | unknown
  scope_hint: path | package | file-type | subsystem | repo-wide | unknown
  route_after: stay-here | debugging | log-analysis | code-refactoring | code-review | graphify

Choose one primary packet for the run. If two seem plausible, pick the cheaper one that reduces uncertainty fastest.

Step 2: Choose the packet

PacketUse whenBest fitsCommon tools / shapes
exact-textThe user knows a string, env var, route, flag, class name spelling, error text, or file fragmentliteral lookups, config keys, route paths, import namesrg, git grep, editor search
symbol-indexedThe user needs definitions, references, or call sitesfunction/class/interface ownership, API tracing, monorepo navigationLSP/workspace symbol, ctags, indexed repo search
structuralSyntax shape matters more than literal textmissing cleanup, unsafe pattern inventories, migration prepast-grep, Semgrep, Comby, tree-sitter-style search
config-contentThe repo surface is config, content, templates, front matter, shortcodes, scenes, assets, or build scriptsTerraform/Kubernetes, Markdown/MDX sites, Hugo/Next content, game packaging/configfile discovery + exact-text + targeted scripts
hosted-searchThe repo is remote/browser-first or cross-repo lookup mattersPR archaeology, repo you do not have locally, shareable linksGitHub/GitLab hosted search
graph-pathThe request is really about dependency tracing or persistent structurecall graph, path tracing, architecture map, graph reportgraphify, code graph/code map tools

Packet rules:

  • Prefer exact-text when the user already has a concrete token.
  • Prefer symbol-indexed for “where is this defined / referenced?”
  • Prefer structural only when regex would be too blunt.
  • Prefer config-content when the real surface is not classic source code.
  • Prefer hosted-search when local context is missing.
  • Prefer graph-path only when ordinary search is no longer enough.

Step 3: Narrow scope before reading everything

Apply at least one narrowing move before reading files:

  • limit by directory or package
  • limit by file type
  • separate authored files from generated/vendor folders
  • start with entry points, loaders, config schemas, tests, examples, or build scripts
  • in content/game repos, search metadata + template/asset surfaces before assuming code owns the answer

Useful heuristics by repo shape:

  • app → start with entry point, router/handler, config loader, test
  • infra → start with module/overlay/root config, variable/schema, deployment surface
  • content → start with content folder, front matter key, partial/include/shortcode/template
  • game → start with runtime code, engine config, scene/asset/build script, editor/visual graph references

Step 4: Read winners, not the whole match list

After the search packet returns matches: 1. pick the most likely definition / ownership file 2. pick 1–3 important consumers or references 3. pick 1 config/test/example/build file when setup matters 4. summarize the flow instead of pasting raw terminal output

Step 5: Return an evidence map

Default response shape:

## Search brief
- Goal: [what I was locating]
- Packet: exact-text | symbol-indexed | structural | config-content | hosted-search | graph-path
- Scope: [paths/file types/packages]

## Best entry points
- `path/to/file`: why it matters
- `path/to/other-file`: why it matters

## Key evidence
- `path:line` — what it shows
- `path:line` — how it connects

## Likely flow / ownership
- entry → consumer → config/test/content surface

## Next route-out
- stay in `codebase-search` or route to the next skill

Step 6: Use packet-specific heuristics

For bug-location requests
  • start from the error string, route, flag, or recent change token
  • locate the definition plus highest-signal consumers
  • switch to debugging once the likely failure path is mapped
For impact analysis
  • definition first
  • major consumers second
  • tests/config/docs/content surfaces third
  • separate must-update from maybe-affected
  • route to code-refactoring when the user is ready to change behavior-preserving structure
For config/content ownership
  • locate loader/schema/template first
  • then find runtime consumers or referenced pages/assets
  • call out whether ownership sits in config, content metadata, templates, or code
For structural search
  • explain the search shape in plain English
  • prefer AST-aware tooling
  • if forced to approximate with regex, label the confidence limit clearly
For archaeology requests
  • start from entry points, docs, examples, tests, or build scripts
  • avoid pretending you already understand the architecture after one search
  • route to graphify if the user actually wants persistent structure mapping

Step 7: Route out aggressively

Switch when the next job is no longer search:

  • Root cause, reproduction, hypothesesdebugging
  • Raw log triagelog-analysis
  • Behavior-preserving cleanup / codemod planningcode-refactoring
  • Diff / PR judgmentcode-review
  • Persistent architecture graph or path tracinggraphify

Examples

Example 1: Pre-change discovery

Prompt:

Find where auth is implemented and what files I should inspect before changing it.

Good response shape:

  • choose symbol-indexed or exact-text
  • identify entry points, config, and tests
  • return a compact evidence map
  • route to code-refactoring or debugging only after the discovery step

Example 2: Config/content ownership

Prompt:

Which MDX pages still use the old pricing CTA shortcode, and where is the shared partial defined?

Good response shape:

  • choose config-content
  • search content metadata + shortcode/template surfaces
  • identify source partial plus affected pages
  • keep the answer discovery-first

Example 3: Structural query

Prompt:

Find all React effects missing cleanup. I do not want plain grep.

Good response shape:

  • choose structural
  • prefer AST-aware matching
  • list highest-confidence hits
  • label regex fallback limits if needed

Example 4: Game/infrastructure archaeology

Prompt:

Search this repo for where matchmaking region config is defined and what scenes or services consume it.

Good response shape:

  • choose config-content or symbol-indexed based on repo shape
  • separate config ownership from runtime consumers
  • call out code + asset/build surfaces if they both matter

Best practices

1. Choose the smallest packet that can answer the question. 2. Narrow scope before reading large match sets. 3. Return an evidence map, not a terminal transcript. 4. Cover config/content/game surfaces honestly; repo navigation is not only source-code lookup. 5. Separate search from diagnosis, refactoring, review, and persistent graphing. 6. Label confidence when structural intent is approximated with plain text search. 7. For monorepos, group findings by package or subsystem.

References

  • references/intake-packets-and-route-outs.md
  • references/search-modes.md
  • references/evidence-map-template.md
  • references/handoff-boundaries.md
  • GitHub Code Search syntax docs: https://docs.github.com/en/search-github/github-code-search/understanding-github-code-search-syntax
  • Sourcegraph code search docs: https://sourcegraph.com/docs/code_search
  • ast-grep introduction: https://ast-grep.github.io/guide/introduction.html
  • ripgrep guide: https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md

Related skills

FAQ

What search packets does codebase-search offer?

Exact-text, symbol-indexed, structural, config-content, hosted-search, and graph-path - one primary packet per run.

When should I route out of this skill?

Route to debugging or log-analysis for root cause, code-refactoring for cleanup plans, code-review for diff judgment, and graphify for persistent structure maps.

Code Review & Qualitybackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.