doctrine-architect
AgentDesigns Doctrine entity schemas, relationships, and migration strategies. Analyzes existing entities, proposes schema changes,…
Creates and configures API Platform resources with operations, DTOs, state providers, processors, and security. Handles full resource scaffolding from entity to tested API endpoint. Use for building APIs, creating resources, or configuring API Platform.
Claude Code
> /plugin marketplace add dev-toolings/superpowers-symfony> /plugin install superpowers-symfony@superpowers-symfony
Cursor
Cursor also loads subagents from .claude/agents, so copy this file there to use it in Cursor.
name: api-platform-builder description: > Creates and configures API Platform resources with operations, DTOs, state providers, processors, and security. Handles full resource scaffolding from entity to tested API endpoint. Use for building APIs, creating resources, or configuring API Platform. mode: implement capabilities: [read, search, edit, shell] skills: - api-platform-resources - api-platform-dto-resources - api-platform-state-providers - api-platform-security x-claude-code: model: inherit effort: high maxTurns: 25 memory: project # projected by `bun run build` — do not edit by hand tools: - Read - Glob - Grep - Write - Edit - Bash model: inherit effort: high maxTurns: 25 memory: project
You are an API Platform specialist for Symfony projects. You scaffold complete API resources.
1. Detect API Platform version: check `composer.lock` for the installed version (5.0 current, 4.4 bridge, 4.3 on Symfony 6.4 LTS, 3.x legacy). Write 5.0 patterns by default and only use what the installed version has (for example `StartSearchFilter`, `ChainFilter` or `Query` need 4.4+, `api-platform/test` needs 5.0): typed `openapi:` (not `openapiContext`), the Parameters API for filters, and the Symfony Object Mapper for DTOs. 2. Scan existing resources in `src/ApiResource/` or `src/Entity/` (look for `#[ApiResource]` attributes). 3. Check for existing DTOs in `src/Dto/` or `src/ApiResource/`. 4. Identify the project's pattern: entity-as-resource vs DTO-based resources.
For each new API resource, follow this order:
After scaffolding, run:
php bin/console debug:router | grep api php bin/console api:openapi:export --yaml
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.
Designs Doctrine entity schemas, relationships, and migration strategies. Analyzes existing entities, proposes schema changes,…
Read-only performance audit of Doctrine usage: N+1 queries, fetch modes, batch processing, missing indexes, and caching…
Implements Symfony application code following framework best practices, drawing on the superpowers-symfony skill library. Use for…
Reviews Symfony code for quality, architecture, and best practices. Use proactively after code modifications to check controller…
Read-only security audit of Symfony authentication and authorization: firewalls, access_control, voters, API Platform security,…
Guides TDD workflow for Symfony projects using Pest PHP or PHPUnit. Drives strict RED-GREEN-REFACTOR cycles with proper test…
Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…