Use when you need to understand an existing codebase before planning. Surveys code, documents patterns, and identifies integration points. Essential for working in unfamiliar codebases.
This skill inherits all available tools. When active, it can use any tool Claude has access to.
Systematically explore a codebase to understand what exists before planning changes.
Announce at start: "I'm researching the codebase to understand [topic]."
File discovery:
Glob: **/*.ts, **/auth/**, etc.
Pattern search:
Grep: function names, imports, patterns
Deep reading:
Always use precise references: src/auth/middleware.ts:45-67
| Category | What to Capture |
|---|---|
| Structure | Directory layout, entry points |
| Patterns | How errors are handled, how data flows |
| Integration | Where new code will connect |
| Conventions | Naming, formatting, testing patterns |
| Constraints | What can't be changed, external deps |
Write findings to: docs/research/YYYY-MM-DD-<topic>.md
# Research: [Topic]
## Goal
[What we're trying to understand]
## Summary
[2-3 sentences of key findings]
## Relevant Files
### [Category]
| File | Lines | Purpose |
|------|-------|---------|
| `path/to/file.ts` | 1-145 | [What it does] |
## Patterns Observed
- **[Pattern]**: `file:line` - [Description]
## Integration Points
- [Where new code connects]
## Constraints
- [Things we can't change]
## Open Questions
- [Things still unclear]