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/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/commands/gerard-labs/superpowers-api-platform/self-audit-api)<a href="https://agentmods.dev/commands/gerard-labs/superpowers-api-platform/self-audit-api"><img src="https://agentmods.dev/badge/commands/gerard-labs/superpowers-api-platform/self-audit-api/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/commands/gerard-labs/superpowers-api-platform/self-audit-api"><img src="https://agentmods.dev/badge/commands/gerard-labs/superpowers-api-platform/self-audit-api.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.00028 | $0.00716 |
| Opus 5.5 | $0.00011 | $0.00286 |
| Sonnet 5.5 | $0.00006 | $0.00143 |
| Haiku 4.5 | $0.00003 | $0.00072 |
Grade A, and why
self-audit-api 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 1mo 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 — 75 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/self-audit-api
Self-audit the current diff against the API Platform 4.3 + Symfony 7.4+ anti-patterns checklist.
Step 1 — Read the canonical checklist
Read docs/symfony/api-platform-anti-patterns.md
Step 2 — Identify changed files
git diff --name-only
git diff --stat
Step 3 — For each anti-pattern category, inspect the diff
| Category | Checks |
|---|---|
| Filters & queries | #[ApiFilter] / extends AbstractFilter / legacy filter classes / filter without explicit property: |
| Operations & serialization | openapiContext: / 'hydra:*' in tests / scalar ID in payload / free string for status / missing MaxDepth / auto-increment public ID |
| Namespaces & deprecated | ApiPlatform\Core\… / SerializerAwareProviderInterface / SerializableProvider / event_listeners_backward_compatibility_layer / keep_legacy_inflector |
| Performance & security | force_eager: true unjustified / MCP without rate limit / CORS * with credentials |
| Symfony 7.4+ | // TODO / // FIXME / @phpstan-ignore without reason / mixed in public signature / Symfony 6.x referenced |
| Tests | Test default page 20 / 'hydra:*' assertion / implementation-style names |
Step 4 — Emit a Y/N checklist
For each item, answer:
Y— pattern absent from the diff (good)N— pattern present in the diff (flag, with file:line)N/A— pattern not applicable to this diff type
Step 5 — Output format
# API Platform 4.3 Self-Audit — <date>
Diff: <N> files, +<X>/-<Y> lines
## Anti-patterns checklist
| # | Item | Status | Details |
|---|---|---|---|
| 1 | No #[ApiFilter] | Y / N / N/A | <file:line if N> |
| 2 | No extends AbstractFilter | Y / N / N/A | ... |
| ... | ... | ... | ... |
## Summary
- Y: <N>/24
- N: <N>/24 — addressable before merge
- N/A: <N>/24 — skip (out of scope)
## Action items (N items only)
1. <file:line> — <rule> — <recommended fix>
When to run
- Before manually committing a non-pipelined change
- After a
/devto double-check the implementer's self-audit - In a CI step on every PR (optional — the lint script does this systematically)
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.
- 1mo ago First seen · 75 lines · 28 tokens per session scan A b7d4b5a3e436
self-audit-api is a command published in the GitHub repository gerard-labs/superpowers-api-platform (2 stars, last pushed 5mo ago), licensed MIT. It adds 28 tokens to every session and 716 once invoked, about $0.0001 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-31.
Other commands, from other repositories
docs
The documentation report: references, diagrams, drift, API docs, badges, README structure, links, Pages.
doctor
Report which formatters this repository needs, which are installed, and how to install the rest.
symfony-doctrine-relations
Guide for implementing Doctrine entity relationships (OneToMany, ManyToMany).
symfony-api-resources
Configure API Platform resources with operations and pagination.
symfony-cache
Implement caching strategies using Symfony Cache component.
symfony-messenger
Implement async message handling with Symfony Messenger.