mcpField
S
symfony:doctrine-fetch-modes

symfony:doctrine-fetch-modes

github.com/dev-toolingsData & databases227526 installsUpdated 4w ago
Repository

About symfony:doctrine-fetch-modes

A skill for Symfony and Doctrine developers designing entity relations, migrations, and fetch behavior. It emphasizes data integrity, performance, and targeted lifecycle tests.

Key features

  1. 01Design entity relations and cardinality
  2. 02Apply schema changes safely
  3. 03Tune query and fetch behavior
  4. 04Verify lifecycle with targeted tests

Use cases

  1. 01Plan entity relation changes
  2. 02Reduce query costs on hot paths
  3. 03Address N+1 queries or over-fetching

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/dev-toolings/superpowers-symfony --skill symfony:doctrine-fetch-modes

After installing, type/symfony:doctrine-fetch-modesin Claude Code to confirm it loaded.

Bundled filesreference.md

Details

From the project README

Doctrine Fetch Modes (Symfony)

Use when

  • Designing entity relations or schema evolution.
  • Improving Doctrine correctness/performance.

Default workflow

  1. Model ownership/cardinality and transactional boundaries.
  2. Apply mapping/schema changes with migration safety.
  3. Tune fetch/query behavior for hot paths.
  4. 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.md
  • docs/complexity-tiers.md

Comments

Markdown supported