com um clique
rate-limiter
Adds rate limiting to API endpoints with Redis or in-memory storage
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Adds rate limiting to API endpoints with Redis or in-memory storage
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Analyzes the current session's token usage, pinpoints where tokens were wasted, and produces concrete optimization actions
Generates API documentation from route definitions (Express, Fastify, Hono, etc.)
Adds caching to expensive operations - Redis, in-memory, HTTP cache headers
Staged değişiklikleri analiz edip Conventional Commits formatında commit mesajı oluşturur
Reports cyclomatic complexity hotspots and refactoring suggestions
Finds unused functions, variables, exports, and dependencies across the codebase
| name | rate-limiter |
| description | Adds rate limiting to API endpoints with Redis or in-memory storage |
| argument-hint | ["endpoint-pattern"] |
| user-invocable | true |
| allowed-tools | Read Glob Edit |
| effort | low |
Endpoint: $1 (or all routes if not specified)
cat package.json | grep -E '"express-rate-limit"|"@fastify/rate-limit"|"rate-limiter-flexible"|"upstash"'
grep -rn "rateLimit\|rateLimiter" src/ --include="*.ts" | head -5
cat package.json | grep -E '"ioredis"|"redis"|"@upstash/redis"'
Tiered limits by endpoint sensitivity:
// Auth endpoints - strict
authLimiter = rateLimit({ windowMs: 15 * 60 * 1000, max: 5 })
// API endpoints - moderate
apiLimiter = rateLimit({ windowMs: 60 * 1000, max: 100 })
// Public read endpoints - loose
publicLimiter = rateLimit({ windowMs: 60 * 1000, max: 300 })
Include:
Retry-After header in 429 responsesApply to the specified endpoint or globally.