| name | codebase-research |
| description | Deep codebase analysis — search source code, read implementations, check ADRs, review dependencies, find tests, check git history. Use when investigating issues or answering questions about the codebase. |
Skill: Codebase Research
Deep codebase analysis for answering questions and investigating issues.
When to Use
- Investigating a bug report or unexpected behavior
- Answering questions about how a feature works
- Researching before proposing architectural changes
- Finding all usages of a function or pattern
Steps
- Search for related code:
grep -r "keyword" src/ or use file search
- Read implementations: view source files to understand logic
- Check architecture decisions: read
docs/architecture/ADR.md
- Review dependencies: check
package.json for relevant libraries
- Find existing tests: look in
tests/ for related test files
- Check git history:
git log --oneline -20 for recent changes
Commands
grep -rn "pattern" src/
find src/ -name "*.ts" | head
git log --oneline -20
git diff HEAD~5
cat docs/architecture/ADR.md