Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
makfly avatar

Symfony:strategy Pattern Skill

  • 413 installs
  • 190 repo stars
  • Updated August 6, 2026
  • makfly/superpowers-symfony

symfony:strategy-pattern is a Claude Code skill that implements the Strategy pattern in Symfony using tagged services and dependency injection for developers who need pluggable pricing, payment, or notification algorithm

About

symfony:strategy-pattern is an agent skill from makfly/superpowers-symfony, a plugin shipping 47 Symfony-focused skills across testing, Doctrine, API Platform, and architecture. The skill applies a checkpoint-driven workflow to refactor conditional Symfony services into interchangeable strategies wired through Symfony's tagged services and autowiring. Agents inspect coupling points, propose incremental plans with acceptance criteria, and deliver code-level changes for runtime algorithm selection in domains like pricing rules, payment providers, and notification channels. The parent plugin supports Symfony 6.4 LTS through 8.1 and API Platform 3.x–4.x. Reach for symfony:strategy-pattern when replacing growing if/else or switch blocks in services with testable, injectable strategy implementations rather than ad-hoc refactors.

  • Interface-driven strategy contracts
  • Tagged iterator and locator wiring
  • Runtime strategy selection
  • PHPUnit-friendly strategy doubles
  • Keeps controllers thin and testable

Symfony:Strategy Pattern by the numbers

  • 413 all-time installs (skills.sh)
  • Ranked #24 of 68 PHP & Laravel skills by installs in the Skillselion catalog
  • Data as of Aug 11, 2026 (Skillselion catalog sync)
npx skills add https://github.com/makfly/superpowers-symfony --skill symfonystrategy-pattern

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs413
repo stars190
Last updatedAugust 6, 2026
Repositorymakfly/superpowers-symfony

How do you implement Strategy pattern in Symfony?

Refactor Symfony services with interchangeable algorithms—pricing rules, payment providers, or notification channels—using the Strategy pattern and DI tags.

Who is it for?

Symfony backend developers refactoring conditional business logic into extensible, DI-driven strategy classes.

Skip if: Greenfield Symfony apps with no conditional service logic or teams not using Symfony dependency injection.

When should I use this skill?

A Symfony service needs interchangeable algorithms for pricing, payments, notifications, or similar runtime selection.

What you get

Tagged strategy services, services.yaml wiring, checkpoint test criteria, and an incremental refactor plan with decision log.

  • Tagged strategy service classes
  • services.yaml tag configuration
  • Checkpoint validation criteria

By the numbers

  • Parent plugin bundles 47 Symfony skills
  • Architecture category includes 7 skills in superpowers-symfony

Files

SKILL.mdMarkdownGitHub ↗

Strategy Pattern (Symfony)

Use when

  • Refining architecture/workflows/context handling in Symfony projects.
  • Planning and executing medium/complex changes safely.

Default workflow

1. Establish current boundaries, constraints, and coupling points. 2. Propose smallest coherent architectural adjustment. 3. Execute in checkpoints with validation at each stage. 4. Summarize tradeoffs and follow-up backlog.

Guardrails

  • Use existing project patterns by default.
  • Avoid broad refactors without explicit need.
  • Keep decision log clear and auditable.

Progressive disclosure

  • Use this file for execution posture and risk controls.
  • Open references when deep implementation details are needed.

Output contract

  • Architecture/workflow changes.
  • Checkpoint validation outcomes.
  • Residual risks and next steps.

References

  • reference.md
  • docs/complexity-tiers.md

Related skills

How it compares

Pick symfony:strategy-pattern over generic refactoring skills when Symfony DI tags and services.yaml wiring are required, not language-agnostic pattern theory.

FAQ

What Symfony versions does symfony:strategy-pattern support?

symfony:strategy-pattern ships inside superpowers-symfony v0.1.0, which documents full support for Symfony 8.1, 8.0, and 7.4 LTS, with Symfony 6.4 LTS listed as supported legacy.

How does symfony:strategy-pattern reduce refactor risk?

symfony:strategy-pattern breaks Strategy pattern rollouts into checkpoints, each with explicit acceptance criteria such as unit tests, metrics, or manual checks, plus a decision log capturing rationale and residual risks.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.