Queue Retry Contract Repair
Repair background-job retry drift in a repository using Cursor.
Secure checkout via Stripe
Works with the AI tools you already use
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
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
- 30-day refund guarantee
- One-time purchase, yours forever
- Secure checkout via Stripe
Creator
109 skills on Agensi
Frequently Asked Questions
Popular in AI Agents & LLM Ops
agentic-workflow
A risk-aware, evidence-based engineering lifecycle protocol for robust agentic task execution and safety.
designing-hybrid-context-layers
Architects the right retrieval strategy for every query — teaching your agent when to use RAG, a knowledge graph, or a temporal index instead of defaulting to vector search for everything.

prompt-engineer
Professional prompt engineering patterns for building robust, secure, and production-ready LLM applications.
codex-grade-coding
Turn your AI agent into a senior engineer with strict task classification and verification-driven coding protocols.