Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
implement-api-rate-limiting
implement-api-rate-limiting
alizharb/agent-skills
claude-code
rate-limiting
throttling
middleware
api-security
testing
abuse-controls

Use when adding API rate limits, abuse controls, throttles, and tests for Laravel routes or integrations.

Install
php artisan boost:add-skill alizharb/agent-skills

Save this content to: .claude/skills/implement-api-rate-limiting/SKILL.md

# Implement API Rate Limiting

## Workflow

1. Identify actors, endpoints, authentication mode, abuse risk, and expected traffic.
2. Configure named Laravel rate limiters with meaningful keys.
3. Apply throttles at the route or middleware boundary.
4. Return safe error responses without leaking sensitive details.
5. Add tests for allowed requests, exceeded limits, guests, and authenticated users.

## Verification

- Rate limit tests pass.
- Limits are documented for API consumers when public.

Implement API Rate Limiting

Workflow

  1. Identify actors, endpoints, authentication mode, abuse risk, and expected traffic.
  2. Configure named Laravel rate limiters with meaningful keys.
  3. Apply throttles at the route or middleware boundary.
  4. Return safe error responses without leaking sensitive details.
  5. Add tests for allowed requests, exceeded limits, guests, and authenticated users.

Verification

  • Rate limit tests pass.
  • Limits are documented for API consumers when public.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource