home / skills / makfly / superpowers-symfony / api-platform-versioning
This skill helps you design and evolve API Platform contracts in Symfony with explicit versioned operations, mappings, and policy-safe behavior.
npx playbooks add skill makfly/superpowers-symfony --skill api-platform-versioningReview the files below or copy the command above to add this skill to your agents.
---
name: symfony:api-platform-versioning
allowed-tools:
- Read
- Write
- Edit
- Bash
- Glob
- Grep
description: Deliver robust API Platform contracts in Symfony with explicit operations, mapping, and policy-safe behavior. Use for api platform versioning tasks.
---
# Api Platform Versioning (Symfony)
## Use when
- Designing or evolving API Platform contracts and operations.
- Aligning serialization, validation, and security behavior.
## Default workflow
1. Define operation-level contract and payload boundaries.
2. Implement resource/DTO/provider/processor changes with explicit mapping.
2. Apply operation-specific validation and security constraints.
2. Validate functional behavior across happy and negative paths.
## Guardrails
- Keep API contract explicit and version-aware.
- Avoid exposing internal entity fields implicitly.
- Prevent drift between docs and actual serialization.
## Progressive disclosure
- Use this file for execution posture and risk controls.
- Open references when deep implementation details are needed.
## Output contract
- API artifacts changed (resource/DTO/provider/processor).
- Contract/security decisions and rationale.
- Functional verification results.
## References
- `reference.md`
- `docs/complexity-tiers.md`
This skill helps deliver robust API Platform contracts in Symfony by making operations, mappings, and policy behavior explicit and version-aware. It guides teams through defining operation-level boundaries, implementing resource and DTO changes with clear mapping, and validating security and serialization to prevent contract drift. Use it to keep API behavior predictable and safe across versions.
The skill inspects API Platform operations and enforces explicit contract definitions for each operation, including input/output DTOs, providers, and processors. It checks mapping rules, serialization groups, validation constraints, and operation-level security to ensure implementation matches the declared contract. It produces an output contract summarizing changed artifacts, security decisions, and functional verification results.
What output should I expect after running this skill?
A concise contract summary listing changed artifacts (resources/DTOs/providers/processors), documented security and policy decisions, and functional verification results for key paths.
How does this prevent documentation drift?
By enforcing explicit serialization groups and DTO boundaries per operation and requiring contract updates alongside implementation changes, so docs reflect actual runtime behavior.