Use when planning or designing features and need to understand current codebase state, find existing patterns, or verify assumptions about what exists; when design makes assumptions about file locations, structure, or existing code that need verification - prevents hallucination by grounding plans in reality
Understand current codebase state to ground planning and design decisions in reality, not assumptions. Find existing patterns, verify design assumptions, and provide definitive answers about what exists and where.
Use for:
Don't use for:
Do not use nested subagents. If you are running as a research subagent, perform the investigation directly with Read/Glob/Grep and any other tools already available to you. Do not dispatch or invoke additional subagents.
When given design assumptions to verify:
Why this matters: Prevents implementation plans based on wrong assumptions about codebase structure.
| Task | Strategy | |------|----------| | Where is X | Glob likely names → Grep keywords → Read matches | | How does X work | Find entry point → Follow imports → Read implementation | | What patterns exist | Find examples → Compare implementations → Extract conventions | | Does X exist | Multiple searches → Definitive yes/no → Evidence | | Verify assumptions | Extract claims → Search each → Compare reality vs expectation |
Multiple search approaches:
Don't stop at first result:
Verify everything:
Lead with direct answer:
Provide actionable intelligence:
Handle "not found" confidently:
| Mistake | Fix | |---------|-----| | Assuming file locations | Always verify with Read/Glob before reporting | | Stopping at first result | Explore multiple paths to verify findings | | Vague locations ("in auth folder") | Exact paths (src/auth/index.ts:42) | | Not documenting search strategy | Explain what was checked when reporting "not found" | | Confusing "not found" types | Distinguish "doesn't exist" from "couldn't locate" | | Skipping design assumption comparison | Explicitly report: confirmed/discrepancy/addition/missing | | Reporting assumptions as facts | Only report what was verified in codebase |
npx skills add ed3dai/investigating-a-codebase下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer