/slashskills:rate-limitfrom Slashskills
Implements or audits Upstash Redis rate limits for Next.js routes using user, tenant, API-key, or IP identifiers with 429 headers and outage behavior.
Ships in Slashskills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Rate limits are one layer of abuse and cost control. Design policy before wiring middleware.
For raw @upstash/ratelimit API shapes, use Upstash's official agent skill (upstash-ratelimit-js) if installed, otherwise the Upstash ratelimit features docs. SDK defaults below were checked on 2026-11-04 against that page and @upstash/ratelimit 2.2.0. Re-check them if that date is more than about 90 days old or the installed version differs.
dynamicLimits: true with setDynamicLimit() only when a limit must change at runtime without a redeploy, such as load shedding; it supports single-region fixedWindow, slidingWindow, and tokenBucket only.x-forwarded-for from the public internet; configure trusted proxy depth/platform headers. Do not collapse unknown clients to 127.0.0.1.timeout (5 s if unset), limit() returns success and says so in reason. Read reason and choose outage behavior by endpoint:
429 with a non-negative Retry-After and consistent rate-limit headers. Add headers to successful responses where useful. Do not emit misleading zero limits during fail-open degradation.waitUntil mechanism when the SDK exposes a pending promise.ephemeralCache is on by default: blocked identifiers are denied from memory until reset, without a Redis call, with reason: "cacheBlock". That only works while the instance stays warm, and it also changes test results.Use deterministic tests with an isolated key prefix and controllable clock/window where possible. Create a fresh limiter per test or pass ephemeralCache: false, so a block cached by one case cannot decide the next. Simulate a Redis timeout and assert each endpoint's handling of the timeout reason. Test allowed/blocked/reset behavior, route isolation, authenticated and anonymous keys, spoofed forwarding headers, paid/free policies, concurrency, weighted requests, store timeout/outage behavior, and duplicate middleware avoidance. Run repository lint/type/test/build and inspect Upstash analytics only when enabled.
Report the policy table, identifier trust model, files/env names changed, outage behavior, response headers, layered controls, automated test evidence, and remaining Upstash/deployment configuration.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
rate-limiting, upstash, redis, abuse-prevention, cost-control
5 skills in this plugin
/changelogTurn a verified git range into audience-appropriate changelog copy and optional visual assets. Use when preparing weekly updates, release summaries, or social changelog cards./deploy-checkRun a production preflight across release scope, tests, builds, secrets, migrations, dependencies, configuration, observability, and rollback. Use when deploying, pushing, or approving a release./remove-ai-slopAudit and remove AI-like design and copy defaults using rendered evidence and confidence scoring. Use when reviewing an interface for generic or repetitive patterns.npx claudepluginhub tushaarmehtaa/tushar-skills --plugin slashskillsOther plugins' skills for the same job