Skip to content

About

Easy way to get started using Claude Code and the CloudZero MCP server to analyze your cloud cost.

Resources

Code of conduct

Contributing

Security policy

Stars

25 stars

Watchers

0 watching

Forks

Repository files navigation

CloudZero

Welcome to CloudZero, the CloudZero plugin marketplace for Claude Code! This repository hosts AI-powered plugins for cloud and AI cost intelligence: investigate cost spikes, analyze trends, compare spending, optimize services, and track cloud infrastructure costs using CloudZero's MCP (Model Context Protocol) server—plus right-size which Claude model each AI task should run on. All through natural conversation with Claude.

Key Features:

  • 🔍 Cost Spike Investigation - Identify and explain sudden cost increases
  • 📊 Trend Analysis - Understand spending patterns and forecast future costs
  • 🔄 Cost Comparison - Benchmark across time periods, teams, or environments
  • 🎯 Service Deep Dives - Detailed analysis of specific cloud services
  • 🏷️ Tag Coverage Analysis - Improve cost allocation and governance
  • 👥 Custom Dimension Analysis - Business-aligned cost visibility
  • 🚨 Anomaly Detection - Proactively identify unusual spending patterns
  • 💰 Top Cost Drivers - Identify and prioritize optimization opportunities
  • 📝 Diff Cost Projection - Estimate cost impact of code changes in PRs and branches
  • 🏗️ Cost Projection - Project monthly cost of infrastructure definitions before deployment
  • 🧰 Optimize Triage - Research and validate CloudZero Optimize recommendations with parallel agents
  • 🧮 Model Right-Sizing - Pick the smallest Claude model that clears the bar for each AI task

Available Plugins

Cost Analyst Plugin

The flagship plugin providing comprehensive cost analysis capabilities:

  • 11 specialized cost analysis skills powered by AI
  • Pre-configured CloudZero MCP server integration
  • Dynamic dimension discovery for your organization
  • Showback/chargeback reporting capabilities

Model Right Sizer Plugin

A model-selection economist for Claude Code that keeps AI spend as intentional as cloud spend:

  • The model-right-sizer agent scores each task on effectiveness need vs. efficiency pressure vs. difficulty, and recommends the smallest Claude model (plus effort and token budget) that clears the bar
  • Runs as a bookend around work: a right-sizing blueprint before, a model-usage report after
  • Companion skills to preview the routing map for an intent (model-right-sizer-dryrun), to stamp a standing right-sizing mandate onto a repo (model-right-sizer-install), to retroactively audit every model call already shipped in a target repo (model-right-sizer-audit), and to prescribe a minimal output schema for one agent's handoff to its controller (model-right-sizer-schema)

See the Model Right Sizer README for full details.

Table of Contents

Repository Structure

This repository is organized to support multiple plugins:

cloudzero-claude-marketplace/
├── .claude-plugin/
│   └── marketplace.json          # Marketplace configuration
├── plugins/
│   ├── cost-analyst/             # Cost Analyst plugin
│   │   ├── .claude-plugin/
│   │   │   └── plugin.json       # Plugin manifest
│   │   ├── .mcp.json             # MCP server configuration
│   │   ├── skills/               # Cost analysis skills
│   │   └── references/           # Shared reference documentation
│   └── model-right-sizer/        # Model Right Sizer plugin
│       ├── .claude-plugin/
│       │   └── plugin.json       # Plugin manifest
│       ├── agents/               # The model-right-sizer agent
│       ├── schemas/              # Blueprint + agent-schema JSON Schemas, family catalogue
│       ├── skills/               # Companion install/dry-run/schema skills
│       └── README.md             # Plugin documentation
├── scripts/                      # CI validators (manifests, agent files)
├── tests/                        # Tests for the validators
├── README.md
└── ...

Each plugin in the plugins/ directory is self-contained with its own configuration, skills, and dependencies.

Documentation

For more information about the tools and services used in this project:

Installation

Add the CloudZero marketplace to Claude Code once, then install whichever plugins you want from it:

/plugin marketplace add cloudzero/cloudzero-claude-marketplace

Adding the marketplace makes every plugin in this repository available. It does not install them by itself — install each plugin you want:

/plugin install cost-analyst@cloudzero
/plugin install model-right-sizer@cloudzero

Installing cost-analyst@cloudzero gives you the 11 cost analysis skills and the pre-configured CloudZero MCP server. Installing model-right-sizer@cloudzero gives you the model-right-sizer agent and its four companion skills.

For platform setup and more installation guidance, see the CloudZero AI Hub.

Available Skills

Cost Analyst Plugin

