Codebase impact analysis and pattern discovery for new features
Analyzes codebase impact for proposed features and discovers existing patterns.
/plugin marketplace add barnabasJ/claude/plugin install essentials@essentials-marketplacefeature-namePerforms comprehensive codebase impact analysis for a proposed feature or change. Maps all affected files, discovers existing patterns and conventions, identifies dependencies, and gathers version-specific documentation. Creates foundation for the plan phase.
Part of the four-phase workflow: research → plan → breakdown → execute
Search ./notes/knowledge/ for similar work:
./notes/knowledge/hard-won-knowledge/ - Previous debugging insights./notes/knowledge/technical-patterns/ - Implementation approaches./notes/knowledge/project/ - Project-specific patternsUse TodoWrite with tasks:
Map all files requiring changes:
**/*pattern*.ext)Document:
Analyze existing code to find:
🚨 Discover what the project uses, not what it could use.
Find version-specific docs for actual dependencies:
Write findings to ./notes/research/[feature-name].md
Document new learnings in ./notes/knowledge/:
| Agent | When to Use |
|---|---|
| research-agent | Deep technical research, documentation gathering |
| architecture-agent | Structural understanding, integration patterns |
| qa-reviewer | Test coverage analysis |
Parallel pattern for algorithm research:
Run in PARALLEL:
├── research-agent: "Research [Language] [Algorithm] patterns"
└── architecture-agent: "Map impact of changing [Module].[function]"
Location: ./notes/research/[feature-name].md
Required sections:
File references must include:
lib/module/parser.exparser.ex:70 or lines 589-615Transformer.list_item_to_blocks/3🚨 Do:
🚨 Don't:
Input: /research markdown-todo-conversion
Process:
1. Check knowledge base → No similar work found
2. Analyze codebase:
- Glob **/*markdown*.ex → found parser.ex, renderer.ex, transformer.ex
- Read parser.ex → Found TaskItem handling at line 70
- Grep "checkbox" → Found in transformer.ex:589-615
3. Discover patterns:
- mix.exs shows mdex 0.9.4
- Uses GFM tasklist extension
- Bidirectional conversion already exists
4. Gather docs:
- https://hexdocs.pm/mdex/0.9.4
- GFM spec for task lists
5. Document findings:
- Parser: lib/app/markdown/parser.ex (TaskItem at :70)
- Transformer: lib/app/markdown/transformer.ex (checkbox :589-615)
- Renderer: lib/app/markdown/renderer.ex (round-trip)
- Finding: Full conversion already implemented
Output: ./notes/research/markdown-todo-conversion.md