[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A73MNWWBJQK29Y0PP3SRR2":3,"skill-same:01M7A73MNWWBJQK29Y0PP3SRR2":149},{"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":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M7A73MNWWBJQK29Y0PP3SRR2","dynamodb-throttling-optimizer",null,"Optimises DynamoDB throttling prevention across eight dimensions: partition key design (hot partition detection via CloudWatch ThrottledRequests), burst capacity utilization (300-second burst bucket understanding), adaptive capacity (automatic redistribution, not a design substitute), GSI partition key distribution (hot GSI backpressure), write capacity mode (provisioned vs on-demand for bursty writes), batch write API (BatchWriteItem for 16x throughput), exponential backoff with jitter (ProvisionedThroughputExceededException handling), and write sharding (random suffix for high-cardinality hot keys). Covers conditional writes for idempotency, TTL for data lifecycle, partition splitting, and throttling root cause analysis via CloudTrail.","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\u002Fdynamodb-throttling-optimizer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: dynamodb-throttling-optimizer\ndescription: 'Optimises DynamoDB throttling prevention across eight dimensions: partition key design (hot partition detection via CloudWatch ThrottledRequests), burst capacity utilization (300-second burst bucket understanding), adaptive capacity (automatic redistribution, not a design substitute), GSI partition key distribution (hot GSI backpressure), write capacity mode (provisioned vs on-demand for bursty writes), batch write API (BatchWriteItem for 16x throughput), exponential backoff with jitter (ProvisionedThroughputExceededException handling), and write sharding (random suffix for high-cardinality hot keys). Covers conditional writes for idempotency, TTL for data lifecycle, partition splitting, and throttling root cause analysis via CloudTrail.'\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). Offline recommendation classification works from pasted CloudWatch metrics and table configuration. Live-account optimization uses aws dynamodb describe-table, aws dynamodb describe-limits, aws cloudwatch get-metric-statistics (ThrottledRequests, ConsumedReadCapacityUnits, ConsumedWriteCapacityUnits, ReturnedItemCount), aws cloudtrail lookup-events, and aws application-autoscaling describe-scaling-policies (AWS...\nmetadata:\n  domain: aws-cloudops\n  complexity: medium\n  requires_llm: 'true'\n  phase: '3'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: Databases\n  task_type: optimize\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: OPTIMIZED | FURTHER_OPTIMIZATION_AVAILABLE\n  when_to_use: Preventing DynamoDB throttling, diagnosing hot partitions via CloudWatch ThrottledRequests, designing write-sharding strategies for high-cardinality keys, evaluating burst capacity utilization, understanding adaptive capacity limits, distributing GSI partition keys, choosing provisioned vs on-demand for bursty writes, implementing BatchWriteItem for throughput, configuring exponential backoff with jitter, or running throttling root cause analysis via CloudTrail.\n  when_not_to_use: DynamoDB cost optimization without a throttling focus (use dynamodb-capacity-optimizer), DynamoDB table security or IAM auditing (use dynamodb-table-auditor), or DynamoDB schema design from scratch (use a data modeling specialist). This skill targets throttling prevention and partition-key distribution, not dollar cost or greenfield schema design.\n  activation_triggers: prevent DynamoDB throttling, DynamoDB hot partition, DynamoDB ThrottledRequests, DynamoDB write sharding, DynamoDB burst capacity, DynamoDB adaptive capacity, DynamoDB GSI throttling, DynamoDB BatchWriteItem, DynamoDB exponential backoff, DynamoDB ProvisionedThroughputExceededException, DynamoDB partition key design, DynamoDB partition splitting, DynamoDB on-demand vs provisioned, DynamoDB throttling root cause, DynamoDB CloudTrail analysis, DynamoDB conditional writes, DynamoDB idempotency, DynamoDB TTL throttling\n  invocation_schema: 'Input: either (a) a table identifier + live-account context, (b) a CloudWatch metrics export (ThrottledRequests, ConsumedWriteCapacityUnits, ConsumedReadCapacityUnits), OR (c) table metadata (TableName, BillingMode, ProvisionedThroughput, GSIs, partition key attribute, TTL status) with observed throttling events. Output: a deterministic TARGET\u002FVERDICT\u002FREASON\u002FRECOMMENDATION\u002F ESTIMATED_THROUGHPUT_IMPACT\u002FMIGRATION_STEPS block per table, where VERDICT is one of OPTIMIZED, FURTHER_OPTIMIZATION_AVAILABLE.'\n  invocation_example: \"# Minimal valid input (offline classification):\\nTableName: user-events-prod\\nRegion: us-east-1\\nBillingMode: PROVISIONED\\nProvisionedThroughput:\\n  ReadCapacityUnits: 5000\\n  WriteCapacityUnits: 3000\\nPartitionKey: user_id (String)\\nGSI: event-type-index (partition key: event_type)\\nTTL: not enabled\\nMetrics (last 30 days):\\n  - ThrottledRequests: 45,000 (on Write)\\n  - ConsumedWriteCapacityUnits: avg 2800\u002Fs, max 3500\u002Fs\\n  - ConsumedReadCapacityUnits: avg 1200\u002Fs, max 1800\u002Fs\\n  - ReturnedItemCount: avg 50\u002Fscan\\nThrottling pattern: spikes at top-of-hour batch writes (same user_id\\n  values concentrated in few partitions)\\nEmit the standard optimization block (TARGET, VERDICT, REASON,\\nRECOMMENDATION, ESTIMATED_THROUGHPUT_IMPACT, MIGRATION_STEPS).\"\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: DynamoDB, throttling, hot partition, partition key, write sharding, burst capacity, adaptive capacity, GSI, batch write, BatchWriteItem, exponential backoff, jitter, provisioned vs on-demand, ProvisionedThroughputExceededException, ThrottledRequests, ConsumedWriteCapacityUnits, conditional writes, idempotency, TTL, partition splitting, CloudTrail, root cause analysis\n  tags: dynamodb, databases, performance, throttling, partition-design, capacity, write-sharding\n---\n\n# DynamoDB Throttling Optimizer\n\n## What this skill does\n\nTranslates a DynamoDB table's throttling posture into a concrete\nprevention recommendation with a throughput-denominated estimated impact.\nThe verdict is the highest-leverage action across eight dimensions --\npartition key design, burst capacity, adaptive capacity, GSI distribution,\nwrite capacity mode, batch write API, exponential backoff, and write\nsharding -- applied in priority order. Always pairs the recommendation\nwith exact CLI commands.\n\n## Quick navigation\n\n| Section | What it covers | When to jump here |\n|---|---|---|\n| Quick start | Four headline rules and the throttling formula | First read |\n| Mindset | Why partition key design is the #1 lever | Understanding the approach |\n| Quick reference -- verdict thresholds | Decision matrix at a glance | Classifying a table |\n| Pre-flight data gate | CloudWatch metrics, CloudTrail | Before any recommendation |\n| Step 0 non-obvious behaviours | Burst capacity, adaptive capacity, GSI backpressure | Edge cases |\n| Step 1 Partition key design | Hot partition detection, write sharding | The headline dimension |\n| Step 2 Burst capacity | 300-second burst bucket utilization | Intermittent spikes |\n| Step 3 Adaptive capacity | Automatic redistribution limits | Hot partition mitigation |\n| Step 4 GSI distribution | Hot GSI partition key backpressure | GSI throttling |\n| Step 5 Write capacity mode | Provisioned vs on-demand for bursty writes | Capacity mode decision |\n| Step 6 Batch write API | BatchWriteItem for 16x throughput | High-volume writes |\n| Step 7 Exponential backoff | ProvisionedThroughputExceededException handling | Client-side retry |\n| Step 8 Impact estimation | Throughput math and worked examples | Every recommendation |\n| Output format | VERDICT block + worked examples | Emitting the result |\n| Anti-Patterns -- NEVER | Common misclassifications | Self-check before emit |\n| Pre-flight safety checks | CONFIRM gate, GSI backfill | Before any apply CLI |\n\n## Quick start\n\n- **Partition key design is the #1 lever.** DynamoDB distributes data\n  across partitions by partition key. A hot partition key (few distinct\n  values, uneven write distribution) causes throttling even when total\n  consumed capacity is below provisioned. Write sharding (random suffix)\n  spreads writes across partitions.\n- **Burst capacity gives a 5-minute window.** DynamoDB accumulates\n  unused capacity (up to 300 seconds of provisioned throughput) and\n  releases it as burst capacity. Intermittent spikes that fit within\n  the burst window do NOT throttle. Sustained spikes beyond burst DO\n  throttle.\n- **Adaptive capacity is a safety net, not a design substitute.** When\n  a hot partition exceeds its share of throughput, DynamoDB temporarily\n  redirects unused capacity from cold partitions. This prevents\n  immediate throttling but does not fix the underlying distribution\n  problem. Rely on write sharding, not adaptive capacity.\n- **BatchWriteItem is 16x more efficient than PutItem.** A single\n  BatchWriteItem request writes up to 16 items (up to 16 MB) in one\n  round trip. This reduces request count, network overhead, and\n  consumed capacity per item. For high-volume writes, always use batch.\n\n## Mindset\n\nMoved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand (see References below).\n\n## Quick reference -- verdict thresholds\n\n| Observation (14-30 day window) | Verdict | Recommendation |\n|---|---|---|\n| ThrottledRequests > 0 AND partition key cardinality is low (hot partition) | **FURTHER_OPTIMIZATION_AVAILABLE** (write sharding) | Step 1 -- add random suffix to partition key |\n| ThrottledRequests > 0 AND burst capacity exhausted (sustained spikes > 5 min) | **FURTHER_OPTIMIZATION_AVAILABLE** (capacity mode) | Step 5 -- switch to on-demand OR increase WCU |\n| ThrottledRequests > 0 AND GSI partition key is hot (GSI backpressure) | **FURTHER_OPTIMIZATION_AVAILABLE** (GSI design) | Step 4 -- redesign GSI partition key or use sparse index |\n| Sustained writes > 1000 items\u002Fs AND using PutItem (not BatchWriteItem) | **FURTHER_OPTIMIZATION_AVAILABLE** (batch) | Step 6 -- migrate to BatchWriteItem |\n| ThrottledRequests > 0 AND no exponential backoff on client | **FURTHER_OPTIMIZATION_AVAILABLE** (retry) | Step 7 -- implement backoff with jitter |\n| BillingMode = PROVISIONED AND throttling on bursty, unpredictable writes | **FURTHER_OPTIMIZATION_AVAILABLE** (capacity mode) | Step 5 -- switch to on-demand |\n| ThrottledRequests = 0 AND partition key well-distributed AND batch writes used | **OPTIMIZED** | Emit post-state verification |\n| CloudWatch metrics absent or window \u003C 14 days | **NEED_MORE_INFO** | Pull 14-30 day CloudWatch data, re-evaluate |\n\n## Pre-flight: data gate (run before any optimization decision)\n\nThrottling diagnosis requires CloudWatch metrics and table configuration.\nPull these before any recommendation. Full CLI sequences are in\n`references\u002Fthrottling-metrics-and-write-sharding.md`.\n\nMoved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) - load on demand (see References below).\n\n### Data-quality short-circuits\n\n| Condition | Effect on optimization |\n|---|---|\n| `ThrottledRequests` Sum = 0 over 14 days | Emit **OPTIMIZED** with note \"no throttling observed.\" |\n| `ConsumedWriteCapacityUnits` absent | **NEED_MORE_INFO**. Cannot assess write pressure. |\n| Observation window \u003C 14 days | **NEED_MORE_INFO**. Minimum 14 days; 30 days preferred. |\n| Table `TableStatus != ACTIVE` | Skip optimization; surface as BLOCKED. |\n| GSI `IndexStatus != ACTIVE` (backfilling) | GSI throttling expected during backfill; defer analysis. |\n\n## Process -- Optimization logic (apply in order)\n\n### Step 0: Non-obvious behaviours that change the recommendation\n\nMoved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand (see References below).\n\n### Step 1: Partition key design (hot partition detection, write sharding)\n\nPartition key design is the #1 lever because DynamoDB distributes data\nand throughput across partitions by partition key value. A hot partition\nkey (few distinct values, uneven write distribution) causes throttling\neven when table-level consumed capacity is below provisioned.\n\nMoved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) - load on demand (see References below).\n\n**Hot partition diagnosis decision tree:**\n```\nIs ThrottledRequests > 0?\n├── NO → No partition-level throttling. Check other dimensions.\n└── YES → Is partition key cardinality high (>10,000 distinct values)?\n    ├── NO → HOT PARTITION. Apply write sharding (Step 1).\n    └── YES → Is write distribution even across keys?\n        ├── NO → HOT PARTITION (skewed writes). Apply write sharding.\n        └── YES → Check burst capacity exhaustion (Step 2) or GSI (Step 4).\n```\n\nMoved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md) - load on demand (see References below).\n\nMoved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md) - load on demand (see References below).\n\nUse write sharding ONLY for genuinely hot keys. Over-sharding low-volume\nkeys adds read complexity without benefit.\n\n### Step 2: Burst capacity utilization\n\nDynamoDB accumulates unused provisioned throughput (up to 300 seconds)\nas burst capacity. Understanding burst utilization is key to diagnosing\nintermittent throttling.\n\nMoved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md) - load on demand (see References below).\n\n**Diagnosis:**\n\n| Pattern | Root cause | Fix |\n|---|---|---|\n| Throttling only during brief spikes (\u003C5 min) | Burst capacity exhausted | Increase WCU or switch to on-demand |\n| Throttling during sustained writes (>5 min) | Provisioned too low | Increase WCU or on-demand |\n| No throttling, burst heavily used | Near limit | Monitor closely, pre-provision |\n\n### Step 3: Adaptive capacity understanding\n\nAdaptive capacity automatically redistributes unused throughput from\ncold partitions to hot partitions. It is a safety net, not a design fix.\n\n**Key facts:**\n- Activates within seconds of a hot partition exceeding its share.\n- Redirection is temporary (minutes), not permanent.\n- Does NOT prevent throttling for sustained hot partitions.\n- No configuration needed -- always on for provisioned tables.\n\n**Anti-pattern:** Designing a table with a known hot partition key and\nrelying on adaptive capacity to prevent throttling. Adaptive capacity\ndelays throttling; write sharding (Step 1) fixes it permanently.\n\n### Step 4: GSI partition key distribution\n\nGSI partition key design is as critical as base table partition key\ndesign. A hot GSI partition key causes GSI throttling, which\nback-pressures and throttles the base table.\n\nMoved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) - load on demand (see References below).\n\n**GSI optimization strategies:**\n\n| Problem | Fix |\n|---|---|\n| GSI partition key has low cardinality (e.g., `status` with 3 values) | Use composite key: `status#date` or write sharding |\n| GSI is a \"full table scan\" pattern (all items under one key) | Redesign GSI partition key for distribution |\n| GSI backfilling causes throttling | Reduce backfill rate or use on-demand temporarily |\n| GSI is sparse but back-pressures base table | Ensure GSI partition key distributes writes evenly |\n\n### Step 5: Write capacity mode (provisioned vs on-demand)\n\n**Capacity mode decision matrix:**\n\n| Pattern | Recommended mode | Rationale |\n|---|---|---|\n| Steady, predictable traffic | Provisioned + auto-scaling | Lower cost; predictable capacity |\n| Bursty, unpredictable traffic | On-demand | No throttling from capacity limits |\n| Spikes >2x previous peak | Provisioned with headroom | On-demand 2x spike limit may throttle |\n| Low traffic (\u003C1000 WCU sustained) | On-demand | Simpler; no auto-scaling config needed |\n| High traffic (>50,000 WCU sustained) | Provisioned | On-demand cost premium too high |\n\nMoved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md) - load on demand (see References below).\n\n### Step 6: Batch write API (BatchWriteItem for 16x throughput)\n\nBatchWriteItem writes up to 16 items (up to 16 MB total) in a single\nrequest. This reduces request count, network overhead, and client-side\nlatency.\n\nMoved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md) - load on demand (see References below).\n\nMoved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md) - load on demand (see References below).\n\nMoved verbatim to [references\u002Ferror-handling.md](references\u002Ferror-handling.md) - load on demand (see References below).\n\n### Step 7: Exponential backoff with jitter\n\nWhen `ProvisionedThroughputExceededException` occurs, the client must\nretry with exponential backoff and jitter. The AWS SDK retries\nautomatically by default, but custom retry logic with jitter is more\neffective for sustained throttling.\n\nMoved verbatim to [references\u002Ferror-handling.md](references\u002Ferror-handling.md) - load on demand (see References below).\n\n**Retry best practices:**\n\n| Strategy | When to use |\n|---|---|\n| SDK default retry (3 attempts) | Low-volume, occasional throttling |\n| Custom backoff with jitter (10 attempts) | Sustained throttling, batch workloads |\n| Adaptive retry (circuit breaker) | High-volume, latency-sensitive APIs |\n\n### Step 8: Conditional writes and TTL\n\nMoved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md) - load on demand (see References below).\n\nMoved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md) - load on demand (see References below).\n\nTTL reduces table size over time, which reduces storage cost and scan\ntime. TTL deletions consume background WCU -- stagger TTL values to\navoid batch-expiry throttling on provisioned tables.\n\n## Configuration dependency graph\n\n```\n                ┌──────────────────────────┐\n                │ ThrottledRequests > 0?   │\n                └────────────┬─────────────┘\n                             │\n              ┌──────────────┴──────────────┐\n              YES                           NO\n              │                             │\n       ┌──────▼──────┐              ┌───────▼───────┐\n       │ Partition   │              │ Batch write   │\n       │ key hot?    │              │ used?         │\n       └──────┬──────┘              └───────┬───────┘\n              │                             │\n       ┌──────┴──────┐              ┌───────┴───────┐\n      YES          NO              YES             NO\n       │            │               │               │\n ┌─────▼─────┐ ┌────▼────┐  ┌───────▼───┐   ┌───────▼───────┐\n │ Write     │ │ GSI     │  │ OPTIMIZED │   │ Check        │\n │ sharding  │ │ hot?    │  │           │   │ capacity     │\n │ (Step 1)  │ └────┬────┘  └───────────┘   │ mode (Step 5)│\n └───────────┘      │                       └──────────────┘\n               YES  │  NO\n               │    └──→ Burst capacity (Step 2)\n         ┌─────▼─────┐\n         │ GSI       │\n         │ redesign  │\n         │ (Step 4)  │\n         └───────────┘\n```\n\nDecision order: partition key (write sharding) -> GSI distribution ->\nburst\u002Fcapacity mode -> batch write -> exponential backoff.\n\n## Output format\n\n```text\nTARGET: \u003Ctable-name>\nVERDICT: OPTIMIZED | FURTHER_OPTIMIZATION_AVAILABLE\nREASON: \u003C1-2 sentences naming the recommendation and the supporting data>\nRECOMMENDATION:\n  Current: \u003Cbilling-mode>, \u003CWCU>, \u003Cpartition key>, \u003CGSI status>, \u003Cbatch write status>\n  Proposed: \u003Cbilling-mode>, \u003CWCU>, \u003Cpartition key>, \u003CGSI status>, \u003Cbatch write status>\n  Dimensions changed: \u003Cpartition_key | burst | adaptive | gsi | capacity_mode | batch_write | backoff>\n  Dimensions checked: \u003Clist ALL eight, each ✓ (no finding) or → (finding)>\n  Confidence: \u003CHIGH\u002FMEDIUM\u002FLOW> -- \u003Cone-line rationale>\nESTIMATED_THROUGHPUT_IMPACT:\n  Current throttled requests\u002Fday: \u003Ccount>\n  Projected throttled requests\u002Fday: \u003Ccount>\n  Throughput improvement: \u003Cdescription>\n  Root cause: \u003Chot partition | burst exhaustion | GSI backpressure | insufficient capacity>\nMIGRATION_STEPS:\n  1. \u003Cspecific action with CLI command>\n  2. \u003Cverification step>\nCONFIRM: Before executing any state-changing CLI, emit and await operator\n  approval: \"CONFIRM: About to \u003Caction> on \u003Ctable-name> in \u003Cregion>.\n  Proceed? (yes\u002Fno)\"\n```\n\nFull worked examples are in `references\u002Fworked-examples.md`.\n\n## STRICT output contract\n\nThe rules below are hard constraints. Self-check EVERY emitted block\nagainst these rules before returning. Do NOT substitute markdown headings\nor camelCase for the literal labels.\n\n### FORBIDDEN output patterns\n\n1. **NEVER emit `VERDICT: FURTHER_OPTIMIZATION_AVAILABLE` with\n   `Projected throttled requests\u002Fday` equal to current.** If every\n   dimension nets zero improvement, verdict MUST be `OPTIMIZED`.\n\n2. **NEVER recommend write sharding without warning about read\n   complexity.** Write sharding adds parallel read overhead. The\n   MIGRATION_STEPS MUST note the read pattern change.\n\n3. **NEVER recommend on-demand mode without citing the cost premium.**\n   On-demand is significantly more expensive than provisioned for\n   steady workloads. Always pair with a cost-justification note.\n\n4. **NEVER recommend BatchWriteItem as a throttling fix without noting\n   that consumed WCU is unchanged.** BatchWriteItem reduces request\n   count, not consumed capacity. It helps with client-side latency and\n   connection pool pressure, not partition-level throttling.\n\n5. **NEVER attribute throttling to insufficient capacity without checking\n   partition key distribution.** Throttling is per-partition. A hot\n   partition throttles even when table-level consumed \u003C provisioned.\n   Always check partition key cardinality and write distribution first.\n\n6. **NEVER omit a dimension from the RECOMMENDATION block.** The\n   `Dimensions checked` line MUST list all eight dimensions.\n\n7. **NEVER emit scratch lines** (\"WAIT -- recompute\", \"Hmm, let me redo\")\n   in the output.\n\n### Perfect example output -- FURTHER_OPTIMIZATION_AVAILABLE\n\n```text\nTARGET: user-events-prod\nVERDICT: FURTHER_OPTIMIZATION_AVAILABLE\nREASON: PROVISIONED table with 45,000 ThrottledRequests on Write over 30\n  days. Partition key (user_id) has high write skew -- top 1% of user_ids\n  generate 80% of writes (detected via CloudTrail). Write sharding with\n  random suffix (10 shards) will spread writes across 10 partitions,\n  eliminating hot-partition throttling.\nRECOMMENDATION:\n  Current: PROVISIONED, 3000 WCU, pk=user_id (skewed), 1 GSI, PutItem\n  Proposed: PROVISIONED, 3000 WCU, pk=user_id#NN (10 shards), 1 GSI, BatchWriteItem\n  Dimensions changed: partition_key (Step 1) + batch_write (Step 6)\n  Dimensions checked: partition_key → (shard)  burst ✓  adaptive ✓\n    gsi ✓ (well-distributed)  capacity_mode ✓  batch_write → (migrate)\n    backoff ✓ (SDK default active)\n  Confidence: HIGH -- CloudTrail confirms 80\u002F20 write skew on user_id.\nESTIMATED_THROUGHPUT_IMPACT:\n  Current throttled requests\u002Fday: 1,500\n  Projected throttled requests\u002Fday: 0\n  Throughput improvement: 10x write capacity on hot keys (1 partition → 10)\n  Root cause: hot partition (write skew on user_id)\nMIGRATION_STEPS:\n  1. Add sharding suffix to partition key on write:\n     pk = f\"{user_id}#{random.randint(1,10).zfill(2)}\"\n  2. Update reads to fan out across 10 shards in parallel:\n     Query all 10 suffixes, merge results.\n  3. Migrate high-volume PutItem calls to BatchWriteItem (16 items\u002Fbatch):\n     with table.batch_writer() as batch: ...\n  4. Backfill existing items with sharded keys (one-time migration).\n  5. Monitor ThrottledRequests for 7 days post-migration.\nCONFIRM: About to apply write sharding (10 suffixes) to user-events-prod\n  partition key. Read queries will need parallel fan-out. Proceed? (yes\u002Fno)\n```\n\n**Self-check before emit:**\n- [ ] All eight dimensions listed in `Dimensions checked`?\n- [ ] Every `→` dimension has a corresponding MIGRATION_STEPS entry?\n- [ ] Write sharding recommendation includes read-pattern warning?\n- [ ] No scratch\u002Frecompute text in the block?\n\n## Verdict semantics\n\n| Verdict | When to emit |\n|---|---|\n| `FURTHER_OPTIMIZATION_AVAILABLE` | At least one dimension has a concrete throttling-prevention recommendation. |\n| `OPTIMIZED` | All dimensions pass (no throttling, partition keys well-distributed, batch writes used, backoff configured). |\n| `NEED_MORE_INFO` | Data gate failed: ThrottledRequests metrics absent, window \u003C 14 days, or CloudTrail unavailable. |\n| `BLOCKED` | Hard precondition prevents evaluation: TableStatus != ACTIVE, GSI backfilling. |\n\n## Anti-Patterns -- NEVER (top 5)\n\n1. **NEVER recommend increasing WCU as the first fix for throttling.**\n   Throttling is per-partition. A hot partition throttles regardless of\n   table-level WCU. Always check partition key distribution first.\n\n2. **NEVER rely on adaptive capacity as a design strategy.** Adaptive\n   capacity is a temporary safety net. It delays throttling for minutes;\n   it does not fix sustained hot partitions. Write sharding is the\n   durable fix.\n\n3. **NEVER recommend on-demand mode without citing the cost premium.**\n   On-demand can be 3-5x more expensive than provisioned for steady\n   workloads. Always pair with a cost-justification check.\n\n4. **NEVER recommend BatchWriteItem as a partition-level throttling fix.**\n   BatchWriteItem reduces request count, not consumed capacity per item.\n   It helps with client-side patterns, not partition-level hot-spot\n   throttling.\n\n5. **NEVER add a GSI without checking its partition key distribution.**\n   A hot GSI partition key causes GSI throttling, which back-pressures\n   the base table. GSI partition key design is as important as base\n   table partition key design.\n\nExtended anti-patterns in `references\u002Ferror-handling-and-edge-cases.md`.\n\n## Expert heuristic\n\nMoved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand (see References below).\n\n## Pre-flight safety checks (run before any remediation CLI)\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation,\n  emit and await operator approval.\n- **Write sharding changes the partition key.** All reads must be\n  updated to fan out across suffixes. Test read paths before deploying.\n- **GSI changes require backfill time.** Creating or modifying a GSI\n  takes minutes to hours depending on table size. Plan for backfill.\n- **Capacity mode switch is instant but has implications.** Provisioned\n  to on-demand is instant; on-demand to provisioned requires setting\n  WCU\u002FRCU. Test auto-scaling after switching to provisioned.\n- **BatchWriteItem migration requires code changes.** Ensure the client\n  handles `UnprocessedItems` correctly.\n- **TTL activation has a delay.** TTL deletions begin within 48 hours\n  of enabling. Stagger TTL values to avoid batch-expiry throttling.\n- **Bulk-operation limit:** 5 tables per batch. Sort by ThrottledRequests\n  count.\n\n## Recent AWS features (2024-2026)\n\nMoved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand (see References below).\n\n## References\n\n- `references\u002Fthrottling-metrics-and-write-sharding.md` -- CloudWatch\n  metrics reference, write sharding patterns, BatchWriteItem examples,\n  exponential backoff code, capacity mode decision matrix, GSI\n  distribution analysis, partition splitting strategies.\n- `references\u002Fworked-examples.md` -- write sharding migration, GSI\n  redesign, capacity mode switch, batch write migration, already-\n  optimized, NEED_MORE_INFO, end-to-end walkthrough.\n- `references\u002Ferror-handling-and-edge-cases.md` -- CLI\u002Fdata-source\n  failure handling, GSI backfill edge cases, TTL batch-expiry\n  throttling, extended NEVER list, partition splitting guidance.\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Mindset five principles, Step 0 non-obvious behaviours, expert heuristic, and 2024-2026 feature changes moved from SKILL.md\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — Pre-flight data-gate sources plus hot-partition and per-GSI ThrottledRequests metric commands moved from SKILL.md\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — ProvisionedThroughputExceededException backoff-with-jitter code and BatchWriteItem UnprocessedItems retry handling moved from SKILL.md\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — write-sharding, burst-math, capacity-mode-switch, batch-write, conditional-write and TTL code patterns moved from SKILL.md (extends the existing worked examples)\n\n## Domain\n\nAWS CloudOps \u002F DynamoDB Throttling Prevention & Partition Key Optimization.\n\n## AWS documentation\n\n- **DynamoDB Developer Guide** -- https:\u002F\u002Fdocs.aws.amazon.com\u002Famazondynamodb\u002Flatest\u002Fdeveloperguide\u002FWelcome.html\n- **DynamoDB partition key design** -- https:\u002F\u002Fdocs.aws.amazon.com\u002Famazondynamodb\u002Flatest\u002Fdeveloperguide\u002Fbp-partition-key-design.html\n- **DynamoDB burst capacity** -- https:\u002F\u002Fdocs.aws.amazon.com\u002Famazondynamodb\u002Flatest\u002Fdeveloperguide\u002Fburst-capacity.html\n- **DynamoDB adaptive capacity** -- https:\u002F\u002Fdocs.aws.amazon.com\u002Famazondynamodb\u002Flatest\u002Fdeveloperguide\u002Fbp-partition-key-design.html#bp-partition-key-adaptive\n- **DynamoDB BatchWriteItem** -- https:\u002F\u002Fdocs.aws.amazon.com\u002Famazondynamodb\u002Flatest\u002Fdeveloperguide\u002FWorkingWithItems.html#WorkingWithItems.BatchOperations\n- **DynamoDB error handling** -- https:\u002F\u002Fdocs.aws.amazon.com\u002Famazondynamodb\u002Flatest\u002Fdeveloperguide\u002FProgramming.Errors.html\n- **DynamoDB capacity modes** -- https:\u002F\u002Fdocs.aws.amazon.com\u002Famazondynamodb\u002Flatest\u002Fdeveloperguide\u002FHowItWorks.ReadWriteCapacityMode.html\n- **DynamoDB GSI** -- https:\u002F\u002Fdocs.aws.amazon.com\u002Famazondynamodb\u002Flatest\u002Fdeveloperguide\u002FGSI.html\n- **DynamoDB TTL** -- https:\u002F\u002Fdocs.aws.amazon.com\u002Famazondynamodb\u002Flatest\u002Fdeveloperguide\u002FTTL.html\n- **AWS CLI DynamoDB reference** -- https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fdynamodb\u002F\n- **Well-Architected -- Performance Efficiency** -- https:\u002F\u002Fdocs.aws.amazon.com\u002Fwellarchitected\u002Flatest\u002Fperformance-efficiency-pillar\u002Fwelcome.html\n","# DynamoDB Throttling Optimizer\n\n## What this skill does\n\nTranslates a DynamoDB table's throttling posture into a concrete\nprevention recommendation with a throughput-denominated estimated impact.\nThe verdict is the highest-leverage action across eight dimensions --\npartition key design, burst capacity, adaptive capacity, GSI distribution,\nwrite capacity mode, batch write API, exponential backoff, and write\nsharding -- applied in priority order. Always pairs the recommendation\nwith exact CLI commands.\n\n## Quick navigation\n\n| Section | What it covers | When to jump here |\n|---|---|---|\n| Quick start | Four headline rules and the throttling formula | First read |\n| Mindset | Why partition key design is the #1 lever | Understanding the approach |\n| Quick reference -- verdict thresholds | Decision matrix at a glance | Classifying a table |\n| Pre-flight data gate | CloudWatch metrics, CloudTrail | Before any recommendation |\n| Step 0 non-obvious behaviours | Burst capacity, adaptive capacity, GSI backpressure | Edge cases |\n| Step 1 Partition key design | Hot partition detection, write sharding | The headline dimension |\n| Step 2 Burst capacity | 300-second burst bucket utilization | Intermittent spikes |\n| Step 3 Adaptive capacity | Automatic redistribution limits | Hot partition mitigation |\n| Step 4 GSI distribution | Hot GSI partition key backpressure | GSI throttling |\n| Step 5 Write capacity mode | Provisioned vs on-demand for bursty writes | Capacity mode decision |\n| Step 6 Batch write API | BatchWriteItem for 16x throughput | High-volume writes |\n| Step 7 Exponential backoff | ProvisionedThroughputExceededException handling | Client-side retry |\n| Step 8 Impact estimation | Throughput math and worked examples | Every recommendation |\n| Output format | VERDICT block + worked examples | Emitting the result |\n| Anti-Patterns -- NEVER | Common misclassifications | Self-check before emit |\n| Pre-flight safety checks | CONFIRM gate, GSI backfill | Before any apply CLI |\n\n## Quick start\n\n- **Partition key design is the #1 lever.** DynamoDB distributes data\n  across partitions by partition key. A hot partition key (few distinct\n  values, uneven write distribution) causes throttling even when total\n  consumed capacity is below provisioned. Write sharding (random suffix)\n  spreads writes across partitions.\n- **Burst capacity gives a 5-minute window.** DynamoDB accumulates\n  unused capacity (up to 300 seconds of provisioned throughput) and\n  releases it as burst capacity. Intermittent spikes that fit within\n  the burst window do NOT throttle. Sustained spikes beyond burst DO\n  throttle.\n- **Adaptive capacity is a safety net, not a design substitute.** When\n  a hot partition exceeds its share of throughput, DynamoDB temporarily\n  redirects unused capacity from cold partitions. This prevents\n  immediate throttling but does not fix the underlying distribution\n  problem. Rely on write sharding, not adaptive capacity.\n- **BatchWriteItem is 16x more efficient than PutItem.** A single\n  BatchWriteItem request writes up to 16 items (up to 16 MB) in one\n  round trip. This reduces request count, network overhead, and\n  consumed capacity per item. For high-volume writes, always use batch.\n\n## Mindset\n\nMoved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand (see References below).\n\n## Quick reference -- verdict thresholds\n\n| Observation (14-30 day window) | Verdict | Recommendation |\n|---|---|---|\n| ThrottledRequests > 0 AND partition key cardinality is low (hot partition) | **FURTHER_OPTIMIZATION_AVAILABLE** (write sharding) | Step 1 -- add random suffix to partition key |\n| ThrottledRequests > 0 AND burst capacity exhausted (sustained spikes > 5 min) | **FURTHER_OPTIMIZATION_AVAILABLE** (capacity mode) | Step 5 -- switch to on-demand OR increase WCU |\n| ThrottledRequests > 0 AND GSI partition key is hot (GSI backpressure) | **FURTHER_OPTIMIZATION_AVAILABLE** (GSI design) | Step 4 -- redesign GSI partition key or use sparse index |\n| Sustained writes > 1000 items\u002Fs AND using PutItem (not BatchWriteItem) | **FURTHER_OPTIMIZATION_AVAILABLE** (batch) | Step 6 -- migrate to BatchWriteItem |\n| ThrottledRequests > 0 AND no exponential backoff on client | **FURTHER_OPTIMIZATION_AVAILABLE** (retry) | Step 7 -- implement backoff with jitter |\n| BillingMode = PROVISIONED AND throttling on bursty, unpredictable writes | **FURTHER_OPTIMIZATION_AVAILABLE** (capacity mode) | Step 5 -- switch to on-demand |\n| ThrottledRequests = 0 AND partition key well-distributed AND batch writes used | **OPTIMIZED** | Emit post-state verification |\n| CloudWatch metrics absent or window \u003C 14 days | **NEED_MORE_INFO** | Pull 14-30 day CloudWatch data, re-evaluate |\n\n## Pre-flight: data gate (run before any optimization decision)\n\nThrottling diagnosis requires CloudWatch metrics and table configuration.\nPull these before any recommendation. Full CLI sequences are in\n`references\u002Fthrottling-metrics-and-write-sharding.md`.\n\nMoved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) - load on demand (see References below).\n\n### Data-quality short-circuits\n\n| Condition | Effect on optimization |\n|---|---|\n| `ThrottledRequests` Sum = 0 over 14 days | Emit **OPTIMIZED** with note \"no throttling observed.\" |\n| `ConsumedWriteCapacityUnits` absent | **NEED_MORE_INFO**. Cannot assess write pressure. |\n| Observation window \u003C 14 days | **NEED_MORE_INFO**. Minimum 14 days; 30 days preferred. |\n| Table `TableStatus != ACTIVE` | Skip optimization; surface as BLOCKED. |\n| GSI `IndexStatus != ACTIVE` (backfilling) | GSI throttling expected during backfill; defer analysis. |\n\n## Process -- Optimization logic (apply in order)\n\n### Step 0: Non-obvious behaviours that change the recommendation\n\nMoved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand (see References below).\n\n### Step 1: Partition key design (hot partition detection, write sharding)\n\nPartition key design is the #1 lever because DynamoDB distributes data\nand throughput across partitions by partition key value. A hot partition\nkey (few distinct values, uneven write distribution) causes throttling\neven when table-level consumed capacity is below provisioned.\n\nMoved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) - load on demand (see References below).\n\n**Hot partition diagnosis decision tree:**\n```\nIs ThrottledRequests > 0?\n├── NO → No partition-level throttling. Check other dimensions.\n└── YES → Is partition key cardinality high (>10,000 distinct values)?\n    ├── NO → HOT PARTITION. Apply write sharding (Step 1).\n    └── YES → Is write distribution even across keys?\n        ├── NO → HOT PARTITION (skewed writes). Apply write sharding.\n        └── YES → Check burst capacity exhaustion (Step 2) or GSI (Step 4).\n```\n\nMoved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md) - load on demand (see References below).\n\nMoved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md) - load on demand (see References below).\n\nUse write sharding ONLY for genuinely hot keys. Over-sharding low-volume\nkeys adds read complexity without benefit.\n\n### Step 2: Burst capacity utilization\n\nDynamoDB accumulates unused provisioned throughput (up to 300 seconds)\nas burst capacity. Understanding burst utilization is key to diagnosing\nintermittent throttling.\n\nMoved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md) - load on demand (see References below).\n\n**Diagnosis:**\n\n| Pattern | Root cause | Fix |\n|---|---|---|\n| Throttling only during brief spikes (\u003C5 min) | Burst capacity exhausted | Increase WCU or switch to on-demand |\n| Throttling during sustained writes (>5 min) | Provisioned too low | Increase WCU or on-demand |\n| No throttling, burst heavily used | Near limit | Monitor closely, pre-provision |\n\n### Step 3: Adaptive capacity understanding\n\nAdaptive capacity automatically redistributes unused throughput from\ncold partitions to hot partitions. It is a safety net, not a design fix.\n\n**Key facts:**\n- Activates within seconds of a hot partition exceeding its share.\n- Redirection is temporary (minutes), not permanent.\n- Does NOT prevent throttling for sustained hot partitions.\n- No configuration needed -- always on for provisioned tables.\n\n**Anti-pattern:** Designing a table with a known hot partition key and\nrelying on adaptive capacity to prevent throttling. Adaptive capacity\ndelays throttling; write sharding (Step 1) fixes it permanently.\n\n### Step 4: GSI partition key distribution\n\nGSI partition key design is as critical as base table partition key\ndesign. A hot GSI partition key causes GSI throttling, which\nback-pressures and throttles the base table.\n\nMoved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) - load on demand (see References below).\n\n**GSI optimization strategies:**\n\n| Problem | Fix |\n|---|---|\n| GSI partition key has low cardinality (e.g., `status` with 3 values) | Use composite key: `status#date` or write sharding |\n| GSI is a \"full table scan\" pattern (all items under one key) | Redesign GSI partition key for distribution |\n| GSI backfilling causes throttling | Reduce backfill rate or use on-demand temporarily |\n| GSI is sparse but back-pressures base table | Ensure GSI partition key distributes writes evenly |\n\n### Step 5: Write capacity mode (provisioned vs on-demand)\n\n**Capacity mode decision matrix:**\n\n| Pattern | Recommended mode | Rationale |\n|---|---|---|\n| Steady, predictable traffic | Provisioned + auto-scaling | Lower cost; predictable capacity |\n| Bursty, unpredictable traffic | On-demand | No throttling from capacity limits |\n| Spikes >2x previous peak | Provisioned with headroom | On-demand 2x spike limit may throttle |\n| Low traffic (\u003C1000 WCU sustained) | On-demand | Simpler; no auto-scaling config needed |\n| High traffic (>50,000 WCU sustained) | Provisioned | On-demand cost premium too high |\n\nMoved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md) - load on demand (see References below).\n\n### Step 6: Batch write API (BatchWriteItem for 16x throughput)\n\nBatchWriteItem writes up to 16 items (up to 16 MB total) in a single\nrequest. This reduces request count, network overhead, and client-side\nlatency.\n\nMoved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md) - load on demand (see References below).\n\nMoved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md) - load on demand (see References below).\n\nMoved verbatim to [references\u002Ferror-handling.md](references\u002Ferror-handling.md) - load on demand (see References below).\n\n### Step 7: Exponential backoff with jitter\n\nWhen `ProvisionedThroughputExceededException` occurs, the client must\nretry with exponential backoff and jitter. The AWS SDK retries\nautomatically by default, but custom retry logic with jitter is more\neffective for sustained throttling.\n\nMoved verbatim to [references\u002Ferror-handling.md](references\u002Ferror-handling.md) - load on demand (see References below).\n\n**Retry best practices:**\n\n| Strategy | When to use |\n|---|---|\n| SDK default retry (3 attempts) | Low-volume, occasional throttling |\n| Custom backoff with jitter (10 attempts) | Sustained throttling, batch workloads |\n| Adaptive retry (circuit breaker) | High-volume, latency-sensitive APIs |\n\n### Step 8: Conditional writes and TTL\n\nMoved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md) - load on demand (see References below).\n\nMoved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md) - load on demand (see References below).\n\nTTL reduces table size over time, which reduces storage cost and scan\ntime. TTL deletions consume background WCU -- stagger TTL values to\navoid batch-expiry throttling on provisioned tables.\n\n## Configuration dependency graph\n\n```\n                ┌──────────────────────────┐\n                │ ThrottledRequests > 0?   │\n                └────────────┬─────────────┘\n                             │\n              ┌──────────────┴──────────────┐\n              YES                           NO\n              │                             │\n       ┌──────▼──────┐              ┌───────▼───────┐\n       │ Partition   │              │ Batch write   │\n       │ key hot?    │              │ used?         │\n       └──────┬──────┘              └───────┬───────┘\n              │                             │\n       ┌──────┴──────┐              ┌───────┴───────┐\n      YES          NO              YES             NO\n       │            │               │               │\n ┌─────▼─────┐ ┌────▼────┐  ┌───────▼───┐   ┌───────▼───────┐\n │ Write     │ │ GSI     │  │ OPTIMIZED │   │ Check        │\n │ sharding  │ │ hot?    │  │           │   │ capacity     │\n │ (Step 1)  │ └────┬────┘  └───────────┘   │ mode (Step 5)│\n └───────────┘      │                       └──────────────┘\n               YES  │  NO\n               │    └──→ Burst capacity (Step 2)\n         ┌─────▼─────┐\n         │ GSI       │\n         │ redesign  │\n         │ (Step 4)  │\n         └───────────┘\n```\n\nDecision order: partition key (write sharding) -> GSI distribution ->\nburst\u002Fcapacity mode -> batch write -> exponential backoff.\n\n## Output format\n\n```text\nTARGET: \u003Ctable-name>\nVERDICT: OPTIMIZED | FURTHER_OPTIMIZATION_AVAILABLE\nREASON: \u003C1-2 sentences naming the recommendation and the supporting data>\nRECOMMENDATION:\n  Current: \u003Cbilling-mode>, \u003CWCU>, \u003Cpartition key>, \u003CGSI status>, \u003Cbatch write status>\n  Proposed: \u003Cbilling-mode>, \u003CWCU>, \u003Cpartition key>, \u003CGSI status>, \u003Cbatch write status>\n  Dimensions changed: \u003Cpartition_key | burst | adaptive | gsi | capacity_mode | batch_write | backoff>\n  Dimensions checked: \u003Clist ALL eight, each ✓ (no finding) or → (finding)>\n  Confidence: \u003CHIGH\u002FMEDIUM\u002FLOW> -- \u003Cone-line rationale>\nESTIMATED_THROUGHPUT_IMPACT:\n  Current throttled requests\u002Fday: \u003Ccount>\n  Projected throttled requests\u002Fday: \u003Ccount>\n  Throughput improvement: \u003Cdescription>\n  Root cause: \u003Chot partition | burst exhaustion | GSI backpressure | insufficient capacity>\nMIGRATION_STEPS:\n  1. \u003Cspecific action with CLI command>\n  2. \u003Cverification step>\nCONFIRM: Before executing any state-changing CLI, emit and await operator\n  approval: \"CONFIRM: About to \u003Caction> on \u003Ctable-name> in \u003Cregion>.\n  Proceed? (yes\u002Fno)\"\n```\n\nFull worked examples are in `references\u002Fworked-examples.md`.\n\n## STRICT output contract\n\nThe rules below are hard constraints. Self-check EVERY emitted block\nagainst these rules before returning. Do NOT substitute markdown headings\nor camelCase for the literal labels.\n\n### FORBIDDEN output patterns\n\n1. **NEVER emit `VERDICT: FURTHER_OPTIMIZATION_AVAILABLE` with\n   `Projected throttled requests\u002Fday` equal to current.** If every\n   dimension nets zero improvement, verdict MUST be `OPTIMIZED`.\n\n2. **NEVER recommend write sharding without warning about read\n   complexity.** Write sharding adds parallel read overhead. The\n   MIGRATION_STEPS MUST note the read pattern change.\n\n3. **NEVER recommend on-demand mode without citing the cost premium.**\n   On-demand is significantly more expensive than provisioned for\n   steady workloads. Always pair with a cost-justification note.\n\n4. **NEVER recommend BatchWriteItem as a throttling fix without noting\n   that consumed WCU is unchanged.** BatchWriteItem reduces request\n   count, not consumed capacity. It helps with client-side latency and\n   connection pool pressure, not partition-level throttling.\n\n5. **NEVER attribute throttling to insufficient capacity without checking\n   partition key distribution.** Throttling is per-partition. A hot\n   partition throttles even when table-level consumed \u003C provisioned.\n   Always check partition key cardinality and write distribution first.\n\n6. **NEVER omit a dimension from the RECOMMENDATION block.** The\n   `Dimensions checked` line MUST list all eight dimensions.\n\n7. **NEVER emit scratch lines** (\"WAIT -- recompute\", \"Hmm, let me redo\")\n   in the output.\n\n### Perfect example output -- FURTHER_OPTIMIZATION_AVAILABLE\n\n```text\nTARGET: user-events-prod\nVERDICT: FURTHER_OPTIMIZATION_AVAILABLE\nREASON: PROVISIONED table with 45,000 ThrottledRequests on Write over 30\n  days. Partition key (user_id) has high write skew -- top 1% of user_ids\n  generate 80% of writes (detected via CloudTrail). Write sharding with\n  random suffix (10 shards) will spread writes across 10 partitions,\n  eliminating hot-partition throttling.\nRECOMMENDATION:\n  Current: PROVISIONED, 3000 WCU, pk=user_id (skewed), 1 GSI, PutItem\n  Proposed: PROVISIONED, 3000 WCU, pk=user_id#NN (10 shards), 1 GSI, BatchWriteItem\n  Dimensions changed: partition_key (Step 1) + batch_write (Step 6)\n  Dimensions checked: partition_key → (shard)  burst ✓  adaptive ✓\n    gsi ✓ (well-distributed)  capacity_mode ✓  batch_write → (migrate)\n    backoff ✓ (SDK default active)\n  Confidence: HIGH -- CloudTrail confirms 80\u002F20 write skew on user_id.\nESTIMATED_THROUGHPUT_IMPACT:\n  Current throttled requests\u002Fday: 1,500\n  Projected throttled requests\u002Fday: 0\n  Throughput improvement: 10x write capacity on hot keys (1 partition → 10)\n  Root cause: hot partition (write skew on user_id)\nMIGRATION_STEPS:\n  1. Add sharding suffix to partition key on write:\n     pk = f\"{user_id}#{random.randint(1,10).zfill(2)}\"\n  2. Update reads to fan out across 10 shards in parallel:\n     Query all 10 suffixes, merge results.\n  3. Migrate high-volume PutItem calls to BatchWriteItem (16 items\u002Fbatch):\n     with table.batch_writer() as batch: ...\n  4. Backfill existing items with sharded keys (one-time migration).\n  5. Monitor ThrottledRequests for 7 days post-migration.\nCONFIRM: About to apply write sharding (10 suffixes) to user-events-prod\n  partition key. Read queries will need parallel fan-out. Proceed? (yes\u002Fno)\n```\n\n**Self-check before emit:**\n- [ ] All eight dimensions listed in `Dimensions checked`?\n- [ ] Every `→` dimension has a corresponding MIGRATION_STEPS entry?\n- [ ] Write sharding recommendation includes read-pattern warning?\n- [ ] No scratch\u002Frecompute text in the block?\n\n## Verdict semantics\n\n| Verdict | When to emit |\n|---|---|\n| `FURTHER_OPTIMIZATION_AVAILABLE` | At least one dimension has a concrete throttling-prevention recommendation. |\n| `OPTIMIZED` | All dimensions pass (no throttling, partition keys well-distributed, batch writes used, backoff configured). |\n| `NEED_MORE_INFO` | Data gate failed: ThrottledRequests metrics absent, window \u003C 14 days, or CloudTrail unavailable. |\n| `BLOCKED` | Hard precondition prevents evaluation: TableStatus != ACTIVE, GSI backfilling. |\n\n## Anti-Patterns -- NEVER (top 5)\n\n1. **NEVER recommend increasing WCU as the first fix for throttling.**\n   Throttling is per-partition. A hot partition throttles regardless of\n   table-level WCU. Always check partition key distribution first.\n\n2. **NEVER rely on adaptive capacity as a design strategy.** Adaptive\n   capacity is a temporary safety net. It delays throttling for minutes;\n   it does not fix sustained hot partitions. Write sharding is the\n   durable fix.\n\n3. **NEVER recommend on-demand mode without citing the cost premium.**\n   On-demand can be 3-5x more expensive than provisioned for steady\n   workloads. Always pair with a cost-justification check.\n\n4. **NEVER recommend BatchWriteItem as a partition-level throttling fix.**\n   BatchWriteItem reduces request count, not consumed capacity per item.\n   It helps with client-side patterns, not partition-level hot-spot\n   throttling.\n\n5. **NEVER add a GSI without checking its partition key distribution.**\n   A hot GSI partition key causes GSI throttling, which back-pressures\n   the base table. GSI partition key design is as important as base\n   table partition key design.\n\nExtended anti-patterns in `references\u002Ferror-handling-and-edge-cases.md`.\n\n## Expert heuristic\n\nMoved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand (see References below).\n\n## Pre-flight safety checks (run before any remediation CLI)\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation,\n  emit and await operator approval.\n- **Write sharding changes the partition key.** All reads must be\n  updated to fan out across suffixes. Test read paths before deploying.\n- **GSI changes require backfill time.** Creating or modifying a GSI\n  takes minutes to hours depending on table size. Plan for backfill.\n- **Capacity mode switch is instant but has implications.** Provisioned\n  to on-demand is instant; on-demand to provisioned requires setting\n  WCU\u002FRCU. Test auto-scaling after switching to provisioned.\n- **BatchWriteItem migration requires code changes.** Ensure the client\n  handles `UnprocessedItems` correctly.\n- **TTL activation has a delay.** TTL deletions begin within 48 hours\n  of enabling. Stagger TTL values to avoid batch-expiry throttling.\n- **Bulk-operation limit:** 5 tables per batch. Sort by ThrottledRequests\n  count.\n\n## Recent AWS features (2024-2026)\n\nMoved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand (see References below).\n\n## References\n\n- `references\u002Fthrottling-metrics-and-write-sharding.md` -- CloudWatch\n  metrics reference, write sharding patterns, BatchWriteItem examples,\n  exponential backoff code, capacity mode decision matrix, GSI\n  distribution analysis, partition splitting strategies.\n- `references\u002Fworked-examples.md` -- write sharding migration, GSI\n  redesign, capacity mode switch, batch write migration, already-\n  optimized, NEED_MORE_INFO, end-to-end walkthrough.\n- `references\u002Ferror-handling-and-edge-cases.md` -- CLI\u002Fdata-source\n  failure handling, GSI backfill edge cases, TTL batch-expiry\n  throttling, extended NEVER list, partition splitting guidance.\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Mindset five principles, Step 0 non-obvious behaviours, expert heuristic, and 2024-2026 feature changes moved from SKILL.md\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — Pre-flight data-gate sources plus hot-partition and per-GSI ThrottledRequests metric commands moved from SKILL.md\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — ProvisionedThroughputExceededException backoff-with-jitter code and BatchWriteItem UnprocessedItems retry handling moved from SKILL.md\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — write-sharding, burst-math, capacity-mode-switch, batch-write, conditional-write and TTL code patterns moved from SKILL.md (extends the existing worked examples)\n\n## Domain\n\nAWS CloudOps \u002F DynamoDB Throttling Prevention & Partition Key Optimization.\n\n## AWS documentation\n\n- **DynamoDB Developer Guide** -- https:\u002F\u002Fdocs.aws.amazon.com\u002Famazondynamodb\u002Flatest\u002Fdeveloperguide\u002FWelcome.html\n- **DynamoDB partition key design** -- https:\u002F\u002Fdocs.aws.amazon.com\u002Famazondynamodb\u002Flatest\u002Fdeveloperguide\u002Fbp-partition-key-design.html\n- **DynamoDB burst capacity** -- https:\u002F\u002Fdocs.aws.amazon.com\u002Famazondynamodb\u002Flatest\u002Fdeveloperguide\u002Fburst-capacity.html\n- **DynamoDB adaptive capacity** -- https:\u002F\u002Fdocs.aws.amazon.com\u002Famazondynamodb\u002Flatest\u002Fdeveloperguide\u002Fbp-partition-key-design.html#bp-partition-key-adaptive\n- **DynamoDB BatchWriteItem** -- https:\u002F\u002Fdocs.aws.amazon.com\u002Famazondynamodb\u002Flatest\u002Fdeveloperguide\u002FWorkingWithItems.html#WorkingWithItems.BatchOperations\n- **DynamoDB error handling** -- https:\u002F\u002Fdocs.aws.amazon.com\u002Famazondynamodb\u002Flatest\u002Fdeveloperguide\u002FProgramming.Errors.html\n- **DynamoDB capacity modes** -- https:\u002F\u002Fdocs.aws.amazon.com\u002Famazondynamodb\u002Flatest\u002Fdeveloperguide\u002FHowItWorks.ReadWriteCapacityMode.html\n- **DynamoDB GSI** -- https:\u002F\u002Fdocs.aws.amazon.com\u002Famazondynamodb\u002Flatest\u002Fdeveloperguide\u002FGSI.html\n- **DynamoDB TTL** -- https:\u002F\u002Fdocs.aws.amazon.com\u002Famazondynamodb\u002Flatest\u002Fdeveloperguide\u002FTTL.html\n- **AWS CLI DynamoDB reference** -- https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fdynamodb\u002F\n- **Well-Architected -- Performance Efficiency** -- https:\u002F\u002Fdocs.aws.amazon.com\u002Fwellarchitected\u002Flatest\u002Fperformance-efficiency-pillar\u002Fwelcome.html\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":44},{"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,"when_not_to_use":39,"lifecycle_status":40,"invocation_schema":41,"supports_pipeline":37,"invocation_example":42,"activation_triggers":43},"dynamodb, databases, performance, throttling, partition-design, capacity, write-sharding","3","Jacky Chan — AWS Community Builder","aws-cloudops","Databases","0.1.0","DynamoDB, throttling, hot partition, partition key, write sharding, burst capacity, adaptive capacity, GSI, batch write, BatchWriteItem, exponential backoff, jitter, provisioned vs on-demand, ProvisionedThroughputExceededException, ThrottledRequests, ConsumedWriteCapacityUnits, conditional writes, idempotency, TTL, partition splitting, CloudTrail, root cause analysis","optimize","medium","false","capability","Preventing DynamoDB throttling, diagnosing hot partitions via CloudWatch ThrottledRequests, designing write-sharding strategies for high-cardinality keys, evaluating burst capacity utilization, understanding adaptive capacity limits, distributing GSI partition keys, choosing provisioned vs on-demand for bursty writes, implementing BatchWriteItem for throughput, configuring exponential backoff with jitter, or running throttling root cause analysis via CloudTrail.","true","OPTIMIZED | FURTHER_OPTIMIZATION_AVAILABLE","DynamoDB cost optimization without a throttling focus (use dynamodb-capacity-optimizer), DynamoDB table security or IAM auditing (use dynamodb-table-auditor), or DynamoDB schema design from scratch (use a data modeling specialist). This skill targets throttling prevention and partition-key distribution, not dollar cost or greenfield schema design.","active","Input: either (a) a table identifier + live-account context, (b) a CloudWatch metrics export (ThrottledRequests, ConsumedWriteCapacityUnits, ConsumedReadCapacityUnits), OR (c) table metadata (TableName, BillingMode, ProvisionedThroughput, GSIs, partition key attribute, TTL status) with observed throttling events. Output: a deterministic TARGET\u002FVERDICT\u002FREASON\u002FRECOMMENDATION\u002F ESTIMATED_THROUGHPUT_IMPACT\u002FMIGRATION_STEPS block per table, where VERDICT is one of OPTIMIZED, FURTHER_OPTIMIZATION_AVAILABLE.","# Minimal valid input (offline classification):\nTableName: user-events-prod\nRegion: us-east-1\nBillingMode: PROVISIONED\nProvisionedThroughput:\n  ReadCapacityUnits: 5000\n  WriteCapacityUnits: 3000\nPartitionKey: user_id (String)\nGSI: event-type-index (partition key: event_type)\nTTL: not enabled\nMetrics (last 30 days):\n  - ThrottledRequests: 45,000 (on Write)\n  - ConsumedWriteCapacityUnits: avg 2800\u002Fs, max 3500\u002Fs\n  - ConsumedReadCapacityUnits: avg 1200\u002Fs, max 1800\u002Fs\n  - ReturnedItemCount: avg 50\u002Fscan\nThrottling pattern: spikes at top-of-hour batch writes (same user_id\n  values concentrated in few partitions)\nEmit the standard optimization block (TARGET, VERDICT, REASON,\nRECOMMENDATION, ESTIMATED_THROUGHPUT_IMPACT, MIGRATION_STEPS).","prevent DynamoDB throttling, DynamoDB hot partition, DynamoDB ThrottledRequests, DynamoDB write sharding, DynamoDB burst capacity, DynamoDB adaptive capacity, DynamoDB GSI throttling, DynamoDB BatchWriteItem, DynamoDB exponential backoff, DynamoDB ProvisionedThroughputExceededException, DynamoDB partition key design, DynamoDB partition splitting, DynamoDB on-demand vs provisioned, DynamoDB throttling root cause, DynamoDB CloudTrail analysis, DynamoDB conditional writes, DynamoDB idempotency, DynamoDB TTL throttling","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). Offline recommendation classification works from pasted CloudWatch metrics and table configuration. Live-account optimization uses aws dynamodb describe-table, aws dynamodb describe-limits, aws cloudwatch get-metric-statistics (ThrottledRequests, ConsumedReadCapacityUnits, ConsumedWriteCapacityUnits, ReturnedItemCount), aws cloudtrail lookup-events, and aws application-autoscaling describe-scaling-policies (AWS...","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fdynamodb-throttling-optimizer",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":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill dynamodb-throttling-optimizer",{"tool":59,"command":60},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill dynamodb-throttling-optimizer",{"tool":62,"command":63},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill dynamodb-throttling-optimizer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdynamodb-throttling-optimizer\u002FSKILL.md",true,[67,73,77,81,85,89,93,97,101,105,109,113,117,121,125,129,133,137,141,145],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",9998,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdynamodb-throttling-optimizer\u002Feval\u002Ftest-cases.yaml",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"evals\u002Fbaselines\u002Falready-optimized-table.md",796,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdynamodb-throttling-optimizer\u002Fevals\u002Fbaselines\u002Falready-optimized-table.md",{"path":78,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":79,"sourceHtmlUrl":80},"evals\u002Fbaselines\u002Fbatch-write-migration.md",1025,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdynamodb-throttling-optimizer\u002Fevals\u002Fbaselines\u002Fbatch-write-migration.md",{"path":82,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":83,"sourceHtmlUrl":84},"evals\u002Fbaselines\u002Fcapacity-mode-switch.md",905,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdynamodb-throttling-optimizer\u002Fevals\u002Fbaselines\u002Fcapacity-mode-switch.md",{"path":86,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":87,"sourceHtmlUrl":88},"evals\u002Fbaselines\u002Fgsi-backpressure-throttling.md",976,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdynamodb-throttling-optimizer\u002Fevals\u002Fbaselines\u002Fgsi-backpressure-throttling.md",{"path":90,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":91,"sourceHtmlUrl":92},"evals\u002Fbaselines\u002Fwrite-sharding-hot-partition.md",1090,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdynamodb-throttling-optimizer\u002Fevals\u002Fbaselines\u002Fwrite-sharding-hot-partition.md",{"path":94,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":95,"sourceHtmlUrl":96},"evals\u002Feval_config.yaml",1794,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdynamodb-throttling-optimizer\u002Fevals\u002Feval_config.yaml",{"path":98,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":99,"sourceHtmlUrl":100},"evals\u002Fevals.json",4568,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdynamodb-throttling-optimizer\u002Fevals\u002Fevals.json",{"path":102,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":103,"sourceHtmlUrl":104},"evals\u002Fprompts\u002Falready-optimized-table.md",1344,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdynamodb-throttling-optimizer\u002Fevals\u002Fprompts\u002Falready-optimized-table.md",{"path":106,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":107,"sourceHtmlUrl":108},"evals\u002Fprompts\u002Fbatch-write-migration.md",1220,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdynamodb-throttling-optimizer\u002Fevals\u002Fprompts\u002Fbatch-write-migration.md",{"path":110,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":111,"sourceHtmlUrl":112},"evals\u002Fprompts\u002Fcapacity-mode-switch.md",1204,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdynamodb-throttling-optimizer\u002Fevals\u002Fprompts\u002Fcapacity-mode-switch.md",{"path":114,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":115,"sourceHtmlUrl":116},"evals\u002Fprompts\u002Fgsi-backpressure-throttling.md",1197,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdynamodb-throttling-optimizer\u002Fevals\u002Fprompts\u002Fgsi-backpressure-throttling.md",{"path":118,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":119,"sourceHtmlUrl":120},"evals\u002Fprompts\u002Fwrite-sharding-hot-partition.md",1148,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdynamodb-throttling-optimizer\u002Fevals\u002Fprompts\u002Fwrite-sharding-hot-partition.md",{"path":122,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":123,"sourceHtmlUrl":124},"examples\u002FREADME.md",6249,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdynamodb-throttling-optimizer\u002Fexamples\u002FREADME.md",{"path":126,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":127,"sourceHtmlUrl":128},"references\u002Fadvanced-patterns.md",6065,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdynamodb-throttling-optimizer\u002Freferences\u002Fadvanced-patterns.md",{"path":130,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":131,"sourceHtmlUrl":132},"references\u002Fdiagnostic-commands.md",1906,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdynamodb-throttling-optimizer\u002Freferences\u002Fdiagnostic-commands.md",{"path":134,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":135,"sourceHtmlUrl":136},"references\u002Ferror-handling.md",1099,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdynamodb-throttling-optimizer\u002Freferences\u002Ferror-handling.md",{"path":138,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":139,"sourceHtmlUrl":140},"references\u002Fthrottling-metrics-and-write-sharding.md",8692,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdynamodb-throttling-optimizer\u002Freferences\u002Fthrottling-metrics-and-write-sharding.md",{"path":142,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":143,"sourceHtmlUrl":144},"references\u002Fworked-examples.md",12657,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdynamodb-throttling-optimizer\u002Freferences\u002Fworked-examples.md",{"path":146,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":147,"sourceHtmlUrl":148},"skill.usf.yaml",4623,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdynamodb-throttling-optimizer\u002Fskill.usf.yaml",[150,157,164,171,178,185],{"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},"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":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},"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":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},"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":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},"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":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},"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":186,"name":187,"nameZh":6,"description":188,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":189,"categories":190,"keywords":191,"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",[],[]]