api-platform-builder

api-platform-builder is an agent for Claude Code from dev-toolings/superpowers-symfony. It costs 50 tokens per session (907 once invoked), scanned A, original, MIT.

A Symfony assistant for building API Platform resources. API Platform is a Symfony tool for exposing application data through web APIs; a resource defines what clients can read or change and how those operations work.

In plain words
What is it for?
Use it to create or configure API resources, read and write operations, input and output DTOs, state providers, processors, filters, validation, serialization groups, and API security.
Why use it?
It reduces the setup needed to turn application data into a tested API and helps keep operations, data transfer objects, validation, and permissions organized. It checks the installed API Platform version before choosing patterns.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the superpowers-symfony plugin — 44 skills, 13 commands, 7 agents, 1 hook shipped together

Good fit Use it to create or configure API resources, read and write operations, input and output DTOs, state providers, processors, filters, validation, serialization groups, and API security.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/dev-toolings/superpowers-symfony/api-platform-builder
Install

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.

Clone the repo
git clone --depth 1 https://github.com/dev-toolings/superpowers-symfony

Made for: Claude Code.

Or install superpowers-symfony, the plugin that ships this one along with the rest of its 44 skills, 13 commands, 7 agents, 1 hook.

Wrote 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.

agentmods badge for api-platform-builder

README.md
[![agentmods](https://agentmods.dev/badge/agents/dev-toolings/superpowers-symfony/api-platform-builder/github.svg)](https://agentmods.dev/agents/dev-toolings/superpowers-symfony/api-platform-builder)
Your own site
<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.

agentmods 80×15 button for api-platform-builder

Your own site · 80×15
<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>
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 907 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 12d ago against content hash 1f7766fba753, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

content/agents/api-platform-builder.md · 92 lines

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

  1. Detect API Platform version: check composer.lock for 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 example StartSearchFilter, ChainFilter or Query need 4.4+, api-platform/test needs 5.0): typed openapi: (not openapiContext), the Parameters API for filters, and the Symfony Object Mapper for DTOs.
  2. Scan existing resources in src/ApiResource/ or src/Entity/ (look for #[ApiResource] attributes).
  3. Check for existing DTOs in src/Dto/ or src/ApiResource/.
  4. 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/ or src/ApiResource/.
  • Use input and output options on #[ApiResource].
  • 4.3+ on Symfony 7.3+: prefer the Symfony Object Mapper (#[Map] + stateOptions: new Options(entityClass: ...)) over hand-written transformers; DataTransformerInterface was 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 security attribute on operations: security: "is_granted('ROLE_USER')".
  • Use Voters for object-level authorization.
  • Never hardcode role checks in providers/processors.

Read the full file on GitHub · 92 lines

Changes

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.

  1. 12d ago Changed 1f7766fba753
  2. 1mo ago Changed · +8 lines 249fd29f3c40
  3. 1mo ago First seen · 84 lines · 50 tokens per session scan A 0fcfeb589ac2

Subscribe to this mod's changes

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.

Related

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…

andisab/swe-marketplace · 391 tokens

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…

andisab/swe-marketplace · 446 tokens

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…

andisab/swe-marketplace · 408 tokens

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.

andisab/swe-marketplace · 47 tokens

bench

API performance benchmarking — latency profiling, throughput testing, performance regression detection.

tonone-ai/tonone · 15 tokens

gate

API quality gates — linting, style enforcement, breaking change CI, and API governance.

tonone-ai/tonone · 19 tokens