symfony:api-platform-dto-resources
Map entities to API DTOs in API Platform v4 with the Symfony Object Mapper (#[Map], stateOptions) for decoupled input/output contracts
Works with
--- name: symfony:api-platform-dto-resources description: Map entities to API DTOs in API Platform v4 with the Symfony Object Mapper (#[Map], stateOptions) for decoupled input/output contracts license: MIT --- # Api Platform Dto Resources (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. 3. Apply operation-specific validation and security constraints. 4. 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`
More General & Other skills
find-skills
vercel-labs/skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
grill-me
mattpocock/skills
A relentless interview to sharpen a plan or design.
grill-with-docs
mattpocock/skills
A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

