rate-limiting

rate-limiting is a skill for Claude Code from dev-toolings/superpowers-symfony. It costs 32 tokens per session (474 once invoked), scanned A, a copy of messenger-retry-failures, MIT.

A Symfony guide for rate limiting, which controls how often a user or system may perform an action. It covers sliding-window, token-bucket, and fixed-window approaches using Symfony's RateLimiter.

In plain words
What is it for?
Use it to add request limits, choose a limiting strategy, and configure or review retry and failure handling for Symfony Messenger, Scheduler, or Cache workflows.
Why use it?
It helps protect endpoints and background work from excessive requests or repeated processing. The supplied workflow also addresses retries and failed asynchronous messages.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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

Good fit Use it to add request limits, choose a limiting strategy, and configure or review retry and failure handling for Symfony Messenger, Scheduler, or Cache workflows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dev-toolings/superpowers-symfony/rate-limiting
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.

Any agent
npx skills add dev-toolings/superpowers-symfony --skill rate-limiting
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 rate-limiting

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

agentmods 80×15 button for rate-limiting

Your own site · 80×15
<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>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 474 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 81% copy Near-identical to another mod 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.00032 $0.00474
Opus 5.5 $0.00013 $0.00190
Sonnet 5.5 $0.00006 $0.00095
Haiku 4.5 $0.00003 $0.00047

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

Security

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.

Origin

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.

content/skills/rate-limiting/SKILL.md · 51 lines

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

  1. Name what is limited and what identifies the caller.
  2. Pick the algorithm the traffic shape calls for, and state the rate and the burst.
  3. Declare the policy under framework.rate_limiter, one entry per limiter.
  4. Apply it where the request is refused, and answer 429 with Retry-After.
  5. 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
Files

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.

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. 1mo ago Changed · +6 lines 63d6477e6675
  2. 2mo ago Changed · +2 lines · +3 tokens per session 27f72cd69e3d
  3. 3mo ago First seen · 43 lines · 29 tokens per session scan A d3fa4c5f23c6

Subscribe to this mod's changes

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.

Related

rate-limiting compared with skills from other repositories

rate-limiting next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rate-limitingdev-toolings/superpowers-symfonySkill23519d agoMITA32Claude Code
spine-designtonone-ai/tononeSkill842d agoMITA62Claude Code
warden-hardentonone-ai/tononeSkill842d agoMITA61Claude Code
cortex-integratetonone-ai/tononeSkill842d agoMITA58Claude Code
spine-apitonone-ai/tononeSkill842d agoMITA57Claude Code
spine-perftonone-ai/tononeSkill842d agoMITA55Claude Code
spine-reviewtonone-ai/tononeSkill842d agoMITA52Claude Code