Agent Skills: Controller Cleanup (Symfony)

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

UncategorizedID: makfly/superpowers-symfony/controller-cleanup

Install this agent skill to your local

pnpm dlx add-skill https://github.com/dev-toolings/superpowers-symfony/tree/HEAD/content/skills/controller-cleanup

Skill Files

Browse the full folder contents for controller-cleanup.

Download Skill

Loading file tree…

content/skills/controller-cleanup/SKILL.md

Skill Metadata

Name
controller-cleanup
Description
Refactor fat controllers into lean ones by extracting business logic to services, handlers, and invokable commands

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