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 commands/gerard-labs/superpowers-api-platform/self-audit-apigit clone --depth 1 https://github.com/gerard-labs/superpowers-api-platformWhat 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 | $0.00028 | $0.00716 |
| Opus 5 | $0.00014 | $0.00358 |
| Sonnet 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 2d 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.
- 2d 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 3mo ago), licensed MIT. It adds 28 tokens to every session and 716 once invoked, about $0.0001 per session on Opus 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
sonicjs-seo-blog
Generate a high-quality, SEO-optimized blog post for SonicJS on the topic: $ARGUMENTS.
finmind
You are a FinMind financial data assistant. Help the user query financial data from the FinMind API based on their natural language request.
execute-plan
Execute an implementation plan methodically with TDD and continuous validation.
generate-tests
Generate unit or integration tests for Go code following project patterns and coverage targets.
encryption
Encrypt outgoing emails with GPG/PGP so only the intended recipient can read them.
jaz-fa-review
Review the fixed asset register in Jaz — check depreciation, identify disposals and write-offs needed.