S
symfony:doctrine-relations
About symfony:doctrine-relations
symfony:doctrine-relations is a workflow skill for Symfony developers designing Doctrine relationships or changing schemas. It emphasizes coherent mappings, migration safety, query performance, and targeted lifecycle tests.
Key features
- 01Model ownership and cardinality
- 02Plan migration-safe schema changes
- 03Tune fetching and query behavior
- 04Check lifecycle behavior with tests
- 05Avoid N+1 queries and over-fetching
Use cases
- 01Designing entity relationships
- 02Evolving a database schema safely
- 03Improving query performance on hot paths
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ dev-toolings/ superpowers-symfony --skill symfony:doctrine-relationsAfter installing, type/symfony:doctrine-relationsin Claude Code to confirm it loaded.
Bundled filesreference.md
Details
From the project READMEDoctrine Relations (Symfony)
Use when
- Designing entity relations or schema evolution.
- Improving Doctrine correctness/performance.
Default workflow
- Model ownership/cardinality and transactional boundaries.
- Apply mapping/schema changes with migration safety.
- Tune fetch/query behavior for hot paths.
- Verify lifecycle behavior with targeted tests.
Guardrails
- Keep owning/inverse sides coherent.
- Avoid destructive migration jumps in one release.
- Eliminate accidental N+1 and over-fetching.
Progressive disclosure
- Use this file for execution posture and risk controls.
- Open references when deep implementation details are needed.
Output contract
- Entity/migration changes.
- Integrity and performance decisions.
- Validation outcomes and rollback notes.
References
reference.mddocs/complexity-tiers.md
Comments
Markdown supported