con un clic
rate-limiter
Adds rate limiting to API endpoints with Redis or in-memory storage
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Adds rate limiting to API endpoints with Redis or in-memory storage
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación 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.