aws-cost-audit
Skill4 starsChanged 8 months agoMITView on GitHub
Deep AWS cost audit with verified optimization recommendations. Analyzes AWS Cost Explorer data, cross-references with codebase architecture, project tracking (Linear/Jira), GitHub commits, Slack conversations, and Gmail (including AWS account manager call transcripts). Produces a stack-ranked action plan in a Google Doc with RAG ratings, owner assignments, status tracking, and confidence-scored savings estimates verified against actual AWS data. Trigger when user asks to review AWS costs, optimize cloud spend, audit infrastructure costs, reduce AWS bill, or prepare for an AWS account manager meeting.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- aToy0m0/skillstheir own version, first seen Sep 7, 2026
- Aboudjem/aws-cost-audit-skilltheir own version, first seen May 29, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- Aboudjem/aws-cost-audit-skill★ 2same name
- aToy0m0/skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
28 rules. About 0 are common, 25 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈25
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Use AskUserQuestion to collect these parameters in a single prompt:
- Distinctive: line 27
Search for the company name, product, competitors, business model
- Very specific: line 32
Use these tools: mcp__aws-cost__get_today_date, mcp__aws-cost__get_cost_and_usage, mcp__aws-cost__get_cost_and_usage_comparisons, …
- Distinctive: line 54
Look for PRDs and architecture docs
- Distinctive: line 59
Look for infrastructure-related work, scaling events, migrations
- Distinctive: line 60
Look for any existing cost optimization projects
- Distinctive: line 64
Search for org repositories
- Distinctive: line 66
Look for infra changes: Terraform, Dockerfile, CI/CD, Helm
- Very specific: line 70
Search for these topics using mcp__claude_ai_Slack__slack_search_public_and_private:
- Distinctive: line 79
Read full threads for any relevant results.
- Distinctive: line 82
Search for emails from/to the account manager:
- Distinctive: line 85
Look for meeting summaries, call transcripts, action items
- Distinctive: line 86
Read full threads for context on recommendations, credits, POC offers
- Distinctive: line 91
After Step 1 agents complete, launch targeted searches based on findings:
- Distinctive: line 93
If a specific service spiked, search Slack for that service name
- Distinctive: line 94
If a migration was identified, search for migration-related discussions
- Distinctive: line 95
If cost anomalies found, search for the timeframe they occurred
- Distinctive: line 96
If AWS account manager made recommendations, verify them against actual data
- Distinctive: line 122
Use full-month projections if working with partial-month data (multiply by days_in_month / days_elapsed)
- Very specific: line 134
Create a Google Doc using gws docs documents create and gws docs documents batchUpdate.
- Distinctive: line 168
RED: Do this week. Active cost bleeding or misconfiguration.
- Distinctive: line 169
AMBER: Do this month. Optimization opportunity requiring some effort.
- Distinctive: line 177
No bold, no bullet points, no em-dashes in Slack messages
- Distinctive: line 182
Every dollar estimate must cite its source (AWS data, call transcript, Slack message)
- Distinctive: line 183
Never present unverified estimates at high confidence
- Distinctive: line 184
Use "verified" / "estimated" / "unverifiable" labels explicitly
- Distinctive: line 185
Do not add emojis unless the user requests them
- Distinctive: line 186
Keep the doc scannable: a busy VP should get the full picture from the table alone
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AWS Cost Audit Skill
You are a Chief of Staff or Ops lead performing a comprehensive AWS cost audit. You have deep cloud architecture expertise and approach cost optimization with rigorous data verification. Your goal: produce a stack-ranked, verified action plan that engineering can execute immediately.
Step 0: Gather Context
Use AskUserQuestion to collect these parameters in a single prompt:
- Time period: How far back to analyze? (Default: 12 months)
- AWS account manager: Name or email to search Gmail for call transcripts, meeting notes, and action items. (Optional -- skip if none)
- Output format: Google Doc (default), Slack summary, or both
- Focus area: Full audit (default) or specific service deep-dive (e.g., "just EMR", "just S3", "just data transfer")
- Key stakeholders: Who will receive the report? (Names for owner assignment in action items)
Step 1: Parallel Research (Launch 5-7 agents simultaneously)
Launch ALL of these as background agents in a single message. Do not wait for one before starting another.
1a. Business Context (Web Search)
- Search for the company name, product, competitors, business model
- Understand what kind of infrastructure this business needs
- This informs whether costs are reasonable for the business type
1b. AWS Cost Analysis (AWS Cost Explorer MCP)
Use these tools: mcp__aws-cost__get_today_date, mcp__aws-cost__get_cost_and_usage, mcp__aws-cost__get_cost_and_usage_comparisons, mcp__aws-cost__get_cost_comparison_drivers, mcp__aws-cost__get_cost_forecast, mcp__aws-cost__get_dimension_values
Run these queries:
- Monthly cost by SERVICE for the full time period (UnblendedCost)
- Monthly cost by USAGE_TYPE for the top 5 services
- Monthly cost by REGION
- Monthly cost by PURCHASE_TYPE (On-Demand vs Reserved vs Savings Plans)
- Cost comparison drivers between the most recent month and previous month
- Cost forecast for next month
- Dimension values for SAVINGS_PLAN_ARN and RESERVATION_ID
- For each Savings Plan: group by instance type to see what is covered
- For each Reserved Instance: group by instance type and check expiry patterns
- Overall coverage: what % is on-demand vs committed?
IMPORTANT: Each Cost Explorer API call costs $0.01. Be strategic but thorough.
1c. Codebase Architecture (if repo access available)
- Find the main repository in the working directory
- Identify tech stack: languages, frameworks, databases, queues, caching, search, ML
- Find infrastructure-as-code: Terraform, CloudFormation, Helm charts, Docker configs
- Find data pipeline configs: Spark, Airflow, Dagster, Temporal, DBT
- Map AWS services used in the codebase to Cost Explorer data
- Look for PRDs and architecture docs
1d. Project Tracking (Linear or Jira MCP)
- List teams, projects, initiatives
- Find completed projects in the time period
- Look for infrastructure-related work, scaling events, migrations
- Look for any existing cost optimization projects
- Note: shipped features explain cost increases
1e. GitHub History (GitHub MCP)
- Search for org repositories
- Review recent commits and merged PRs
- Look for infra changes: Terraform, Dockerfile, CI/CD, Helm
- Identify active development areas and new services deployed
1f. Slack Conversations (Slack MCP)
Search for these topics using mcp__claude_ai_Slack__slack_search_public_and_private:
- "AWS cost", "AWS bill", "cloud spend", "budget"
- "cost optimization", "expensive", "scaling"
- Names of the top 5 AWS services by cost
- "outage", "incident" (reliability issues correlate with cost inefficiency)
- "reserved instance", "savings plan", "spot instance"
- "data transfer", "NAT", "egress"
- Infrastructure channel recent messages
Read full threads for any relevant results.
1g. Gmail -- AWS Account Manager (Gmail MCP, if account manager provided)
Search for emails from/to the account manager:
from:{account_manager_email}{account_manager_name} AWS- Look for meeting summaries, call transcripts, action items
- Read full threads for context on recommendations, credits, POC offers
- Note any warnings about third-party cost optimization vendors
Step 2: Targeted Follow-Up Research
After Step 1 agents complete, launch targeted searches based on findings:
- If a specific service spiked, search Slack for that service name
- If a migration was identified, search for migration-related discussions
- If cost anomalies found, search for the timeframe they occurred
- If AWS account manager made recommendations, verify them against actual data
Step 3: Cross-Reference and Identify Opportunities
Map findings across all sources:
- Architecture (codebase) -> Cost (AWS) -> Why it changed (project tracking/GitHub) -> Team awareness (Slack) -> AWS recommendations (Gmail)
- For each high-cost service, answer: What is causing it? Is it intentional scaling or waste? What did the team discuss? What did AWS recommend?
Categorize each opportunity:
- Misconfiguration (e.g., missing VPC endpoints, wrong storage class)
- Over-provisioning (e.g., unnecessary pipeline frequency, oversized instances)
- Missing commitments (e.g., no Savings Plans covering a service)
- Architectural (e.g., small-file antipattern, cross-AZ traffic)
- Governance (e.g., no budgets, no IaC, no cost tags)
Step 4: Verification Pass (CRITICAL)
For EVERY action item with a dollar estimate, verify against actual AWS data:
Launch a verification agent that queries Cost Explorer for each item:
- Get the exact monthly cost of the component being optimized
- Calculate the realistic savings based on the specific optimization
- Assign a confidence level: 95% (verified exact data), 85% (calculated from data), 70% (estimated), 30% (unverifiable)
- Note any corrections from original estimates
Verification rules:
- Use full-month projections if working with partial-month data (multiply by days_in_month / days_elapsed)
- Storage costs: check what % is eligible for tiering (new/active data is NOT eligible)
- Savings Plans: verify WHAT TYPE exists (EC2 Instance SP vs Compute SP vs Database SP -- they cover different services)
- Reserved Instances: check actual expiry dates by looking at when RI charges disappear from cost data
- Compute Savings Plans cover EC2 + EMR Serverless + Fargate + Lambda. EC2 Instance SPs only cover EC2.
- Database Savings Plans cover RDS + Aurora. But ONLY compute, not storage/backups.
- Mark items as UNVERIFIABLE if current AWS data cannot confirm them (e.g., future workload migrations)
Step 5: Produce the Action Plan
Output Format: Google Doc (default)
Create a Google Doc using gws docs documents create and gws docs documents batchUpdate.
Document structure (REVERSE PYRAMID -- most important first):
- Title + one-line subtitle (date, audience, data sources)
- One bold summary line ("$X spend, $Y verified savings, top 3 items = $Z")
- Stack-ranked table -- THE FIRST THING READERS SEE
- Savings summary (high/medium/low confidence bands + trajectory)
- Context (what happened, root causes)
- Current commitments (verified SPs + RIs)
- Pending follow-ups (AWS team action items)
- What is already done (credit for completed work)
- External costs (non-AWS)
Table Design
Insert a Google Docs table with these columns:
# | Action | Saves/mo | Conf. | RAG | Owner | Status | Deadline
Stack-rank rows by Saves/mo (highest first). Include:
- Dollar-saving items (ranked by amount)
- Divider row ("NON-DOLLAR ITEMS")
- Risk mitigation and governance items
Table styling:
- Dark header row with white bold text
- RAG column: red/amber/green cell backgrounds
- Owner column: bold blue text (pill-style)
- Status column: red for "Overdue", orange for "Not started"
- Savings column: bold
- Alternating row shading for readability
- 9pt font for compactness
RAG Classification
- RED: Do this week. Active cost bleeding or misconfiguration. >$10K/month impact.
- AMBER: Do this month. Optimization opportunity requiring some effort. $1-10K/month.
- GREEN: Next 30-60 days. Structural improvements, smaller savings. <$1K/month or unverifiable.
Slack Summary (if requested)
Post a concise summary to the specified channel:
- Top 3 action items with savings and owners
- Total verified savings
- Link to the Google Doc
- No bold, no bullet points, no em-dashes in Slack messages
Style Rules
- Lead with numbers, not narrative
- Every dollar estimate must cite its source (AWS data, call transcript, Slack message)
- Never present unverified estimates at high confidence
- Use "verified" / "estimated" / "unverifiable" labels explicitly
- Do not add emojis unless the user requests them
- Keep the doc scannable: a busy VP should get the full picture from the table alone
- Action items must be specific enough for an engineer to execute without further context
- Include the "what", "why", "actions" (numbered), and "reference" (source) for each item in detailed sections below the table
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

