Rate Limit Contract Repair

    by Mariusz Wrzeszczynski

    1

    Repair rate-limit contract drift in a repository using Cursor.

    Secure checkout via Stripe

    0 installsSecurity scanned

    Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLIVVS CodeWWindsurfMManus+14 more

    See it in action

    You say

    Middleware uses 50 req/min but docs say 100. The SDK retries 429s immediately. Align the repo contract and add tests using the existing fake-clock utility. Do not touch production.

    Your agent does

    Repair decision

    RATE-LIMIT CONTRACT DRIFT FOUND. I have centralized the quota in config/limits.ts, updated the SDK to honor Retry-After, and added 12 deterministic tests. Deployed behavior remains unverified.

    What you get

    Align executable quotas with public documentation and OpenAPI specs.Standardize 429 response schemas and Retry-After header behavior.Implement safe, bounded retry logic in frontend and backend SDKs.Detect and repair identity scope drift between user and tenant keys.Generate deterministic local tests for rate-limiting logic using fake clocks.

    About this skill

    The problem

    Rate limit behavior often drifts across repository middleware, route overrides, and public documentation. This leads to client retry storms, broken SDKs, and inconsistent API enforcement that is difficult to debug without production access.

    What it does

    • Identifies conflicting quotas, windows, and identities across source code, OpenAPI specs, and docs.
    • Traces enforcement paths from identity extraction to response serialization and header handling.
    • Standardizes 429 response schemas, Retry-After headers, and SDK retry logic.
    • Generates safe repository patches to centralize magic numbers and unify policy definitions.
    • Provides a deterministic test matrix using fake clocks and mocked adapters for local verification.

    Frameworks & tools

    Compatible with any repository containing Express, FastAPI, TypeScript, Python, OpenAPI, GraphQL, or standard HTTP client SDKs.

    Why this beats prompting it yourself

    Manual review misses the subtle drift between a middleware default and a hard-coded route override. This skill enforces a strict contract register that captures every source of truth, ensuring your patches are reviewable and tests are truly deterministic.

    Use cases

    • Aligning middleware quotas with OpenAPI specifications and public documentation.
    • Fixing SDKs that retry unsafe mutations or ignore Retry-After headers.
    • Unifying mixed rate-limit identities like user-based vs tenant-based scopes.
    • Standardizing response formats across different service mocks and test suites.

    Known limitations

    Cannot access live Redis instances, production gateways, or real customer traffic logs. It does not perform production migrations or verify deployed quotas.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean today

    Listedtoday

    Creator

    Mariusz Wrzeszczynski
    Mariusz Wrzeszczynski

    109 skills on Agensi

    Frequently Asked Questions

    Popular in AI Agents & LLM Ops