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 skills add dev-toolings/superpowers-symfony --skill rate-limitinggit 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/skills/dev-toolings/superpowers-symfony/rate-limiting)<a href="https://agentmods.dev/skills/dev-toolings/superpowers-symfony/rate-limiting"><img src="https://agentmods.dev/badge/skills/dev-toolings/superpowers-symfony/rate-limiting/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/skills/dev-toolings/superpowers-symfony/rate-limiting"><img src="https://agentmods.dev/badge/skills/dev-toolings/superpowers-symfony/rate-limiting.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.00032 | $0.00474 |
| Opus 5.5 | $0.00013 | $0.00190 |
| Sonnet 5.5 | $0.00006 | $0.00095 |
| Haiku 4.5 | $0.00003 | $0.00047 |
Grade A, and why
rate-limiting 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.
This is a copy
81% identical to messenger-retry-failures — 46 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
What it actually says
Rate Limiting (Symfony)
Use when
- Capping how often a caller may reach an endpoint: login, password reset, public API, any public write.
- Choosing between sliding window, token bucket and fixed window.
- Applying a limiter by controller attribute, in a service, or globally through an event subscriber.
- Returning a correct 429 with
Retry-After. - Blocking until a token frees up, rather than refusing outright.
Default workflow
- Name what is limited and what identifies the caller.
- Pick the algorithm the traffic shape calls for, and state the rate and the burst.
- Declare the policy under
framework.rate_limiter, one entry per limiter. - Apply it where the request is refused, and answer 429 with
Retry-After. - Prove the limit under test: the call that passes, the one refused, the reset.
Guardrails
- The caller identity decides who is counted. Behind a proxy, an untrusted client address counts everyone as one.
- A limiter is not authorization. It caps a rate; it never decides a right.
- Refuse with 429 and
Retry-After, never with a silent drop or a 500. - A limiter whose storage is per process does not limit anything across several workers.
- Reserving tokens blocks the calling process: never on a web request.
Progressive disclosure
- Use this file for execution posture and risk controls.
- Open references when deep implementation details are needed.
Output contract
- Limiter policies, with the algorithm, the rate and the burst for each.
- Where each limiter is applied, and on what caller identity.
- The 429 response shape, headers included.
- Tests covering the accepted call, the refused one, and the reset.
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.
- 1mo ago Changed · +6 lines 63d6477e6675
- 2mo ago Changed · +2 lines · +3 tokens per session 27f72cd69e3d
- 3mo ago First seen · 43 lines · 29 tokens per session scan A d3fa4c5f23c6
rate-limiting is a skill published in the GitHub repository dev-toolings/superpowers-symfony (235 stars, last pushed 19d ago), licensed MIT. It adds 32 tokens to every session and 474 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 81% identical to messenger-retry-failures, differing in 46 lines, and is treated as a copy.
rate-limiting compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rate-limitingdev-toolings/superpowers-symfony | Skill | 235 | 19d ago | MIT | A | 32 | Claude Code |
| spine-designtonone-ai/tonone | Skill | 84 | 2d ago | MIT | A | 62 | Claude Code |
| warden-hardentonone-ai/tonone | Skill | 84 | 2d ago | MIT | A | 61 | Claude Code |
| cortex-integratetonone-ai/tonone | Skill | 84 | 2d ago | MIT | A | 58 | Claude Code |
| spine-apitonone-ai/tonone | Skill | 84 | 2d ago | MIT | A | 57 | Claude Code |
| spine-perftonone-ai/tonone | Skill | 84 | 2d ago | MIT | A | 55 | Claude Code |
| spine-reviewtonone-ai/tonone | Skill | 84 | 2d ago | MIT | A | 52 | Claude Code |