The CloudZero Cost Analyst plugin includes 11 AI-powered skills that Claude automatically uses based on your questions:

1. Cost Spike Investigation

Triggered by: "What caused the cost spike?", "Why did costs increase?", "Investigate cost jump"

Analyzes sudden cost increases by comparing recent spending to baselines and identifying which services, accounts, or resources are responsible.

Example:

"Our AWS costs spiked last week. Can you investigate what happened?"

2. Top Cost Drivers

Triggered by: "What are my biggest costs?", "Show top spending", "Where is money going?"

Identifies and ranks the highest cost contributors across services, accounts, teams, and regions to prioritize optimization efforts.

Example:

"What are my top 10 cost drivers this month?"

3. Cost Trend Analysis

Triggered by: "How are costs trending?", "Show cost growth", "Forecast spending"

Analyzes cost trends over time to identify patterns, growth rates, seasonality, and forecast future spending.

Example:

"Analyze my cost trends over the last 90 days and forecast next month"

4. Cost Comparison

Triggered by: "Compare costs between...", "Production vs staging costs", "This month vs last month"

Compares costs across time periods, environments, accounts, regions, or teams to understand variations and benchmark efficiency.

Example:

"Compare production costs to staging and development environments"

5. Service Cost Deep Dive

Triggered by: "Analyze EC2 costs", "Deep dive into RDS", "Break down S3 spending"

Performs detailed analysis of specific cloud services, breaking down by usage types, resources, regions, and identifying optimization opportunities.

Example:

"Do a deep dive on our EC2 costs and identify optimization opportunities"

6. Tag Coverage Analysis

Triggered by: "Check tag coverage", "Show untagged resources", "Tagging quality"

Evaluates tagging quality and coverage to identify untagged resources, calculate coverage percentages, and improve cost allocation.

Example:

"What's our tag coverage and which resources are untagged?"

7. Custom Dimension Analysis

Triggered by: "Costs by team", "Spending by product", "Show business unit costs"

Analyzes costs using organization-specific custom dimensions (teams, products, features) for business-aligned visibility and showback/chargeback.

Example:

"Show me costs broken down by team for the last month"

8. Cost Anomaly Detection

Triggered by: "Detect anomalies", "Find unusual spending", "Check for cost issues"

Proactively scans for cost anomalies, unusual patterns, and irregularities that may indicate waste, misconfiguration, or security issues.

Example:

"Scan for any cost anomalies or unusual spending patterns"

9. Diff Cost Projection

Triggered by: "Cost impact of this PR", "What will this branch cost?", "Estimate cost of my changes"

Analyzes code diffs (PRs, branches, workspace changes) for infrastructure cost impact. Detects Terraform, CDK, CloudFormation, SAM, Kubernetes, scaling, and application code changes that affect cloud spending.

Example:

/diff-cost-projection 456
"What's the cost impact of the changes on my current branch?"

10. Cost Projection

Triggered by: "How much will this stack cost?", "Project cost of this Terraform", "Estimate cost of deployment.cdk"

Reads infrastructure-as-code definitions (Terraform, CDK, CloudFormation, SAM) and projects monthly cost. Enumerates resources, queries CloudZero for existing spend, looks up pricing for new resources, and produces a line-item breakdown.

Example:

/cost-projection terraform/production/
"How much will this CDK stack cost to deploy?"

11. Optimize Triage

Triggered by: "Triage our Optimize recommendations", "Which optimization recommendations are actionable?", "Research our top savings opportunities"

Fetches top unaddressed CloudZero Optimize recommendations, dispatches parallel research agents per item with an SRE critique pass, and surfaces the genuinely actionable ones with confidence verdicts. Research-only — but note it is the one skill granted Bash access, used for read-only cloud CLI commands (e.g. aws ec2 describe-instances); run it with read-only credentials.

Example:

"Triage our top CloudZero Optimize recommendations and tell me which are actually actionable"

Model Right Sizer Plugin

The Model Right Sizer plugin includes one agent and four skills:

The model-right-sizer Agent

Triggered by: "Blueprint this task", "Which model should this run on?", "Give me a usage report"

A read-only model-selection economist. Before work starts it produces a right-sizing blueprint — a schema-conformant JSON object (task→model→effort→budget→confidence per stage) biased toward the smallest Claude model that clears the bar. After work closes it produces a usage report comparing recommended vs. actual model spend.

Example:

"Blueprint this PR: refactor a REST endpoint, add tests, update docs — which model should each part run on?"

Model Right Sizer Dry Run

Triggered by: "Dry-run the right-sizer on...", "What's the map for...", "How would you route..."

