Use when an endpoint or a worker needs protection from bursts: counts requests in a token bucket or sliding window, limits per client and globally, returns 429 with a Retry-After header, and keeps clients from all coming back in lockstep.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Rate Limiting?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/autonomous-ai-rate-limiting)
---
name: rate-limiting
description: "Use when an endpoint or a worker needs protection from bursts: counts requests in a token bucket or sliding window, limits per client and globally, returns 429 with a Retry-After header, and keeps clients from all coming back in lockstep."
---
Count requests per limited unit in the shared store the service already uses. Return the limit and the remaining budget in headers, and 429 with Retry-After once it is spent. Clients wait as Retry-After says and give up after a bounded number of attempts.