dev-toolings/superpowers-symfony

symfony:controller-cleanup

Refactor fat controllers into lean ones by extracting business logic to services, handlers, and invokable commands

Zobacz źródło
Oryginalny dokument Skill

Treść z repozytorium z zachowaniem nagłówków, przykładów, kodu, tabel, linków i obrazów.

Controller Cleanup (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
z tego samego repozytorium

Więcej Skills

Wszystkie Skills