[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ABXYQX78GYA6WNAJAXG2VQ":3,"skill-same:01M7ABXYQX78GYA6WNAJAXG2VQ":145},{"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},"01M7ABXYQX78GYA6WNAJAXG2VQ","s3-performance-optimizer",null,"Optimises Amazon S3 performance across eleven dimensions: prefix distribution for partition allocation (auto-scale post-2018\u002F2023), S3 Transfer Acceleration for cross-region uploads, multipart upload parallelism for large objects (>100 MB), byte-range fetches for partial reads, S3 Select for query pushdown (CSV\u002FJSON\u002FParquet), S3 inventory for audit, CloudWatch request metrics (429 Slow Down, 503 throttling, FirstByteLatency), S3 Batch Operations for bulk processing, HTTP\u002F2 connection reuse, pre-signed URL expiry tuning, S3 Object Lambda for on-demand transformation, S3 Express One Zone for single-digit-ms latency, multipart copy for large-object relocation, and content-encoding for transfer reduction. Distinguishes latency-bound from throughput-bound from request-rate-bound workloads. Emits OPTIMIZED or FURTHER_OPTIMIZATION_AVAILABLE per workload.","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\u002Fs3-performance-optimizer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: s3-performance-optimizer\ndescription: 'Optimises Amazon S3 performance across eleven dimensions: prefix distribution for partition allocation (auto-scale post-2018\u002F2023), S3 Transfer Acceleration for cross-region uploads, multipart upload parallelism for large objects (>100 MB), byte-range fetches for partial reads, S3 Select for query pushdown (CSV\u002FJSON\u002FParquet), S3 inventory for audit, CloudWatch request metrics (429 Slow Down, 503 throttling, FirstByteLatency), S3 Batch Operations for bulk processing, HTTP\u002F2 connection reuse, pre-signed URL expiry tuning, S3 Object Lambda for on-demand transformation, S3 Express One Zone for single-digit-ms latency, multipart copy for large-object relocation, and content-encoding for transfer reduction. Distinguishes latency-bound from throughput-bound from request-rate-bound workloads. Emits OPTIMIZED or FURTHER_OPTIMIZATION_AVAILABLE per workload.'\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). Offline classification works from pasted S3 access patterns, CloudWatch S3 metrics, and Storage Lens excerpts. Live- account optimisation uses aws s3api list-buckets \u002F get-bucket-location \u002F get-bucket-accelerate-configuration, aws s3control get-storage-lens-configuration, aws cloudwatch get-metric-statistics on AWS\u002FS3 (FirstByteLatency, TotalRequestLatency, 4xxErrors, 5xxErrors), aws s3 ls \u002F head-object \u002F...\nmetadata:\n  domain: aws-cloudops\n  complexity: high\n  requires_llm: 'true'\n  phase: '3'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: Storage\n  task_type: optimize\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: OPTIMIZED | FURTHER_OPTIMIZATION_AVAILABLE\n  when_to_use: Optimising an S3-backed workload for latency, throughput, or request-rate — including prefix distribution for high-request-rate buckets, multipart upload for large PUTs, byte-range GETs for partial reads, S3 Select to push filtering into S3, S3 Express One Zone for single-digit-ms latency, Transfer Acceleration for cross-region uploads, HTTP\u002F2 connection reuse, pre-signed URL expiry sizing, S3 Object Lambda for on-demand transformation, S3 Batch Operations for bulk processing, multipart copy for large object relocation, or content-encoding for transfer reduction.\n  when_not_to_use: Cost-only optimisation of storage class \u002F lifecycle (use s3-storage-class-optimizer, s3-lifecycle-optimizer, or s3-intelligent-tiering-optimizer), bucket policy \u002F Block Public Access audits (use s3-public-access-auditor or s3-bucket-policy- deployer), access pattern troubleshooting (use s3-access- troubleshooter), replication setup (use s3-replication-operator), or Glacier restore workflows (use s3-glacier-restore-operator).\n  activation_triggers: S3 performance, S3 latency, S3 throughput, S3 Slow Down 429, S3 503 throttling, S3 multipart upload, S3 Transfer Acceleration, S3 byte-range, S3 Select, S3 Express One Zone, S3 prefix distribution, S3 Object Lambda, S3 Batch Operations, S3 pre-signed URL, optimize S3 performance\n  invocation_schema: 'Input: either (a) a workload description (bucket, prefix, object size profile, request rate, client geography, latency target) optionally paired with CloudWatch S3 metrics and Storage Lens excerpts, OR (b) a BucketName plus workload context for live-account optimisation. Output: a deterministic TARGET \u002F VERDICT \u002F REASON \u002F LAYER \u002F EVIDENCE \u002F REMEDIATION block where VERDICT is in {OPTIMIZED, FURTHER_OPTIMIZATION_AVAILABLE} and LAYER is in {PREFIX_DISTRIBUTION, MULTIPART_UPLOAD, BYTE_RANGE_FETCH, S3_SELECT, TRANSFER_ACCELERATION, EXPRESS_ONE_ZONE, HTTP2_CONNECTION, PRESIGNED_URL, OBJECT_LAMBDA, BATCH_OPERATIONS, MULTIPART_COPY, CONTENT_ENCODING, ALREADY_OPTIMIZED, UNKNOWN}.'\n  invocation_example: '# Minimal valid input (offline classification):\n\n    Symptom: \"S3 bucket receiving 8,000 PUT\u002Fsec; CloudWatch shows\n\n    occasional 503 errors; p99 FirstByteLatency 250 ms.\"\n\n    Bucket: prod-telemetry-ingest\n\n    Region: us-east-1\n\n    Workload: write-heavy ingest\n\n    RequestRate: 8,000 PUT\u002Fsec\n\n    AvgObjectSize: 12 KB\n\n    ClientGeography: us-east-1 EC2\n\n    TargetLatency: \u003C50 ms p99\n\n    '\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: Amazon S3, S3 performance, multipart upload, Transfer Acceleration, byte-range fetch, S3 Select, S3 Express One Zone, prefix distribution, partition allocation, S3 Object Lambda, S3 Batch Operations, HTTP\u002F2, 429 Slow Down, 503 throttling, pre-signed URL\n  tags: s3, storage, performance-optimization, latency, throughput\n---\n\n# S3 Performance Optimizer\n\n## Quick start\n\n- **Workload -> first optimisation layer:** high PUT rate + small\n  objects + 503\u002F429 -> PREFIX_DISTRIBUTION; large objects (>100 MB) +\n  slow PUT -> MULTIPART_UPLOAD; partial reads of large objects ->\n  BYTE_RANGE_FETCH; full-scan CSV\u002FJSON\u002FParquet -> S3_SELECT;\n  cross-region uploads -> TRANSFER_ACCELERATION; single-digit-ms\n  latency target -> EXPRESS_ONE_ZONE; repeated GETs of same object ->\n  HTTP2_CONNECTION; clients report 403 -> PRESIGNED_URL.\n- **Always measure before optimising.** CloudWatch S3 request metrics\n  (`FirstByteLatency`, `TotalRequestLatency`, `4xxErrors`, `5xxErrors`)\n  + Storage Lens identify whether the bottleneck is latency, throughput,\n  or request rate. Optimising the wrong dimension is the #1 waste.\n- **Latency-bound vs throughput-bound vs request-rate-bound are three\n  different problems.** Latency-bound -> Express One Zone or connection\n  reuse. Throughput-bound -> multipart + Transfer Acceleration.\n  Request-rate-bound -> prefix distribution. NOT interchangeable.\n- **Multipart upload is the single highest-impact change for large\n  objects.** A 1 GB single PUT saturates one TCP stream; multipart with\n  10 parallel parts at 100 MB each uses 10 streams and finishes ~10x\n  faster.\n- **S3 auto-scales partitions per-prefix since 2018, and removed the\n  3,500\u002F5,500 RPS cap in July 2023 for most workloads.** Operators who\n  still shard prefixes \"for performance\" usually do unnecessary work.\n  Only request rates >~10,000 RPS per prefix benefit from sharding.\n\n## Mindset\n\nS3 performance is the alignment between the workload's access pattern\nand the S3 feature set. S3 is not slow; the wrong API choice is slow.\nA 1 GB GET takes ~80 seconds over one TCP stream and ~8 seconds over 10\nbyte-range fetches. A 100 GB dataset scan via `select-object-content`\ntakes ~30 seconds; the same scan via client-side reads takes hours.\nSenior S3 engineers start with the access pattern (read shape, write\nshape, object size profile, client geography), pick the API\u002Ffeature\nthat matches, and only then tune metrics.\n\n## Philosophy\n\nMoved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#philosophy-four-behaviours-of-a-senior-s3-engineer) — multipart above 100 MB, byte-range partial reads, Express One Zone trade-off, pre-signed expiry trade-off.\nLoad that reference on demand before executing this section.\n\n## Quick reference — workload triage table\n\n| Symptom \u002F metric signal | Most likely layer | First probe |\n|---|---|---|\n| 429 Slow Down or 503 throttling | PREFIX_DISTRIBUTION | CloudWatch `4xxErrors`, `5xxErrors` |\n| Large PUT > 100 MB slow | MULTIPART_UPLOAD | Client-side timing; current upload method |\n| Only head\u002Ftail of large object read | BYTE_RANGE_FETCH | Access pattern: which byte offset? |\n| CSV\u002FJSON\u002FParquet full-scan slow | S3_SELECT | `select-object-content` prototype |\n| Cross-region uploads slow | TRANSFER_ACCELERATION | Bucket accelerate config; client geography |\n| p99 latency > 50 ms target | EXPRESS_ONE_ZONE | Latency target + bucket AZ requirements |\n| Repeated GETs of same object | HTTP2_CONNECTION | SDK HTTP version; connection pool size |\n| 403 from previously working URL | PRESIGNED_URL | URL expiry vs current timestamp |\n| On-demand transformation needed | OBJECT_LAMBDA | Access pattern needs filtering\u002Fredaction? |\n| Bulk object processing | BATCH_OPERATIONS | Operation type (copy\u002Freplace-tag\u002Frestore\u002Finvoke) |\n| Large-object relocation slow | MULTIPART_COPY | `copy-object` vs `s3 cp --recursive` |\n| Bandwidth-bound on textual payloads | CONTENT_ENCODING | `Content-Encoding` header; object size |\n\n## Pre-flight: workload state and gather-info gate\n\nMoved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md#pre-flight-workload-state-and-gather-info-gate-commands) — bucket\u002Ffeature discovery, CloudWatch request metrics, Storage Lens, S3 Select probe, byte-range probe.\nLoad that reference on demand before executing this section.\n\nIf CloudWatch request metrics are NOT enabled, recommend\n`put-bucket-metrics-configuration` before diagnosing; without metrics,\noptimisation is guesswork.\n\nIf the input is malformed (no BucketName, no workload description, no\naccess pattern context), emit:\n\nMoved to [references\u002Fworked-examples.md](references\u002Fworked-examples.md#worked-example-malformed-input-verdict-unknown) — the full FURTHER_OPTIMIZATION_AVAILABLE \u002F LAYER: UNKNOWN block for missing context.\nLoad that reference on demand before executing this section.\n\n## Process — Optimisation decision tree\n\nThe tree is workload-driven. Each layer ends with either an actionable\noptimisation (a probe that confirms the layer is the bottleneck) or a\npass. **Never emit OPTIMIZED without verifying the workload's stated\ntarget is met by current config.**\n\n### Step 0: Non-obvious behaviours that change diagnosis\n\nMoved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#step-0-non-obvious-behaviours-that-change-diagnosis) — partition auto-scaling, SDK multipart defaults, Range semantics, SSE-KMS Select, Express ARN syntax, TA distance, presign caps, Object Lambda cost, Batch pricing, HTTP\u002F2 opt-in.\nLoad that reference on demand before executing this section.\n\n### Step 1: Workload entry — pick the optimisation branch\n\n| Workload shape | Branch |\n|---|---|\n| PUT-heavy, > 5,000 RPS per prefix, 503\u002F429 errors | Step 2 — Prefix distribution |\n| Large PUT > 100 MB slow | Step 3 — Multipart upload |\n| Read only head\u002Ftail of large objects | Step 4 — Byte-range fetch |\n| Full-scan CSV\u002FJSON\u002FParquet slow | Step 5 — S3 Select |\n| Cross-region uploads | Step 6 — Transfer Acceleration |\n| Latency target \u003C 10 ms single-digit | Step 7 — Express One Zone |\n| Repeated GETs of same object | Step 8 — HTTP\u002F2 connection |\n| 403 on previously working URL | Step 9 — Pre-signed URL |\n| On-demand transform \u002F redaction | Step 10 — Object Lambda |\n| Bulk processing | Step 11 — Batch Operations |\n| Large-object copy \u002F relocation | Step 12 — Multipart copy |\n| Textual payloads bandwidth-bound | Step 13 — Content encoding |\n| Workload meets target | Step 14 — Already optimised |\n\n### Step 2: PREFIX_DISTRIBUTION — high request rate per prefix\n\nSymptom: 429 Slow Down or 503 throttling on a single prefix.\nCloudWatch `4xxErrors` and `5xxErrors` show sustained spikes.\n\n```bash\naws cloudwatch get-metric-statistics --namespace AWS\u002FS3 \\\n  --metric-name 4xxErrors \\\n  --dimensions Name=BucketName,Value=\u003Cbucket> \\\n  --start-time $(date -d '-1 hour' +%FT%TZ) --end-time $(date +%FT%TZ) \\\n  --period 60 --statistics Sum --output json\n```\n\nS3 auto-scales partitions per prefix; the July 2023 announcement\nremoved the 3,500\u002F5,500 per-second cap for almost all workloads. Only\nrates above ~10,000 per second on a single prefix need sharding. If\nyour workload is below that threshold and still seeing 503\u002F429, look\nelsewhere (hot key, retry storm).\n\n**Verdict:** If rate per prefix exceeds 10,000 sustained and no\nsharding is in place, FURTHER_OPTIMIZATION_AVAILABLE with\n`LAYER: PREFIX_DISTRIBUTION`. Fix: add a hash prefix to the key.\n\n### Step 3: MULTIPART_UPLOAD — large PUT optimisation\n\nSymptom: PUT of large objects (> 100 MB) is slow or stalls.\n\nMoved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md#step-3-probe-current-upload-method-and-multipart-timing) — head-object size check and single vs multipart upload timing.\nLoad that reference on demand before executing this section.\n\nMoved to [references\u002Fs3-performance-reference.md](references\u002Fs3-performance-reference.md#step-3-multipart-upload-part-sizing-table-moved-from-skillmd) — part size and parallelism by object size band.\nLoad that reference on demand before executing this section.\n\n**Verdict:** If the current upload uses single PUT above 100 MB,\nFURTHER_OPTIMIZATION_AVAILABLE with `LAYER: MULTIPART_UPLOAD`.\n\n### Step 4: BYTE_RANGE_FETCH — partial reads\n\nSymptom: Client reads only the first\u002Flast few KB of a large object\n(headers, trailers, manifests).\n\n```bash\ncurl -sv \"https:\u002F\u002F\u003Cbucket>.s3.\u003Cregion>.amazonaws.com\u002F\u003Ckey>\" \\\n  -o \u002Fdev\u002Fnull -w 'full: %{time_total}s %{size_download}b\\n'\n\ncurl -sv -H 'Range: bytes=0-1023' \\\n  \"https:\u002F\u002F\u003Cbucket>.s3.\u003Cregion>.amazonaws.com\u002F\u003Ckey>\" \\\n  -o \u002Fdev\u002Fnull -w 'range: %{time_total}s %{size_download}b\\n'\n```\n\n**Verdict:** If the client reads only the first\u002Flast KB,\nFURTHER_OPTIMIZATION_AVAILABLE with `LAYER: BYTE_RANGE_FETCH`. Fix:\nswitch to `Range: bytes=0-N` (head) or `Range: bytes=-N` (tail).\n\n### Step 5: S3_SELECT — query pushdown\n\nSymptom: Full-scan CSV\u002FJSON\u002FParquet where only some records are needed.\n\n```bash\naws s3api select-object-content \\\n  --bucket \u003Cbucket> --key \u003Ckey> \\\n  --expression \"SELECT s.id, s.amount FROM s3object s WHERE s.amount > 1000\" \\\n  --expression-type SQL \\\n  --input-serialization '{\"CSV\": {\"FileHeaderInfo\": \"USE\"},\n                          \"CompressionType\": \"GZIP\"}' \\\n  --output-serialization '{\"CSV\": {}}' \u002Fdev\u002Fstdout\n```\n\nS3 Select typically reduces bytes transferred 5-50x depending on\nselectivity.\n\nMoved to [references\u002Fs3-performance-reference.md](references\u002Fs3-performance-reference.md#step-5-s3-select-format-support-table-moved-from-skillmd) — CSV\u002FJSON\u002FParquet supported; ORC\u002FAvro\u002FExcel\u002FPDF not.\nLoad that reference on demand before executing this section.\n\n**Verdict:** If the workload is a full-scan of CSV\u002FJSON\u002FParquet and S3\nSelect is not in use, FURTHER_OPTIMIZATION_AVAILABLE with\n`LAYER: S3_SELECT`.\n\n### Step 6: TRANSFER_ACCELERATION — cross-region uploads\n\nSymptom: Cross-region uploads are slow. Bucket region is far from the\nclient.\n\n```bash\naws s3api get-bucket-accelerate-configuration --bucket \u003Cbucket> --output json\n\ntime aws s3 cp \u003Cfile> s3:\u002F\u002F\u003Cbucket>\u002F\u003Ckey>\n# After enabling Transfer Acceleration\ntime aws s3 cp \u003Cfile> s3:\u002F\u002F\u003Cbucket>\u002F\u003Ckey> \\\n  --endpoint-url http:\u002F\u002Fs3-accelerate.amazonaws.com\n```\n\nTransfer Acceleration routes through the nearest CloudFront edge POP\nand uses Amazon's backbone to the bucket region. For same-region\ntraffic it adds latency; only enable for cross-region workloads.\n\n**Verdict:** Cross-region workload with Transfer Acceleration off ->\nFURTHER_OPTIMIZATION_AVAILABLE with `LAYER: TRANSFER_ACCELERATION`.\n\n### Step 7: EXPRESS_ONE_ZONE — single-digit-ms latency\n\nSymptom: Target latency is single-digit ms (ML model serving, hot\ncache, transactional read).\n\n```bash\naws s3api list-buckets --output json | \\\n  jq '.Buckets[] | select(.Name | contains(\"--xaz-\"))'\n```\n\nS3 Express One Zone uses directory buckets, provides ~10x lower latency\n(single-digit ms p99), costs more per GB and per request, and is\nsingle-AZ. Always flag the availability trade-off before recommending.\n\nMoved to [references\u002Fs3-performance-reference.md](references\u002Fs3-performance-reference.md#step-7-express-one-zone-workload-fit-table-moved-from-skillmd) — backup\u002FML\u002Fpersonalisation\u002Fhot-cache fit vs standard S3.\nLoad that reference on demand before executing this section.\n\n**Verdict:** Latency target \u003C 10 ms and bucket on standard S3 ->\nFURTHER_OPTIMIZATION_AVAILABLE with `LAYER: EXPRESS_ONE_ZONE` (with\nexplicit availability caveat).\n\n### Step 8: HTTP2_CONNECTION — connection reuse\n\nSymptom: Repeated GETs of the same object; high TLS handshake overhead.\n\n```bash\ncurl -sv --http2 \"https:\u002F\u002F\u003Cbucket>.s3.\u003Cregion>.amazonaws.com\u002F\u003Ckey>\" \\\n  -o \u002Fdev\u002Fnull 2>&1 | grep -E 'HTTP\u002F'\n```\n\nMost AWS SDKs default to HTTP\u002F1.1; opt in to HTTP\u002F2 in the SDK config.\nHTTP\u002F2 connection reuse amortises the TLS handshake, reducing\nper-request latency 30-100 ms on small objects.\n\n**Verdict:** Repeated GETs using HTTP\u002F1.1 (new TLS per request) ->\nFURTHER_OPTIMIZATION_AVAILABLE with `LAYER: HTTP2_CONNECTION`.\n\n### Step 9: PRESIGNED_URL — expiry and refresh pattern\n\nSymptom: Clients report 403 from a previously working URL.\n\n```bash\naws s3 presign s3:\u002F\u002F\u003Cbucket>\u002F\u003Ckey> --expires-in 3600\n```\n\nMoved to [references\u002Fs3-performance-reference.md](references\u002Fs3-performance-reference.md#step-9-pre-signed-url-expiry-table-moved-from-skillmd) — expiry choice per use case incl. IAM-user vs STS caps.\nLoad that reference on demand before executing this section.\n\n**Verdict:** Clients re-request URLs frequently because of short expiry\n-> FURTHER_OPTIMIZATION_AVAILABLE with `LAYER: PRESIGNED_URL`.\n\n### Step 10: OBJECT_LAMBDA — on-demand transform\n\nSymptom: Multiple clients need the same object in different forms\n(filtered, redacted, format-converted).\n\n```bash\naws s3control list-access-points --account-id \u003Cid> --output json\naws s3control get-access-point --account-id \u003Cid> --name \u003Cap> --output json\n```\n\nS3 Object Lambda Access Point sits in front of a standard access point;\na Lambda function transforms the GET response on the fly. It does NOT\ncache the transformed output — repeated reads incur repeated Lambda\ninvocations. Add a CDN or client-side cache for hot objects.\n\n**Verdict:** Multiple clients re-fetching to redact\u002Ffilter client-side\n-> FURTHER_OPTIMIZATION_AVAILABLE with `LAYER: OBJECT_LAMBDA`.\n\n### Step 11: BATCH_OPERATIONS — bulk processing\n\nSymptom: Need to copy, replace-tag, restore, or invoke-Lambda on\nmillions of objects.\n\n```bash\naws s3control create-job \\\n  --account-id \u003Cid> \\\n  --operation '{\"S3Replicate\": {}}' \\\n  --manifest-location \u003Cmanifest-s3-uri> \\\n  --report \u003Creport-config> \\\n  --role-arn \u003Crole> \\\n  --client-request-token \u003Ctoken>\n```\n\nS3 Batch Operations uses a manifest (typically from S3 Inventory). Avoid\nlisting millions of objects via `list-objects-v2`.\n\nMoved to [references\u002Fs3-performance-reference.md](references\u002Fs3-performance-reference.md#step-11-batch-operations-billing-table-moved-from-skillmd) — per-object billing for copy\u002Ftags\u002Frestore\u002FLambda invoke.\nLoad that reference on demand before executing this section.\n\n**Verdict:** Bulk operation scripted client-side via `list-objects-v2`\n+ loop -> FURTHER_OPTIMIZATION_AVAILABLE with\n`LAYER: BATCH_OPERATIONS`.\n\n### Step 12: MULTIPART_COPY — large-object relocation\n\nSymptom: Need to copy objects > 5 GB within or across buckets.\n\n`copy-object` is limited to 5 GB. For larger objects, use `s3 cp`\n(which auto-uses multipart copy) or the SDK multipart copy API.\n\n```bash\ntime aws s3 cp s3:\u002F\u002F\u003Csrc-bucket>\u002F\u003Ckey> s3:\u002F\u002F\u003Cdst-bucket>\u002F\u003Ckey> \\\n  --expected-size \u003Csize> \\\n  --multipart-chunksize 500MB \\\n  --max-concurrent-requests 10\n```\n\n**Verdict:** Workload uses `copy-object` on objects > 5 GB or serially\ncopies many large objects -> FURTHER_OPTIMIZATION_AVAILABLE with\n`LAYER: MULTIPART_COPY`.\n\n### Step 13: CONTENT_ENCODING — transfer-size reduction\n\nSymptom: Bandwidth-bound on textual payloads (JSON, CSV, logs, HTML).\n\n```bash\naws s3api head-object --bucket \u003Cbucket> --key \u003Ckey> --output json | \\\n  jq '{ContentLength, ContentEncoding, ContentType}'\n```\n\nPre-compressing textual objects (`Content-Encoding: gzip` or `br`)\nreduces S3 GET time proportionally. S3 does not compress on read;\nclients must accept the encoding. CloudFront decompresses on the fly\nwhen configured.\n\nMoved to [references\u002Fs3-performance-reference.md](references\u002Fs3-performance-reference.md#step-13-content-encoding-compression-ratios-moved-from-skillmd) — gzip ratios for textual payloads; no gain for already-compressed.\nLoad that reference on demand before executing this section.\n\n**Verdict:** Textual payloads stored uncompressed, clients support\ngzip\u002Fbr -> FURTHER_OPTIMIZATION_AVAILABLE with\n`LAYER: CONTENT_ENCODING`.\n\n### Step 14: ALREADY_OPTIMIZED — workload meets target\n\nIf the workload's stated target (latency, throughput, request rate) is\nmet by current configuration, emit OPTIMIZED with\n`LAYER: ALREADY_OPTIMIZED`. Do NOT recommend additional changes.\n\n## Output format\n\n```text\nTARGET: \u003Cbucket-name> (region: \u003Cregion>, workload: \u003Cworkload-shape>)\nVERDICT: OPTIMIZED | FURTHER_OPTIMIZATION_AVAILABLE\nREASON: \u003C1-2 sentences naming the layer and the optimisation opportunity>\nLAYER: \u003CPREFIX_DISTRIBUTION | MULTIPART_UPLOAD | BYTE_RANGE_FETCH |\n        S3_SELECT | TRANSFER_ACCELERATION | EXPRESS_ONE_ZONE |\n        HTTP2_CONNECTION | PRESIGNED_URL | OBJECT_LAMBDA |\n        BATCH_OPERATIONS | MULTIPART_COPY | CONTENT_ENCODING |\n        ALREADY_OPTIMIZED | UNKNOWN>\nEVIDENCE:\n  - \u003Cworkload description — read\u002Fwrite shape, object size, request rate>\n  - \u003Ccurrent configuration — bucket features, client config>\n  - \u003Cprobe result — measurement that quantifies the gap>\n  - \u003Cestimated delta — projected latency \u002F throughput improvement>\nREMEDIATION:\n  1. \u003Cspecific action with CLI command>\n  2. \u003Cverification command after the change>\nCONFIRM: Before executing any state-changing CLI, emit and await\n  operator approval: \"CONFIRM: About to \u003Caction> on \u003Cbucket> in\n  \u003Cregion>. Proceed? (yes\u002Fno)\"\n```\n\n## Anti-Patterns — NEVER\n\n- NEVER recommend prefix sharding for workloads below 10,000 RPS per\n  prefix. S3 auto-scales partitions; manual sharding below the cap is\n  unnecessary complexity.\n\n- NEVER use `copy-object` for objects > 5 GB. The API caps at 5 GB; use\n  multipart copy (`s3 cp` or SDK multipart copy API).\n\n- NEVER enable Transfer Acceleration for same-region traffic. The\n  CloudFront edge hop adds latency for in-region clients.\n\n- NEVER migrate to S3 Express One Zone without flagging the single-AZ\n  availability trade-off. Express One Zone does not replicate across\n  AZs; pair with cross-region replication for critical data.\n\n- NEVER default pre-signed URL expiry to 1 hour without considering the\n  workload. Long uploads need 12+ hours; high-security sharing needs\n  minutes. The expiry is a latency-vs-security trade-off.\n\n- NEVER rely on S3 Object Lambda without a downstream cache. Each GET\n  incurs a Lambda invocation; hot objects amplified across clients\n  create runaway Lambda costs.\n\n- NEVER use `list-objects-v2` to enumerate millions of objects for a\n  batch job. Use S3 Inventory (daily\u002Fweekly manifest) as the batch job\n  input.\n\n- NEVER recommend HTTP\u002F2 without verifying SDK support. Many SDKs\n  default to HTTP\u002F1.1; opt-in requires SDK configuration.\n\n- NEVER compress already-compressed formats (PNG, JPEG, MP4, gzip\n  archives). Re-compression wastes CPU and may increase size slightly.\n\n- NEVER assume S3 Select supports all formats. It covers CSV, JSON,\n  and Parquet only; ORC, Avro, and binary formats require Athena.\n\n- NEVER declare OPTIMIZED without comparing the workload's target\n  metric against the current metric. \"Looks fine\" is not OPTIMIZED; a\n  measured match is.\n\n## Pre-flight safety checks\n\n- **MANDATORY CONFIRMATION GATE.** Before\n  `put-bucket-accelerate-configuration`,\n  `put-bucket-metrics-configuration`, `create-job`, `put-object` with\n  `Content-Encoding`, or any bucket-level configuration change, emit\n  and await operator approval.\n\n- **Read-only first.** Probes (`get-bucket-location`,\n  `get-bucket-accelerate-configuration`, `get-metric-statistics`,\n  `head-object`, `select-object-content`, `list-objects-v2`) are\n  read-only. `select-object-content` is billed per request; use small\n  LIMIT clauses for probes.\n\n- **Enabling Transfer Acceleration** is a bucket-level toggle; existing\n  clients using the standard endpoint continue to work. The accelerate\n  endpoint is opt-in via SDK configuration.\n\n- **Enabling CloudWatch request metrics** adds per-request metric\n  cost (~$0.01 per 1,000 metrics in 2026). The EntireBucket filter is\n  cheapest; per-prefix filters multiply the cost.\n\n- **S3 Express One Zone migration** requires creating a new directory\n  bucket and copying objects in; existing bucket names cannot be\n  converted in place.\n\n- **Pre-signed URL regeneration** after changing IAM credentials\n  invalidates all previously signed URLs. Coordinate credential\n  rotation with active URL issuance.\n\n## Configuration dependency graph\n\nMoved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#configuration-dependency-graph-ascii-flow) — classification -> bucket features -> client features -> verdict flow diagram.\nLoad that reference on demand before executing this section.\n\n## Expert heuristic\n\nMoved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#expert-heuristic) — multipart parallelism default, byte-range partial GETs, Express One Zone single-digit-ms trade-off.\nLoad that reference on demand before executing this section.\n\n\n## References (load on demand)\n\n- [references\u002Fs3-performance-reference.md](references\u002Fs3-performance-reference.md) — sizing\u002Fformat\u002Fexpiry\u002Fmetric matrices backing each optimisation layer, plus AWS Health event categories.\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — pre-flight workload-state commands and per-layer probe commands.\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — full output-block examples incl. the malformed-input (UNKNOWN) verdict.\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — philosophy deep dive, Step 0 non-obvious behaviours, configuration dependency graph, expert heuristics.\n## Domain\n\nAWS CloudOps \u002F S3 Object Storage Performance, Multipart Upload, S3\nExpress One Zone, S3 Select, Transfer Acceleration, and Batch Operations.\n\n## AWS documentation\n\n- **S3 performance guidelines** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Foptimizing-performance.html\n- **Multipart upload** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fmpuoverview.html\n- **Byte-range fetches** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002FGettingObjectsUsingAPIs.html\n- **S3 Select** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fselecting-content-from-objects.html\n- **S3 Transfer Acceleration** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Ftransfer-acceleration.html\n- **S3 Express One Zone** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fs3-express-one-zone.html\n- **S3 Object Lambda** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Ftransforming-objects.html\n- **S3 Batch Operations** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fbatch-ops.html\n- **S3 CloudWatch request metrics** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fcloudwatch-monitoring.html\n","# S3 Performance Optimizer\n\n## Quick start\n\n- **Workload -> first optimisation layer:** high PUT rate + small\n  objects + 503\u002F429 -> PREFIX_DISTRIBUTION; large objects (>100 MB) +\n  slow PUT -> MULTIPART_UPLOAD; partial reads of large objects ->\n  BYTE_RANGE_FETCH; full-scan CSV\u002FJSON\u002FParquet -> S3_SELECT;\n  cross-region uploads -> TRANSFER_ACCELERATION; single-digit-ms\n  latency target -> EXPRESS_ONE_ZONE; repeated GETs of same object ->\n  HTTP2_CONNECTION; clients report 403 -> PRESIGNED_URL.\n- **Always measure before optimising.** CloudWatch S3 request metrics\n  (`FirstByteLatency`, `TotalRequestLatency`, `4xxErrors`, `5xxErrors`)\n  + Storage Lens identify whether the bottleneck is latency, throughput,\n  or request rate. Optimising the wrong dimension is the #1 waste.\n- **Latency-bound vs throughput-bound vs request-rate-bound are three\n  different problems.** Latency-bound -> Express One Zone or connection\n  reuse. Throughput-bound -> multipart + Transfer Acceleration.\n  Request-rate-bound -> prefix distribution. NOT interchangeable.\n- **Multipart upload is the single highest-impact change for large\n  objects.** A 1 GB single PUT saturates one TCP stream; multipart with\n  10 parallel parts at 100 MB each uses 10 streams and finishes ~10x\n  faster.\n- **S3 auto-scales partitions per-prefix since 2018, and removed the\n  3,500\u002F5,500 RPS cap in July 2023 for most workloads.** Operators who\n  still shard prefixes \"for performance\" usually do unnecessary work.\n  Only request rates >~10,000 RPS per prefix benefit from sharding.\n\n## Mindset\n\nS3 performance is the alignment between the workload's access pattern\nand the S3 feature set. S3 is not slow; the wrong API choice is slow.\nA 1 GB GET takes ~80 seconds over one TCP stream and ~8 seconds over 10\nbyte-range fetches. A 100 GB dataset scan via `select-object-content`\ntakes ~30 seconds; the same scan via client-side reads takes hours.\nSenior S3 engineers start with the access pattern (read shape, write\nshape, object size profile, client geography), pick the API\u002Ffeature\nthat matches, and only then tune metrics.\n\n## Philosophy\n\nMoved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#philosophy-four-behaviours-of-a-senior-s3-engineer) — multipart above 100 MB, byte-range partial reads, Express One Zone trade-off, pre-signed expiry trade-off.\nLoad that reference on demand before executing this section.\n\n## Quick reference — workload triage table\n\n| Symptom \u002F metric signal | Most likely layer | First probe |\n|---|---|---|\n| 429 Slow Down or 503 throttling | PREFIX_DISTRIBUTION | CloudWatch `4xxErrors`, `5xxErrors` |\n| Large PUT > 100 MB slow | MULTIPART_UPLOAD | Client-side timing; current upload method |\n| Only head\u002Ftail of large object read | BYTE_RANGE_FETCH | Access pattern: which byte offset? |\n| CSV\u002FJSON\u002FParquet full-scan slow | S3_SELECT | `select-object-content` prototype |\n| Cross-region uploads slow | TRANSFER_ACCELERATION | Bucket accelerate config; client geography |\n| p99 latency > 50 ms target | EXPRESS_ONE_ZONE | Latency target + bucket AZ requirements |\n| Repeated GETs of same object | HTTP2_CONNECTION | SDK HTTP version; connection pool size |\n| 403 from previously working URL | PRESIGNED_URL | URL expiry vs current timestamp |\n| On-demand transformation needed | OBJECT_LAMBDA | Access pattern needs filtering\u002Fredaction? |\n| Bulk object processing | BATCH_OPERATIONS | Operation type (copy\u002Freplace-tag\u002Frestore\u002Finvoke) |\n| Large-object relocation slow | MULTIPART_COPY | `copy-object` vs `s3 cp --recursive` |\n| Bandwidth-bound on textual payloads | CONTENT_ENCODING | `Content-Encoding` header; object size |\n\n## Pre-flight: workload state and gather-info gate\n\nMoved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md#pre-flight-workload-state-and-gather-info-gate-commands) — bucket\u002Ffeature discovery, CloudWatch request metrics, Storage Lens, S3 Select probe, byte-range probe.\nLoad that reference on demand before executing this section.\n\nIf CloudWatch request metrics are NOT enabled, recommend\n`put-bucket-metrics-configuration` before diagnosing; without metrics,\noptimisation is guesswork.\n\nIf the input is malformed (no BucketName, no workload description, no\naccess pattern context), emit:\n\nMoved to [references\u002Fworked-examples.md](references\u002Fworked-examples.md#worked-example-malformed-input-verdict-unknown) — the full FURTHER_OPTIMIZATION_AVAILABLE \u002F LAYER: UNKNOWN block for missing context.\nLoad that reference on demand before executing this section.\n\n## Process — Optimisation decision tree\n\nThe tree is workload-driven. Each layer ends with either an actionable\noptimisation (a probe that confirms the layer is the bottleneck) or a\npass. **Never emit OPTIMIZED without verifying the workload's stated\ntarget is met by current config.**\n\n### Step 0: Non-obvious behaviours that change diagnosis\n\nMoved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#step-0-non-obvious-behaviours-that-change-diagnosis) — partition auto-scaling, SDK multipart defaults, Range semantics, SSE-KMS Select, Express ARN syntax, TA distance, presign caps, Object Lambda cost, Batch pricing, HTTP\u002F2 opt-in.\nLoad that reference on demand before executing this section.\n\n### Step 1: Workload entry — pick the optimisation branch\n\n| Workload shape | Branch |\n|---|---|\n| PUT-heavy, > 5,000 RPS per prefix, 503\u002F429 errors | Step 2 — Prefix distribution |\n| Large PUT > 100 MB slow | Step 3 — Multipart upload |\n| Read only head\u002Ftail of large objects | Step 4 — Byte-range fetch |\n| Full-scan CSV\u002FJSON\u002FParquet slow | Step 5 — S3 Select |\n| Cross-region uploads | Step 6 — Transfer Acceleration |\n| Latency target \u003C 10 ms single-digit | Step 7 — Express One Zone |\n| Repeated GETs of same object | Step 8 — HTTP\u002F2 connection |\n| 403 on previously working URL | Step 9 — Pre-signed URL |\n| On-demand transform \u002F redaction | Step 10 — Object Lambda |\n| Bulk processing | Step 11 — Batch Operations |\n| Large-object copy \u002F relocation | Step 12 — Multipart copy |\n| Textual payloads bandwidth-bound | Step 13 — Content encoding |\n| Workload meets target | Step 14 — Already optimised |\n\n### Step 2: PREFIX_DISTRIBUTION — high request rate per prefix\n\nSymptom: 429 Slow Down or 503 throttling on a single prefix.\nCloudWatch `4xxErrors` and `5xxErrors` show sustained spikes.\n\n```bash\naws cloudwatch get-metric-statistics --namespace AWS\u002FS3 \\\n  --metric-name 4xxErrors \\\n  --dimensions Name=BucketName,Value=\u003Cbucket> \\\n  --start-time $(date -d '-1 hour' +%FT%TZ) --end-time $(date +%FT%TZ) \\\n  --period 60 --statistics Sum --output json\n```\n\nS3 auto-scales partitions per prefix; the July 2023 announcement\nremoved the 3,500\u002F5,500 per-second cap for almost all workloads. Only\nrates above ~10,000 per second on a single prefix need sharding. If\nyour workload is below that threshold and still seeing 503\u002F429, look\nelsewhere (hot key, retry storm).\n\n**Verdict:** If rate per prefix exceeds 10,000 sustained and no\nsharding is in place, FURTHER_OPTIMIZATION_AVAILABLE with\n`LAYER: PREFIX_DISTRIBUTION`. Fix: add a hash prefix to the key.\n\n### Step 3: MULTIPART_UPLOAD — large PUT optimisation\n\nSymptom: PUT of large objects (> 100 MB) is slow or stalls.\n\nMoved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md#step-3-probe-current-upload-method-and-multipart-timing) — head-object size check and single vs multipart upload timing.\nLoad that reference on demand before executing this section.\n\nMoved to [references\u002Fs3-performance-reference.md](references\u002Fs3-performance-reference.md#step-3-multipart-upload-part-sizing-table-moved-from-skillmd) — part size and parallelism by object size band.\nLoad that reference on demand before executing this section.\n\n**Verdict:** If the current upload uses single PUT above 100 MB,\nFURTHER_OPTIMIZATION_AVAILABLE with `LAYER: MULTIPART_UPLOAD`.\n\n### Step 4: BYTE_RANGE_FETCH — partial reads\n\nSymptom: Client reads only the first\u002Flast few KB of a large object\n(headers, trailers, manifests).\n\n```bash\ncurl -sv \"https:\u002F\u002F\u003Cbucket>.s3.\u003Cregion>.amazonaws.com\u002F\u003Ckey>\" \\\n  -o \u002Fdev\u002Fnull -w 'full: %{time_total}s %{size_download}b\\n'\n\ncurl -sv -H 'Range: bytes=0-1023' \\\n  \"https:\u002F\u002F\u003Cbucket>.s3.\u003Cregion>.amazonaws.com\u002F\u003Ckey>\" \\\n  -o \u002Fdev\u002Fnull -w 'range: %{time_total}s %{size_download}b\\n'\n```\n\n**Verdict:** If the client reads only the first\u002Flast KB,\nFURTHER_OPTIMIZATION_AVAILABLE with `LAYER: BYTE_RANGE_FETCH`. Fix:\nswitch to `Range: bytes=0-N` (head) or `Range: bytes=-N` (tail).\n\n### Step 5: S3_SELECT — query pushdown\n\nSymptom: Full-scan CSV\u002FJSON\u002FParquet where only some records are needed.\n\n```bash\naws s3api select-object-content \\\n  --bucket \u003Cbucket> --key \u003Ckey> \\\n  --expression \"SELECT s.id, s.amount FROM s3object s WHERE s.amount > 1000\" \\\n  --expression-type SQL \\\n  --input-serialization '{\"CSV\": {\"FileHeaderInfo\": \"USE\"},\n                          \"CompressionType\": \"GZIP\"}' \\\n  --output-serialization '{\"CSV\": {}}' \u002Fdev\u002Fstdout\n```\n\nS3 Select typically reduces bytes transferred 5-50x depending on\nselectivity.\n\nMoved to [references\u002Fs3-performance-reference.md](references\u002Fs3-performance-reference.md#step-5-s3-select-format-support-table-moved-from-skillmd) — CSV\u002FJSON\u002FParquet supported; ORC\u002FAvro\u002FExcel\u002FPDF not.\nLoad that reference on demand before executing this section.\n\n**Verdict:** If the workload is a full-scan of CSV\u002FJSON\u002FParquet and S3\nSelect is not in use, FURTHER_OPTIMIZATION_AVAILABLE with\n`LAYER: S3_SELECT`.\n\n### Step 6: TRANSFER_ACCELERATION — cross-region uploads\n\nSymptom: Cross-region uploads are slow. Bucket region is far from the\nclient.\n\n```bash\naws s3api get-bucket-accelerate-configuration --bucket \u003Cbucket> --output json\n\ntime aws s3 cp \u003Cfile> s3:\u002F\u002F\u003Cbucket>\u002F\u003Ckey>\n# After enabling Transfer Acceleration\ntime aws s3 cp \u003Cfile> s3:\u002F\u002F\u003Cbucket>\u002F\u003Ckey> \\\n  --endpoint-url http:\u002F\u002Fs3-accelerate.amazonaws.com\n```\n\nTransfer Acceleration routes through the nearest CloudFront edge POP\nand uses Amazon's backbone to the bucket region. For same-region\ntraffic it adds latency; only enable for cross-region workloads.\n\n**Verdict:** Cross-region workload with Transfer Acceleration off ->\nFURTHER_OPTIMIZATION_AVAILABLE with `LAYER: TRANSFER_ACCELERATION`.\n\n### Step 7: EXPRESS_ONE_ZONE — single-digit-ms latency\n\nSymptom: Target latency is single-digit ms (ML model serving, hot\ncache, transactional read).\n\n```bash\naws s3api list-buckets --output json | \\\n  jq '.Buckets[] | select(.Name | contains(\"--xaz-\"))'\n```\n\nS3 Express One Zone uses directory buckets, provides ~10x lower latency\n(single-digit ms p99), costs more per GB and per request, and is\nsingle-AZ. Always flag the availability trade-off before recommending.\n\nMoved to [references\u002Fs3-performance-reference.md](references\u002Fs3-performance-reference.md#step-7-express-one-zone-workload-fit-table-moved-from-skillmd) — backup\u002FML\u002Fpersonalisation\u002Fhot-cache fit vs standard S3.\nLoad that reference on demand before executing this section.\n\n**Verdict:** Latency target \u003C 10 ms and bucket on standard S3 ->\nFURTHER_OPTIMIZATION_AVAILABLE with `LAYER: EXPRESS_ONE_ZONE` (with\nexplicit availability caveat).\n\n### Step 8: HTTP2_CONNECTION — connection reuse\n\nSymptom: Repeated GETs of the same object; high TLS handshake overhead.\n\n```bash\ncurl -sv --http2 \"https:\u002F\u002F\u003Cbucket>.s3.\u003Cregion>.amazonaws.com\u002F\u003Ckey>\" \\\n  -o \u002Fdev\u002Fnull 2>&1 | grep -E 'HTTP\u002F'\n```\n\nMost AWS SDKs default to HTTP\u002F1.1; opt in to HTTP\u002F2 in the SDK config.\nHTTP\u002F2 connection reuse amortises the TLS handshake, reducing\nper-request latency 30-100 ms on small objects.\n\n**Verdict:** Repeated GETs using HTTP\u002F1.1 (new TLS per request) ->\nFURTHER_OPTIMIZATION_AVAILABLE with `LAYER: HTTP2_CONNECTION`.\n\n### Step 9: PRESIGNED_URL — expiry and refresh pattern\n\nSymptom: Clients report 403 from a previously working URL.\n\n```bash\naws s3 presign s3:\u002F\u002F\u003Cbucket>\u002F\u003Ckey> --expires-in 3600\n```\n\nMoved to [references\u002Fs3-performance-reference.md](references\u002Fs3-performance-reference.md#step-9-pre-signed-url-expiry-table-moved-from-skillmd) — expiry choice per use case incl. IAM-user vs STS caps.\nLoad that reference on demand before executing this section.\n\n**Verdict:** Clients re-request URLs frequently because of short expiry\n-> FURTHER_OPTIMIZATION_AVAILABLE with `LAYER: PRESIGNED_URL`.\n\n### Step 10: OBJECT_LAMBDA — on-demand transform\n\nSymptom: Multiple clients need the same object in different forms\n(filtered, redacted, format-converted).\n\n```bash\naws s3control list-access-points --account-id \u003Cid> --output json\naws s3control get-access-point --account-id \u003Cid> --name \u003Cap> --output json\n```\n\nS3 Object Lambda Access Point sits in front of a standard access point;\na Lambda function transforms the GET response on the fly. It does NOT\ncache the transformed output — repeated reads incur repeated Lambda\ninvocations. Add a CDN or client-side cache for hot objects.\n\n**Verdict:** Multiple clients re-fetching to redact\u002Ffilter client-side\n-> FURTHER_OPTIMIZATION_AVAILABLE with `LAYER: OBJECT_LAMBDA`.\n\n### Step 11: BATCH_OPERATIONS — bulk processing\n\nSymptom: Need to copy, replace-tag, restore, or invoke-Lambda on\nmillions of objects.\n\n```bash\naws s3control create-job \\\n  --account-id \u003Cid> \\\n  --operation '{\"S3Replicate\": {}}' \\\n  --manifest-location \u003Cmanifest-s3-uri> \\\n  --report \u003Creport-config> \\\n  --role-arn \u003Crole> \\\n  --client-request-token \u003Ctoken>\n```\n\nS3 Batch Operations uses a manifest (typically from S3 Inventory). Avoid\nlisting millions of objects via `list-objects-v2`.\n\nMoved to [references\u002Fs3-performance-reference.md](references\u002Fs3-performance-reference.md#step-11-batch-operations-billing-table-moved-from-skillmd) — per-object billing for copy\u002Ftags\u002Frestore\u002FLambda invoke.\nLoad that reference on demand before executing this section.\n\n**Verdict:** Bulk operation scripted client-side via `list-objects-v2`\n+ loop -> FURTHER_OPTIMIZATION_AVAILABLE with\n`LAYER: BATCH_OPERATIONS`.\n\n### Step 12: MULTIPART_COPY — large-object relocation\n\nSymptom: Need to copy objects > 5 GB within or across buckets.\n\n`copy-object` is limited to 5 GB. For larger objects, use `s3 cp`\n(which auto-uses multipart copy) or the SDK multipart copy API.\n\n```bash\ntime aws s3 cp s3:\u002F\u002F\u003Csrc-bucket>\u002F\u003Ckey> s3:\u002F\u002F\u003Cdst-bucket>\u002F\u003Ckey> \\\n  --expected-size \u003Csize> \\\n  --multipart-chunksize 500MB \\\n  --max-concurrent-requests 10\n```\n\n**Verdict:** Workload uses `copy-object` on objects > 5 GB or serially\ncopies many large objects -> FURTHER_OPTIMIZATION_AVAILABLE with\n`LAYER: MULTIPART_COPY`.\n\n### Step 13: CONTENT_ENCODING — transfer-size reduction\n\nSymptom: Bandwidth-bound on textual payloads (JSON, CSV, logs, HTML).\n\n```bash\naws s3api head-object --bucket \u003Cbucket> --key \u003Ckey> --output json | \\\n  jq '{ContentLength, ContentEncoding, ContentType}'\n```\n\nPre-compressing textual objects (`Content-Encoding: gzip` or `br`)\nreduces S3 GET time proportionally. S3 does not compress on read;\nclients must accept the encoding. CloudFront decompresses on the fly\nwhen configured.\n\nMoved to [references\u002Fs3-performance-reference.md](references\u002Fs3-performance-reference.md#step-13-content-encoding-compression-ratios-moved-from-skillmd) — gzip ratios for textual payloads; no gain for already-compressed.\nLoad that reference on demand before executing this section.\n\n**Verdict:** Textual payloads stored uncompressed, clients support\ngzip\u002Fbr -> FURTHER_OPTIMIZATION_AVAILABLE with\n`LAYER: CONTENT_ENCODING`.\n\n### Step 14: ALREADY_OPTIMIZED — workload meets target\n\nIf the workload's stated target (latency, throughput, request rate) is\nmet by current configuration, emit OPTIMIZED with\n`LAYER: ALREADY_OPTIMIZED`. Do NOT recommend additional changes.\n\n## Output format\n\n```text\nTARGET: \u003Cbucket-name> (region: \u003Cregion>, workload: \u003Cworkload-shape>)\nVERDICT: OPTIMIZED | FURTHER_OPTIMIZATION_AVAILABLE\nREASON: \u003C1-2 sentences naming the layer and the optimisation opportunity>\nLAYER: \u003CPREFIX_DISTRIBUTION | MULTIPART_UPLOAD | BYTE_RANGE_FETCH |\n        S3_SELECT | TRANSFER_ACCELERATION | EXPRESS_ONE_ZONE |\n        HTTP2_CONNECTION | PRESIGNED_URL | OBJECT_LAMBDA |\n        BATCH_OPERATIONS | MULTIPART_COPY | CONTENT_ENCODING |\n        ALREADY_OPTIMIZED | UNKNOWN>\nEVIDENCE:\n  - \u003Cworkload description — read\u002Fwrite shape, object size, request rate>\n  - \u003Ccurrent configuration — bucket features, client config>\n  - \u003Cprobe result — measurement that quantifies the gap>\n  - \u003Cestimated delta — projected latency \u002F throughput improvement>\nREMEDIATION:\n  1. \u003Cspecific action with CLI command>\n  2. \u003Cverification command after the change>\nCONFIRM: Before executing any state-changing CLI, emit and await\n  operator approval: \"CONFIRM: About to \u003Caction> on \u003Cbucket> in\n  \u003Cregion>. Proceed? (yes\u002Fno)\"\n```\n\n## Anti-Patterns — NEVER\n\n- NEVER recommend prefix sharding for workloads below 10,000 RPS per\n  prefix. S3 auto-scales partitions; manual sharding below the cap is\n  unnecessary complexity.\n\n- NEVER use `copy-object` for objects > 5 GB. The API caps at 5 GB; use\n  multipart copy (`s3 cp` or SDK multipart copy API).\n\n- NEVER enable Transfer Acceleration for same-region traffic. The\n  CloudFront edge hop adds latency for in-region clients.\n\n- NEVER migrate to S3 Express One Zone without flagging the single-AZ\n  availability trade-off. Express One Zone does not replicate across\n  AZs; pair with cross-region replication for critical data.\n\n- NEVER default pre-signed URL expiry to 1 hour without considering the\n  workload. Long uploads need 12+ hours; high-security sharing needs\n  minutes. The expiry is a latency-vs-security trade-off.\n\n- NEVER rely on S3 Object Lambda without a downstream cache. Each GET\n  incurs a Lambda invocation; hot objects amplified across clients\n  create runaway Lambda costs.\n\n- NEVER use `list-objects-v2` to enumerate millions of objects for a\n  batch job. Use S3 Inventory (daily\u002Fweekly manifest) as the batch job\n  input.\n\n- NEVER recommend HTTP\u002F2 without verifying SDK support. Many SDKs\n  default to HTTP\u002F1.1; opt-in requires SDK configuration.\n\n- NEVER compress already-compressed formats (PNG, JPEG, MP4, gzip\n  archives). Re-compression wastes CPU and may increase size slightly.\n\n- NEVER assume S3 Select supports all formats. It covers CSV, JSON,\n  and Parquet only; ORC, Avro, and binary formats require Athena.\n\n- NEVER declare OPTIMIZED without comparing the workload's target\n  metric against the current metric. \"Looks fine\" is not OPTIMIZED; a\n  measured match is.\n\n## Pre-flight safety checks\n\n- **MANDATORY CONFIRMATION GATE.** Before\n  `put-bucket-accelerate-configuration`,\n  `put-bucket-metrics-configuration`, `create-job`, `put-object` with\n  `Content-Encoding`, or any bucket-level configuration change, emit\n  and await operator approval.\n\n- **Read-only first.** Probes (`get-bucket-location`,\n  `get-bucket-accelerate-configuration`, `get-metric-statistics`,\n  `head-object`, `select-object-content`, `list-objects-v2`) are\n  read-only. `select-object-content` is billed per request; use small\n  LIMIT clauses for probes.\n\n- **Enabling Transfer Acceleration** is a bucket-level toggle; existing\n  clients using the standard endpoint continue to work. The accelerate\n  endpoint is opt-in via SDK configuration.\n\n- **Enabling CloudWatch request metrics** adds per-request metric\n  cost (~$0.01 per 1,000 metrics in 2026). The EntireBucket filter is\n  cheapest; per-prefix filters multiply the cost.\n\n- **S3 Express One Zone migration** requires creating a new directory\n  bucket and copying objects in; existing bucket names cannot be\n  converted in place.\n\n- **Pre-signed URL regeneration** after changing IAM credentials\n  invalidates all previously signed URLs. Coordinate credential\n  rotation with active URL issuance.\n\n## Configuration dependency graph\n\nMoved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#configuration-dependency-graph-ascii-flow) — classification -> bucket features -> client features -> verdict flow diagram.\nLoad that reference on demand before executing this section.\n\n## Expert heuristic\n\nMoved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#expert-heuristic) — multipart parallelism default, byte-range partial GETs, Express One Zone single-digit-ms trade-off.\nLoad that reference on demand before executing this section.\n\n\n## References (load on demand)\n\n- [references\u002Fs3-performance-reference.md](references\u002Fs3-performance-reference.md) — sizing\u002Fformat\u002Fexpiry\u002Fmetric matrices backing each optimisation layer, plus AWS Health event categories.\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — pre-flight workload-state commands and per-layer probe commands.\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — full output-block examples incl. the malformed-input (UNKNOWN) verdict.\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — philosophy deep dive, Step 0 non-obvious behaviours, configuration dependency graph, expert heuristics.\n## Domain\n\nAWS CloudOps \u002F S3 Object Storage Performance, Multipart Upload, S3\nExpress One Zone, S3 Select, Transfer Acceleration, and Batch Operations.\n\n## AWS documentation\n\n- **S3 performance guidelines** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Foptimizing-performance.html\n- **Multipart upload** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fmpuoverview.html\n- **Byte-range fetches** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002FGettingObjectsUsingAPIs.html\n- **S3 Select** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fselecting-content-from-objects.html\n- **S3 Transfer Acceleration** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Ftransfer-acceleration.html\n- **S3 Express One Zone** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fs3-express-one-zone.html\n- **S3 Object Lambda** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Ftransforming-objects.html\n- **S3 Batch Operations** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fbatch-ops.html\n- **S3 CloudWatch request metrics** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fcloudwatch-monitoring.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},"s3, storage, performance-optimization, latency, throughput","3","Jacky Chan — AWS Community Builder","aws-cloudops","Storage","0.1.0","Amazon S3, S3 performance, multipart upload, Transfer Acceleration, byte-range fetch, S3 Select, S3 Express One Zone, prefix distribution, partition allocation, S3 Object Lambda, S3 Batch Operations, HTTP\u002F2, 429 Slow Down, 503 throttling, pre-signed URL","optimize","high","false","capability","Optimising an S3-backed workload for latency, throughput, or request-rate — including prefix distribution for high-request-rate buckets, multipart upload for large PUTs, byte-range GETs for partial reads, S3 Select to push filtering into S3, S3 Express One Zone for single-digit-ms latency, Transfer Acceleration for cross-region uploads, HTTP\u002F2 connection reuse, pre-signed URL expiry sizing, S3 Object Lambda for on-demand transformation, S3 Batch Operations for bulk processing, multipart copy for large object relocation, or content-encoding for transfer reduction.","true","OPTIMIZED | FURTHER_OPTIMIZATION_AVAILABLE","Cost-only optimisation of storage class \u002F lifecycle (use s3-storage-class-optimizer, s3-lifecycle-optimizer, or s3-intelligent-tiering-optimizer), bucket policy \u002F Block Public Access audits (use s3-public-access-auditor or s3-bucket-policy- deployer), access pattern troubleshooting (use s3-access- troubleshooter), replication setup (use s3-replication-operator), or Glacier restore workflows (use s3-glacier-restore-operator).","active","Input: either (a) a workload description (bucket, prefix, object size profile, request rate, client geography, latency target) optionally paired with CloudWatch S3 metrics and Storage Lens excerpts, OR (b) a BucketName plus workload context for live-account optimisation. Output: a deterministic TARGET \u002F VERDICT \u002F REASON \u002F LAYER \u002F EVIDENCE \u002F REMEDIATION block where VERDICT is in {OPTIMIZED, FURTHER_OPTIMIZATION_AVAILABLE} and LAYER is in {PREFIX_DISTRIBUTION, MULTIPART_UPLOAD, BYTE_RANGE_FETCH, S3_SELECT, TRANSFER_ACCELERATION, EXPRESS_ONE_ZONE, HTTP2_CONNECTION, PRESIGNED_URL, OBJECT_LAMBDA, BATCH_OPERATIONS, MULTIPART_COPY, CONTENT_ENCODING, ALREADY_OPTIMIZED, UNKNOWN}.","# Minimal valid input (offline classification):\nSymptom: \"S3 bucket receiving 8,000 PUT\u002Fsec; CloudWatch shows\noccasional 503 errors; p99 FirstByteLatency 250 ms.\"\nBucket: prod-telemetry-ingest\nRegion: us-east-1\nWorkload: write-heavy ingest\nRequestRate: 8,000 PUT\u002Fsec\nAvgObjectSize: 12 KB\nClientGeography: us-east-1 EC2\nTargetLatency: \u003C50 ms p99\n","S3 performance, S3 latency, S3 throughput, S3 Slow Down 429, S3 503 throttling, S3 multipart upload, S3 Transfer Acceleration, S3 byte-range, S3 Select, S3 Express One Zone, S3 prefix distribution, S3 Object Lambda, S3 Batch Operations, S3 pre-signed URL, optimize S3 performance","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). Offline classification works from pasted S3 access patterns, CloudWatch S3 metrics, and Storage Lens excerpts. Live- account optimisation uses aws s3api list-buckets \u002F get-bucket-location \u002F get-bucket-accelerate-configuration, aws s3control get-storage-lens-configuration, aws cloudwatch get-metric-statistics on AWS\u002FS3 (FirstByteLatency, TotalRequestLatency, 4xxErrors, 5xxErrors), aws s3 ls \u002F head-object \u002F...","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fs3-performance-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 s3-performance-optimizer",{"tool":59,"command":60},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill s3-performance-optimizer",{"tool":62,"command":63},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill s3-performance-optimizer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-performance-optimizer\u002FSKILL.md",true,[67,73,77,81,85,89,93,97,101,105,109,113,117,121,125,129,133,137,141],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",10126,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-performance-optimizer\u002Feval\u002Ftest-cases.yaml",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"evals\u002Fbaselines\u002Fbyte-range-fetch-tail-read-log-trailer.md",471,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-performance-optimizer\u002Fevals\u002Fbaselines\u002Fbyte-range-fetch-tail-read-log-trailer.md",{"path":78,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":79,"sourceHtmlUrl":80},"evals\u002Fbaselines\u002Fexpress-one-zone-ml-model-serving-latency.md",456,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-performance-optimizer\u002Fevals\u002Fbaselines\u002Fexpress-one-zone-ml-model-serving-latency.md",{"path":82,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":83,"sourceHtmlUrl":84},"evals\u002Fbaselines\u002Fmultipart-upload-large-put-single-stream.md",520,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-performance-optimizer\u002Fevals\u002Fbaselines\u002Fmultipart-upload-large-put-single-stream.md",{"path":86,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":87,"sourceHtmlUrl":88},"evals\u002Fbaselines\u002Fprefix-distribution-hot-shard-503-throttling.md",411,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-performance-optimizer\u002Fevals\u002Fbaselines\u002Fprefix-distribution-hot-shard-503-throttling.md",{"path":90,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":91,"sourceHtmlUrl":92},"evals\u002Fbaselines\u002Fs3-select-csv-filter-pushdown.md",440,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-performance-optimizer\u002Fevals\u002Fbaselines\u002Fs3-select-csv-filter-pushdown.md",{"path":94,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":95,"sourceHtmlUrl":96},"evals\u002Feval_config.yaml",2205,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-performance-optimizer\u002Fevals\u002Feval_config.yaml",{"path":98,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":99,"sourceHtmlUrl":100},"evals\u002Fevals.json",5300,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-performance-optimizer\u002Fevals\u002Fevals.json",{"path":102,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":103,"sourceHtmlUrl":104},"evals\u002Fprompts\u002Fbyte-range-fetch-tail-read-log-trailer.md",1394,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-performance-optimizer\u002Fevals\u002Fprompts\u002Fbyte-range-fetch-tail-read-log-trailer.md",{"path":106,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":107,"sourceHtmlUrl":108},"evals\u002Fprompts\u002Fexpress-one-zone-ml-model-serving-latency.md",1318,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-performance-optimizer\u002Fevals\u002Fprompts\u002Fexpress-one-zone-ml-model-serving-latency.md",{"path":110,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":111,"sourceHtmlUrl":112},"evals\u002Fprompts\u002Fmultipart-upload-large-put-single-stream.md",1261,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-performance-optimizer\u002Fevals\u002Fprompts\u002Fmultipart-upload-large-put-single-stream.md",{"path":114,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":115,"sourceHtmlUrl":116},"evals\u002Fprompts\u002Fprefix-distribution-hot-shard-503-throttling.md",1444,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-performance-optimizer\u002Fevals\u002Fprompts\u002Fprefix-distribution-hot-shard-503-throttling.md",{"path":118,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":119,"sourceHtmlUrl":120},"evals\u002Fprompts\u002Fs3-select-csv-filter-pushdown.md",1380,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-performance-optimizer\u002Fevals\u002Fprompts\u002Fs3-select-csv-filter-pushdown.md",{"path":122,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":123,"sourceHtmlUrl":124},"examples\u002FREADME.md",5388,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-performance-optimizer\u002Fexamples\u002FREADME.md",{"path":126,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":127,"sourceHtmlUrl":128},"references\u002Fadvanced-patterns.md",6178,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-performance-optimizer\u002Freferences\u002Fadvanced-patterns.md",{"path":130,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":131,"sourceHtmlUrl":132},"references\u002Fdiagnostic-commands.md",2290,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-performance-optimizer\u002Freferences\u002Fdiagnostic-commands.md",{"path":134,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":135,"sourceHtmlUrl":136},"references\u002Fs3-performance-reference.md",9698,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-performance-optimizer\u002Freferences\u002Fs3-performance-reference.md",{"path":138,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":139,"sourceHtmlUrl":140},"references\u002Fworked-examples.md",878,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-performance-optimizer\u002Freferences\u002Fworked-examples.md",{"path":142,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":143,"sourceHtmlUrl":144},"skill.usf.yaml",4615,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-performance-optimizer\u002Fskill.usf.yaml",[146,153,160,167,174,181],{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"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":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"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":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":166,"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":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":171,"categories":172,"keywords":173,"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":175,"name":176,"nameZh":6,"description":177,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":178,"categories":179,"keywords":180,"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":182,"name":183,"nameZh":6,"description":184,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":185,"categories":186,"keywords":187,"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",[],[]]