| name | cookbook |
| description | Look up an ExtremePackaging recipe (DI, ViewModels, layering, testing) by example. Use when the user describes a pattern they want to apply. |
Look up an ExtremePackaging cookbook recipe.
The user will describe what they want to do. Search the codebase for existing examples of that pattern, then explain:
- How it's done in this project: show the actual code
- The EP rule behind it: see the ExtremePackaging rules in the rules-swift repo (github.com/mihaelamj/rules-swift), starting at
critical-rules.md and when-to-create.md
- Common mistakes: what NOT to do and why
Cover recipes like:
- Adding a new feature package
- Wiring a ViewModel with @Observable + @Dependency
- Creating a protocol in ServiceProtocols and implementing in Services
- Setting up dependency injection with Point-Free Dependencies
- Adding a new app target as a thin shell
- Organizing imports across layers
- Testing with withDependencies