Works with the AI Agents you already use
Queue Visibility Timeout Lab AI
Model long tasks and duplicate delivery with deterministic failure cases. Built for platform reliability teams, with
$9.99
What it does
- Build deterministic models of long tasks and duplicate delivery windows
- Produce calculation sheets including assumptions, base cases, and downside sensitivities
- Flag missing evidence and list the checks needed to resolve it
Queue Visibility Timeout Lab AI
Example session with this skill installed
Model a visibility timeout scenario for our worker service. Tasks usually take 45s but spike to 70s. Current visibility is 60s. We use SQS with a max receive count of 3.
- Read your context and instructions
- Compiled the queue visibility timeout
Illustrative example using synthetic inputs.
I have modeled the visibility timeout scenario based on the worker service parameters provided. The analysis indicates a high risk of duplicate delivery during processing spikes.
Queue Visibility Timeout Scenario Worksheet
| Field | Value | Source / Assumption |
|---|---|---|
| Visibility Timeout | 60,000ms | User Input (SQS Config) |
| Normal Processing | 45,000ms | User Input (Average Case) |
| Peak Processing | 70,000ms | User Input (P99 Spike) |
| Exposure Window | 10,000ms | Calculated (Peak - Visibility) |
| Max Receive Count | 3 | User Input |
| Failure Mode | Duplicate Processing | Deterministic (Visibility < Processing) |
Failure Matrix & Trace Model
- T+0ms: Worker A receives message; visibility clock starts.
- T+45,000ms: Normal case; Worker A deletes message. Success.
- T+60,000ms: Spike case; Worker A still processing. Message returns to queue.
- T+60,001ms: Worker B receives same message (Duplicate Delivery).
- T+70,000ms: Worker A finishes and attempts
DeleteMessage. - Result: Worker A receives
400 ReceiptHandleExpired. Worker B is now processing a duplicate.
Source Register
- REF-001: SQS Configuration (Visibility: 60s, MaxReceive: 3)
- REF-002: Worker Latency Metrics (Avg: 45s, Peak: 70s)
Action Register
- Priority High: Increase SQS Visibility Timeout to 90,000ms (1.25x peak).
- Priority Medium: Implement idempotency check using
messageIdin the worker database. - Priority Low: Configure a Dead Letter Queue (DLQ) to capture messages exceeding max receive count.
Next steps
- Validate if the worker can heartbeat (ChangeMessageVisibility) during long tasks.
- Verify the idempotency key implementation in the
Tasktable schema. - Run a synthetic test with a 75s artificial delay to confirm DLQ transition.
Connects securely to your tools. The creator never sees your data.
About this skill
When queue visibility timeouts are misconfigured, distributed systems face silent data corruption or massive retry storms. This skill provides platform reliability engineers with a rigorous framework to model long-running tasks, duplicate delivery risks, and deterministic failure cases before they hit production. It moves beyond generic cloud documentation by generating actionable calculation worksheets based on your specific service topology and event contracts.
What it does
- Scenario Modeling builds deterministic models of long tasks and duplicate delivery windows.
- Resilience Analysis traces event ownership across failure boundaries to identify race conditions.
- Worksheet Generation produces calculation sheets including assumptions, base cases, and downside sensitivities.
- Validation Mapping distinguishes between observed system behavior, planned checks, and unverified hypotheses.
- Failure Matrixing designs bounded retry and fencing scenarios for partial failure recovery.
How it works
- Supply Evidence provide service topology, event contracts, retry parameters, and task timing data.
- Normalize Inputs the skill isolates relevant fields and identifies missing evidence or unresolved gaps.
- Run Deterministic Checks it applies trace logic to compare visibility windows against processing durations.
- Generate Artifacts receive a structured worksheet with formulas, source registers, and an action register.
Frameworks & tools
Built for distributed systems (AWS SQS, RabbitMQ, Google Pub/Sub) and SRE workflows. It uses Python-based deterministic checks for visibility window modeling and SERP tools for public documentation verification.
Why this beats prompting it yourself
Generic prompts often fail to account for the intersection of lease parameters and acknowledgement latency. This skill enforces a strict source register and adversarial boundary checking, ensuring calculations are linked to evidence rather than LLM "hallucinations" of system limits.
Use cases
- Auditing queue configurations for services with highly variable task processing times.
- Designing idempotency and fencing logic for critical stateful mutations.
- Preparing for high-load events where queue depth and retry storms are a risk.
Known limitations
Queue-specific semantics like jitter and acknowledgement latency require independent manual testing. It does not perform live production changes or verify execution without source data.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 2 days ago
Permissions
What's inside
Frequently Asked Questions
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.