From superpowers-symfony
Implements the Strategy pattern using Symfony tagged services for runtime algorithm selection and extensibility. Helps refactor conditional logic into decoupled strategies.
How this skill is triggered — by the user, by Claude, or both
Slash command
/superpowers-symfony:strategy-patternThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
- Refining architecture/workflows/context handling in Symfony projects.
reference.mddocs/complexity-tiers.mdnpx claudepluginhub makfly/superpowers-symfony --plugin superpowers-symfonyGuides Symfony project workflows, architecture refinements, and safe change execution with checkpoints and validation.
Generates PHP 8.4 Strategy pattern with interface, concrete strategies, resolver, optional service, and unit tests for interchangeable algorithm families like pricing or sorting.
Encapsulates interchangeable algorithms in separate classes, enabling runtime swapping without conditional logic. Useful when multiple behaviors exist for a task.