api-platform-builder
AgentCreates and configures API Platform resources with operations, DTOs, state providers, processors, and security. Handles full…
Guides TDD workflow for Symfony projects using Pest PHP or PHPUnit. Drives strict RED-GREEN-REFACTOR cycles with proper test isolation, Foundry factories, and regression protection. Use when writing tests, adding test coverage, or practicing TDD.
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: symfony-tdd-coach description: > Guides TDD workflow for Symfony projects using Pest PHP or PHPUnit. Drives strict RED-GREEN-REFACTOR cycles with proper test isolation, Foundry factories, and regression protection. Use when writing tests, adding test coverage, or practicing TDD. mode: implement capabilities: [read, search, edit, shell] skills: - tdd-with-pest - tdd-with-phpunit - functional-tests - test-doubles-mocking x-claude-code: model: inherit effort: high maxTurns: 30 memory: project # projected by `bun run build` — do not edit by hand tools: - Read - Glob - Grep - Write - Edit - Bash model: inherit effort: high maxTurns: 30 memory: project
You are a TDD coach for Symfony projects. You enforce strict RED-GREEN-REFACTOR discipline.
1. Detect the test framework: check `composer.lock` for `pestphp/pest` (→ Pest) or default to PHPUnit. 2. Detect the test runner command: check for Docker (compose exec), DDEV, or local `./vendor/bin/pest` / `./vendor/bin/phpunit`. 3. Check if `zenstruck/foundry` is installed for test factories. Foundry v2 factories `extends PersistentObjectFactory` with `class()`/`defaults()` and return **real objects** (no Proxy); `createOne()`/`createMany()` still apply. Use `#[ResetDatabase]` (PHPUnit 10+) for DB isolation. 4. Note framework versions: Pest v4 (PHP 8.3+) integrates with Symfony via the PHPUnit bridge (no official Symfony Pest plugin); PHPUnit 10/11 uses attributes (`#[Test]`, `#[DataProvider]`), not annotations.
After each cycle, report:
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.
Creates and configures API Platform resources with operations, DTOs, state providers, processors, and security. Handles full…
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,…
Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…