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.
npx agentmods add skills/gerard-labs/superpowers-api-platform/api-platform-resiliencenpx skills add gerard-labs/superpowers-api-platform --skill api-platform-resiliencegit clone --depth 1 https://github.com/gerard-labs/superpowers-api-platformWrote 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/skills/gerard-labs/superpowers-api-platform/api-platform-resilience)<a href="https://agentmods.dev/skills/gerard-labs/superpowers-api-platform/api-platform-resilience"><img src="https://agentmods.dev/badge/skills/gerard-labs/superpowers-api-platform/api-platform-resilience.svg" alt="Measured on agentmods" 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.00000 | $0.00636 |
| Opus 5 | $0.00000 | $0.00318 |
| Sonnet 5 | $0.00000 | $0.00127 |
| Haiku 4.5 | $0.00000 | $0.00064 |
Grade A, and why
api-platform-resilience 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 5d 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 — 48 lines — stays where its author put it; the contents beside it link to each section on GitHub.
API Platform 4.3 — Resilience
Use when
- The API depends on a third-party service (ERP, CRM, payment, mailer, search).
- Writes are slow and should not block the user request.
- The third-party is intermittently unreliable.
- A degraded-mode response is preferable to a 5xx.
Default workflow
- Identify each external dependency. Decide its criticality (must succeed sync vs degraded fallback acceptable).
- Wrap external calls in a Circuit Breaker with three states (Closed / Open / Half-Open).
- On Open: serve a cached fallback and add
_notice.type: degraded_modeto the response. - For slow writes: persist a
pending_*status, dispatch a Messenger command, return HTTP 202. - Model the lifecycle with Symfony Workflow (
draft → pending_erp_processing → processed | failed). - Configure exponential backoff retry + DLQ on the Messenger transport.
Guardrails
- No silent fallback. Always surface degraded mode in the response so the client can decide.
- Idempotency on external calls — assume retries will happen.
- Timeouts on every HTTP / RPC call — never block indefinitely.
- DLQ monitored. Failures accumulating in
failedmust trigger an alert; don'tmessenger:failed:retryblindly.
Progressive disclosure
SKILL.mdcovers posture and rules.reference.mdcarries the full patterns: Circuit Breaker implementation (states, transitions, fallback cache), degraded-mode JSON shape, async write end-to-end (Processor, status, Messenger transport, retry strategy, failed transport, Workflow), exposing the status through the API.
Output contract
- Each external dependency wrapped in a Circuit Breaker (and tested).
- Async writes return HTTP 202 with a queryable
statusfield. - Messenger retry strategy + DLQ configured per transport.
- Workflow definition (
draft → pending → processed | failed) explicit. - Tests cover the Open state (degraded fallback), the failure transport, and the recovery path.
References
reference.md
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 5d ago First seen · 48 lines · 0 tokens per session scan A db4eca64eeb1
api-platform-resilience is a skill published in the GitHub repository gerard-labs/superpowers-api-platform (2 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 636 tokens. 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-31.
Other skills, from other repositories
symfony:doctrine-events
React to Doctrine entity lifecycle in Symfony with attribute listeners (#[AsDoctrineListener]/#[AsEntityListener], ORM 3) and lifecycle callbacks.
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.
symfony:api-platform-filters
Implement API Platform filters - v4 Parameters API (QueryParameter) and legacy.
symfony:api-platform-versioning
Evolve API Platform APIs via deprecation (deprecationReason/sunset, RFC 8594/9745), the recommended alternative to versioning; plus path/header strategies.
symfony:bootstrap-check
Verify Symfony project configuration including .env, services.yaml, doctrine settings, and framework requirements.
symfony:brainstorming
Structured brainstorming for Symfony projects - explore requirements, identify components, and plan architecture collaboratively.