api-rate-limiting-helper

api-rate-limiting-helper is a skill for Claude Code, Codex from LambdaTest/agent-skills. It costs 140 tokens per session (1,397 once invoked), scanned A, original, MIT.

A tool for designing API rate limits, quotas, throttling rules, retry behavior, and backoff patterns. Rate limiting controls how many requests an API accepts over a period of time.

In plain words
What is it for?
Planning request limits for API endpoints, uploads, or streaming services. It can define quota tiers, response headers, error bodies, retry delays, and exponential backoff behavior.
Why use it?
It helps prevent excessive traffic from overloading an API and gives clients clear instructions for handling HTTP 429, or “too many requests,” responses. It also helps compare common ways to count and limit requests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Planning request limits for API endpoints, uploads, or streaming services. It can define quota tiers, response headers, error bodies, retry delays, and exponential backoff behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lambdatest/agent-skills/api-ratelimit-helper
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add LambdaTest/agent-skills --skill api-ratelimit-helper
Clone the repo
git clone --depth 1 https://github.com/LambdaTest/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for api-rate-limiting-helper

README.md
[![agentmods](https://agentmods.dev/badge/skills/lambdatest/agent-skills/api-ratelimit-helper/github.svg)](https://agentmods.dev/skills/lambdatest/agent-skills/api-ratelimit-helper)
Your own site
<a href="https://agentmods.dev/skills/lambdatest/agent-skills/api-ratelimit-helper"><img src="https://agentmods.dev/badge/skills/lambdatest/agent-skills/api-ratelimit-helper/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for api-rate-limiting-helper

Your own site · 80×15
<a href="https://agentmods.dev/skills/lambdatest/agent-skills/api-ratelimit-helper"><img src="https://agentmods.dev/badge/skills/lambdatest/agent-skills/api-ratelimit-helper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 140 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,397 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00140 $0.01397
Opus 5 $0.00070 $0.00698
Sonnet 5 $0.00028 $0.00279
Haiku 4.5 $0.00014 $0.00140

Measured 9d ago against content hash b6fd31113af0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

api-rate-limiting-helper scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

api-skill/api-ratelimit-helper/SKILL.md · 185 lines

How it starts

The opening of the file, as written. The whole thing — 185 lines — stays where its author put it; the contents beside it link to each section on GitHub.

API Rate Limiting Skill

Design complete rate limiting, quota, and retry systems for any API.


Rate Limiting Algorithms

Algorithm Best For Trade-offs
Token bucket Bursty traffic with sustained avg Allows bursts; slightly complex
Leaky bucket Strict rate enforcement Smooths bursts; can feel slow
Fixed window Simple counting Boundary spike problem
Sliding window log Precise limiting Memory-intensive
Sliding window counter Balance of precision/memory Best for most APIs

Recommendation: Use sliding window counter for API endpoints, token bucket for streaming/upload endpoints.


Response Headers (RFC standard)

X-RateLimit-Limit: 100
X-RateLimit-Remaining: 42
X-RateLimit-Reset: 1700000060
X-RateLimit-Policy: 100;w=60;comment="per minute"
Retry-After: 18

429 Response Body

{
  "error": "rate_limit_exceeded",
  "message": "Too many requests. You have exceeded 100 requests per minute.",
  "retry_after_seconds": 18,
  "limit": 100,
  "window": "60s",
  "reset_at": "2024-01-01T00:01:00Z"
}

Tiered Quota Design

Tier Requests/min Requests/day Burst Concurrent
Free 10 1,000 20 2
Starter 100 50,000 200 10
Pro 1,000 500,000 2,000 50
Enterprise Custom Unlimited Custom Custom

Quota Endpoints

GET  /api/v1/account/quota         — current usage vs limits
GET  /api/v1/account/quota/history — usage over time

Response:

{
  "plan": "pro",
  "period": "2024-01",
  "limits": { "requests_per_minute": 1000, "requests_per_day": 500000 },
  "usage": { "requests_today": 12345, "requests_this_minute": 234 },
  "resets_at": "2024-02-01T00:00:00Z"
}

Retry Logic (client-side)

Exponential backoff with jitter

import random, time

def retry_with_backoff(fn, max_retries=5, base_delay=1.0, max_delay=60.0):
    for attempt in range(max_retries):
        try:
            return fn()
        except RateLimitError as e:
            if attempt == max_retries - 1:
                raise
            # Use Retry-After header if present, else exponential backoff
            delay = min(
                e.retry_after or (base_delay * (2 ** attempt)),
                max_delay
            )
            # Add jitter to prevent thundering herd
            delay += random.uniform(0, delay * 0.1)
            time.sleep(delay)

Read the full file on GitHub · 185 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 185 lines · 140 tokens per session scan A b6fd31113af0

Subscribe to this mod's changes

api-rate-limiting-helper is a skill published in the GitHub repository LambdaTest/agent-skills (366 stars, last pushed 1mo ago), licensed MIT. It adds 140 tokens to every session and 1,397 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

detecting-broken-object-property-level-authorization

Detect and test for OWASP API3:2023 Broken Object Property Level Authorization vulnerabilities including excessive data exposure and mass assignment attacks.

xalgorix/xalgorix · 36 tokens

API Test Suite Generator

Automatically generate comprehensive API test suites from OpenAPI specifications covering CRUD operations, error handling, authentication, pagination, and edge cases.

PramodDutta/qaskills · 29 tokens

flowforge-testing

Generate, modify, validate, execute and triage Flow Forge API test cases. Use when the user wants to turn requirement documents, API documents, table structures or business rules into executable YAML/Excel test cases, revise existing cases after requirement/API changes, run cases with the Flow Forge executor and…

Remon-16/flow-forge · 90 tokens

kahea

Safely use HTTP APIs and finite WebSocket sessions through the Kāhea deterministic invocation kernel. Use when an agent must discover operations from OpenAPI, Postman, HAR, cURL, HTTP files, direct descriptors, websocket-session JSON/YAML, or the supported AsyncAPI 2.6/3.0 WebSocket subset; create and review sealed…

copyleftdev/kahea · 102 tokens

bruno

Comprehensive operational skill specification for Anthropic Claude to automate, script, troubleshoot, and optimize Bruno API Client, Bru markup language (.bru), CLI runner (@usebruno/cli), and CI/CD test pipelines.

alivirgo/Major-AI-Skills · 46 tokens

api-spec-generator

Generate a ready-to-import Postman or Bruno collection from an API spec, Swagger/OpenAPI file, or endpoint description. Use this skill whenever the user wants to create, export, or scaffold an API test collection. Triggers on: "generate Postman collection", "create Bruno spec", "import-ready collection", "generate…

oumaimah-QA/QIOS · 110 tokens