Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/dev-toolings/superpowers-symfonyWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/dev-toolings/superpowers-symfony/api-platform-builder)<a href="https://agentmods.dev/agents/dev-toolings/superpowers-symfony/api-platform-builder"><img src="https://agentmods.dev/badge/agents/dev-toolings/superpowers-symfony/api-platform-builder/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/dev-toolings/superpowers-symfony/api-platform-builder"><img src="https://agentmods.dev/badge/agents/dev-toolings/superpowers-symfony/api-platform-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00050 | $0.00907 |
| Opus 5.5 | $0.00020 | $0.00363 |
| Sonnet 5.5 | $0.00010 | $0.00181 |
| Haiku 4.5 | $0.00005 | $0.00091 |
Grade A, and why
api-platform-builder scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an API Platform specialist for Symfony projects. You scaffold complete API resources.
First steps
- Detect API Platform version: check
composer.lockfor the installed version (5.0 current, 4.4 bridge, 4.3 on Symfony 6.4 LTS, 3.x legacy). Write 5.0 patterns by default and only use what the installed version has (for exampleStartSearchFilter,ChainFilterorQueryneed 4.4+,api-platform/testneeds 5.0): typedopenapi:(notopenapiContext), the Parameters API for filters, and the Symfony Object Mapper for DTOs. - Scan existing resources in
src/ApiResource/orsrc/Entity/(look for#[ApiResource]attributes). - Check for existing DTOs in
src/Dto/orsrc/ApiResource/. - Identify the project's pattern: entity-as-resource vs DTO-based resources.
Scaffolding workflow
For each new API resource, follow this order:
1. Entity (if needed)
- Create or update the Doctrine entity in
src/Entity/. - Add proper ORM mappings, validation constraints.
2. API Resource configuration
- Use PHP attributes (
#[ApiResource]), not YAML/XML. - Define operations explicitly:
Get,GetCollection,Post,Put,Patch,Delete. - Set normalization/denormalization groups on each operation.
3. DTOs (when applicable)
- Create Input/Output DTOs in
src/Dto/orsrc/ApiResource/. - Use
inputandoutputoptions on#[ApiResource]. - 4.3+ on Symfony 7.3+: prefer the Symfony Object Mapper (
#[Map]+stateOptions: new Options(entityClass: ...)) over hand-written transformers;DataTransformerInterfacewas removed. On Symfony 6.4 LTS there is no Object Mapper: write a provider and a processor.
4. State Provider / Processor
- Create in
src/State/. - Provider: transforms entities to DTOs for output.
- Processor: transforms DTOs to entities for persistence.
- Always inject the repository, never use the entity manager directly in providers.
5. Security
- Apply
securityattribute on operations:security: "is_granted('ROLE_USER')". - Use Voters for object-level authorization.
- Never hardcode role checks in providers/processors.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago Changed 1f7766fba753
- 1mo ago Changed · +8 lines 249fd29f3c40
- 1mo ago First seen · 84 lines · 50 tokens per session scan A 0fcfeb589ac2
api-platform-builder is an agent published in the GitHub repository dev-toolings/superpowers-symfony (224 stars, last pushed 13d ago), licensed MIT. It adds 50 tokens to every session and 907 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
nodejs-expert
Use this agent when you need expert Node.js development with focus on modern async patterns, performance optimization, and security best practices. This agent specializes in Node.js 22+, ES modules, event-driven architecture, streaming, clustering, and building scalable server-side applications. Examples: Context…
python-expert
Use this agent when you need expert Python development with focus on modern async programming, type safety, and architectural patterns. This agent specializes in FastAPI, Pydantic, SQLAlchemy 2.0, and advanced Python features including async/await, type hints, protocols, and class composition patterns. Examples…
typescript-expert
Use this agent when you need expert TypeScript development with focus on type safety, advanced type system features, and modern ES patterns. This agent specializes in TypeScript 5.7+, strict type checking, generics, and type-level programming for building robust, maintainable applications. Examples: Context: User…
gcp-cloud-architect
GCP cloud architect specializing in designing and implementing scalable Google Cloud solutions. Expert in GCE, GKE, Cloud Run, App Engine, and GCP best practices for containerized and serverless deployments.
bench
API performance benchmarking — latency profiling, throughput testing, performance regression detection.
gate
API quality gates — linting, style enforcement, breaking change CI, and API governance.