Deep-dive into a domain area of the codebase
Explore a specific area of the codebase and produce a structured summary.
Accept a topic: e.g., "authentication flow", "payment processing", "notification system"
Search the codebase: find all related models, services, API endpoints, background jobs, constants, and tests. Use sub agents for parallel searches across different layers.
Trace relationships: map entity relationships, service call chains, and request-to-response flows.
Flag gotchas:
Output:
## <Topic> Overview
### Data Model
- <Entity>: <key fields, relationships>
### Services / Business Logic
- <Service>: <purpose, input/output>
### API Endpoints
- <endpoint>: <method, permissions>
### Data Flow
<how data moves through the system>
### Gotchas
- <things to watch out for>
### Related Tests
- <test file locations>