Queue Retry Contract Repair

    by Mariusz Wrzeszczynski

    1

    Repair background-job retry 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

    Analyze our BullMQ workers and fix the drift where the docs say 3 retries but the code uses 5. Ensure the email worker doesn't send duplicates on retry. Use fake timers for the tests.

    Your agent does

    Decision: QUEUE RETRY CONTRACT DRIFT FOUND. I have centralized the retry policy in config/jobs.ts, removed manual re-enqueues in workers/email.ts, and added a stable operation key to prevent duplicate sends. I've also added 8 deterministic tests using fake timers.

    What you get

    Unify conflicting retry attempt limits across code and documentation.Standardize mixed time units and backoff rules to prevent scheduling errors.Implement idempotency guards for side effects like emails or payments.Repair status API mapping to distinguish retrying jobs from terminal failures.

    About this skill

    The problem

    Background job behavior often drifts across queue configurations, worker code, and documentation, leading to silent failures or expensive duplicate side effects. Manually tracing retry logic through producers, consumers, and dead-letter queues is error-prone and risks triggering production side effects during testing.

    What it does

    • Analyzes repository files to map background job contracts across producers, workers, and configs.
    • Identifies drift between executable code, documented policies, and test fixtures.
    • Standardizes time units, backoff rules, and attempt counts using repository-supported patterns.
    • Drafts safe repository patches to centralize retry policies and idempotent completion logic.
    • Generates deterministic local tests using fake timers and mocks to verify fixes without production access.

    Frameworks & tools

    Works with any repository containing background job logic, including tools like BullMQ, Celery, Sidekiq, RabbitMQ, and Kafka. Uses Read, Edit, and Bash tools to interact with local codebases.

    Why this beats prompting it yourself

    This skill enforces a strict safety boundary, ensuring you never accidentally trigger production side effects like duplicate payments or emails. It automates the tedious logical tracing of job lifecycles, separating transient retries from terminal failures more reliably than a general-purpose prompt.

    Use cases

    • Fixing mismatched retry counts between workers and queue configurations.
    • Converting inconsistent delay units into a single standardized duration format.
    • Adding idempotency guards to workers to prevent duplicate side effects after crashes.
    • Aligning job-status APIs so retrying tasks aren't reported as terminal failures.

    Known limitations

    Cannot connect to live brokers, production databases, or cloud dashboards. It does not verify in-flight jobs or prove exactly-once delivery in production environments.

    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