Explorar y entender cรณdigo del proyecto
Classify the exploration request into one of these categories:
| Query Type | Examples | Primary Tools |
|---|---|---|
| File search | "where is the auth module?", "find all controllers" | Glob |
| Flow trace | "how does login work?", "what happens when a user signs up?" | Read, Grep |
| Pattern search | "where do we use Redis?", "find all API endpoints" | Grep |
| Dependency map | "what depends on UserService?", "what does this module import?" | Grep, Read |
| Architecture overview | "how is the project structured?", "explain the folder layout" | Glob, Read |
src/**/*{keyword}*src/src/**/* to see folder structurepackage.json, config files, main entry pointStart broad, then narrow down:
Round 1: Wide search โ identify relevant areas
Round 2: Focused reads โ understand specific files
Round 3: Cross-references โ trace connections between files
Stop criteria:
Depth limits:
### Files Found: {query}
| # | File | Purpose | Last Modified |
|---|------|---------|---------------|
| 1 | `{path}` | {brief description} | {date} |
| 2 | `{path}` | {brief description} | {date} |
**Key file**: `{path}:{line}` โ {why this is the main one}
### Flow: {description}
**Entry point**: `{file}:{line}`
{step1} โ {step2} โ {step3} โ {step4}
#### Step-by-step
1. **{layer}** โ `{file}:{line}`: {what happens}
2. **{layer}** โ `{file}:{line}`: {what happens}
3. **{layer}** โ `{file}:{line}`: {what happens}
#### Data transformations
- Input: `{type/shape}`
- Processing: `{key transformations}`
- Output: `{type/shape}`
#### Error handling
- `{file}:{line}`: {what errors are caught and how}
### Pattern: {query}
**Total matches**: {N} across {M} files
| # | File | Line | Match Context |
|---|------|------|---------------|
| 1 | `{path}` | {line} | `{matched code snippet}` |
#### Grouped by module
- **{module}**: {N} occurrences โ {pattern description}
### Dependencies: {module}
#### Upstream (uses {module})
| File | How it's used |
|------|---------------|
| `{path}:{line}` | {import/usage description} |
#### Downstream ({module} depends on)
| Dependency | Purpose |
|-----------|---------|
| `{module}` | {why it's needed} |
#### Dependency diagram
{module A} โโโ **{target}** โโโ {module B}
โ โ
{module C} {module D}
file:line references for every finding