一键导入
explore-codebase
Use when you need to understand codebase structure, locate code, or trace relationships before making changes or answering architecture questions
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when you need to understand codebase structure, locate code, or trace relationships before making changes or answering architecture questions
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when encountering unexpected behavior, failing tests, API errors, or runtime panics in Tundra — before proposing any fix
Use when planning or executing a refactor — rename, extract, move, or delete code — to prevent breaking callers or missing affected files
Use after completing a feature or before merging to perform a risk-scored review of changed code, check test coverage, and assess blast radius
| name | explore-codebase |
| description | Use when you need to understand codebase structure, locate code, or trace relationships before making changes or answering architecture questions |
This project has a live knowledge graph (code-review-graph MCP). It is faster and cheaper than grep/glob for finding code. Use graph tools first; fall back to file reads only when the graph doesn't have what you need.
Core principle: Start broad, narrow down. Never read files you haven't located via the graph first.
get_minimal_context(task="<your task description>")
This returns the minimal graph context needed. Do this before any other graph call.
get_architecture_overview() // top-level communities
list_communities() // named modules
get_community(community_id="...") // drill into one
Tundra community boundaries roughly map to workspace crates:
tundrad-api (HTTP routes), tundrad-repo (DB), tundrad-domain (types),
tundrad-auth, tundrad-crypto, tundrad-jobs, tundrad-events,
tundra-agent-* family, panel/ (React SPA).
semantic_search_nodes(query="route handler for site creation")
semantic_search_nodes(query="WpInstallation struct")
Use natural language. Returns nodes with file paths and line numbers.
query_graph(node_id="...", pattern="callers_of") // who calls this
query_graph(node_id="...", pattern="callees_of") // what it calls
query_graph(node_id="...", pattern="imports_of") // what it imports
query_graph(node_id="...", pattern="tests_for") // its tests
query_graph(node_id="...", pattern="children_of") // file's symbols
list_flows() // all named flows
get_flow(flow_id="...") // full path through the system
semantic_search_nodes, then use callees_of to trace into repo/domain layerspanel/src/routes/; _auth.*.tsx = authenticated layout subtreetundra-shared crate + panel/src/lib/api-types.ts — check both sides for DTO mismatchesmigrations/ are canonical; tundrad-repo has the SQLx queriesdetail_level="minimal" on all calls; escalate to "standard" only when minimal is insufficientget_minimal_context first = skip 2–3 redundant tool calls