dev-toolings/superpowers-symfony114 installs
api-platform-serialization
Control API Platform serialization with groups, #[Context], IRI links (readableLink/writableLink), and custom context builders
How do I install this agent skill?
npx skills add https://github.com/dev-toolings/superpowers-symfony --skill api-platform-serializationIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill provides guidance and technical reference materials for Symfony API Platform serialization. It is a standard developer resource and does not contain malicious patterns. It includes instructions for running local validation tools which is appropriate for its purpose, though like all coding skills, it possesses an inherent surface for indirect prompt injection from analyzed code.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
Api Platform Serialization (Symfony)
Use when
- Operations must expose different fields (list, read, create, update).
- A related resource must render as an IRI or be embedded.
- A response needs computed or role-dependent fields.
- A property needs normalizer options such as a date format.
Default workflow
- Name groups
entity:operationand setnormalizationContextanddenormalizationContextper operation. - Tag properties with
#[Groups]from the SerializerAttributenamespace, not the oldAnnotationone. - Control relations with
#[ApiProperty(readableLink: false, writableLink: false)]to force IRIs. - Apply per-property options with
#[Context]instead of writing a normalizer. - Add computed fields in a custom normalizer, and dynamic groups in a decorator of
api_platform.serializer.context_builder. - Prevent cycles with
#[MaxDepth]andenable_max_depth, and hide secrets with#[Ignore].
Guardrails
- Use separate read and write groups: for example
passwordonly in the create group,idonly in read groups. - A related resource is embedded only when it shares a group with the parent; otherwise it renders as an IRI.
#[MaxDepth]has no effect unlessenable_max_depthis true in the context.- Keep entities clean: computed fields belong in normalizers.
Progressive disclosure
- Use this file for execution posture and risk controls.
- Open references when deep implementation details are needed.
Output contract
- The groups and contexts per operation, as a field matrix.
- Normalizers or context builders added, and how they are registered.
- Tests or OpenAPI output showing the resulting fields.
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-serialization">View api-platform-serialization on skillZs</a>