dev-toolings/superpowers-symfony117 installs
api-platform-resources
Configure API Platform resources (v5, 4.4, 4.3) with explicit operations, pagination, and typed OpenAPI for clean, versioned REST/GraphQL APIs
How do I install this agent skill?
npx skills add https://github.com/dev-toolings/superpowers-symfony --skill api-platform-resourcesIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill provides comprehensive documentation and configuration examples for API Platform resources in Symfony projects. It includes standard package management and validation commands common to the ecosystem. No security risks were identified.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
Api Platform Resources (Symfony)
Use when
- Exposing a new entity or class as an
#[ApiResource]. - Choosing exactly which of
Get,GetCollection,Post,Put,Patch, andDeletethe API offers. - Tuning collection pagination (items per page, partial pagination, client control).
- Documenting operations with typed OpenAPI objects instead of
openapiContextarrays.
Default workflow
- Install only the components you need:
api-platform/symfony,api-platform/doctrine-orm, and optionallyapi-platform/graphql; on Symfony 6.4 LTS, pin them to~4.3.0. - List every operation in
operations:, since declaring any one stops the automatic CRUD, andPutis never automatic. - Set
uriTemplate,requirements,status, orroutePrefixonly where the defaults do not fit. - Configure pagination through resource attributes or
api_platform.defaultsinconfig/packages/api_platform.yaml. - Describe operations with
openapi:model objects, setvalidationContextgroups, then check the routes and the OpenAPI export.
Guardrails
- Declaring one operation removes the default CRUD: an
operations: [new Get()]resource has no collection,Post, orDelete. openapiContextarrays are deprecated in v4: use the typedopenapi:option.collectionOperationsanditemOperationsno longer exist.paginationClientEnabledlets clients disable pagination: keeppaginationMaximumItemsPerPageset.
Progressive disclosure
- Use this file for execution posture and risk controls.
- Open references when deep implementation details are needed.
Output contract
- The resource class with its explicit operation list and the routes it produces.
- Pagination and OpenAPI settings, with the reason for each override.
- Route listing and test results for each declared operation.
References
reference.md
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/dev-toolings/superpowers-symfony/api-platform-resources">View api-platform-resources on skillZs</a>