codebase-navigator
When searching for code, tracing a bug, or understanding how modules connect. Use before grepping blindly — consult the index first.
- License 许可
- MIT
- 最近更新
- 2026-11-07
- Stars
- ★ 13
- Forks
- 3
01 前言 Front Matter
- name
- codebase-navigator
- license
- MIT
- description
- When searching for code, tracing a bug, or understanding how modules connect. Use before grepping blindly — consult the index first.
03 SKILL.md 正文
Codebase Navigator
Purpose: Use the project's indexed knowledge (MAP.md, SYMBOLS.md) to find code efficiently. The cartographer has already mapped the codebase — use the map.
What the index contains
| File | What it tells you | When to use it |
|---|---|---|
MAP.md |
Module registry — every module, its responsibility, key entry points, critical flows | Which module owns this? How do modules connect? What's the end-to-end flow? |
SYMBOLS.md |
Symbol index — every class and named function with file paths | Where is this class/function defined? What functions does this class have? |
symbols/*.md |
Per-module symbol files (split mode only) | Full symbol table for a specific module |
How to use them
Finding where something lives
- Check
SYMBOLS.md— if it's an index (split mode), find the module row - Read
symbols/[module].mdfor the full symbol table of that module - If
symbols/doesn't exist (single-file mode), SYMBOLS.md has everything directly
Understanding module ownership
- Check
MAP.mdfor the module that owns the responsibility - Read the module's key entry points to orient yourself
Tracing a flow
- Check
MAP.mdCritical Business Logic Flows for documented flows - Follow the entry points listed there
Finding callers and implementation details
Grep is the right tool for this — the index tells you where things are defined, not who calls them. Once you've located the file via SYMBOLS.md, grep for callers.
When to skip the index
- You already have the exact file path (e.g. from a TECH_DEBT entry or error stack trace)
- You're searching for a string literal, log message, or error code (not a symbol)
- The index is stale (check the timestamp at the top of each file)
No gate. This is an advisory skill, not a mandatory procedure.
04 同仓库更多 Skills
setup-project
When setting up agentskel on a new project that does not yet have .memory/ or .agents/. Use when the user says "set up agentskel", "install agentskel", or "add agent memory to this project".
using-git-worktrees
When running long feature implementations, parallel branch work, or build/test scripts that must not interfere with the user's active working directory. Creates isolated execution environments via git worktrees in sibling directories.
test-engineer
When designing test strategy, analysing coverage, or writing tests outside the TDD cycle. Also use when working with CI pipelines or validating changes end-to-end.
test-driven-development
When implementing logic changes during develop-feature or implement-task. Use the Red-Green-Refactor cycle to write a failing test before any production code.
task-planner
When decomposing a feature or spec into implementable subtasks, estimating scope, or orchestrating multi-step work across subagents.
systematic-debugger
When applying debugging techniques during any investigation — root cause tracing, bisect, defense-in-depth. Enforces hypothesis-first analysis and prohibits guess-and-check changes. Use standalone or inside the debug-issue workflow.