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 Forge Rate Limiting?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ansh44233-forge-rate-limiting)
---
name: forge-rate-limiting
description: Add rate limits that protect logins, APIs and expensive endpoints without blocking legitimate users
---
<!-- Generated from catalog/skills/rate-limiting/SKILL.md by scripts/build-plugin.ts. Edit the catalog, not this file. -->
# Rate limiting
Rate limits stop brute force, scraping and runaway clients, and protect your own costs.
## Design
- Pick the key deliberately: per user/API key when authenticated, per IP (with care behind proxies) otherwise, per account for login attempts.
- Token bucket or sliding window in a shared store (Redis) when there are multiple instances; in-memory only for single-instance apps.
- Stricter limits on login, password reset, signup, OTP and expensive or LLM-backed endpoints.
## Responses
- Return `429` with `Retry-After` and rate-limit headers; never a silent drop.
- Log and alert on sustained limit hits; they are often attacks.
## Pitfalls
- Trust `X-Forwarded-For` only from your own proxy hops.
- Don't count health checks; allow-list internal services explicitly.
## Verify
A test hits the limited endpoint N+1 times and asserts the last response is 429 with `Retry-After`, and that a different user/key is unaffected.