implement-api-rate-limiting
Installation
SKILL.md
Implement API Rate Limiting
Workflow
- Identify actors, endpoints, authentication mode, abuse risk, and expected traffic.
- Configure named Laravel rate limiters with meaningful keys.
- Apply throttles at the route or middleware boundary.
- Return safe error responses without leaking sensitive details.
- Add tests for allowed requests, exceeded limits, guests, and authenticated users.
Verification
- Rate limit tests pass.
- Limits are documented for API consumers when public.