Rate Limiting

Use when the user asks about rate limiting, protecting a public API from abuse with request throttling, token bucket, sliding window, 429 Too Many Requests, Retry-After or per-user quotas. Produces an algorithm, key and Redis-backed limiter. Not for circuit breakers and bulkheads (use backend-resilience-patterns).

45 stars 6 forksSoftware Development

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add j4flmao/agent-skills --skill rate-limiting
Manual install
git clone --depth 1 https://github.com/j4flmao/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/backend/universal/rate-limiting ~/.claude/skills/rate-limiting

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Rate Limiting

## Purpose
Protect services and enforce fair use by bounding how many requests (or how much cost) a client can consume per unit of time. Correct rate limiting needs the right algorithm, the right key (who is limited), the right enforcement point, and responses that let well-behaved clients back off.

## Agent Protocol

### Trigger
Exact user phrases: "rate limit", "rate limiting", "throttle requests", "token bucket", "leaky bucket", "sliding window", "429 too many requests", "API quota", "per-user limit", "distributed rate limiter", "Retry-After".

### Input Context
- What is being protected (whole API, expensive endpoint, login, outbound calls to a third party).
- Identity available at enforcement time (API key, user ID, tenant, IP).
- Number of instances and shared stores (Redis), gateway in front (Envoy, NGINX, Kong, cloud gateway).
- Desired limits and burst tolerance.

### Output Artifact
Limit policy table plus middleware/gateway code or config. No files unless requested.

### Response Format
```
Scope: {endpoint/group}   Key: {api_key | user_id | tenant | ip}
Algorithm: {token bucket | sliding window counter | fixed window | GCRA}
Limit: {N} per {window}, burst {B}
Store: {in-memory | Redis (Lua, atomic) | gateway}
On limit: 429 + Retry-After {s} + RateLimit headers
Fail mode if store down: {open | closed}
```

## Algorithms

| Algorithm | Behaviour | Memory/key | Bursts | Notes |
|---|---|---|---|---|
Read the full skill on GitHub

Details

Skill name
rate-limiting
Path
skills/backend/universal/rate-limiting/SKILL.md
License
MIT
Repo updated
17 November 2026

FAQ

What does the Rate Limiting skill do?

Use when the user asks about rate limiting, protecting a public API from abuse with request throttling, token bucket, sliding window, 429 Too Many Requests, Retry-After or per-user quotas. Produces an algorithm, key and Redis-backed limiter. Not for circuit breakers and bulkheads (use backend-resilience-patterns).

How do I install the Rate Limiting skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add j4flmao/agent-skills --skill rate-limiting. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Rate Limiting popular?

It lives in j4flmao/agent-skills, which has 45 GitHub stars and 6 forks.

Related skills

Agent Observability

45

j4flmao/agent-skills

Use when the user asks about agent observability, tracing agent reasoning, debugging an agent loop, OpenTelemetry GenAI spans for LLM calls, LLM cost tracking per agent, agent audit logs or hallucination/eval monitoring in production. Produces instrumentation config, trace schema, dashboards, alerts and cost attribution. Not for generic service tracing without LLMs (use devops-opentelemetry).

DevOps & Cloud

AI Agent Architectures

45

j4flmao/agent-skills

Use when the user asks to build an AI agent, design an agent that calls tools and keeps memory, write an agent system prompt or pick an agent framework (Claude Agent SDK, OpenAI Agents SDK, LangGraph). Produces an architecture brief covering loop, tools, memory, guardrails and evals, routing depth to child skills. Not for workflow patterns (use ai-agentic-workflows).

AI, LLMs & Agents

AI Agent Core Loop

45

j4flmao/agent-skills

Use when the user asks about the agent loop, ReAct vs plan-and-solve, re-planning, Reflexion, an agent stuck in a loop, max iterations or termination conditions. Produces a loop spec or patch with state, success predicate, caps and no-progress detection. Not for overall agent design (use ai-agent-architectures) or tool schemas (use tool-calling-principles).

AI, LLMs & Agents

Render Graph

45

j4flmao/agent-skills

Use when the user asks about a render graph, frame graph, transient resource aliasing, automatic barriers, async compute, GPU-driven rendering or command list recording. Produces render graph design with pass and resource lifetimes. Not for raw Vulkan API usage (use vulkan).

Software Development

Quarkus Backend

45

j4flmao/agent-skills

Use when the user asks about Quarkus, Quarkus REST (RESTEasy Reactive), Panache, Dev Services, Quarkus native build, SmallRye Reactive Messaging or continuous testing. Produces Quarkus services with config, health checks and tests. Not for Micronaut (use micronaut) or Spring Boot (use spring-boot-architecture).

Software Development

Ruby Rails

45

j4flmao/agent-skills

Use when the user asks about Ruby on Rails, ActiveRecord callbacks getting out of hand, service objects, Rails API mode, Active Job / Solid Queue, N+1 with includes or RSpec. Produces Rails 8 code with thin models and controllers. Not for Ruby outside Rails or Phoenix (use backend-elixir).

Software Development

Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.