Use when analyzing dependencies, planning migration, or testing modules. Trigger with modularization ops request. Loaded by ai-maestro-architect-agent-main-agent
Covers dependency management, monolith decomposition via the Strangler Fig pattern, and testing strategies for modular systems.
Copy this checklist and track your progress:
| Document | Contents |
|---|---|
| dependency-analysis.md | Overview, The Dependency Problem, Dependency Direction Rules, Visualizing Dependencies, The Shared Code Problem, Circular Dependency Detection and Resolution, Dependency Injection |
| strangler-pattern.md | Overview, Why Strangler Pattern?, The Strangler Fig Pattern, Step-by-Step Monolith Decomposition, Extraction Candidate: [Feature Name], Dealing with Dependencies, Example: Extracting Authentication |
| module-testing.md | Overview, Testing Pyramid for Modular Systems, Unit Testing Modules, Mocking Module Dependencies, Contract Testing, Integration Testing, Test Doubles Taxonomy |
Example: Resolve circular dependency between OrderModule and InventoryModule by extracting shared StockInterface
| Problem | Solution |
|---|---|
| Circular dependency | Extract shared interface or invert dependency |
| Cannot test in isolation | Apply DIP, inject dependencies |
| Shared code causes ripple changes | Reduce shared surface, consider duplication |
| Phase | Artifact |
|---|---|
| Dependencies | Dependency graph with direction analysis |
| Migration | Strangler pattern extraction plan |
| Testing | Test strategy with coverage targets |
See Reference Documents table above.