Previews the model-routing map for a free-text intent without building anything — the what-would-this-cost lever, safe to run against any idea.

Example:

"Dry-run the right-sizer on: build a Slack bot that summarizes daily standup threads"

Model Right Sizer Install

Triggered by: "Install model-right-sizer in this repo", "Add the right-sizer mandate here"

Stamps a standing mandate onto the current repo's CLAUDE.md, AGENTS.md, or both (whichever the repo has) so every substantive task consults the model-right-sizer agent before and after the work. Idempotent and append-only.

Example:

"Install model-right-sizer in this repo"

Model Right Sizer Audit

Triggered by: "Audit the model calls in this repo", "Right-size what we've already shipped"

Retroactively audits every real, already-shipped model call in a target repo — an SDK/API invocation, a sub-agent dispatch, an agent's model: frontmatter — decomposes each by intent, dry-runs each decomposed candidate independently via model-right-sizer-dryrun, and commits one schema-conformant JSON blueprint at the target repo's root via a PR. Unlike the plugin's other companion skills, this one writes to the target repo, gated on user confirmation before committing.

Example:

"Audit the model calls in this repo and open a PR"

Model Right Sizer Schema

Triggered by: "Give this agent an output schema", "Prescribe a schema for...", "Minimize what this agent returns"

Prescribes a minimal output schema for one agent's handoff to its controller — the agent's message-schema lever scoped to a single seam instead of a whole flow. Names a reusable family (or coins a minimal new one), the typed in/out fields, and an exclusion list, then offers to stamp a ## Agent-to-agent schema section directly into the target agent's file.

Example:

"This log-triage agent just replies with a paragraph — give it an output schema for the on-call digest skill that calls it"

See the Model Right Sizer README for the full documentation.

Usage

Example Workflows

Monthly Cost Review:

"Run an anomaly detection scan, then show me my top cost drivers and any trends"

Cost Spike Response:

"We had a cost spike last Tuesday. Investigate what caused it and recommend actions"

Service Optimization:

"Do a deep dive on our RDS costs and identify optimization opportunities"

Showback Reporting:

"Generate a cost breakdown by team for Q4 including service details"

Tag Governance:

"Analyze our tag coverage and prioritize resources that need tagging"

Tips for Best Results

  1. Be Specific: Include time periods, services, or dimensions you want to analyze
  2. Ask Follow-ups: The skills work together - ask Claude to investigate further on interesting findings
  3. Request Actions: Ask for specific recommendations and next steps
  4. Combine Skills: Complex analyses often benefit from multiple skills working together
  5. Use Your Organization's Terms: The skills understand your custom dimensions (teams, products, etc.)

How Skills Work

Skills are automatically invoked by Claude based on your natural language requests. You don't need to explicitly call them - just ask your cost analysis question naturally, and Claude will:

  1. Read your organization context from CloudZero
  2. Select the appropriate skill(s) to answer your question
  3. Query CloudZero's cost data via the MCP server
  4. Analyze the results and provide insights
  5. Recommend specific actions based on findings

All skills follow these best practices:

  • Always read organization context first for accurate analysis
  • Use your organization's specific dimensions and tags
  • Provide actionable recommendations with dollar impacts
  • Support both technical and business-aligned reporting

Support + Feedback

Contact support@cloudzero.com for CloudZero platform questions and account-specific issues

Vulnerability Reporting

Please do not report security vulnerabilities on the public GitHub issue tracker. Email security@cloudzero.com instead.

What is CloudZero?

CloudZero is the only cloud cost intelligence platform that puts engineering in control by connecting technical decisions to business results:

  • Cost Allocation And Tagging - Organize and allocate cloud spend in new ways, increase tagging coverage, or work on showback.
  • Kubernetes Cost Visibility - Understand your Kubernetes spend alongside total spend across containerized and non-containerized environments.
  • FinOps And Financial Reporting - Operationalize reporting on metrics such as cost per customer, COGS, gross margin. Forecast spend, reconcile invoices and easily investigate variance.
  • Engineering Accountability - Foster a cost-conscious culture, where engineers understand spend, proactively consider cost, and get immediate feedback with fewer interruptions and faster and more efficient innovation.
  • Optimization And Reducing Waste - Focus on immediately reducing spend by understanding where we have waste, inefficiencies, and discounting opportunities.

Learn more about CloudZero on our website www.cloudzero.com

About

Easy way to get started using Claude Code and the CloudZero MCP server to analyze your cloud cost.

Resources

Code of conduct

Contributing

Security policy

Stars

25 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages