agent-instructions
Use when writing project instructions for a coding agent (CLAUDE.md, AGENTS.md, or equivalent). Covers what belongs in them, what…
Use when reducing cloud spend. Covers finding the actual cost drivers, right-sizing, commitment discounts, storage lifecycle, the hidden costs of data transfer and logging, and avoiding false savings. Trigger on "our aws bill doubled", "should we buy savings plans", "nat gateway
Claude Code
$ npx -y skills add nimadorostkar/Claude-Skills-collection --skill aws-cost-optimization --agent claude-code
Codex
$ npx skills add nimadorostkar/Claude-Skills-collection --skill aws-cost-optimization -a codex -y
Cursor
$ npx skills add nimadorostkar/Claude-Skills-collection --skill aws-cost-optimization -a cursor -y
Gemini CLI
$ npx skills add nimadorostkar/Claude-Skills-collection --skill aws-cost-optimization -a gemini-cli -y
GitHub Copilot
$ npx skills add nimadorostkar/Claude-Skills-collection --skill aws-cost-optimization -a github-copilot -y
OpenCode
$ npx skills add nimadorostkar/Claude-Skills-collection --skill aws-cost-optimization -a opencode -y
Windsurf
$ npx skills add nimadorostkar/Claude-Skills-collection --skill aws-cost-optimization -a windsurf -y
name: aws-cost-optimization description: Use when reducing cloud spend. Covers finding the actual cost drivers, right-sizing, commitment discounts, storage lifecycle, the hidden costs of data transfer and logging, and avoiding false savings. Trigger on "our aws bill doubled", "should we buy savings plans", "nat gateway costs are insane", "cut our cloud spend". Do not use for LLM token or API spend — see the llm-cost-optimization skill. metadata: category: devops version: 1.0.0 tags: [cost, finops, aws, optimization, budgets]
Reduce cloud spend by finding where the money actually goes, which is rarely where people assume. Most cost work targets compute; most surprises are in data transfer, logging, and idle resources.
1. **Find the actual drivers** — Group the bill by service, then by tag, then by usage type. Do not act on intuition; the top three line items are frequently not what anyone guessed. 2. **Delete the waste first** — Unattached EBS volumes, idle load balancers, old snapshots, unused Elastic IPs, forgotten dev environments. This is free money and requires no trade-off. 3. **Right-size against real utilization** — An instance running at 8% CPU for three months is oversized. Use Compute Optimizer, and check the memory metric too. 4. **Fix the hidden drivers** — NAT gateway data processing, cross-AZ transfer, CloudWatch Logs ingestion, and S3 request costs. These are invisible in a per-service summary and often account for 20% of the bill. 5. **Then commit** — Savings plans and reserved instances give 30-70% off, but only after right-sizing. Committing to your current oversized footprint locks in the waste for three years. 6. **Attribute and alert** — Tags on everything, a budget per team, and anomaly detection so the next 40% jump is caught in a day, not a month.
**Finding the driver, not the assumption:**
# The bill jumped 38%. Group by usage type, not by service — the service view # said "EC2-Other", which explains nothing. aws ce get-cost-and-usage \ --time-period Start=2026-05-01,End=2026-07-01 \ --granularity MONTHLY \ --metrics UnblendedCost \ --group-by Type=DIMENSION,Key=USAGE_TYPE \ --query 'ResultsByTime[].Groups[?Metrics.UnblendedCost.Amount>`500`]' \ --output table
Result: EU-NatGateway-Bytes $3,180 (was $410) <- the entire increase EUC1-EBS:VolumeUsage $890 EU-DataTransfer-Out $640 Cause: a new service pulls 4 GB container images from a public registry on every task start, through the NAT gateway, and it scales to 200 tasks. Fix: mirror the image into ECR and add an ECR VPC endpoint. NAT bytes for that workload go to zero. Saving: ~$2,900/month, for two hours of work.
**Right-sizing before committing:**
Current: 30 x m6i.2xlarge, average CPU 11%, average memory 34% Step 1: right-size to m7g.large (Graviton) -> $8,400/mo becomes $2,600/mo Step 2: 1-year Compute Savings Plan on the new footprint (-31%) -> $1,790/mo Committing before right-sizing would have locked in $8,400/mo at a discount to $5,800/mo — and made the right-sizing financially pointless for a year.
A curated library of 137 production-grade skills for Claude and other AI coding agents. Every skill follows one structure, speaks with one voice, and earns its place by changing what the agent does.
Use when writing project instructions for a coding agent (CLAUDE.md, AGENTS.md, or equivalent). Covers what belongs in them, what…
Use when an agent needs state that survives a session or a context compaction. Covers what to persist, file-based memory,…
Use when automating agent behavior with lifecycle hooks. Covers hook events, deterministic enforcement of rules the model should…
Use when packaging skills, commands, hooks, and MCP servers into a distributable plugin. Covers manifest structure, bundling,…
Use when writing a new skill for an AI agent. Covers scoping, description writing for reliable triggering, progressive…
Use when reviewing or improving an existing agent skill. Covers triggering accuracy, content quality, redundancy with the base…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.