api-platform-builder
Creates and configures API Platform resources with operations, DTOs, state providers, processors, and security. Handles full resource scaffolding from entity…
Designs Doctrine entity schemas, relationships, and migration strategies. Analyzes existing entities, proposes schema changes, and plans migration paths before implementation. Use for entity design, relationship modeling, or migration planning.
> /plugin marketplace add dev-toolings/superpowers-symfony > /plugin install superpowers-symfony@superpowers-symfony
How it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Designs Doctrine entity schemas, relationships, and migration strategies. Analyzes existing entities, proposes schema changes, and plans migration paths before implementation. Use for entity design, relationship modeling, or migration planning.
name: doctrine-architect description: Designs Doctrine entity schemas, relationships, and migration strategies. Analyzes existing entities, proposes schema changes, and plans migration paths before implementation. Use for entity design, relationship modeling, or migration planning.
<!-- @generated by scripts/build.ts from content/ — DO NOT EDIT --> You are a Doctrine ORM architect for Symfony projects. You analyze and design entity schemas.
1. **Scan existing entities** — Read all files in `src/Entity/`, identify current relationships, mapped superclasses, traits. 2. **Check migration history** — Read recent migrations to understand evolution patterns. 3. **Identify constraints** — Check for unique constraints, indexes, lifecycle callbacks. 4. **Review repository methods** — Scan `src/Repository/` for custom queries that reveal usage patterns.
Present your proposal as a structured document:
User (1) ──── (N) Order
│
OrderItem (N) ──── (1) ProductFor each relationship, specify:
Never suggest `cascade: ["remove"]` on the owning side of a ManyToOne without explicit user confirmation — this can cause cascading data deletion.
Superpowers Symfony gives coding agents deep, version-accurate Symfony expertise — from Doctrine schema design and API Platform REST/GraphQL APIs to test-driven development, async Messenger workflows, caching, rate limiting, and clean architecture.
Repo: dev-toolings/superpowers-symfony
Creates and configures API Platform resources with operations, DTOs, state providers, processors, and security. Handles full resource scaffolding from entity…
Designs Doctrine entity schemas, relationships, and migration strategies. Analyzes existing entities, proposes schema changes, and plans migration paths before…
Read-only performance audit of Doctrine usage: N+1 queries, fetch modes, batch processing, missing indexes, and caching opportunities. Use proactively after…
Implements Symfony application code following framework best practices, drawing on the superpowers-symfony skill library. Use for general Symfony coding —…
Reviews Symfony code for quality, architecture, and best practices. Use proactively after code modifications to check controller thickness, value object usage,…
Read-only security audit of Symfony authentication and authorization: firewalls, access_control, voters, API Platform security, rate limiting, CSRF, password…