New to Claude Skills? Learn how to install them →

davila7 on GitHub

Google Cloud Cost Optimization

Free

Optimize your Google Cloud spending effectively.

Get this skill

Free · Opens the source repo

What Google Cloud Cost Optimization does

The Google Cloud Cost Optimization skill provides a framework for evaluating and enhancing the cost-efficiency of workloads running on Google Cloud. By leveraging the principles outlined in the Google Cloud Well-Architected Framework, this skill offers structured guidance to help organizations align their cloud spending with business objectives. It emphasizes a shift from traditional capital expenditure models to operational expenditure management, fostering a culture of accountability and cost awareness within teams.

This skill is particularly useful for developers, cloud architects, and financial operations teams who are tasked with managing cloud expenses. It includes a set of core principles aimed at ensuring that cloud resources deliver measurable business value, optimizing resource usage, and continuously monitoring costs. Users can expect actionable recommendations that focus on practical strategies for reducing unnecessary spending while maintaining operational efficiency.

In addition to providing guidance, the skill outlines relevant Google Cloud products and features that can assist in cost optimization. These include tools for visibility and monitoring, such as Cloud Billing reports and BigQuery billing exports, as well as automation tools like Active Assist and Cloud Hub Optimization. By integrating these tools into their workflows, users can gain insights into their spending patterns and identify opportunities for savings.

The skill also includes a validation checklist to help users assess their architecture against cost optimization recommendations. This checklist ensures that users are actively managing their resources, setting appropriate budgets, and making informed decisions based on data-driven insights. By following the guidance provided, organizations can achieve sustainable cost optimization in their cloud environments.

When to use it

Use this skill when you need to evaluate and optimize the costs associated with your Google Cloud workloads.

When not to use it

This skill may not be suitable for organizations not using Google Cloud or those that require advanced financial modeling capabilities beyond basic cost optimization.

What you can build with it

Evaluating Cloud Workloads

Use the skill to assess existing workloads on Google Cloud and identify areas where costs can be reduced without sacrificing performance.

Implementing Cost Awareness

Leverage the skill's principles to foster a culture of cost awareness within your development teams, ensuring everyone understands the financial impact of their decisions.

Continuous Cost Monitoring

Utilize the skill to set up continuous monitoring processes for cloud costs, allowing for proactive adjustments and optimization.

How to install Google Cloud Cost Optimization

View source

1. Install with the skills CLI

npx skills add davila7/claude-code-templates/google-cloud-waf-cost-optimization --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by davila7

Google Cloud Well-Architected Framework skill for the Cost Optimization pillar

Overview

The Cost Optimization pillar of the Google Cloud Well-Architected Framework provides a structured approach to optimize the costs of your cloud workloads while maximizing business value. Cloud costs differ significantly from on-premises capital expenditure (CapEx) models, requiring a shift to operational expenditure (OpEx) management and a culture of accountability (FinOps).

Core principles

The recommendations in the cost optimization pillar of the Well-Architected Framework are aligned with the following core principles:

Relevant Google Cloud products

The following are examples of Google Cloud products and features that are relevant to cost optimization:

  • Visibility and monitoring:

    • Cloud Billing reports: Native dashboards for visualizing spending and trends.
    • BigQuery billing export: Enables granular, custom analysis of billing data using SQL and BI tools.
    • Looker Studio: Used for creating detailed, shared cost dashboards and reports.
    • Billing alerts and budgets: Automated notifications when spending reaches predefined thresholds.
  • Automation and optimization tools:

    • Recommender / Active Assist: Automatically identifies idle resources, rightsizing opportunities, and unused commitments.
    • Cloud Hub Optimization: Integrates billing and resource utilization data to help developers and application owners quickly identify their most expensive, fluctuating, or underutilized cloud resources.
    • FinOps hub: Presents active savings and optimization opportunities in one dashboard.
    • Billing quotas: Limits on resource consumption to prevent unexpected cost spikes.
  • Efficient infrastructure:

    • Managed services and serverless services: Services like Cloud Run, Cloud Run functions, and GKE Autopilot reduce operational overhead and pay-per-use scaling.
    • Compute Engine: Use of Spot VMs for fault-tolerant workloads and Committed Use Discounts (CUDs) for stable workloads.
    • Cloud Storage Lifecycle Policies: Automatically moves data to lower-cost storage classes (Nearline, Coldline, Archive) based on age or access.
  • Organization and governance:

    • Resource Manager: Logical structure (Organizations, Folders, Projects) for cost attribution.
    • Labels: Metadata tags for categorizing and filtering costs by environment, team, or application.
    • Organization Policy Service: Enforces constraints (e.g., restricted regions or machine types) to control costs.

Workload assessment questions

Ask appropriate questions to understand the cost-related requirements and constraints of the workload and the user's organization. Choose questions from the following list:

  • How do you incorporate cost considerations into your cloud architecture design process?
  • How do you foster a culture of cost awareness among your development teams?
  • How do you monitor and manage cloud costs across different projects or departments?
  • What strategies do you use to optimize the cost of your compute resources?
  • How do you balance cost optimization with the need for agility and innovation?
  • How do you ensure that you are not over-provisioning cloud resources?
  • How do you use data and analytics to drive cost optimization decisions?
  • How do you optimize costs in different environments (e.g., development, testing, production)?
  • How do you ensure that your cost optimization efforts are sustainable and ongoing?
  • How do you measure the success of your cloud cost optimization initiatives?

Validation checklist

Use the following checklist to evaluate the architecture's alignment with cost-optimization recommendations:

  • Cost Attribution: 100% of resources are labeled with key metadata (e.g., env, team, app).
  • Granular Visibility: BigQuery billing export is enabled and used for regular cost reviews.
  • Budgets and Alerts: Every project or business unit has defined budgets and active alerts.
  • Rightsizing: Resources are regularly adjusted based on rightsizing suggestions provided by Active Assist Recommender.
  • Commitment Strategy: Spend is reviewed monthly to optimize Committed Use Discount coverage.
  • Idle Resource Management: Unused disks, IP addresses, and idle VMs are identified and removed monthly.
  • Managed Services: Serverless options are preferred for new workloads unless specific technical constraints exist.
  • Storage Tiers: Lifecycle policies are active for all major storage buckets to minimize archival costs.

Frequently asked questions about Google Cloud Cost Optimization

Similar skills