| name | api-rate-limit-guard |
| description | Implement and manage API usage limits to protect infrastructure. |
API Rate-Limit Guard
This skill prevents system abuse and ensures fair resource usage by limiting how often APIs can be called.
Instructions
- Implement rate-limiting logic (Token bucket, Sliding window).
- Set up different limits for different user tiers (Free vs Pro).
- Provide clear HTTP 429 error messages with 'Retry-After' headers.
- Use Redis for fast, distributed limit tracking.
- Monitor for 'Bursty' traffic and adjust limits dynamically.
Examples
- "Add a rate limit of 10 requests per minute to my public API."
- "Implement a tiered rate-limiting system for my SaaS users."