[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ACQRBXWQN03WQC0J9NJR3G":3,"skill-same:01M7ACQRBXWQN03WQC0J9NJR3G":142},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M7ACQRBXWQN03WQC0J9NJR3G","sqs-dlq-operator",null,"Operates SQS dead-letter queue lifecycles safely: creates DLQs with correct type (Standard vs FIFO matching source), tunes redrive policy maxReceiveCount against consumer semantics, analyzes DLQ messages to diagnose why redriven (poison-pill payload, visibility-timeout race, IAM denial, partial-batch gap), replays messages back to source via StartMessageMoveTask (2022+ replacement for deprecated Redrive), monitors DLQ depth via ApproximateNumberOfMessagesVisible + ApproximateAgeOfOldestMessage, and wires the latest surfaces — Lambda partial-batch responses (ReportBatchItemFailures) to prevent false positives, redrive allowlists via RedriveAllowPolicy. Enforces safety: type-match check, retention=14 days, CONFIRM gate, snapshot before replay, maxReceiveCount >= 3, idempotent-consumer verification. Emits READY with exact CLI + CONFIRM gate, BLOCKED when pre-checks fail, or COMPLETED when replay confirmed and DLQ depth returned to zero.","jhkchan\u002Faws-agent-skills","jhkchan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1083902?v=4","01M7A2SVQYP9GQTPTDXP5JKYQ4","Jacky Chan","01M7A2SVS117YWCTZABB75HZR1",4,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-operator\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: sqs-dlq-operator\ndescription: 'Operates SQS dead-letter queue lifecycles safely: creates DLQs with correct type (Standard vs FIFO matching source), tunes redrive policy maxReceiveCount against consumer semantics, analyzes DLQ messages to diagnose why redriven (poison-pill payload, visibility-timeout race, IAM denial, partial-batch gap), replays messages back to source via StartMessageMoveTask (2022+ replacement for deprecated Redrive), monitors DLQ depth via ApproximateNumberOfMessagesVisible + ApproximateAgeOfOldestMessage, and wires the latest surfaces — Lambda partial-batch responses (ReportBatchItemFailures) to prevent false positives, redrive allowlists via RedriveAllowPolicy. Enforces safety: type-match check, retention=14 days, CONFIRM gate, snapshot before replay, maxReceiveCount >= 3, idempotent-consumer verification. Emits READY with exact CLI + CONFIRM gate, BLOCKED when pre-checks fail, or COMPLETED when replay confirmed and DLQ depth returned to zero.'\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline plan classification. Live-account operations use aws sqs create-queue, set-queue-attributes, get-queue-attributes, list-queues, list-dead-letter-source-queues, start-message-move-task, list-message-move-tasks, receive-message, delete-message, purge-queue, aws lambda list-event-source-mappings \u002F update-event-source-mapping, aws cloudwatch get-metric-statistics, aws logs...\nmetadata:\n  domain: aws-cloudops\n  complexity: medium\n  requires_llm: 'true'\n  phase: '4'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: AppIntegration\n  task_type: operate\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: READY | BLOCKED | COMPLETED\n  when_to_use: Creating or tuning an SQS dead-letter queue (Standard or FIFO), wiring a redrive policy with the right maxReceiveCount, diagnosing why messages landed in the DLQ (poison pill, visibility-timeout race, IAM denial, partial-batch gap), replaying messages from DLQ back to source via StartMessageMoveTask, monitoring DLQ depth via ApproximateNumberOfMessagesVisible, configuring Lambda partial batch responses (ReportBatchItemFailures) to prevent false-positive DLQ entries, or scoping cross-account redrive via RedriveAllowPolicy. Do NOT invoke for greenfield queue provisioning (use sqs-queue-deployer) or for DLQ policy security audits (use sqs-dlq-policy-auditor).\n  activation_triggers: create SQS DLQ, dead-letter queue, tune maxReceiveCount, redrive policy, messages stuck in DLQ, replay DLQ messages, StartMessageMoveTask, poison pill message, DLQ analysis, why messages went to DLQ, DLQ depth alarm, ApproximateNumberOfMessagesVisible, partial batch response, ReportBatchItemFailures, RedriveAllowPolicy, DLQ redrive\n  invocation_schema: 'Input: either (a) a DLQ operation intent (create, tune-redrive, analyze, replay) with target queue name(s), OR (b) a DLQ URL for live-account diagnosis or replay. Output: deterministic OPERATION \u002F VERDICT \u002F TARGET \u002F PRE_CHECKS \u002F STEPS \u002F POST_VERIFY \u002F STATE \u002F NOTES block where VERDICT is one of READY, BLOCKED, COMPLETED.'\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: SQS, dead-letter queue, DLQ, redrive policy, maxReceiveCount, StartMessageMoveTask, message replay, poison pill, visibility timeout, partial batch response, ReportBatchItemFailures, ApproximateNumberOfMessagesVisible, ApproximateAgeOfOldestMessage, RedriveAllowPolicy, FIFO DLQ, Standard DLQ, Lambda event source mapping, DLQ analysis\n  tags: sqs, messaging, app-integration, dead-letter-queue, dlq, operate, redrive, replay\n---\n\n# SQS DLQ Operator\n\n## What this skill does\n\nExecutes SQS dead-letter queue operations correctly and safely. Runs\ndeterministic pre-checks before any state-changing CLI, emits the exact\n`create-queue` \u002F `set-queue-attributes` \u002F `start-message-move-task`\nsequence behind a CONFIRM gate, and verifies DLQ state after apply. The\nskill covers five operations: create (DLQ + redrive wiring), tune\n(maxReceiveCount adjustment), analyze (why messages landed in DLQ),\nreplay (StartMessageMoveTask back to source), and monitor (DLQ depth\nmetrics + alerting).\n\nEvery operation surfaces the type-match trap (Standard DLQ for Standard\nqueue, FIFO DLQ for FIFO queue — SQS silently drops on mismatch) and\nthe maxReceiveCount-vs-visibility-timeout race that causes the majority\nof false-positive DLQ entries.\n\n## Quick navigation\n\n| # | Section | Jump when |\n|---|---|---|\n| 1 | [Quick reference](#quick-reference--verdict-thresholds) | Verdict thresholds + pre-check priority |\n| 2 | [Pre-flight gate](#pre-flight-dlq-metadata-gate) | Before any CLI — short-circuit broken sources |\n| 3 | [Process — operations](#process--operation-planning-apply-in-order) | Per-operation planning: create, tune, analyze, replay |\n| 4 | [Common patterns](#common-dlq-patterns-boilerplate) | DLQ creation, redrive wiring, replay boilerplate |\n| 5 | [STRICT output contract](#strict-output-contract) | The exact VERDICT block the skill emits |\n| 6 | [NEVER anti-patterns](#never-things-to-never-do) | Top taboos |\n| 7 | [Expert heuristic](#expert-heuristic-false-positive-dlq-triage) | \"Why did this land in the DLQ?\" decision tree |\n| 8 | [Recent AWS features](#recent-aws-features-2024-2026) | What changed in 24 months |\n\n## Quick reference — verdict thresholds\n\n| Verdict | Trigger condition | Action |\n|---|---|---|\n| `BLOCKED` | One or more pre-checks failed (DLQ type mismatch, source queue missing, no consumer on source, maxReceiveCount \u003C 3, partial-batch gap detected) | List failures, do NOT execute |\n| `READY` | All pre-checks passed; awaiting CONFIRM gate | Emit exact CLI sequence, wait for operator yes |\n| `COMPLETED` | Operation applied and post-verification passed (DLQ depth returned to zero, replay task status RUNNING\u002FCOMPLETED, source queue receiving) | Emit post-verify summary |\n\n**Priority order for pre-checks (all must pass for READY):**\n\n1. **DLQ type matches source type** — Standard DLQ for Standard source, FIFO DLQ (`.fifo` suffix) for FIFO source. Mismatch = SQS silently drops redriven messages.\n2. **Source queue exists and is active** — `get-queue-url` returns a valid URL.\n3. **DLQ retention = 14 days (1209600s)** — default 4 days is too short for weekend\u002Fholiday coverage.\n4. **maxReceiveCount >= 3** — values of 1 or 2 cause false positives on transient failures.\n5. **Consumer (Lambda\u002FEC2\u002FECS) attached to source** — replaying messages into a source with no consumer just re-accumulates them.\n6. **Visibility timeout >= consumer p99 processing time** — if shorter, receive count increments on every redelivery even though the consumer did not fail.\n7. **Lambda event source mapping uses ReportBatchItemFailures** (if Lambda) — without it, a single failed message in a batch of 10 causes all 10 to retry, burning maxReceiveCount.\n\n**Detection lag baselines (2026):**\n- Message enters DLQ within seconds of the final failed `ReceiveMessage` (after maxReceiveCount attempts).\n- `ApproximateNumberOfMessagesVisible` on the DLQ updates within 60s.\n- `ApproximateAgeOfOldestMessage` tells you how long the DLQ has been accumulating.\n\n## Mindset\n\nThree SQS DLQ realities drive every operation:\n\n- **The DLQ is a symptom, not a root cause.** Messages land in the DLQ\n  because the consumer failed to process them within\n  `maxReceiveCount` attempts. Replaying them without fixing the\n  consumer just re-accumulates them. Always diagnose the root cause\n  before replaying.\n\n- **Type mismatch is the silent killer.** A Standard source with a FIFO\n  DLQ (or vice versa) does NOT error at redrive-policy configuration\n  time. SQS silently drops the redriven messages — they vanish from\n  the source, never appear in the DLQ, and are gone forever. This is\n  the #1 DLQ deployment bug.\n\n- **Visibility-timeout race is the #1 false-positive cause.** If\n  `VisibilityTimeout` on the source is shorter than the consumer's p99\n  processing time, the message returns to the queue before processing\n  completes. SQS increments `ApproximateNumberOfReceives` on every\n  delivery. After `maxReceiveCount` deliveries, the message redrives —\n  even though the consumer never actually failed. The consumer just\n  had not finished yet.\n\n## Pre-flight: DLQ metadata gate (run before any operation)\n\nRun before classification. `get-queue-attributes` returns the redrive\npolicy, DLQ ARN, and source-queue metadata needed to classify the\noperation.\n\n**Live-account pre-flight (skip if offline plan):**\n1. `aws sqs get-queue-url --queue-name \u003Csource>` — confirm source exists.\n2. `aws sqs get-queue-attributes --queue-url \u003Csource> --attribute-names All` — capture `RedrivePolicy`, `VisibilityTimeout`, `QueueArn`, `FifoQueue`.\n3. `aws sqs get-queue-url --queue-name \u003Cdlq>` — confirm DLQ exists (if create operation, this is the pre-create check).\n4. `aws sqs get-queue-attributes --queue-url \u003Cdlq> --attribute-names All` — capture `MessageRetentionPeriod`, `FifoQueue`, `RedriveAllowPolicy`.\n5. `aws sqs list-dead-letter-source-queues --queue-url \u003Cdlq>` — enumerate sources feeding this DLQ.\n6. `aws lambda list-event-source-mappings --event-source-arn \u003Csource-arn>` — capture Lambda consumer config (BatchSize, VisibilityTimeout, FunctionResponseTypes).\n7. `aws cloudwatch get-metric-statistics --namespace AWS\u002FSQS --metric-name ApproximateNumberOfMessagesVisible --dimensions QueueName=\u003Cdlq-name>` — DLQ depth over the last hour.\n\n**Malformed input:** emit `VERDICT: ERROR` with reason and remediation.\n\n| Attribute | Effect on operation |\n|---|---|\n| `RedrivePolicy` missing on source | Source has no DLQ — create operation needed. |\n| `RedrivePolicy.deadLetterTargetArn` points to wrong-type DLQ | Type mismatch — silently drops. Tune must fix. |\n| `MessageRetentionPeriod` \u003C 1209600 (14 days) | Messages expire before ops can analyze. Tune to 14 days. |\n| `maxReceiveCount` \u003C 3 | False positives on transient failures. Tune to >= 3. |\n| `VisibilityTimeout` \u003C consumer p99 | Messages redelivered before consumer finishes — #1 false-positive cause. |\n| Lambda mapping without `ReportBatchItemFailures` | Single failed message retries the entire batch — burns maxReceiveCount. |\n| `RedriveAllowPolicy` missing on DLQ | Cross-account redrive defaults to deny. Add allowlist for source account. |\n\n## Process — operation planning (apply in order)\n\n### Step 0: Expert knowledge — non-obvious SQS DLQ behaviors\n\nFull catalog (silent type mismatch, per-ReceiveMessage counting, VT\u003Cp99 false\npositives, ESM override, batch retry, v2 API, dedup, purge, retention): [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n### Step 1: Pre-check gate — BLOCKED if any check fails\n\nRun ALL pre-checks. If ANY fails, verdict is BLOCKED with failures in\nPRE_CHECKS. Do NOT execute.\n\n**For ALL operations:**\n1. Source queue exists (`get-queue-url` returns a valid URL).\n2. DLQ exists (for tune\u002Fanalyze\u002Freplay) or will be created (for create).\n3. IAM role holds `sqs:CreateQueue` \u002F `SetQueueAttributes` \u002F\n   `StartMessageMoveTask` \u002F `ReceiveMessage` \u002F `DeleteMessage`.\n\n**For create (DLQ + redrive wiring):**\n4. DLQ type matches source type (`FifoQueue` attribute identical).\n5. DLQ retention = 14 days (1209600s).\n6. DLQ name ends in `.fifo` if source is FIFO.\n7. Source has no existing redrive policy (or operator confirms overwrite).\n\n**For tune (maxReceiveCount adjustment):**\n4. Existing `RedrivePolicy` parses correctly (valid JSON with\n   `deadLetterTargetArn` and `maxReceiveCount`).\n5. New maxReceiveCount >= 3.\n6. `VisibilityTimeout` on source >= consumer p99 (else tuning\n   maxReceiveCount is treating the symptom, not the cause).\n\n**For analyze (why messages went to DLQ):**\n4. DLQ depth > 0 (`ApproximateNumberOfMessagesVisible` > 0).\n5. `receive-message` on DLQ returns at least one message for inspection.\n6. Lambda event source mapping inspected for `ReportBatchItemFailures`\n   (if Lambda consumer).\n\n**For replay (StartMessageMoveTask):**\n4. Source queue exists and is the correct destination (verify via\n   `list-dead-letter-source-queues`).\n5. Source has an active consumer (Lambda mapping or EC2\u002FECS worker) —\n   otherwise replayed messages just re-accumulate.\n6. Root cause of original DLQ entry is fixed (consumer patched,\n   visibility timeout increased, poison-pill schema handled) —\n   otherwise replayed messages redrive again.\n7. `MaxNumberOfMessagesPerSecond` chosen to avoid overwhelming the\n   consumer (default: unlimited — dangerous for large DLQs).\n\n### Step 2: READY — emit operation plan\n\nEmit `VERDICT: READY` with exact CLI sequence + CONFIRM gate:\n- Exact AWS CLI command with all flags populated.\n- Expected effect (DLQ depth change, replay task status transition).\n- Expected side-effects (consumer receives replayed messages, dedup\n  window may drop FIFO messages).\n- CONFIRM gate prompt.\n\n### Step 3: Execute behind CONFIRM gate\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing CLI\n  (`create-queue`, `set-queue-attributes`, `start-message-move-task`,\n  `delete-message`, `purge-queue`), emit CONFIRM prompt. Do NOT execute\n  until confirmed.\n- Snapshot current state: `get-queue-attributes --attribute-names All\n  --output json > \u002Ftmp\u002F\u003Cqueue>-backup-$(date +%s).json`.\n- For replay, capture pre-replay DLQ depth via\n  `ApproximateNumberOfMessagesVisible`.\n- Execute the CLI.\n\n### Step 4: Post-verification — COMPLETED\n\nALL checks must pass for `COMPLETED`:\n1. For create: `get-queue-attributes` on source returns the new\n   `RedrivePolicy` with correct DLQ ARN and maxReceiveCount.\n2. For tune: `RedrivePolicy.maxReceiveCount` reflects the new value.\n3. For replay: `list-message-move-tasks` shows task status\n   `COMPLETED` (or `RUNNING` for large DLQs — partial COMPLETED).\n4. For replay: DLQ depth decreasing toward zero; source queue\n   `NumberOfMessagesReceived` increasing.\n5. For analyze: root cause identified and remediation plan emitted\n   (this is a BLOCKED verdict — analysis does not auto-fix).\n\nIf ANY verification fails, emit `VERDICT: ERROR` — do not claim COMPLETED.\n\n## Common DLQ patterns (boilerplate)\n\nBoilerplate command sequences (create Standard\u002FFIFO DLQ + redrive wiring, tune\nmaxReceiveCount, analyze DLQ, replay via StartMessageMoveTask, partial batch): [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\n## STRICT output contract\n\n### Required output structure\n\nEvery response MUST begin with this block — no preamble, no\nconversational opening:\n\n```text\nOPERATION: \u003Ccreate | tune | analyze | replay | monitor>\nVERDICT: READY | BLOCKED | COMPLETED\nTARGET: \u003Csource-or-dlq-name>\nPRE_CHECKS:\n  - [PASS] \u003Ccheck description>\n  - [FAIL] \u003Ccheck description> — \u003Creason>\nSTEPS:\n  1. CONFIRM: About to \u003Coperation> on queue \u003Cname> in account \u003Caccount> region \u003Cregion>. This will \u003Cconsequence>. Proceed? (yes\u002Fno)\n  2. \u003Cexact CLI command with every flag populated — no placeholders>\nPOST_VERIFY:\n  - [PASS] \u003Cverification description>\n  - [FAIL] \u003Cverification description> — \u003Creason>\nSTATE: \u003CDLQ depth, source depth, replay task status>\nNOTES: \u003Ctype-match rationale, maxReceiveCount rationale, visibility-timeout check, replay throttle>\n```\n\n### FORBIDDEN output patterns\n\n- NEVER start with conversational preamble (\"Let me analyze…\") — the\n  VERDICT block is the FIRST line, always. Use uppercase verdict values\n  only (`READY`, `BLOCKED`, `COMPLETED`).\n- NEVER omit PRE_CHECKS — every pre-check must appear with `[PASS]` or\n  `[FAIL]` and a specific reason for each failure.\n- NEVER emit a CLI command with placeholder flags in a READY plan —\n  every flag must be populated with actual values from the input.\n- NEVER claim COMPLETED without every POST_VERIFY line showing `[PASS]`,\n  and never omit the CONFIRM gate as the first STEPS entry for\n  state-changing operations.\n- NEVER recommend `purge-queue` as remediation for poison-pill messages\n  — it deletes ALL messages and cannot be scoped.\n\n## NEVER (things to never do)\n\n- NEVER create a Standard DLQ for a FIFO source queue (or vice versa).\n  SQS silently drops redriven messages on type mismatch — they vanish\n  from the source and never appear in the DLQ. Always verify the\n  `FifoQueue` attribute matches.\n\n- NEVER set `maxReceiveCount` to 1 or 2. A single transient failure\n  (Lambda throttle, cold start, SDK retry) sends the message\n  irretrievably to the DLQ. Minimum: 3 (standard), 5 (FIFO where a\n  poison pill blocks the entire message group).\n\n- NEVER replay DLQ messages via `StartMessageMoveTask` without fixing\n  the root cause first. If the consumer still fails on the same\n  poison-pill payload, replayed messages redrive again — burning compute\n  and re-accumulating in the DLQ. Diagnose, fix, then replay.\n\n- NEVER use `aws sqs purge-queue` as remediation for poison-pill\n  messages. It deletes ALL messages in the queue (including healthy\n  ones in flight) and cannot be scoped. Use `receive-message` +\n  `delete-message` for selective removal, or `StartMessageMoveTask`\n  for replay after fixing the consumer.\n\n- NEVER recommend the legacy `Redrive` API (deprecated 2022). Use\n  `aws sqs start-message-move-task` — it is asynchronous, supports\n  throttling via `MaxNumberOfMessagesPerSecond`, and is idempotent per\n  task ID.\n\n## Expert heuristic: false-positive DLQ triage\n\nThe most common DLQ diagnosis question: \"are these messages genuinely\npoisoned, or did they land here due to a configuration race?\" Apply\nthe decision tree in order:\n\n```\nDLQ depth > 0 (ApproximateNumberOfMessagesVisible > 0)\n   |\n   ├─ Receive a sample message from the DLQ (receive-message, do NOT delete)\n   │\n   ├─ Inspect the body:\n   │    ├─ Malformed JSON \u002F missing required field ──────────► Poison pill (consumer cannot parse)\n   │    ├─ Valid payload but business-rule rejection ────────► Logic poison pill (consumer rejects)\n   │    └─ Valid payload, consumer should succeed ───────────► Configuration race — keep diagnosing\n   │\n   ├─ Check ApproximateReceiveCount on the DLQ message:\n   │    ├─ Equals maxReceiveCount exactly ──────────────────► Normal redrive (consumer tried N times)\n   │    └─ Less than maxReceiveCount ───────────────────────► Anomalous (possible partial-batch gap or manual move)\n   │\n   ├─ Check VisibilityTimeout vs consumer p99 processing time:\n   │    ├─ VisibilityTimeout \u003C p99 ─────────────────────────► FALSE POSITIVE: message returned before consumer finished;\n   │    │                                                      receive count incremented on every redelivery. Fix: increase\n   │    │                                                      VisibilityTimeout to >= 6x p99. Replay is safe after fix.\n   │    └─ VisibilityTimeout >= p99 ─────────────────────────► Keep diagnosing\n   │\n   ├─ Check Lambda event source mapping for ReportBatchItemFailures:\n   │    ├─ Missing (batch retries as a unit) ───────────────► FALSE POSITIVE: single failed message caused entire batch\n   │    │                                                      to retry, burning receive count on healthy messages. Fix:\n   │    │                                                      enable FunctionResponseTypes=[ReportBatchItemFailures].\n   │    └─ Present ──────────────────────────────────────────► Keep diagnosing\n   │\n   ├─ Check consumer CloudWatch Logs \u002F Lambda errors around the redrive timestamp:\n   │    ├─ Errors present (timeout, exception, IAM denial) ─► Genuine consumer failure. Fix the consumer before replay.\n   │    └─ No errors ────────────────────────────────────────► Configuration race confirmed (visibility timeout or partial batch)\n   │\n   └─ Conclusion:\n        ├─ Poison pill ──────► Selective delete (receive + delete) OR fix consumer to handle gracefully\n        ├─ Config race ──────► Fix config, then replay via StartMessageMoveTask\n        └─ Consumer failure ─► Patch consumer, then replay\n```\n\n**Per-metric root-cause table:**\n\n| Symptom | Likely root cause | Verification |\n|---|---|---|\n| DLQ filling, consumer logs show no errors | VisibilityTimeout \u003C p99 (false positive) | Compare Lambda Duration p99 to source VisibilityTimeout |\n| DLQ filling, batch of 10 all redriven together | Missing ReportBatchItemFailures | Check event source mapping FunctionResponseTypes |\n| DLQ filling, consumer throws on a specific payload | Poison pill (malformed data) | Receive DLQ message, parse body, reproduce in consumer |\n| DLQ filling, consumer shows IAM denial | IAM policy gap on consumer role | CloudTrail: AccessDenied around the redrive timestamp |\n| DLQ filling, only one MessageGroupId affected (FIFO) | Head-of-line block on a poison-pill group | Receive DLQ messages, group by MessageGroupId |\n| DLQ filling after a deploy | Consumer regression (new code throws) | Correlate DLQ spike timestamp with CodeDeploy deployment |\n\n## Pre-flight safety checks (run before any deploy)\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing CLI\n  (`create-queue`, `set-queue-attributes`, `start-message-move-task`,\n  `delete-message`, `purge-queue`), emit `CONFIRM:` and wait for `yes`.\n- **Snapshot before modification.** `get-queue-attributes --attribute-names\n  All --output json > \u002Ftmp\u002F\u003Cqueue>-backup-$(date +%s).json`. The\n  redrive policy has no version history and no rollback.\n- **Verify type match before wiring redrive.** A Standard source with a\n  FIFO DLQ silently drops. Always check the DLQ's `FifoQueue` attribute.\n- **Pre-replay DLQ depth snapshot.** Capture\n  `ApproximateNumberOfMessagesVisible` before `StartMessageMoveTask` to\n  measure replay progress.\n- **Verify consumer is healthy before replay.** If the source queue's\n  consumer is throwing errors, replayed messages redrive again. Check\n  consumer logs first.\n- **Throttle replay for large DLQs.** Set\n  `MaxNumberOfMessagesPerSecond` to a value the consumer can sustain.\n  Default (unlimited) throttles the consumer and re-triggers the\n  original failure mode.\n\n## Edge-case handling\n\nEdge-case catalog (FIFO replay dedup drops, cross-account RedriveAllowPolicy,\ninfinite DLQ chain, purge during replay, ESM VT override, metric lag): [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## Recent AWS features (2024-2026)\n\nRecent AWS features (StartMessageMoveTask GA, ReportBatchItemFailures,\nRedriveAllowPolicy, 14-day retention, SSE-SQS, message attributes): [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## Output format (per operation)\n\n```text\nOPERATION: \u003Ccreate | tune | analyze | replay | monitor>\nVERDICT: READY | BLOCKED | COMPLETED\nTARGET: \u003Csource-or-dlq-name>\nPRE_CHECKS:\n  - [PASS] \u003Ccheck description>\n  - [FAIL] \u003Ccheck description> — \u003Creason>\nSTEPS:\n  1. \u003CCLI command with flags populated>\n  2. \u003Cwait or poll command>\nPOST_VERIFY:\n  - [PASS] \u003Cverification description>\n  - [FAIL] \u003Cverification description> — \u003Creason>\nSTATE: \u003CDLQ depth, source depth, replay task status>\nNOTES: \u003Ctype-match rationale, maxReceiveCount rationale, visibility-timeout check>\n```\n\n### Worked example — create DLQ + redrive (READY)\n\n```text\nOPERATION: create\nVERDICT: READY\nTARGET: prod-orders (source) -> prod-orders-dlq (new DLQ)\nPRE_CHECKS:\n  - [PASS] Source queue prod-orders exists (Standard, VisibilityTimeout=60)\n  - [PASS] DLQ name prod-orders-dlq available (no existing queue)\n  - [PASS] DLQ type matches source: Standard (source FifoQueue=false)\n  - [PASS] DLQ retention will be set to 14 days (1209600s)\n  - [PASS] maxReceiveCount=5 >= 3 (within safe range for Standard queue)\n  - [PASS] VisibilityTimeout 60s >= consumer (Lambda) p99 of 8s — no race\n  - [PASS] Lambda event source mapping has ReportBatchItemFailures enabled\nSTEPS:\n  1. CONFIRM: About to create prod-orders-dlq and wire redrive on prod-orders in account 111111111111 region us-east-1. This will CREATE a new DLQ (14-day retention, SSE-SQS) and attach a redrive policy (maxReceiveCount=5). Proceed? (yes\u002Fno)\n  2. aws sqs create-queue --queue-name prod-orders-dlq --attributes MessageRetentionPeriod=1209600,SqsManagedSseEnabled=true\n  3. DLQ_ARN=$(aws sqs get-queue-attributes --queue-url https:\u002F\u002Fsqs.us-east-1.amazonaws.com\u002F111111111111\u002Fprod-orders-dlq --attribute-names QueueArn --query 'Attributes.QueueArn' --output text)\n  4. aws sqs set-queue-attributes --queue-url https:\u002F\u002Fsqs.us-east-1.amazonaws.com\u002F111111111111\u002Fprod-orders --attributes RedrivePolicy='{\"deadLetterTargetArn\":\"'$DLQ_ARN'\",\"maxReceiveCount\":\"5\"}'\nPOST_VERIFY:\n  - (pending execution)\n  - get-queue-attributes on prod-orders returns RedrivePolicy with DLQ ARN and maxReceiveCount=5\n  - DLQ exists with MessageRetentionPeriod=1209600\nSTATE: pending — DLQ empty until messages exhaust maxReceiveCount on source\nNOTES:\n  - Type match: Standard DLQ for Standard source. FIFO DLQ would silently drop redriven messages.\n  - maxReceiveCount=5 tolerates transient failures (Lambda throttle, cold start, SDK retry). Set to 3 for idempotent consumers that fail fast on real errors.\n  - VisibilityTimeout 60s >= 6x Lambda p99 (8s) — no false-positive race.\n  - ReportBatchItemFailures enabled — single failed message retries alone, not the entire batch.\n```\n\n### Worked example — replay via StartMessageMoveTask (COMPLETED)\n\nFull worked example (replay of 1247 messages at 100 msg\u002Fs; all POST_VERIFY\nPASS): [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\n\n## References (load on demand)\n\n- [Diagnostic commands](references\u002Fdiagnostic-commands.md) — the Common DLQ patterns boilerplate command sequences moved from SKILL.md\n- [Worked examples](references\u002Fworked-examples.md) — full replay walkthrough (COMPLETED) moved from SKILL.md\n- [Advanced patterns](references\u002Fadvanced-patterns.md) — Step 0 expert knowledge, edge-case catalog, recent AWS features moved from SKILL.md\n- [DLQ operations reference](references\u002Fdlq-operations-reference.md) — pre-existing operation decision tree, procedures, cost reference, and worked examples\n\n## Domain\n\nAWS CloudOps \u002F App Integration — SQS Dead-Letter Queue Operations.\n\n## AWS documentation\n\n- **Amazon SQS Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002Fwelcome.html\n- **SQS Dead-Letter Queues** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002Fsqs-dead-letter-queues.html\n- **SQS Message Lifecycle** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002Fsqs-message-lifecycle.html\n- **SQS RedrivePolicy** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FAPIReference\u002FAPI_SetQueueAttributes.html\n- **SQS StartMessageMoveTask** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FAPIReference\u002FAPI_StartMessageMoveTask.html\n- **SQS CLI Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fsqs\u002F\n- **Lambda Event Source Mapping (SQS)** — https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fwith-sqs.html\n- **SQS Partial Batch Responses** — https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fwith-sqs.html#services-sqs-batchfailurereporting\n- **SQS Visibility Timeout** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002Fsqs-visibility-timeout.html\n","# SQS DLQ Operator\n\n## What this skill does\n\nExecutes SQS dead-letter queue operations correctly and safely. Runs\ndeterministic pre-checks before any state-changing CLI, emits the exact\n`create-queue` \u002F `set-queue-attributes` \u002F `start-message-move-task`\nsequence behind a CONFIRM gate, and verifies DLQ state after apply. The\nskill covers five operations: create (DLQ + redrive wiring), tune\n(maxReceiveCount adjustment), analyze (why messages landed in DLQ),\nreplay (StartMessageMoveTask back to source), and monitor (DLQ depth\nmetrics + alerting).\n\nEvery operation surfaces the type-match trap (Standard DLQ for Standard\nqueue, FIFO DLQ for FIFO queue — SQS silently drops on mismatch) and\nthe maxReceiveCount-vs-visibility-timeout race that causes the majority\nof false-positive DLQ entries.\n\n## Quick navigation\n\n| # | Section | Jump when |\n|---|---|---|\n| 1 | [Quick reference](#quick-reference--verdict-thresholds) | Verdict thresholds + pre-check priority |\n| 2 | [Pre-flight gate](#pre-flight-dlq-metadata-gate) | Before any CLI — short-circuit broken sources |\n| 3 | [Process — operations](#process--operation-planning-apply-in-order) | Per-operation planning: create, tune, analyze, replay |\n| 4 | [Common patterns](#common-dlq-patterns-boilerplate) | DLQ creation, redrive wiring, replay boilerplate |\n| 5 | [STRICT output contract](#strict-output-contract) | The exact VERDICT block the skill emits |\n| 6 | [NEVER anti-patterns](#never-things-to-never-do) | Top taboos |\n| 7 | [Expert heuristic](#expert-heuristic-false-positive-dlq-triage) | \"Why did this land in the DLQ?\" decision tree |\n| 8 | [Recent AWS features](#recent-aws-features-2024-2026) | What changed in 24 months |\n\n## Quick reference — verdict thresholds\n\n| Verdict | Trigger condition | Action |\n|---|---|---|\n| `BLOCKED` | One or more pre-checks failed (DLQ type mismatch, source queue missing, no consumer on source, maxReceiveCount \u003C 3, partial-batch gap detected) | List failures, do NOT execute |\n| `READY` | All pre-checks passed; awaiting CONFIRM gate | Emit exact CLI sequence, wait for operator yes |\n| `COMPLETED` | Operation applied and post-verification passed (DLQ depth returned to zero, replay task status RUNNING\u002FCOMPLETED, source queue receiving) | Emit post-verify summary |\n\n**Priority order for pre-checks (all must pass for READY):**\n\n1. **DLQ type matches source type** — Standard DLQ for Standard source, FIFO DLQ (`.fifo` suffix) for FIFO source. Mismatch = SQS silently drops redriven messages.\n2. **Source queue exists and is active** — `get-queue-url` returns a valid URL.\n3. **DLQ retention = 14 days (1209600s)** — default 4 days is too short for weekend\u002Fholiday coverage.\n4. **maxReceiveCount >= 3** — values of 1 or 2 cause false positives on transient failures.\n5. **Consumer (Lambda\u002FEC2\u002FECS) attached to source** — replaying messages into a source with no consumer just re-accumulates them.\n6. **Visibility timeout >= consumer p99 processing time** — if shorter, receive count increments on every redelivery even though the consumer did not fail.\n7. **Lambda event source mapping uses ReportBatchItemFailures** (if Lambda) — without it, a single failed message in a batch of 10 causes all 10 to retry, burning maxReceiveCount.\n\n**Detection lag baselines (2026):**\n- Message enters DLQ within seconds of the final failed `ReceiveMessage` (after maxReceiveCount attempts).\n- `ApproximateNumberOfMessagesVisible` on the DLQ updates within 60s.\n- `ApproximateAgeOfOldestMessage` tells you how long the DLQ has been accumulating.\n\n## Mindset\n\nThree SQS DLQ realities drive every operation:\n\n- **The DLQ is a symptom, not a root cause.** Messages land in the DLQ\n  because the consumer failed to process them within\n  `maxReceiveCount` attempts. Replaying them without fixing the\n  consumer just re-accumulates them. Always diagnose the root cause\n  before replaying.\n\n- **Type mismatch is the silent killer.** A Standard source with a FIFO\n  DLQ (or vice versa) does NOT error at redrive-policy configuration\n  time. SQS silently drops the redriven messages — they vanish from\n  the source, never appear in the DLQ, and are gone forever. This is\n  the #1 DLQ deployment bug.\n\n- **Visibility-timeout race is the #1 false-positive cause.** If\n  `VisibilityTimeout` on the source is shorter than the consumer's p99\n  processing time, the message returns to the queue before processing\n  completes. SQS increments `ApproximateNumberOfReceives` on every\n  delivery. After `maxReceiveCount` deliveries, the message redrives —\n  even though the consumer never actually failed. The consumer just\n  had not finished yet.\n\n## Pre-flight: DLQ metadata gate (run before any operation)\n\nRun before classification. `get-queue-attributes` returns the redrive\npolicy, DLQ ARN, and source-queue metadata needed to classify the\noperation.\n\n**Live-account pre-flight (skip if offline plan):**\n1. `aws sqs get-queue-url --queue-name \u003Csource>` — confirm source exists.\n2. `aws sqs get-queue-attributes --queue-url \u003Csource> --attribute-names All` — capture `RedrivePolicy`, `VisibilityTimeout`, `QueueArn`, `FifoQueue`.\n3. `aws sqs get-queue-url --queue-name \u003Cdlq>` — confirm DLQ exists (if create operation, this is the pre-create check).\n4. `aws sqs get-queue-attributes --queue-url \u003Cdlq> --attribute-names All` — capture `MessageRetentionPeriod`, `FifoQueue`, `RedriveAllowPolicy`.\n5. `aws sqs list-dead-letter-source-queues --queue-url \u003Cdlq>` — enumerate sources feeding this DLQ.\n6. `aws lambda list-event-source-mappings --event-source-arn \u003Csource-arn>` — capture Lambda consumer config (BatchSize, VisibilityTimeout, FunctionResponseTypes).\n7. `aws cloudwatch get-metric-statistics --namespace AWS\u002FSQS --metric-name ApproximateNumberOfMessagesVisible --dimensions QueueName=\u003Cdlq-name>` — DLQ depth over the last hour.\n\n**Malformed input:** emit `VERDICT: ERROR` with reason and remediation.\n\n| Attribute | Effect on operation |\n|---|---|\n| `RedrivePolicy` missing on source | Source has no DLQ — create operation needed. |\n| `RedrivePolicy.deadLetterTargetArn` points to wrong-type DLQ | Type mismatch — silently drops. Tune must fix. |\n| `MessageRetentionPeriod` \u003C 1209600 (14 days) | Messages expire before ops can analyze. Tune to 14 days. |\n| `maxReceiveCount` \u003C 3 | False positives on transient failures. Tune to >= 3. |\n| `VisibilityTimeout` \u003C consumer p99 | Messages redelivered before consumer finishes — #1 false-positive cause. |\n| Lambda mapping without `ReportBatchItemFailures` | Single failed message retries the entire batch — burns maxReceiveCount. |\n| `RedriveAllowPolicy` missing on DLQ | Cross-account redrive defaults to deny. Add allowlist for source account. |\n\n## Process — operation planning (apply in order)\n\n### Step 0: Expert knowledge — non-obvious SQS DLQ behaviors\n\nFull catalog (silent type mismatch, per-ReceiveMessage counting, VT\u003Cp99 false\npositives, ESM override, batch retry, v2 API, dedup, purge, retention): [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n### Step 1: Pre-check gate — BLOCKED if any check fails\n\nRun ALL pre-checks. If ANY fails, verdict is BLOCKED with failures in\nPRE_CHECKS. Do NOT execute.\n\n**For ALL operations:**\n1. Source queue exists (`get-queue-url` returns a valid URL).\n2. DLQ exists (for tune\u002Fanalyze\u002Freplay) or will be created (for create).\n3. IAM role holds `sqs:CreateQueue` \u002F `SetQueueAttributes` \u002F\n   `StartMessageMoveTask` \u002F `ReceiveMessage` \u002F `DeleteMessage`.\n\n**For create (DLQ + redrive wiring):**\n4. DLQ type matches source type (`FifoQueue` attribute identical).\n5. DLQ retention = 14 days (1209600s).\n6. DLQ name ends in `.fifo` if source is FIFO.\n7. Source has no existing redrive policy (or operator confirms overwrite).\n\n**For tune (maxReceiveCount adjustment):**\n4. Existing `RedrivePolicy` parses correctly (valid JSON with\n   `deadLetterTargetArn` and `maxReceiveCount`).\n5. New maxReceiveCount >= 3.\n6. `VisibilityTimeout` on source >= consumer p99 (else tuning\n   maxReceiveCount is treating the symptom, not the cause).\n\n**For analyze (why messages went to DLQ):**\n4. DLQ depth > 0 (`ApproximateNumberOfMessagesVisible` > 0).\n5. `receive-message` on DLQ returns at least one message for inspection.\n6. Lambda event source mapping inspected for `ReportBatchItemFailures`\n   (if Lambda consumer).\n\n**For replay (StartMessageMoveTask):**\n4. Source queue exists and is the correct destination (verify via\n   `list-dead-letter-source-queues`).\n5. Source has an active consumer (Lambda mapping or EC2\u002FECS worker) —\n   otherwise replayed messages just re-accumulate.\n6. Root cause of original DLQ entry is fixed (consumer patched,\n   visibility timeout increased, poison-pill schema handled) —\n   otherwise replayed messages redrive again.\n7. `MaxNumberOfMessagesPerSecond` chosen to avoid overwhelming the\n   consumer (default: unlimited — dangerous for large DLQs).\n\n### Step 2: READY — emit operation plan\n\nEmit `VERDICT: READY` with exact CLI sequence + CONFIRM gate:\n- Exact AWS CLI command with all flags populated.\n- Expected effect (DLQ depth change, replay task status transition).\n- Expected side-effects (consumer receives replayed messages, dedup\n  window may drop FIFO messages).\n- CONFIRM gate prompt.\n\n### Step 3: Execute behind CONFIRM gate\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing CLI\n  (`create-queue`, `set-queue-attributes`, `start-message-move-task`,\n  `delete-message`, `purge-queue`), emit CONFIRM prompt. Do NOT execute\n  until confirmed.\n- Snapshot current state: `get-queue-attributes --attribute-names All\n  --output json > \u002Ftmp\u002F\u003Cqueue>-backup-$(date +%s).json`.\n- For replay, capture pre-replay DLQ depth via\n  `ApproximateNumberOfMessagesVisible`.\n- Execute the CLI.\n\n### Step 4: Post-verification — COMPLETED\n\nALL checks must pass for `COMPLETED`:\n1. For create: `get-queue-attributes` on source returns the new\n   `RedrivePolicy` with correct DLQ ARN and maxReceiveCount.\n2. For tune: `RedrivePolicy.maxReceiveCount` reflects the new value.\n3. For replay: `list-message-move-tasks` shows task status\n   `COMPLETED` (or `RUNNING` for large DLQs — partial COMPLETED).\n4. For replay: DLQ depth decreasing toward zero; source queue\n   `NumberOfMessagesReceived` increasing.\n5. For analyze: root cause identified and remediation plan emitted\n   (this is a BLOCKED verdict — analysis does not auto-fix).\n\nIf ANY verification fails, emit `VERDICT: ERROR` — do not claim COMPLETED.\n\n## Common DLQ patterns (boilerplate)\n\nBoilerplate command sequences (create Standard\u002FFIFO DLQ + redrive wiring, tune\nmaxReceiveCount, analyze DLQ, replay via StartMessageMoveTask, partial batch): [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\n## STRICT output contract\n\n### Required output structure\n\nEvery response MUST begin with this block — no preamble, no\nconversational opening:\n\n```text\nOPERATION: \u003Ccreate | tune | analyze | replay | monitor>\nVERDICT: READY | BLOCKED | COMPLETED\nTARGET: \u003Csource-or-dlq-name>\nPRE_CHECKS:\n  - [PASS] \u003Ccheck description>\n  - [FAIL] \u003Ccheck description> — \u003Creason>\nSTEPS:\n  1. CONFIRM: About to \u003Coperation> on queue \u003Cname> in account \u003Caccount> region \u003Cregion>. This will \u003Cconsequence>. Proceed? (yes\u002Fno)\n  2. \u003Cexact CLI command with every flag populated — no placeholders>\nPOST_VERIFY:\n  - [PASS] \u003Cverification description>\n  - [FAIL] \u003Cverification description> — \u003Creason>\nSTATE: \u003CDLQ depth, source depth, replay task status>\nNOTES: \u003Ctype-match rationale, maxReceiveCount rationale, visibility-timeout check, replay throttle>\n```\n\n### FORBIDDEN output patterns\n\n- NEVER start with conversational preamble (\"Let me analyze…\") — the\n  VERDICT block is the FIRST line, always. Use uppercase verdict values\n  only (`READY`, `BLOCKED`, `COMPLETED`).\n- NEVER omit PRE_CHECKS — every pre-check must appear with `[PASS]` or\n  `[FAIL]` and a specific reason for each failure.\n- NEVER emit a CLI command with placeholder flags in a READY plan —\n  every flag must be populated with actual values from the input.\n- NEVER claim COMPLETED without every POST_VERIFY line showing `[PASS]`,\n  and never omit the CONFIRM gate as the first STEPS entry for\n  state-changing operations.\n- NEVER recommend `purge-queue` as remediation for poison-pill messages\n  — it deletes ALL messages and cannot be scoped.\n\n## NEVER (things to never do)\n\n- NEVER create a Standard DLQ for a FIFO source queue (or vice versa).\n  SQS silently drops redriven messages on type mismatch — they vanish\n  from the source and never appear in the DLQ. Always verify the\n  `FifoQueue` attribute matches.\n\n- NEVER set `maxReceiveCount` to 1 or 2. A single transient failure\n  (Lambda throttle, cold start, SDK retry) sends the message\n  irretrievably to the DLQ. Minimum: 3 (standard), 5 (FIFO where a\n  poison pill blocks the entire message group).\n\n- NEVER replay DLQ messages via `StartMessageMoveTask` without fixing\n  the root cause first. If the consumer still fails on the same\n  poison-pill payload, replayed messages redrive again — burning compute\n  and re-accumulating in the DLQ. Diagnose, fix, then replay.\n\n- NEVER use `aws sqs purge-queue` as remediation for poison-pill\n  messages. It deletes ALL messages in the queue (including healthy\n  ones in flight) and cannot be scoped. Use `receive-message` +\n  `delete-message` for selective removal, or `StartMessageMoveTask`\n  for replay after fixing the consumer.\n\n- NEVER recommend the legacy `Redrive` API (deprecated 2022). Use\n  `aws sqs start-message-move-task` — it is asynchronous, supports\n  throttling via `MaxNumberOfMessagesPerSecond`, and is idempotent per\n  task ID.\n\n## Expert heuristic: false-positive DLQ triage\n\nThe most common DLQ diagnosis question: \"are these messages genuinely\npoisoned, or did they land here due to a configuration race?\" Apply\nthe decision tree in order:\n\n```\nDLQ depth > 0 (ApproximateNumberOfMessagesVisible > 0)\n   |\n   ├─ Receive a sample message from the DLQ (receive-message, do NOT delete)\n   │\n   ├─ Inspect the body:\n   │    ├─ Malformed JSON \u002F missing required field ──────────► Poison pill (consumer cannot parse)\n   │    ├─ Valid payload but business-rule rejection ────────► Logic poison pill (consumer rejects)\n   │    └─ Valid payload, consumer should succeed ───────────► Configuration race — keep diagnosing\n   │\n   ├─ Check ApproximateReceiveCount on the DLQ message:\n   │    ├─ Equals maxReceiveCount exactly ──────────────────► Normal redrive (consumer tried N times)\n   │    └─ Less than maxReceiveCount ───────────────────────► Anomalous (possible partial-batch gap or manual move)\n   │\n   ├─ Check VisibilityTimeout vs consumer p99 processing time:\n   │    ├─ VisibilityTimeout \u003C p99 ─────────────────────────► FALSE POSITIVE: message returned before consumer finished;\n   │    │                                                      receive count incremented on every redelivery. Fix: increase\n   │    │                                                      VisibilityTimeout to >= 6x p99. Replay is safe after fix.\n   │    └─ VisibilityTimeout >= p99 ─────────────────────────► Keep diagnosing\n   │\n   ├─ Check Lambda event source mapping for ReportBatchItemFailures:\n   │    ├─ Missing (batch retries as a unit) ───────────────► FALSE POSITIVE: single failed message caused entire batch\n   │    │                                                      to retry, burning receive count on healthy messages. Fix:\n   │    │                                                      enable FunctionResponseTypes=[ReportBatchItemFailures].\n   │    └─ Present ──────────────────────────────────────────► Keep diagnosing\n   │\n   ├─ Check consumer CloudWatch Logs \u002F Lambda errors around the redrive timestamp:\n   │    ├─ Errors present (timeout, exception, IAM denial) ─► Genuine consumer failure. Fix the consumer before replay.\n   │    └─ No errors ────────────────────────────────────────► Configuration race confirmed (visibility timeout or partial batch)\n   │\n   └─ Conclusion:\n        ├─ Poison pill ──────► Selective delete (receive + delete) OR fix consumer to handle gracefully\n        ├─ Config race ──────► Fix config, then replay via StartMessageMoveTask\n        └─ Consumer failure ─► Patch consumer, then replay\n```\n\n**Per-metric root-cause table:**\n\n| Symptom | Likely root cause | Verification |\n|---|---|---|\n| DLQ filling, consumer logs show no errors | VisibilityTimeout \u003C p99 (false positive) | Compare Lambda Duration p99 to source VisibilityTimeout |\n| DLQ filling, batch of 10 all redriven together | Missing ReportBatchItemFailures | Check event source mapping FunctionResponseTypes |\n| DLQ filling, consumer throws on a specific payload | Poison pill (malformed data) | Receive DLQ message, parse body, reproduce in consumer |\n| DLQ filling, consumer shows IAM denial | IAM policy gap on consumer role | CloudTrail: AccessDenied around the redrive timestamp |\n| DLQ filling, only one MessageGroupId affected (FIFO) | Head-of-line block on a poison-pill group | Receive DLQ messages, group by MessageGroupId |\n| DLQ filling after a deploy | Consumer regression (new code throws) | Correlate DLQ spike timestamp with CodeDeploy deployment |\n\n## Pre-flight safety checks (run before any deploy)\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing CLI\n  (`create-queue`, `set-queue-attributes`, `start-message-move-task`,\n  `delete-message`, `purge-queue`), emit `CONFIRM:` and wait for `yes`.\n- **Snapshot before modification.** `get-queue-attributes --attribute-names\n  All --output json > \u002Ftmp\u002F\u003Cqueue>-backup-$(date +%s).json`. The\n  redrive policy has no version history and no rollback.\n- **Verify type match before wiring redrive.** A Standard source with a\n  FIFO DLQ silently drops. Always check the DLQ's `FifoQueue` attribute.\n- **Pre-replay DLQ depth snapshot.** Capture\n  `ApproximateNumberOfMessagesVisible` before `StartMessageMoveTask` to\n  measure replay progress.\n- **Verify consumer is healthy before replay.** If the source queue's\n  consumer is throwing errors, replayed messages redrive again. Check\n  consumer logs first.\n- **Throttle replay for large DLQs.** Set\n  `MaxNumberOfMessagesPerSecond` to a value the consumer can sustain.\n  Default (unlimited) throttles the consumer and re-triggers the\n  original failure mode.\n\n## Edge-case handling\n\nEdge-case catalog (FIFO replay dedup drops, cross-account RedriveAllowPolicy,\ninfinite DLQ chain, purge during replay, ESM VT override, metric lag): [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## Recent AWS features (2024-2026)\n\nRecent AWS features (StartMessageMoveTask GA, ReportBatchItemFailures,\nRedriveAllowPolicy, 14-day retention, SSE-SQS, message attributes): [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## Output format (per operation)\n\n```text\nOPERATION: \u003Ccreate | tune | analyze | replay | monitor>\nVERDICT: READY | BLOCKED | COMPLETED\nTARGET: \u003Csource-or-dlq-name>\nPRE_CHECKS:\n  - [PASS] \u003Ccheck description>\n  - [FAIL] \u003Ccheck description> — \u003Creason>\nSTEPS:\n  1. \u003CCLI command with flags populated>\n  2. \u003Cwait or poll command>\nPOST_VERIFY:\n  - [PASS] \u003Cverification description>\n  - [FAIL] \u003Cverification description> — \u003Creason>\nSTATE: \u003CDLQ depth, source depth, replay task status>\nNOTES: \u003Ctype-match rationale, maxReceiveCount rationale, visibility-timeout check>\n```\n\n### Worked example — create DLQ + redrive (READY)\n\n```text\nOPERATION: create\nVERDICT: READY\nTARGET: prod-orders (source) -> prod-orders-dlq (new DLQ)\nPRE_CHECKS:\n  - [PASS] Source queue prod-orders exists (Standard, VisibilityTimeout=60)\n  - [PASS] DLQ name prod-orders-dlq available (no existing queue)\n  - [PASS] DLQ type matches source: Standard (source FifoQueue=false)\n  - [PASS] DLQ retention will be set to 14 days (1209600s)\n  - [PASS] maxReceiveCount=5 >= 3 (within safe range for Standard queue)\n  - [PASS] VisibilityTimeout 60s >= consumer (Lambda) p99 of 8s — no race\n  - [PASS] Lambda event source mapping has ReportBatchItemFailures enabled\nSTEPS:\n  1. CONFIRM: About to create prod-orders-dlq and wire redrive on prod-orders in account 111111111111 region us-east-1. This will CREATE a new DLQ (14-day retention, SSE-SQS) and attach a redrive policy (maxReceiveCount=5). Proceed? (yes\u002Fno)\n  2. aws sqs create-queue --queue-name prod-orders-dlq --attributes MessageRetentionPeriod=1209600,SqsManagedSseEnabled=true\n  3. DLQ_ARN=$(aws sqs get-queue-attributes --queue-url https:\u002F\u002Fsqs.us-east-1.amazonaws.com\u002F111111111111\u002Fprod-orders-dlq --attribute-names QueueArn --query 'Attributes.QueueArn' --output text)\n  4. aws sqs set-queue-attributes --queue-url https:\u002F\u002Fsqs.us-east-1.amazonaws.com\u002F111111111111\u002Fprod-orders --attributes RedrivePolicy='{\"deadLetterTargetArn\":\"'$DLQ_ARN'\",\"maxReceiveCount\":\"5\"}'\nPOST_VERIFY:\n  - (pending execution)\n  - get-queue-attributes on prod-orders returns RedrivePolicy with DLQ ARN and maxReceiveCount=5\n  - DLQ exists with MessageRetentionPeriod=1209600\nSTATE: pending — DLQ empty until messages exhaust maxReceiveCount on source\nNOTES:\n  - Type match: Standard DLQ for Standard source. FIFO DLQ would silently drop redriven messages.\n  - maxReceiveCount=5 tolerates transient failures (Lambda throttle, cold start, SDK retry). Set to 3 for idempotent consumers that fail fast on real errors.\n  - VisibilityTimeout 60s >= 6x Lambda p99 (8s) — no false-positive race.\n  - ReportBatchItemFailures enabled — single failed message retries alone, not the entire batch.\n```\n\n### Worked example — replay via StartMessageMoveTask (COMPLETED)\n\nFull worked example (replay of 1247 messages at 100 msg\u002Fs; all POST_VERIFY\nPASS): [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\n\n## References (load on demand)\n\n- [Diagnostic commands](references\u002Fdiagnostic-commands.md) — the Common DLQ patterns boilerplate command sequences moved from SKILL.md\n- [Worked examples](references\u002Fworked-examples.md) — full replay walkthrough (COMPLETED) moved from SKILL.md\n- [Advanced patterns](references\u002Fadvanced-patterns.md) — Step 0 expert knowledge, edge-case catalog, recent AWS features moved from SKILL.md\n- [DLQ operations reference](references\u002Fdlq-operations-reference.md) — pre-existing operation decision tree, procedures, cost reference, and worked examples\n\n## Domain\n\nAWS CloudOps \u002F App Integration — SQS Dead-Letter Queue Operations.\n\n## AWS documentation\n\n- **Amazon SQS Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002Fwelcome.html\n- **SQS Dead-Letter Queues** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002Fsqs-dead-letter-queues.html\n- **SQS Message Lifecycle** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002Fsqs-message-lifecycle.html\n- **SQS RedrivePolicy** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FAPIReference\u002FAPI_SetQueueAttributes.html\n- **SQS StartMessageMoveTask** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FAPIReference\u002FAPI_StartMessageMoveTask.html\n- **SQS CLI Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fsqs\u002F\n- **Lambda Event Source Mapping (SQS)** — https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fwith-sqs.html\n- **SQS Partial Batch Responses** — https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fwith-sqs.html#services-sqs-batchfailurereporting\n- **SQS Visibility Timeout** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002Fsqs-visibility-timeout.html\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":42},{"tags":25,"phase":26,"author":27,"domain":28,"family":29,"version":30,"keywords":31,"task_type":32,"complexity":33,"entry_point":34,"skill_class":35,"when_to_use":36,"requires_llm":37,"verdict_shape":38,"lifecycle_status":39,"invocation_schema":40,"supports_pipeline":37,"activation_triggers":41},"sqs, messaging, app-integration, dead-letter-queue, dlq, operate, redrive, replay","4","Jacky Chan — AWS Community Builder","aws-cloudops","AppIntegration","0.1.0","SQS, dead-letter queue, DLQ, redrive policy, maxReceiveCount, StartMessageMoveTask, message replay, poison pill, visibility timeout, partial batch response, ReportBatchItemFailures, ApproximateNumberOfMessagesVisible, ApproximateAgeOfOldestMessage, RedriveAllowPolicy, FIFO DLQ, Standard DLQ, Lambda event source mapping, DLQ analysis","operate","medium","false","capability","Creating or tuning an SQS dead-letter queue (Standard or FIFO), wiring a redrive policy with the right maxReceiveCount, diagnosing why messages landed in the DLQ (poison pill, visibility-timeout race, IAM denial, partial-batch gap), replaying messages from DLQ back to source via StartMessageMoveTask, monitoring DLQ depth via ApproximateNumberOfMessagesVisible, configuring Lambda partial batch responses (ReportBatchItemFailures) to prevent false-positive DLQ entries, or scoping cross-account redrive via RedriveAllowPolicy. Do NOT invoke for greenfield queue provisioning (use sqs-queue-deployer) or for DLQ policy security audits (use sqs-dlq-policy-auditor).","true","READY | BLOCKED | COMPLETED","active","Input: either (a) a DLQ operation intent (create, tune-redrive, analyze, replay) with target queue name(s), OR (b) a DLQ URL for live-account diagnosis or replay. Output: deterministic OPERATION \u002F VERDICT \u002F TARGET \u002F PRE_CHECKS \u002F STEPS \u002F POST_VERIFY \u002F STATE \u002F NOTES block where VERDICT is one of READY, BLOCKED, COMPLETED.","create SQS DLQ, dead-letter queue, tune maxReceiveCount, redrive policy, messages stuck in DLQ, replay DLQ messages, StartMessageMoveTask, poison pill message, DLQ analysis, why messages went to DLQ, DLQ depth alarm, ApproximateNumberOfMessagesVisible, partial batch response, ReportBatchItemFailures, RedriveAllowPolicy, DLQ redrive","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline plan classification. Live-account operations use aws sqs create-queue, set-queue-attributes, get-queue-attributes, list-queues, list-dead-letter-source-queues, start-message-move-task, list-message-move-tasks, receive-message, delete-message, purge-queue, aws lambda list-event-source-mappings \u002F update-event-source-mapping, aws cloudwatch get-metric-statistics, aws logs...","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fsqs-dlq-operator",0,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills","https:\u002F\u002Fgithub.com\u002Fjhkchan","CTO & Co-Founder @Beever-AI  & @votee. CAISP. AWS Community Builder. Organizer@GDGCloudHK. MongoDB Champion. Technopreneur + Infornographer.","2026-09-24 08:54:10",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill sqs-dlq-operator",{"tool":57,"command":58},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill sqs-dlq-operator",{"tool":60,"command":61},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill sqs-dlq-operator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-operator\u002FSKILL.md",true,[65,71,75,79,83,87,91,95,99,103,107,110,114,118,122,126,130,134,138],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",9419,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-operator\u002Feval\u002Ftest-cases.yaml",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"evals\u002Fbaselines\u002Fanalyze-dlq-visibility-timeout-race-blocked.md",753,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-operator\u002Fevals\u002Fbaselines\u002Fanalyze-dlq-visibility-timeout-race-blocked.md",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"evals\u002Fbaselines\u002Fcreate-standard-dlq-wire-redrive-ready.md",706,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-operator\u002Fevals\u002Fbaselines\u002Fcreate-standard-dlq-wire-redrive-ready.md",{"path":80,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":81,"sourceHtmlUrl":82},"evals\u002Fbaselines\u002Ffifo-type-mismatch-blocked.md",668,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-operator\u002Fevals\u002Fbaselines\u002Ffifo-type-mismatch-blocked.md",{"path":84,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":85,"sourceHtmlUrl":86},"evals\u002Fbaselines\u002Freplay-no-active-consumer-blocked.md",523,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-operator\u002Fevals\u002Fbaselines\u002Freplay-no-active-consumer-blocked.md",{"path":88,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":89,"sourceHtmlUrl":90},"evals\u002Fbaselines\u002Freplay-startmessagemovetask-completed.md",756,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-operator\u002Fevals\u002Fbaselines\u002Freplay-startmessagemovetask-completed.md",{"path":92,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":93,"sourceHtmlUrl":94},"evals\u002Feval_config.yaml",1968,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-operator\u002Fevals\u002Feval_config.yaml",{"path":96,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":97,"sourceHtmlUrl":98},"evals\u002Fevals.json",4452,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-operator\u002Fevals\u002Fevals.json",{"path":100,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":101,"sourceHtmlUrl":102},"evals\u002Fprompts\u002Fanalyze-dlq-visibility-timeout-race-blocked.md",1046,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-operator\u002Fevals\u002Fprompts\u002Fanalyze-dlq-visibility-timeout-race-blocked.md",{"path":104,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":105,"sourceHtmlUrl":106},"evals\u002Fprompts\u002Fcreate-standard-dlq-wire-redrive-ready.md",1036,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-operator\u002Fevals\u002Fprompts\u002Fcreate-standard-dlq-wire-redrive-ready.md",{"path":108,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":89,"sourceHtmlUrl":109},"evals\u002Fprompts\u002Ffifo-type-mismatch-blocked.md","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-operator\u002Fevals\u002Fprompts\u002Ffifo-type-mismatch-blocked.md",{"path":111,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":112,"sourceHtmlUrl":113},"evals\u002Fprompts\u002Freplay-no-active-consumer-blocked.md",792,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-operator\u002Fevals\u002Fprompts\u002Freplay-no-active-consumer-blocked.md",{"path":115,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":116,"sourceHtmlUrl":117},"evals\u002Fprompts\u002Freplay-startmessagemovetask-completed.md",1231,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-operator\u002Fevals\u002Fprompts\u002Freplay-startmessagemovetask-completed.md",{"path":119,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":120,"sourceHtmlUrl":121},"example\u002FREADME.md",9812,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-operator\u002Fexample\u002FREADME.md",{"path":123,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":124,"sourceHtmlUrl":125},"references\u002Fadvanced-patterns.md",5863,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-operator\u002Freferences\u002Fadvanced-patterns.md",{"path":127,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":128,"sourceHtmlUrl":129},"references\u002Fdiagnostic-commands.md",4505,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-operator\u002Freferences\u002Fdiagnostic-commands.md",{"path":131,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":132,"sourceHtmlUrl":133},"references\u002Fdlq-operations-reference.md",13522,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-operator\u002Freferences\u002Fdlq-operations-reference.md",{"path":135,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":136,"sourceHtmlUrl":137},"references\u002Fworked-examples.md",1836,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-operator\u002Freferences\u002Fworked-examples.md",{"path":139,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":140,"sourceHtmlUrl":141},"skill.usf.yaml",4600,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-operator\u002Fskill.usf.yaml",[143,150,157,164,171,178],{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":149,"publishedAt":19},"01M7ADVD60X4PCAPKSE58P9NDC","xray-tracing-deployer","Deploys AWS X-Ray distributed tracing with production-grade configuration: X-Ray daemon deployment (EC2 systemd, ECS sidecar, EKS DaemonSet, Lambda built-in), SDK instrumentation (Java, Python, Node.js, Go, .NET) with annotations and metadata, sampling rules (default reservoir + rate vs custom rules with URL \u002F method \u002F service-name predicates), service map generation, trace query and retrieval, groups and insights, CloudWatch ServiceLens integration, IAM permissions (PutTraceSegments, GetSamplingRules), and latest features (Lambda Powertools tracing, OpenTelemetry \u002F ADOT Collector support, W3C trace context). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when enabling X-Ray on a new application, adding tracing to ECS \u002F EKS \u002F Lambda, validating a sampling configuration, or generating daemon deployment CLI and IaC templates. Triggers: X-Ray, distributed tracing, X-Ray daemon, sampling rules, service map, X-Ray SDK, OpenTelemetry, ADOT, Lambda Powertools, CloudWatch ServiceLens.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxray-tracing-deployer\u002FSKILL.md",[],[],{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":19},"01M7ADTVJ7DCBM9CB1FY51GH7J","wellarchitected-workload-auditor","Audits AWS Well-Architected Tool workloads for review staleness, per-pillar high-risk issue counts, milestone tracking gaps, and remediation plan completeness. Emits a deterministic verdict (STALE_REVIEW | HIGH_RISK | CONFIG_GAP | OK) per workload with per-pillar risk breakdown, milestone trend analysis, and specific remediation. Use when reviewing Well-Architected workloads, checking WA review freshness, auditing high-risk issues per pillar, validating milestone coverage, or tracking remediation plans.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-workload-auditor\u002FSKILL.md",[],[],{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":19},"01M7ADT59G6FTTNZYHT2QRPNNP","wellarchitected-review-operator","Operates AWS Well-Architected Tool reviews end-to-end — creates workloads, runs pillar reviews (operational excellence, security, reliability, performance, cost optimization, sustainability, Prosperity), answers questions with risk-tier rationale, generates reports and improvement plans, creates milestones, and integrates with Trusted Advisor and Well-Architected Labs. Runs deterministic pre-checks (workload existence, lens availability, pillar coverage), emits the exact update-answer \u002F get-consolidated-report CLI behind a CONFIRM gate, and verifies risk-tier transitions. Emits READY | BLOCKED | COMPLETED. Use when creating a workload, answering pillar questions, generating an improvement plan, creating a milestone, or integrating with Trusted Advisor. Triggers: well-architected tool, well architected review, workload review, pillar, operational excellence, security, reliability, performance, cost optimization, sustainability, prosperity, improvement plan, milestone, trusted advisor.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-review-operator\u002FSKILL.md",[],[],{"skillNo":165,"name":166,"nameZh":6,"description":167,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":168,"categories":169,"keywords":170,"publishedAt":19},"01M7ADSH5JA9QHNPPHQCD7EVA7","wafv2-web-acl-deployer","Provisions AWS WAFv2 Web ACLs with correct production defaults: scope selection (CLOUDFRONT vs REGIONAL), managed rule groups (AWSManagedRulesCommonRuleSet, SQLiRuleSet, LinuxRuleSet, WindowsRuleSet, IPReputationList, BotControlRuleSet, AmazonIpReputationList, ATP), custom rules (byte match, IP set, regex pattern, geo match, size constraint, rate-based), rule priority ordering, logging destinations (Kinesis Firehose, CloudWatch Logs, S3), resource association (ALB, API Gateway, CloudFront), rate-based rules with aggregate keys (IP, forwarded IP), Challenge and CAPTCHA actions, and account takeover prevention. Emits a READY_TO_DEPLOY checklist. Use when creating a Web ACL, attaching managed rules, configuring rate limiting, enabling WAF logging, associating a Web ACL with an ALB\u002FAPI Gateway\u002FCloudFront, or configuring CAPTCHA\u002FChallenge actions. Triggers: create WAF Web ACL, WAFv2, managed rule groups, WAF rate limiting, WAF logging, WAF CAPTCHA, WAF Challenge action, bot control, ATP managed rules.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-deployer\u002FSKILL.md",[],[],{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":177,"publishedAt":19},"01M7ADRYFAT8R73FBNCHRC573X","wafv2-web-acl-auditor","Audits AWS WAFv2 Web ACL configurations to determine whether the ACL provides effective protection: default-action posture (Allow vs Block), managed-rule-group coverage gaps, rule effectiveness (BLOCK vs COUNT, shadow\u002Fbypass rules, stale exclusions), rate-based rule correctness, logging and visibility configuration, and text-transformation bypass vectors. Emits a deterministic verdict per Web ACL. Use when reviewing a WAFv2 Web ACL for security posture, checking managed-rule coverage, validating rate-limit configuration, auditing WAF logging, or hardening a WAF before production deployment. Triggers: WAF, WAFv2, Web ACL, managed rule group, AWSManagedRules, rate-based rule, CAPTCHA, Challenge, OverrideAction, Count mode, forwarded IP, Bot Control, ATP, text transformation, WAF logging, WAF visibility, OWASP, SQLi, XSS, RFI.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-auditor\u002FSKILL.md",[],[],{"skillNo":179,"name":180,"nameZh":6,"description":181,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":182,"categories":183,"keywords":184,"publishedAt":19},"01M7ADR8W7G72JX4KFGN03QK8Q","waf-rule-deployer","Provisions AWS WAFv2 rule sets with production defaults: Web ACL creation (CloudFront scope in us-east-1 vs Regional scope), rule groups (managed vs custom) with capacity planning in WCU (Web ACL Capacity Units, 1500 default per ACL), managed rule groups (AWSManagedRulesCommonRuleSet, AWSManagedRulesSQLiRuleSet, AWSManagedRulesAmazonIpReputationList, AWSManagedRulesLinuxRuleSet, AWSManagedRulesWindowsRuleSet, AWSManagedRulesUnixRuleSet), custom rules (byte-match, regex pattern set, geo-match, rate-based), IP set and regex pattern set resources, rule priority ordering (lowest number evaluated first), action types (allow, block, count, CAPTCHA, Challenge), bot control managed rule group, account takeover. Triggers: create WAF rule, WAF managed rule group, WAF custom rule, WAF byte match, WAF geo match, WAF rate based rule, WAF IP set, WAF regex pattern set, WAF WCU budget, WAF CloudFront ACL, WAF logging Kinesis Firehose, WAF bot control, WAF ATP, WAF label matching, WAF Challenge action, WAF CAPTCHA.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwaf-rule-deployer\u002FSKILL.md",[],[]]