[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AC117WHSCCSGT20TB5HDES":3,"skill-same:01M7AC117WHSCCSGT20TB5HDES":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},"01M7AC117WHSCCSGT20TB5HDES","s3-storage-class-optimizer",null,"Optimises S3 storage cost across six dimensions: lifecycle policy configuration (Standard to Standard-IA to Glacier Instant to Glacier Flexible to Glacier Deep Archive transition timing with minimum-days constraints), Intelligent-Tiering activation with Archive Access and Deep Archive Access tiers, Storage Lens analysis for object-age distribution and prefix-level cost allocation, versioning cost impact (noncurrent object churn and delete-marker accumulation), retrieval-pattern matching (Glacier Instant vs Flexible vs Deep Archive trade-offs), and S3 Batch Operations for bulk storage-class migration. Uses S3 Storage Lens, object-level age metrics, and Cost Explorer S3 usage breakdown to project per-TB savings. Emits FURTHER_OPTIMIZATION_AVAILABLE with tier transitions and dollar savings, OPTIMIZED, or ALREADY_OPTIMAL.","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-storage-class-optimizer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: s3-storage-class-optimizer\ndescription: 'Optimises S3 storage cost across six dimensions: lifecycle policy configuration (Standard to Standard-IA to Glacier Instant to Glacier Flexible to Glacier Deep Archive transition timing with minimum-days constraints), Intelligent-Tiering activation with Archive Access and Deep Archive Access tiers, Storage Lens analysis for object-age distribution and prefix-level cost allocation, versioning cost impact (noncurrent object churn and delete-marker accumulation), retrieval-pattern matching (Glacier Instant vs Flexible vs Deep Archive trade-offs), and S3 Batch Operations for bulk storage-class migration. Uses S3 Storage Lens, object-level age metrics, and Cost Explorer S3 usage breakdown to project per-TB savings. Emits FURTHER_OPTIMIZATION_AVAILABLE with tier transitions and dollar savings, OPTIMIZED, or ALREADY_OPTIMAL.'\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). Offline classification works from pasted Storage Lens exports and Cost Explorer data. Live-account optimization uses aws s3api list-buckets, aws s3api get-bucket-lifecycle-configuration, aws s3api get-bucket-versioning, aws s3api get-bucket-intelligent-tiering-configuration, aws s3control get-storage-lens-configuration, aws ce get-cost-and-usage, and aws s3api list-objects-v2 with --query for object-age...\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: 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 S3 storage cost, deploying lifecycle policies, evaluating Intelligent-Tiering activation, analysing Storage Lens object-age distribution, diagnosing versioning bloat, choosing Glacier Instant vs Flexible vs Deep Archive, planning S3 Batch Operations for class migration, or running a storage FinOps review.\n  when_not_to_use: S3 security or access-control auditing (use the S3 auditor skill), S3 performance optimisation for latency-sensitive workloads (Transfer Acceleration, CloudFront — use the CDN skills), or EBS volume cost optimisation (use ebs-volume-optimizer). This skill focuses on storage-class cost reduction, not access governance.\n  activation_triggers: optimise S3 storage cost, S3 lifecycle policy, S3 Intelligent-Tiering, S3 Glacier migration, S3 Deep Archive, S3 Storage Lens analysis, S3 versioning cost, S3 noncurrent objects, S3 Batch Operations, S3 cost per TB, S3 Standard-IA transition, S3 delete marker cleanup, S3 prefix cost allocation, S3 FinOps review, reduce S3 bill, S3 storage class review\n  invocation_schema: 'Input: either (a) a bucket identifier + live-account context, (b) a Storage Lens export or Cost Explorer S3 usage breakdown, OR (c) bucket configuration metadata (lifecycle config, versioning status, Intelligent-Tiering config) with object-age distribution. Output: a deterministic TARGET\u002FVERDICT\u002FREASON\u002FRECOMMENDATION\u002F ESTIMATED_SAVINGS\u002FMIGRATION_STEPS block per bucket, where VERDICT is one of OPTIMIZED, FURTHER_OPTIMIZATION_AVAILABLE, ALREADY_OPTIMAL.'\n  invocation_example: \"# Minimal valid input (offline classification):\\nBucketName: data-lake-raw-prod\\nRegion: us-east-1\\nStorage (total): 45 TB\\nStorage class distribution:\\n  - Standard: 32 TB (71%)\\n  - Standard-IA: 8 TB (18%)\\n  - Glacier Instant Retrieval: 0 TB\\n  - Glacier Flexible Retrieval: 3 TB (7%)\\n  - Glacier Deep Archive: 2 TB (4%)\\nVersioning: Enabled\\nLifecycle policy: none\\nIntelligent-Tiering: not configured\\nStorage Lens (last 30 days):\\n  - Objects aged 0-30 days: 12 TB\\n  - Objects aged 31-90 days: 9 TB\\n  - Objects aged 91-180 days: 6 TB\\n  - Objects aged 181-365 days: 5 TB\\n  - Objects aged >365 days: 13 TB\\nRetrieval frequency: \u003C1% of objects accessed after 90 days\\nEmit the standard optimization block (TARGET, VERDICT, REASON,\\nRECOMMENDATION, ESTIMATED_SAVINGS, MIGRATION_STEPS).\"\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: S3, storage class, lifecycle policy, Intelligent-Tiering, Glacier, Deep Archive, Standard-IA, Glacier Instant Retrieval, Storage Lens, object age, versioning cost, noncurrent objects, S3 Batch Operations, cost optimization, FinOps, prefix grouping, MFA delete, delete markers, storage cost, per TB\n  tags: s3, storage, cost-optimization, finops, lifecycle, intelligent-tiering, glacier\n---\n\n# S3 Storage Class Optimizer\n\n## What this skill does\n\nTranslates an S3 bucket's storage-class distribution and object-age\nprofile into a concrete cost-optimization recommendation with a\ndollar-denominated per-TB savings estimate. The verdict is the\nhighest-leverage action across six dimensions — lifecycle policy,\nIntelligent-Tiering, Storage Lens analysis, versioning cost,\nretrieval-pattern matching, and Batch Operations migration — applied\nin priority order. Always pairs the recommendation with exact CLI\ncommands.\n\n## Quick navigation\n\n| Section | What it covers | When to jump here |\n|---|---|---|\n| Quick start | Four headline rules and the cost formula | First read |\n| Mindset | Why lifecycle + Intelligent-Tiering is the #1 lever | Understanding the approach |\n| Quick reference — verdict thresholds | Decision matrix at a glance | Classifying a bucket |\n| Pre-flight data gate | Storage Lens, Cost Explorer, lifecycle config | Before any recommendation |\n| Step 0 non-obvious behaviours | Min-days constraints, retrieval surprises | Edge cases |\n| Step 1 Lifecycle policies | Standard to IA to Glacier to Deep Archive | The headline savings dimension |\n| Step 2 Intelligent-Tiering | Archive Access, Deep Archive Access tiers | Unknown access patterns |\n| Step 3 Storage Lens analysis | Object-age distribution, prefix grouping | Data-driven tiering |\n| Step 4 Versioning cost impact | Noncurrent objects, delete markers | Versioned buckets |\n| Step 5 Retrieval-pattern matching | Glacier Instant vs Flexible vs Deep Archive | Archive strategy |\n| Step 6 S3 Batch Operations | Bulk class migration | Implementing the change |\n| Step 7 Impact estimation | Per-TB cost formula and worked math | 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, MFA delete, rollback | Before any apply CLI |\n\n## Quick start\n\n- **Lifecycle is the #1 lever.** S3 Standard costs $23\u002FTB-month; Deep\n  Archive costs $0.99\u002FTB-month — a 23x difference. If >365-day-old\n  objects are sitting in Standard with \u003C1% retrieval, lifecycle them\n  to Deep Archive immediately.\n- **Cost formula (memorise this):**\n  `monthly_cost = storage_TB × $\u002FTB-month`\n  The savings from a tier transition:\n  `savings = affected_TB × (old_rate − new_rate)`\n- **Intelligent-Tiering eliminates guessing.** For buckets with\n  unpredictable access patterns, enable Intelligent-Tiering ($2.50\u002FTB-\n  month monitoring fee) instead of hand-crafting lifecycle rules. It\n  auto-moves objects to Archive Access after 90 days and Deep Archive\n  Access after 180 days with zero retrieval surprises.\n- **Retrieval cost is the gotcha.** Glacier Flexible Retrieval charges\n  $0.03\u002FGB for standard retrieval (1-5 min) and $0.10\u002FGB for bulk (5-12\n  h). Deep Archive charges $0.02\u002FGB for standard (12h) and $0.0025\u002FGB\n  for bulk (48h). A single 1 TB bulk retrieval from Deep Archive costs\n  $2.50 — cheap. But a 1 TB expedited retrieval from Flexible costs\n  $100. Always surface retrieval cost risk before recommending archive.\n\n## Mindset\n\n→ Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — the four principles behind every recommendation.\n\n\n## Quick reference — verdict thresholds\n\n| Observation (30-day Storage Lens window) | Verdict | Recommendation |\n|---|---|---|\n| No lifecycle policy AND objects >30 days in Standard > 20% of bucket | **FURTHER_OPTIMIZATION_AVAILABLE** (lifecycle) | Step 1 — deploy lifecycle: Standard→IA at 30d,→Glacier Instant at 90d,→Deep Archive at 180d |\n| No Intelligent-Tiering AND access pattern is unpredictable (mixed ages with sporadic reads) | **FURTHER_OPTIMIZATION_AVAILABLE** (Intelligent-Tiering) | Step 2 — enable Intelligent-Tiering with Archive Access at 90d, Deep Archive Access at 180d |\n| Versioning Enabled AND no noncurrent-version lifecycle AND noncurrent versions > 10% of bucket size | **FURTHER_OPTIMIZATION_AVAILABLE** (versioning) | Step 4 — add noncurrent-version transitions + expirations |\n| Objects in Glacier Flexible\u002FDeep Archive AND retrieval rate > 10% of archive per month | **FURTHER_OPTIMIZATION_AVAILABLE** (retrieval mismatch) | Step 5 — evaluate Glacier Instant Retrieval or move back to Standard-IA |\n| Objects in Standard-IA accessed > 2x\u002Fmonth | **FURTHER_OPTIMIZATION_AVAILABLE** (IA mismatch) | Step 5 — move accessed objects back to Standard (IA retrieval fee exceeds storage delta) |\n| Lifecycle policy deployed AND Intelligent-Tiering on mixed-pattern prefixes AND versioning rules active AND no retrieval mismatch | **ALREADY_OPTIMAL** | None — continue monitoring |\n| Storage Lens data absent or Cost Explorer window \u003C 30 days | **NEED_MORE_INFO** | Pull 30-day Storage Lens + CE data, re-evaluate |\n| Lifecycle policy deployed AND verified via post-change Storage Lens this session | **OPTIMIZED** | Emit post-state verification |\n\n## Pre-flight: data gate (run before any optimization decision)\n\nOptimization decisions require object-age distribution and cost\nbreakdown. Pull these before any recommendation. Full CLI sequences\nare in `references\u002Fs3-pricing-and-storage-classes.md`.\n\n→ Data-source CLI listing moved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md); the short-circuit table below is the gate itself.\n\n\n### Data-quality short-circuits\n\n| Condition | Effect on optimization |\n|---|---|\n| Storage Lens not enabled | **NEED_MORE_INFO**. Enable S3 Storage Lens (free tier) or fall back to Cost Explorer + object sampling. |\n| Cost Explorer `GetCostAndUsage` returns empty for S3 | Bucket may be in free tier or CE not enabled. Proceed with Storage Lens only; MEDIUM confidence. |\n| Bucket empty (`ObjectCount = 0`) | **ALREADY_OPTIMAL** with note \"empty bucket.\" |\n| Object-age data \u003C 30 days | **NEED_MORE_INFO**. Minimum 30-day window; 90 days preferred for lifecycle timing. |\n| Lifecycle config is `NoSuchLifecycleConfiguration` | No policy — proceed to Step 1. This is the most common finding. |\n| Versioning `Status != Enabled` AND noncurrent versions present | Impossible state; verify with `list-object-versions`. |\n| Bucket has Object Lock enabled | Lifecycle expiration is blocked for locked objects. Factor into recommendations. |\n\nWhen Storage Lens and Cost Explorer disagree, Storage Lens wins for\nobject-age and class distribution; Cost Explorer wins for dollar\namounts. Reconcile by cross-referencing class distribution with CE\nusage types.\n\n## Configuration dependency graph\n\n→ Dependency-graph diagram moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md); the dependency rule below is the gate.\n\n\n**Dependency rule:** Never recommend a lifecycle transition without\nfirst verifying the retrieval pattern (Step 5 gate). A bucket with\nhigh archive retrieval should NOT be pushed deeper into archive tiers.\n\n## Process — Optimization logic (apply in order)\n\n### Step 0: Non-obvious behaviours that change the recommendation\n\n→ Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — non-obvious behaviours deep dive.\n\n\n### Step 1: Lifecycle policy configuration (the #1 lever)\n\nLifecycle policies automate object transitions between storage classes\nbased on age. This is the highest-impact S3 cost optimization.\n\n→ Lifecycle JSON template and minimum-days matrix moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md); the decision gate below carries every branch.\n\n\n**Decision gate:**\n\n| Object-age profile (from Storage Lens) | Lifecycle recommendation |\n|---|---|\n| >20% of objects aged >30 days still in Standard | Transition to Standard-IA at 30d |\n| >15% of objects aged >90 days with infrequent access | Transition to Glacier IR at 90d |\n| >10% of objects aged >180 days with \u003C1% retrieval | Transition to Deep Archive at 180d |\n| Objects aged >2555 days (7+ years) | Expiration if compliance permits |\n\n→ Savings formulas moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n\n### Step 2: Intelligent-Tiering configuration\n\nIntelligent-Tiering automatically moves objects between access tiers\nbased on usage patterns. It eliminates the need to predict access\nfrequency.\n\n**When Intelligent-Tiering wins over lifecycle:**\n\n| Scenario | Why Intelligent-Tiering |\n|---|---|\n| Access pattern is unpredictable (user uploads, shared docs) | Lifecycle can't adapt; IT monitors per-object |\n| Mixed-age objects with sporadic reads | Lifecycle would misclassify active old objects |\n| Small team \u002F no bandwidth to tune lifecycle rules | IT is set-and-forget |\n| Bucket has diverse prefixes with different patterns | IT operates per-object, not per-prefix |\n\n**When lifecycle wins over Intelligent-Tiering:**\n\n| Scenario | Why lifecycle |\n|---|---|\n| Predictable write-once-read-never (logs, backups) | No monitoring fee ($2.50\u002FTB-mo saved) |\n| Bucket \u003C 1 TB | Monitoring fee exceeds savings |\n| Regulatory retention with known expiry | Explicit expiration rule required |\n\n→ Intelligent-Tiering CLI, tier configuration, and the 50 TB cost comparison moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n\n### Step 3: Storage Lens analysis and prefix-based grouping\n\nStorage Lens provides bucket-level and prefix-level object-age\ndistribution, storage-class breakdown, and activity metrics. Use it\nto drive data-driven tiering decisions.\n\n**Key Storage Lens metrics for optimization:**\n\n| Metric | What it reveals | Optimization signal |\n|---|---|---|\n| ObjectCount by age band | How many objects are old | Age drives lifecycle timing |\n| StorageBytes by age band | How much storage is old | TB drives savings magnitude |\n| NoncurrentVersionStorageBytes | Versioning bloat | If > 10% of current, add noncurrent rules |\n| GetObject count by age | Which objects are still accessed | Old objects with high GETs should NOT be archived |\n| DeleteMarkerCount | Delete marker accumulation | Schedule cleanup if > 100K |\n| IncompleteMultipartUploadStorageBytes | Aborted multipart uploads | Add abort rule to reclaim storage |\n| BytesDownloaded by class | Retrieval volume by class | Glacier\u002FDA downloads reveal retrieval cost risk |\n\n→ Prefix-grouping example moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n\n### Step 4: Versioning cost impact\n\nVersioning retains every prior object version. Without lifecycle rules\non noncurrent versions, storage grows unbounded.\n\n**Detection:**\n```\nnoncurrent_pct = NoncurrentVersionStorageBytes \u002F\n                 (NoncurrentVersionStorageBytes + CurrentVersionStorageBytes)\n\nIf noncurrent_pct > 10% → versioning bloat finding\n```\n\n→ Noncurrent-version lifecycle template moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n\nKeeps the 3 most recent noncurrent versions; transitions older ones to\ncheaper tiers; expires after 365 days.\n\n→ Delete-marker cleanup command moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n\n### Step 5: Retrieval-pattern matching\n\nChoosing the right archive tier depends on retrieval frequency and\nlatency tolerance.\n\n→ Archive tier comparison table moved to [references\u002Fs3-pricing-and-storage-classes.md](references\u002Fs3-pricing-and-storage-classes.md); the detection gate below carries the decisions.\n\n\n→ Retrieval cost surprise math moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n\n**Retrieval-mismatch detection gate:**\n| Observed monthly retrieval rate | Recommendation |\n|---|---|\n| \u003C1% of archive retrieved | Deep Archive is appropriate |\n| 1-5% of archive retrieved | Glacier Flexible is appropriate |\n| 5-10% of archive retrieved | Glacier IR is appropriate |\n| >10% of archive retrieved | Move back to Standard-IA or Standard (retrieval cost exceeds savings) |\n\n### Step 6: S3 Batch Operations for bulk class migration\n\nLifecycle policies only affect objects prospectively. To migrate\nexisting objects to a cheaper tier immediately, use S3 Batch Operations.\n\n→ Batch Operations COPY commands moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n\n**Cost:** $0.25 per million objects. For 10M objects: $2.50 — negligible\nvs monthly savings. Use Batch Ops for immediate migration of existing\nobjects; use lifecycle for future objects.\n\n### Step 7: Impact estimation\n\nCompute the monthly savings for each recommendation:\n\n→ Impact-estimation formulas moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n\nAlways state assumptions: TB per class, transition timing, retrieval\nrate, pricing region, Intelligent-Tiering monitoring fee.\n\n### Step 8: Final verdict\n\n- Any dimension recommends a change → **FURTHER_OPTIMIZATION_AVAILABLE**.\n- All dimensions pass (lifecycle deployed, versioning rules active,\n  no retrieval mismatch, no IA mismatch) → **ALREADY_OPTIMAL**.\n- Change applied and verified this session → **OPTIMIZED**.\n- Data insufficient (Storage Lens absent, window \u003C 30 days) →\n  **NEED_MORE_INFO**.\n\nNever emit `FURTHER_OPTIMIZATION_AVAILABLE` without first discharging\nevery `NEED_MORE_INFO`\u002F`BLOCKED` gate.\n\n## Output format\n\n```text\nTARGET: \u003Cbucket-name>\nVERDICT: OPTIMIZED | FURTHER_OPTIMIZATION_AVAILABLE | ALREADY_OPTIMAL\nREASON: \u003C1-2 sentences naming the recommendation and the supporting data>\nRECOMMENDATION:\n  Current: \u003CTB by class>, \u003Cversioning status>, \u003Clifecycle status>, \u003CIT status>\n  Proposed: \u003CTB by class after changes>, \u003Cnew lifecycle rules>, \u003CIT config>\n  Dimensions changed: \u003Clifecycle | intelligent-tiering | versioning | retrieval | batch-migration>\n  Confidence: \u003CHIGH\u002FMEDIUM\u002FLOW> — \u003Cone-line rationale>\nESTIMATED_SAVINGS:\n  Monthly: $\u003Camount>\n  Annual: $\u003Camount>\n  Assumptions: \u003Clist (TB per class, retrieval rate, pricing region, etc.)>\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 \u003Cbucket-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. Violating any one produces a\nmisclassification or an arithmetic contradiction that breaks downstream\nFinOps automation. Self-check EVERY emitted block against these rules\nbefore returning the response.\n\n### Required output structure\n\nEvery response MUST be a single block using these literal labels, in\nthis order. Do NOT substitute markdown headings, camelCase, or bold\nvariants.\n\n```text\nTARGET: \u003Cbucket-name>\nVERDICT: OPTIMIZED | FURTHER_OPTIMIZATION_AVAILABLE | ALREADY_OPTIMAL\nREASON: \u003C1-2 sentences naming the recommendation and the supporting data>\nRECOMMENDATION:\n  Current: \u003CTB by class>, \u003Cversioning>, \u003Clifecycle>, \u003CIT config>\n  Proposed: \u003CTB by class>, \u003Cnew lifecycle>, \u003Cnew IT config>\n  Dimensions changed: \u003Clifecycle | intelligent-tiering | versioning | retrieval | batch-migration>\n  Dimensions checked: \u003Clist ALL five, each ✓ (no finding) or → (finding)>\n  Confidence: \u003CHIGH\u002FMEDIUM\u002FLOW> — \u003Cone-line rationale>\nESTIMATED_SAVINGS:\n  Current monthly: $\u003Camount>    ← MUST show per-class subtotals\n  Projected monthly: $\u003Camount>\n  Monthly saving: $\u003Camount>     ← MUST equal Current − Projected, 2 decimals\n  Annual saving: $\u003Camount>      ← MUST equal Monthly × 12\nMIGRATION_STEPS:\n  1. \u003Cspecific action with CLI command>\n  2. \u003Cverification step>\nCONFIRM: \u003Cconfirmation prompt text>\n```\n\n### FORBIDDEN output patterns\n\n1. **NEVER emit `VERDICT: FURTHER_OPTIMIZATION_AVAILABLE` with\n   `Monthly saving: $0.00`.** If every dimension nets zero cost delta,\n   the verdict MUST be `ALREADY_OPTIMAL`.\n\n2. **NEVER show savings math that does not balance.**\n   `Current monthly − Projected monthly` MUST equal `Monthly saving`,\n   rounded to 2 decimal places.\n\n3. **NEVER emit scratch lines** (\"WAIT — recompute\", \"Hmm, let me redo\",\n   \"corrected:\") in the output. Finalize the math before emitting.\n\n4. **NEVER recommend a lifecycle transition without citing Storage\n   Lens or object-age evidence.** The REASON MUST name the evidence\n   source (Storage Lens age band, CE usage type, object sampling).\n\n5. **NEVER omit a dimension from the RECOMMENDATION block.** The\n   `Dimensions checked` line MUST list all five dimensions, each marked\n   ✓ (no finding) or → (finding).\n\n6. **NEVER recommend Deep Archive without stating the retrieval cost\n   risk.** The REASON or ASSUMPTIONS MUST include retrieval-rate\n   context and minimum 180-day storage duration.\n\n7. **NEVER round intermediate formula steps differently from the final\n   figure.** Compute at full precision, round only the displayed result.\n\n### Perfect example output — FURTHER_OPTIMIZATION_AVAILABLE\n\nEvery field below is internally consistent. Copy this shape exactly.\n\n```text\nTARGET: data-lake-raw-prod\nVERDICT: FURTHER_OPTIMIZATION_AVAILABLE\nREASON: 45 TB bucket with 32 TB (71%) in Standard despite 13 TB being\n  >365 days old (Storage Lens confirms \u003C1% retrieval after 90 days).\n  No lifecycle policy. Versioning enabled but no noncurrent-version\n  rules, contributing 4 TB of bloat. Deploying 4-tier lifecycle +\n  noncurrent rules + Batch Ops saves $692.34\u002Fmonth.\nRECOMMENDATION:\n  Current: Standard 32 TB, IA 8 TB, Glacier 3 TB, DA 2 TB; no lifecycle\n  Proposed: Standard 12 TB, IA 4 TB, GIR 6 TB, Glacier 3 TB, DA 20 TB; lifecycle active\n  Dimensions changed: lifecycle (Step 1) + versioning (Step 4) + batch-migration (Step 6)\n  Dimensions checked: lifecycle → (deploy)  intelligent-tiering ✓ (predictable)\n    versioning → (add noncurrent rules)  retrieval → (verified \u003C1%)  batch-migration → (7 TB)\n  Confidence: HIGH — Storage Lens 90-day window confirms age distribution.\nESTIMATED_SAVINGS:\n  Current monthly: $1,035.00\n    Standard 32 TB × $23 = $736.00; IA 8 TB × $12.50 = $100.00\n    Glacier 3 TB × $3.60 = $10.80; DA 2 TB × $0.99 = $1.98; Noncurrent ~4 TB = $92.00\n  Projected monthly: $342.66\n    Standard 12 TB × $23 = $276.00; IA 4 TB × $12.50 = $50.00\n    GIR 6 TB × $4.00 = $24.00; Glacier 3 TB × $3.60 = $10.80\n    DA 20 TB × $0.99 = $19.80; Noncurrent 0.5 TB IA = $6.25; Batch $0.21\n  Monthly saving: $692.34 ($1,035.00 − $342.66 ✓)\n  Annual saving: $8,308.08\n  Retrieval risk: at \u003C1% retrieval of 20 TB DA, retrieval cost ~$1.00\u002Fmo (bulk).\nMIGRATION_STEPS:\n  1. Deploy lifecycle policy:\n     aws s3api put-bucket-lifecycle-configuration --bucket data-lake-raw-prod \\\n       --lifecycle-configuration file:\u002F\u002Flifecycle.json\n  2. Add noncurrent-version transitions (keep 3 versions) to the same policy.\n  3. Run S3 Batch Operations to migrate 7 TB aged objects to Deep Archive (~$2.50).\n  4. Verify via Storage Lens after 7 days; monitor retrieval via CE for 30 days.\nCONFIRM: About to put-bucket-lifecycle-configuration on data-lake-raw-prod\n  (4-tier lifecycle + noncurrent rules + Batch Ops for 7 TB).\n  Monthly saving $692.34 (66.9%); retrieval risk \u003C1%. Proceed? (yes\u002Fno)\n```\n\n**Self-check before emit:**\n- [ ] `Current monthly − Projected monthly == Monthly saving` (2 decimals)?\n- [ ] `Monthly saving × 12 == Annual saving`?\n- [ ] All five dimensions listed in `Dimensions checked`?\n- [ ] Every `→` dimension has a corresponding MIGRATION_STEPS entry?\n- [ ] Retrieval-cost risk stated if recommending any archive tier?\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, savings-bearing recommendation. |\n| `OPTIMIZED` | A change was applied and verified this session; Storage Lens confirms the new class distribution. |\n| `ALREADY_OPTIMAL` | All dimensions pass (lifecycle deployed, versioning rules active, no retrieval mismatch, no IA mismatch). |\n| `NEED_MORE_INFO` | Data gate failed: Storage Lens absent, window \u003C 30 days, or CE data unavailable. |\n| `BLOCKED` | Hard precondition prevents evaluation: Object Lock active, bucket in another account. |\n\n**Zero-savings rule:** If MONTHLY_SAVING == $0.00 for every dimension,\nverdict MUST be `ALREADY_OPTIMAL`, never `FURTHER_OPTIMIZATION_AVAILABLE`.\n\n## Anti-Patterns — NEVER (top 5)\n\n1. **NEVER recommend Deep Archive without stating the 180-day minimum\n   storage duration and the retrieval cost.** An object deleted from\n   Deep Archive before 180 days incurs a prorated charge. A surprise\n   retrieval can cost more than the storage saved.\n\n2. **NEVER recommend Standard-IA for objects accessed more than twice\n   per month.** IA charges $0.01\u002FGB retrieval. At 2 accesses\u002Fmonth of\n   a 1 MB object: $0.00002 storage saving vs $0.00002 retrieval cost\n   — breakeven. Above 2 accesses, Standard is cheaper.\n\n3. **NEVER enable Intelligent-Tiering on buckets \u003C 1 TB without\n   warning that the monitoring fee may exceed savings.** The $2.50\u002FTB-\n   month fee on 0.5 TB is $1.25\u002Fmonth — if the savings from auto-\n   tiering are \u003C $1.25, IT loses money.\n\n4. **NEVER deploy a lifecycle policy with a transition that violates\n   the minimum-days constraint.** S3 silently ignores transitions that\n   don't meet the minimum age. The policy will appear active but no\n   objects will transition.\n\n5. **NEVER recommend One Zone-IA for compliance or irreplaceable data.**\n   One Zone-IA stores data in a single AZ. An AZ failure means data\n   loss. Use only for reproducible or transient data.\n\nExtended anti-patterns in `references\u002Fs3-pricing-and-storage-classes.md`.\n\n## Pre-flight safety checks (run before any remediation CLI)\n\n→ Pre-flight safety checklist moved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\n\n## Recent AWS features (2024-2026)\n\n→ Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — recent AWS features (2024-2026).\n\n\n## References\n\n- `references\u002Fs3-pricing-and-storage-classes.md` — pricing tables,\n  minimum-days matrix, Intelligent-Tiering configuration, Batch\n  Operations guide, extended NEVER list, regional pricing multipliers.\n- `references\u002Fworked-examples.md` — full worked examples (lifecycle\n  deployment, Intelligent-Tiering activation, versioning bloat, already-\n  optimal, NEED_MORE_INFO, end-to-end walkthrough).\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — mindset deep dive, dependency-graph diagram, Step 0 gotchas, step templates\u002Fformulas, recent AWS features.\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — data-gate CLI sources and pre-remediation safety checks.\n- [references\u002Fs3-pricing-and-storage-classes.md](references\u002Fs3-pricing-and-storage-classes.md) — pre-existing; pricing tables and minimum-days matrix; extended with the archive tier comparison.\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — pre-existing; full worked examples and the end-to-end walkthrough.\n\n## Domain\n\nAWS CloudOps \u002F S3 Storage Cost Optimization & FinOps.\n\n## AWS documentation\n\n- **Amazon S3 Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002FWelcome.html\n- **Amazon S3 pricing** — https:\u002F\u002Faws.amazon.com\u002Fs3\u002Fpricing\u002F\n- **S3 lifecycle configuration** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fobject-lifecycle-mgmt.html\n- **S3 Intelligent-Tiering** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fstorage-class-intro.html#sc-dynamic-data-access\n- **S3 Storage Lens** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fstorage_lens_basics_metrics.html\n- **S3 Batch Operations** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fbatch-ops.html\n- **S3 versioning** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002FVersioning.html\n- **S3 Glacier retrieval options** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Farchived-objects.html\n- **AWS CLI S3 reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fs3api\u002F\n- **AWS Well-Architected Framework — Cost Optimization** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fwellarchitected\u002Flatest\u002Fcost-optimization-pillar\u002Fwelcome.html\n","# S3 Storage Class Optimizer\n\n## What this skill does\n\nTranslates an S3 bucket's storage-class distribution and object-age\nprofile into a concrete cost-optimization recommendation with a\ndollar-denominated per-TB savings estimate. The verdict is the\nhighest-leverage action across six dimensions — lifecycle policy,\nIntelligent-Tiering, Storage Lens analysis, versioning cost,\nretrieval-pattern matching, and Batch Operations migration — applied\nin priority order. Always pairs the recommendation with exact CLI\ncommands.\n\n## Quick navigation\n\n| Section | What it covers | When to jump here |\n|---|---|---|\n| Quick start | Four headline rules and the cost formula | First read |\n| Mindset | Why lifecycle + Intelligent-Tiering is the #1 lever | Understanding the approach |\n| Quick reference — verdict thresholds | Decision matrix at a glance | Classifying a bucket |\n| Pre-flight data gate | Storage Lens, Cost Explorer, lifecycle config | Before any recommendation |\n| Step 0 non-obvious behaviours | Min-days constraints, retrieval surprises | Edge cases |\n| Step 1 Lifecycle policies | Standard to IA to Glacier to Deep Archive | The headline savings dimension |\n| Step 2 Intelligent-Tiering | Archive Access, Deep Archive Access tiers | Unknown access patterns |\n| Step 3 Storage Lens analysis | Object-age distribution, prefix grouping | Data-driven tiering |\n| Step 4 Versioning cost impact | Noncurrent objects, delete markers | Versioned buckets |\n| Step 5 Retrieval-pattern matching | Glacier Instant vs Flexible vs Deep Archive | Archive strategy |\n| Step 6 S3 Batch Operations | Bulk class migration | Implementing the change |\n| Step 7 Impact estimation | Per-TB cost formula and worked math | 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, MFA delete, rollback | Before any apply CLI |\n\n## Quick start\n\n- **Lifecycle is the #1 lever.** S3 Standard costs $23\u002FTB-month; Deep\n  Archive costs $0.99\u002FTB-month — a 23x difference. If >365-day-old\n  objects are sitting in Standard with \u003C1% retrieval, lifecycle them\n  to Deep Archive immediately.\n- **Cost formula (memorise this):**\n  `monthly_cost = storage_TB × $\u002FTB-month`\n  The savings from a tier transition:\n  `savings = affected_TB × (old_rate − new_rate)`\n- **Intelligent-Tiering eliminates guessing.** For buckets with\n  unpredictable access patterns, enable Intelligent-Tiering ($2.50\u002FTB-\n  month monitoring fee) instead of hand-crafting lifecycle rules. It\n  auto-moves objects to Archive Access after 90 days and Deep Archive\n  Access after 180 days with zero retrieval surprises.\n- **Retrieval cost is the gotcha.** Glacier Flexible Retrieval charges\n  $0.03\u002FGB for standard retrieval (1-5 min) and $0.10\u002FGB for bulk (5-12\n  h). Deep Archive charges $0.02\u002FGB for standard (12h) and $0.0025\u002FGB\n  for bulk (48h). A single 1 TB bulk retrieval from Deep Archive costs\n  $2.50 — cheap. But a 1 TB expedited retrieval from Flexible costs\n  $100. Always surface retrieval cost risk before recommending archive.\n\n## Mindset\n\n→ Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — the four principles behind every recommendation.\n\n\n## Quick reference — verdict thresholds\n\n| Observation (30-day Storage Lens window) | Verdict | Recommendation |\n|---|---|---|\n| No lifecycle policy AND objects >30 days in Standard > 20% of bucket | **FURTHER_OPTIMIZATION_AVAILABLE** (lifecycle) | Step 1 — deploy lifecycle: Standard→IA at 30d,→Glacier Instant at 90d,→Deep Archive at 180d |\n| No Intelligent-Tiering AND access pattern is unpredictable (mixed ages with sporadic reads) | **FURTHER_OPTIMIZATION_AVAILABLE** (Intelligent-Tiering) | Step 2 — enable Intelligent-Tiering with Archive Access at 90d, Deep Archive Access at 180d |\n| Versioning Enabled AND no noncurrent-version lifecycle AND noncurrent versions > 10% of bucket size | **FURTHER_OPTIMIZATION_AVAILABLE** (versioning) | Step 4 — add noncurrent-version transitions + expirations |\n| Objects in Glacier Flexible\u002FDeep Archive AND retrieval rate > 10% of archive per month | **FURTHER_OPTIMIZATION_AVAILABLE** (retrieval mismatch) | Step 5 — evaluate Glacier Instant Retrieval or move back to Standard-IA |\n| Objects in Standard-IA accessed > 2x\u002Fmonth | **FURTHER_OPTIMIZATION_AVAILABLE** (IA mismatch) | Step 5 — move accessed objects back to Standard (IA retrieval fee exceeds storage delta) |\n| Lifecycle policy deployed AND Intelligent-Tiering on mixed-pattern prefixes AND versioning rules active AND no retrieval mismatch | **ALREADY_OPTIMAL** | None — continue monitoring |\n| Storage Lens data absent or Cost Explorer window \u003C 30 days | **NEED_MORE_INFO** | Pull 30-day Storage Lens + CE data, re-evaluate |\n| Lifecycle policy deployed AND verified via post-change Storage Lens this session | **OPTIMIZED** | Emit post-state verification |\n\n## Pre-flight: data gate (run before any optimization decision)\n\nOptimization decisions require object-age distribution and cost\nbreakdown. Pull these before any recommendation. Full CLI sequences\nare in `references\u002Fs3-pricing-and-storage-classes.md`.\n\n→ Data-source CLI listing moved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md); the short-circuit table below is the gate itself.\n\n\n### Data-quality short-circuits\n\n| Condition | Effect on optimization |\n|---|---|\n| Storage Lens not enabled | **NEED_MORE_INFO**. Enable S3 Storage Lens (free tier) or fall back to Cost Explorer + object sampling. |\n| Cost Explorer `GetCostAndUsage` returns empty for S3 | Bucket may be in free tier or CE not enabled. Proceed with Storage Lens only; MEDIUM confidence. |\n| Bucket empty (`ObjectCount = 0`) | **ALREADY_OPTIMAL** with note \"empty bucket.\" |\n| Object-age data \u003C 30 days | **NEED_MORE_INFO**. Minimum 30-day window; 90 days preferred for lifecycle timing. |\n| Lifecycle config is `NoSuchLifecycleConfiguration` | No policy — proceed to Step 1. This is the most common finding. |\n| Versioning `Status != Enabled` AND noncurrent versions present | Impossible state; verify with `list-object-versions`. |\n| Bucket has Object Lock enabled | Lifecycle expiration is blocked for locked objects. Factor into recommendations. |\n\nWhen Storage Lens and Cost Explorer disagree, Storage Lens wins for\nobject-age and class distribution; Cost Explorer wins for dollar\namounts. Reconcile by cross-referencing class distribution with CE\nusage types.\n\n## Configuration dependency graph\n\n→ Dependency-graph diagram moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md); the dependency rule below is the gate.\n\n\n**Dependency rule:** Never recommend a lifecycle transition without\nfirst verifying the retrieval pattern (Step 5 gate). A bucket with\nhigh archive retrieval should NOT be pushed deeper into archive tiers.\n\n## Process — Optimization logic (apply in order)\n\n### Step 0: Non-obvious behaviours that change the recommendation\n\n→ Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — non-obvious behaviours deep dive.\n\n\n### Step 1: Lifecycle policy configuration (the #1 lever)\n\nLifecycle policies automate object transitions between storage classes\nbased on age. This is the highest-impact S3 cost optimization.\n\n→ Lifecycle JSON template and minimum-days matrix moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md); the decision gate below carries every branch.\n\n\n**Decision gate:**\n\n| Object-age profile (from Storage Lens) | Lifecycle recommendation |\n|---|---|\n| >20% of objects aged >30 days still in Standard | Transition to Standard-IA at 30d |\n| >15% of objects aged >90 days with infrequent access | Transition to Glacier IR at 90d |\n| >10% of objects aged >180 days with \u003C1% retrieval | Transition to Deep Archive at 180d |\n| Objects aged >2555 days (7+ years) | Expiration if compliance permits |\n\n→ Savings formulas moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n\n### Step 2: Intelligent-Tiering configuration\n\nIntelligent-Tiering automatically moves objects between access tiers\nbased on usage patterns. It eliminates the need to predict access\nfrequency.\n\n**When Intelligent-Tiering wins over lifecycle:**\n\n| Scenario | Why Intelligent-Tiering |\n|---|---|\n| Access pattern is unpredictable (user uploads, shared docs) | Lifecycle can't adapt; IT monitors per-object |\n| Mixed-age objects with sporadic reads | Lifecycle would misclassify active old objects |\n| Small team \u002F no bandwidth to tune lifecycle rules | IT is set-and-forget |\n| Bucket has diverse prefixes with different patterns | IT operates per-object, not per-prefix |\n\n**When lifecycle wins over Intelligent-Tiering:**\n\n| Scenario | Why lifecycle |\n|---|---|\n| Predictable write-once-read-never (logs, backups) | No monitoring fee ($2.50\u002FTB-mo saved) |\n| Bucket \u003C 1 TB | Monitoring fee exceeds savings |\n| Regulatory retention with known expiry | Explicit expiration rule required |\n\n→ Intelligent-Tiering CLI, tier configuration, and the 50 TB cost comparison moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n\n### Step 3: Storage Lens analysis and prefix-based grouping\n\nStorage Lens provides bucket-level and prefix-level object-age\ndistribution, storage-class breakdown, and activity metrics. Use it\nto drive data-driven tiering decisions.\n\n**Key Storage Lens metrics for optimization:**\n\n| Metric | What it reveals | Optimization signal |\n|---|---|---|\n| ObjectCount by age band | How many objects are old | Age drives lifecycle timing |\n| StorageBytes by age band | How much storage is old | TB drives savings magnitude |\n| NoncurrentVersionStorageBytes | Versioning bloat | If > 10% of current, add noncurrent rules |\n| GetObject count by age | Which objects are still accessed | Old objects with high GETs should NOT be archived |\n| DeleteMarkerCount | Delete marker accumulation | Schedule cleanup if > 100K |\n| IncompleteMultipartUploadStorageBytes | Aborted multipart uploads | Add abort rule to reclaim storage |\n| BytesDownloaded by class | Retrieval volume by class | Glacier\u002FDA downloads reveal retrieval cost risk |\n\n→ Prefix-grouping example moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n\n### Step 4: Versioning cost impact\n\nVersioning retains every prior object version. Without lifecycle rules\non noncurrent versions, storage grows unbounded.\n\n**Detection:**\n```\nnoncurrent_pct = NoncurrentVersionStorageBytes \u002F\n                 (NoncurrentVersionStorageBytes + CurrentVersionStorageBytes)\n\nIf noncurrent_pct > 10% → versioning bloat finding\n```\n\n→ Noncurrent-version lifecycle template moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n\nKeeps the 3 most recent noncurrent versions; transitions older ones to\ncheaper tiers; expires after 365 days.\n\n→ Delete-marker cleanup command moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n\n### Step 5: Retrieval-pattern matching\n\nChoosing the right archive tier depends on retrieval frequency and\nlatency tolerance.\n\n→ Archive tier comparison table moved to [references\u002Fs3-pricing-and-storage-classes.md](references\u002Fs3-pricing-and-storage-classes.md); the detection gate below carries the decisions.\n\n\n→ Retrieval cost surprise math moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n\n**Retrieval-mismatch detection gate:**\n| Observed monthly retrieval rate | Recommendation |\n|---|---|\n| \u003C1% of archive retrieved | Deep Archive is appropriate |\n| 1-5% of archive retrieved | Glacier Flexible is appropriate |\n| 5-10% of archive retrieved | Glacier IR is appropriate |\n| >10% of archive retrieved | Move back to Standard-IA or Standard (retrieval cost exceeds savings) |\n\n### Step 6: S3 Batch Operations for bulk class migration\n\nLifecycle policies only affect objects prospectively. To migrate\nexisting objects to a cheaper tier immediately, use S3 Batch Operations.\n\n→ Batch Operations COPY commands moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n\n**Cost:** $0.25 per million objects. For 10M objects: $2.50 — negligible\nvs monthly savings. Use Batch Ops for immediate migration of existing\nobjects; use lifecycle for future objects.\n\n### Step 7: Impact estimation\n\nCompute the monthly savings for each recommendation:\n\n→ Impact-estimation formulas moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n\nAlways state assumptions: TB per class, transition timing, retrieval\nrate, pricing region, Intelligent-Tiering monitoring fee.\n\n### Step 8: Final verdict\n\n- Any dimension recommends a change → **FURTHER_OPTIMIZATION_AVAILABLE**.\n- All dimensions pass (lifecycle deployed, versioning rules active,\n  no retrieval mismatch, no IA mismatch) → **ALREADY_OPTIMAL**.\n- Change applied and verified this session → **OPTIMIZED**.\n- Data insufficient (Storage Lens absent, window \u003C 30 days) →\n  **NEED_MORE_INFO**.\n\nNever emit `FURTHER_OPTIMIZATION_AVAILABLE` without first discharging\nevery `NEED_MORE_INFO`\u002F`BLOCKED` gate.\n\n## Output format\n\n```text\nTARGET: \u003Cbucket-name>\nVERDICT: OPTIMIZED | FURTHER_OPTIMIZATION_AVAILABLE | ALREADY_OPTIMAL\nREASON: \u003C1-2 sentences naming the recommendation and the supporting data>\nRECOMMENDATION:\n  Current: \u003CTB by class>, \u003Cversioning status>, \u003Clifecycle status>, \u003CIT status>\n  Proposed: \u003CTB by class after changes>, \u003Cnew lifecycle rules>, \u003CIT config>\n  Dimensions changed: \u003Clifecycle | intelligent-tiering | versioning | retrieval | batch-migration>\n  Confidence: \u003CHIGH\u002FMEDIUM\u002FLOW> — \u003Cone-line rationale>\nESTIMATED_SAVINGS:\n  Monthly: $\u003Camount>\n  Annual: $\u003Camount>\n  Assumptions: \u003Clist (TB per class, retrieval rate, pricing region, etc.)>\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 \u003Cbucket-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. Violating any one produces a\nmisclassification or an arithmetic contradiction that breaks downstream\nFinOps automation. Self-check EVERY emitted block against these rules\nbefore returning the response.\n\n### Required output structure\n\nEvery response MUST be a single block using these literal labels, in\nthis order. Do NOT substitute markdown headings, camelCase, or bold\nvariants.\n\n```text\nTARGET: \u003Cbucket-name>\nVERDICT: OPTIMIZED | FURTHER_OPTIMIZATION_AVAILABLE | ALREADY_OPTIMAL\nREASON: \u003C1-2 sentences naming the recommendation and the supporting data>\nRECOMMENDATION:\n  Current: \u003CTB by class>, \u003Cversioning>, \u003Clifecycle>, \u003CIT config>\n  Proposed: \u003CTB by class>, \u003Cnew lifecycle>, \u003Cnew IT config>\n  Dimensions changed: \u003Clifecycle | intelligent-tiering | versioning | retrieval | batch-migration>\n  Dimensions checked: \u003Clist ALL five, each ✓ (no finding) or → (finding)>\n  Confidence: \u003CHIGH\u002FMEDIUM\u002FLOW> — \u003Cone-line rationale>\nESTIMATED_SAVINGS:\n  Current monthly: $\u003Camount>    ← MUST show per-class subtotals\n  Projected monthly: $\u003Camount>\n  Monthly saving: $\u003Camount>     ← MUST equal Current − Projected, 2 decimals\n  Annual saving: $\u003Camount>      ← MUST equal Monthly × 12\nMIGRATION_STEPS:\n  1. \u003Cspecific action with CLI command>\n  2. \u003Cverification step>\nCONFIRM: \u003Cconfirmation prompt text>\n```\n\n### FORBIDDEN output patterns\n\n1. **NEVER emit `VERDICT: FURTHER_OPTIMIZATION_AVAILABLE` with\n   `Monthly saving: $0.00`.** If every dimension nets zero cost delta,\n   the verdict MUST be `ALREADY_OPTIMAL`.\n\n2. **NEVER show savings math that does not balance.**\n   `Current monthly − Projected monthly` MUST equal `Monthly saving`,\n   rounded to 2 decimal places.\n\n3. **NEVER emit scratch lines** (\"WAIT — recompute\", \"Hmm, let me redo\",\n   \"corrected:\") in the output. Finalize the math before emitting.\n\n4. **NEVER recommend a lifecycle transition without citing Storage\n   Lens or object-age evidence.** The REASON MUST name the evidence\n   source (Storage Lens age band, CE usage type, object sampling).\n\n5. **NEVER omit a dimension from the RECOMMENDATION block.** The\n   `Dimensions checked` line MUST list all five dimensions, each marked\n   ✓ (no finding) or → (finding).\n\n6. **NEVER recommend Deep Archive without stating the retrieval cost\n   risk.** The REASON or ASSUMPTIONS MUST include retrieval-rate\n   context and minimum 180-day storage duration.\n\n7. **NEVER round intermediate formula steps differently from the final\n   figure.** Compute at full precision, round only the displayed result.\n\n### Perfect example output — FURTHER_OPTIMIZATION_AVAILABLE\n\nEvery field below is internally consistent. Copy this shape exactly.\n\n```text\nTARGET: data-lake-raw-prod\nVERDICT: FURTHER_OPTIMIZATION_AVAILABLE\nREASON: 45 TB bucket with 32 TB (71%) in Standard despite 13 TB being\n  >365 days old (Storage Lens confirms \u003C1% retrieval after 90 days).\n  No lifecycle policy. Versioning enabled but no noncurrent-version\n  rules, contributing 4 TB of bloat. Deploying 4-tier lifecycle +\n  noncurrent rules + Batch Ops saves $692.34\u002Fmonth.\nRECOMMENDATION:\n  Current: Standard 32 TB, IA 8 TB, Glacier 3 TB, DA 2 TB; no lifecycle\n  Proposed: Standard 12 TB, IA 4 TB, GIR 6 TB, Glacier 3 TB, DA 20 TB; lifecycle active\n  Dimensions changed: lifecycle (Step 1) + versioning (Step 4) + batch-migration (Step 6)\n  Dimensions checked: lifecycle → (deploy)  intelligent-tiering ✓ (predictable)\n    versioning → (add noncurrent rules)  retrieval → (verified \u003C1%)  batch-migration → (7 TB)\n  Confidence: HIGH — Storage Lens 90-day window confirms age distribution.\nESTIMATED_SAVINGS:\n  Current monthly: $1,035.00\n    Standard 32 TB × $23 = $736.00; IA 8 TB × $12.50 = $100.00\n    Glacier 3 TB × $3.60 = $10.80; DA 2 TB × $0.99 = $1.98; Noncurrent ~4 TB = $92.00\n  Projected monthly: $342.66\n    Standard 12 TB × $23 = $276.00; IA 4 TB × $12.50 = $50.00\n    GIR 6 TB × $4.00 = $24.00; Glacier 3 TB × $3.60 = $10.80\n    DA 20 TB × $0.99 = $19.80; Noncurrent 0.5 TB IA = $6.25; Batch $0.21\n  Monthly saving: $692.34 ($1,035.00 − $342.66 ✓)\n  Annual saving: $8,308.08\n  Retrieval risk: at \u003C1% retrieval of 20 TB DA, retrieval cost ~$1.00\u002Fmo (bulk).\nMIGRATION_STEPS:\n  1. Deploy lifecycle policy:\n     aws s3api put-bucket-lifecycle-configuration --bucket data-lake-raw-prod \\\n       --lifecycle-configuration file:\u002F\u002Flifecycle.json\n  2. Add noncurrent-version transitions (keep 3 versions) to the same policy.\n  3. Run S3 Batch Operations to migrate 7 TB aged objects to Deep Archive (~$2.50).\n  4. Verify via Storage Lens after 7 days; monitor retrieval via CE for 30 days.\nCONFIRM: About to put-bucket-lifecycle-configuration on data-lake-raw-prod\n  (4-tier lifecycle + noncurrent rules + Batch Ops for 7 TB).\n  Monthly saving $692.34 (66.9%); retrieval risk \u003C1%. Proceed? (yes\u002Fno)\n```\n\n**Self-check before emit:**\n- [ ] `Current monthly − Projected monthly == Monthly saving` (2 decimals)?\n- [ ] `Monthly saving × 12 == Annual saving`?\n- [ ] All five dimensions listed in `Dimensions checked`?\n- [ ] Every `→` dimension has a corresponding MIGRATION_STEPS entry?\n- [ ] Retrieval-cost risk stated if recommending any archive tier?\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, savings-bearing recommendation. |\n| `OPTIMIZED` | A change was applied and verified this session; Storage Lens confirms the new class distribution. |\n| `ALREADY_OPTIMAL` | All dimensions pass (lifecycle deployed, versioning rules active, no retrieval mismatch, no IA mismatch). |\n| `NEED_MORE_INFO` | Data gate failed: Storage Lens absent, window \u003C 30 days, or CE data unavailable. |\n| `BLOCKED` | Hard precondition prevents evaluation: Object Lock active, bucket in another account. |\n\n**Zero-savings rule:** If MONTHLY_SAVING == $0.00 for every dimension,\nverdict MUST be `ALREADY_OPTIMAL`, never `FURTHER_OPTIMIZATION_AVAILABLE`.\n\n## Anti-Patterns — NEVER (top 5)\n\n1. **NEVER recommend Deep Archive without stating the 180-day minimum\n   storage duration and the retrieval cost.** An object deleted from\n   Deep Archive before 180 days incurs a prorated charge. A surprise\n   retrieval can cost more than the storage saved.\n\n2. **NEVER recommend Standard-IA for objects accessed more than twice\n   per month.** IA charges $0.01\u002FGB retrieval. At 2 accesses\u002Fmonth of\n   a 1 MB object: $0.00002 storage saving vs $0.00002 retrieval cost\n   — breakeven. Above 2 accesses, Standard is cheaper.\n\n3. **NEVER enable Intelligent-Tiering on buckets \u003C 1 TB without\n   warning that the monitoring fee may exceed savings.** The $2.50\u002FTB-\n   month fee on 0.5 TB is $1.25\u002Fmonth — if the savings from auto-\n   tiering are \u003C $1.25, IT loses money.\n\n4. **NEVER deploy a lifecycle policy with a transition that violates\n   the minimum-days constraint.** S3 silently ignores transitions that\n   don't meet the minimum age. The policy will appear active but no\n   objects will transition.\n\n5. **NEVER recommend One Zone-IA for compliance or irreplaceable data.**\n   One Zone-IA stores data in a single AZ. An AZ failure means data\n   loss. Use only for reproducible or transient data.\n\nExtended anti-patterns in `references\u002Fs3-pricing-and-storage-classes.md`.\n\n## Pre-flight safety checks (run before any remediation CLI)\n\n→ Pre-flight safety checklist moved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\n\n## Recent AWS features (2024-2026)\n\n→ Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — recent AWS features (2024-2026).\n\n\n## References\n\n- `references\u002Fs3-pricing-and-storage-classes.md` — pricing tables,\n  minimum-days matrix, Intelligent-Tiering configuration, Batch\n  Operations guide, extended NEVER list, regional pricing multipliers.\n- `references\u002Fworked-examples.md` — full worked examples (lifecycle\n  deployment, Intelligent-Tiering activation, versioning bloat, already-\n  optimal, NEED_MORE_INFO, end-to-end walkthrough).\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — mindset deep dive, dependency-graph diagram, Step 0 gotchas, step templates\u002Fformulas, recent AWS features.\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — data-gate CLI sources and pre-remediation safety checks.\n- [references\u002Fs3-pricing-and-storage-classes.md](references\u002Fs3-pricing-and-storage-classes.md) — pre-existing; pricing tables and minimum-days matrix; extended with the archive tier comparison.\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — pre-existing; full worked examples and the end-to-end walkthrough.\n\n## Domain\n\nAWS CloudOps \u002F S3 Storage Cost Optimization & FinOps.\n\n## AWS documentation\n\n- **Amazon S3 Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002FWelcome.html\n- **Amazon S3 pricing** — https:\u002F\u002Faws.amazon.com\u002Fs3\u002Fpricing\u002F\n- **S3 lifecycle configuration** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fobject-lifecycle-mgmt.html\n- **S3 Intelligent-Tiering** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fstorage-class-intro.html#sc-dynamic-data-access\n- **S3 Storage Lens** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fstorage_lens_basics_metrics.html\n- **S3 Batch Operations** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fbatch-ops.html\n- **S3 versioning** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002FVersioning.html\n- **S3 Glacier retrieval options** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Farchived-objects.html\n- **AWS CLI S3 reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fs3api\u002F\n- **AWS Well-Architected Framework — Cost Optimization** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fwellarchitected\u002Flatest\u002Fcost-optimization-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},"s3, storage, cost-optimization, finops, lifecycle, intelligent-tiering, glacier","3","Jacky Chan — AWS Community Builder","aws-cloudops","Storage","0.1.0","S3, storage class, lifecycle policy, Intelligent-Tiering, Glacier, Deep Archive, Standard-IA, Glacier Instant Retrieval, Storage Lens, object age, versioning cost, noncurrent objects, S3 Batch Operations, cost optimization, FinOps, prefix grouping, MFA delete, delete markers, storage cost, per TB","optimize","medium","false","capability","Optimising S3 storage cost, deploying lifecycle policies, evaluating Intelligent-Tiering activation, analysing Storage Lens object-age distribution, diagnosing versioning bloat, choosing Glacier Instant vs Flexible vs Deep Archive, planning S3 Batch Operations for class migration, or running a storage FinOps review.","true","OPTIMIZED | FURTHER_OPTIMIZATION_AVAILABLE","S3 security or access-control auditing (use the S3 auditor skill), S3 performance optimisation for latency-sensitive workloads (Transfer Acceleration, CloudFront — use the CDN skills), or EBS volume cost optimisation (use ebs-volume-optimizer). This skill focuses on storage-class cost reduction, not access governance.","active","Input: either (a) a bucket identifier + live-account context, (b) a Storage Lens export or Cost Explorer S3 usage breakdown, OR (c) bucket configuration metadata (lifecycle config, versioning status, Intelligent-Tiering config) with object-age distribution. Output: a deterministic TARGET\u002FVERDICT\u002FREASON\u002FRECOMMENDATION\u002F ESTIMATED_SAVINGS\u002FMIGRATION_STEPS block per bucket, where VERDICT is one of OPTIMIZED, FURTHER_OPTIMIZATION_AVAILABLE, ALREADY_OPTIMAL.","# Minimal valid input (offline classification):\nBucketName: data-lake-raw-prod\nRegion: us-east-1\nStorage (total): 45 TB\nStorage class distribution:\n  - Standard: 32 TB (71%)\n  - Standard-IA: 8 TB (18%)\n  - Glacier Instant Retrieval: 0 TB\n  - Glacier Flexible Retrieval: 3 TB (7%)\n  - Glacier Deep Archive: 2 TB (4%)\nVersioning: Enabled\nLifecycle policy: none\nIntelligent-Tiering: not configured\nStorage Lens (last 30 days):\n  - Objects aged 0-30 days: 12 TB\n  - Objects aged 31-90 days: 9 TB\n  - Objects aged 91-180 days: 6 TB\n  - Objects aged 181-365 days: 5 TB\n  - Objects aged >365 days: 13 TB\nRetrieval frequency: \u003C1% of objects accessed after 90 days\nEmit the standard optimization block (TARGET, VERDICT, REASON,\nRECOMMENDATION, ESTIMATED_SAVINGS, MIGRATION_STEPS).","optimise S3 storage cost, S3 lifecycle policy, S3 Intelligent-Tiering, S3 Glacier migration, S3 Deep Archive, S3 Storage Lens analysis, S3 versioning cost, S3 noncurrent objects, S3 Batch Operations, S3 cost per TB, S3 Standard-IA transition, S3 delete marker cleanup, S3 prefix cost allocation, S3 FinOps review, reduce S3 bill, S3 storage class review","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). Offline classification works from pasted Storage Lens exports and Cost Explorer data. Live-account optimization uses aws s3api list-buckets, aws s3api get-bucket-lifecycle-configuration, aws s3api get-bucket-versioning, aws s3api get-bucket-intelligent-tiering-configuration, aws s3control get-storage-lens-configuration, aws ce get-cost-and-usage, and aws s3api list-objects-v2 with --query for object-age...","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fs3-storage-class-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-storage-class-optimizer",{"tool":59,"command":60},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill s3-storage-class-optimizer",{"tool":62,"command":63},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill s3-storage-class-optimizer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-storage-class-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","参考文档",8393,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-storage-class-optimizer\u002Feval\u002Ftest-cases.yaml",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"evals\u002Fbaselines\u002Falready-optimal-bucket.md",630,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-storage-class-optimizer\u002Fevals\u002Fbaselines\u002Falready-optimal-bucket.md",{"path":78,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":79,"sourceHtmlUrl":80},"evals\u002Fbaselines\u002Fglacier-retrieval-mismatch.md",892,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-storage-class-optimizer\u002Fevals\u002Fbaselines\u002Fglacier-retrieval-mismatch.md",{"path":82,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":83,"sourceHtmlUrl":84},"evals\u002Fbaselines\u002Fintelligent-tiering-candidate.md",731,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-storage-class-optimizer\u002Fevals\u002Fbaselines\u002Fintelligent-tiering-candidate.md",{"path":86,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":87,"sourceHtmlUrl":88},"evals\u002Fbaselines\u002Flifecycle-policy-gap.md",991,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-storage-class-optimizer\u002Fevals\u002Fbaselines\u002Flifecycle-policy-gap.md",{"path":90,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":91,"sourceHtmlUrl":92},"evals\u002Fbaselines\u002Fversioning-bloat.md",675,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-storage-class-optimizer\u002Fevals\u002Fbaselines\u002Fversioning-bloat.md",{"path":94,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":95,"sourceHtmlUrl":96},"evals\u002Feval_config.yaml",1776,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-storage-class-optimizer\u002Fevals\u002Feval_config.yaml",{"path":98,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":99,"sourceHtmlUrl":100},"evals\u002Fevals.json",4712,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-storage-class-optimizer\u002Fevals\u002Fevals.json",{"path":102,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":103,"sourceHtmlUrl":104},"evals\u002Fprompts\u002Falready-optimal-bucket.md",1087,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-storage-class-optimizer\u002Fevals\u002Fprompts\u002Falready-optimal-bucket.md",{"path":106,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":107,"sourceHtmlUrl":108},"evals\u002Fprompts\u002Fglacier-retrieval-mismatch.md",1197,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-storage-class-optimizer\u002Fevals\u002Fprompts\u002Fglacier-retrieval-mismatch.md",{"path":110,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":111,"sourceHtmlUrl":112},"evals\u002Fprompts\u002Fintelligent-tiering-candidate.md",1128,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-storage-class-optimizer\u002Fevals\u002Fprompts\u002Fintelligent-tiering-candidate.md",{"path":114,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":115,"sourceHtmlUrl":116},"evals\u002Fprompts\u002Flifecycle-policy-gap.md",1185,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-storage-class-optimizer\u002Fevals\u002Fprompts\u002Flifecycle-policy-gap.md",{"path":118,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":119,"sourceHtmlUrl":120},"evals\u002Fprompts\u002Fversioning-bloat.md",1064,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-storage-class-optimizer\u002Fevals\u002Fprompts\u002Fversioning-bloat.md",{"path":122,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":123,"sourceHtmlUrl":124},"examples\u002FREADME.md",6838,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-storage-class-optimizer\u002Fexamples\u002FREADME.md",{"path":126,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":127,"sourceHtmlUrl":128},"references\u002Fadvanced-patterns.md",13343,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-storage-class-optimizer\u002Freferences\u002Fadvanced-patterns.md",{"path":130,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":131,"sourceHtmlUrl":132},"references\u002Fdiagnostic-commands.md",2378,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-storage-class-optimizer\u002Freferences\u002Fdiagnostic-commands.md",{"path":134,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":135,"sourceHtmlUrl":136},"references\u002Fs3-pricing-and-storage-classes.md",7240,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-storage-class-optimizer\u002Freferences\u002Fs3-pricing-and-storage-classes.md",{"path":138,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":139,"sourceHtmlUrl":140},"references\u002Fworked-examples.md",8130,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-storage-class-optimizer\u002Freferences\u002Fworked-examples.md",{"path":142,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":143,"sourceHtmlUrl":144},"skill.usf.yaml",4625,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-storage-class-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",[],[]]