gcp-cost-optimizer

gcp-cost-optimizer is a skill for Claude Code from armanzeroeight/fastagent-plugins. It costs 39 tokens per session (509 once invoked), scanned A, original, MIT.

A guide for analyzing Google Cloud Platform spending and finding ways to lower it, such as smaller resources, discounts, and removing unused resources.

In plain words
What is it for?
Use it to review billing data, find rightsizing and discount opportunities, assess preemptible virtual machines, and plan cost-saving changes.
Why use it?
It helps identify where money is being spent and connects cost data with specific changes that may reduce the bill.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the gcp-toolkit plugin — 2 skills shipped together

Good fit Use it to review billing data, find rightsizing and discount opportunities, assess preemptible virtual machines, and plan cost-saving changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/armanzeroeight/fastagent-plugins/gcp-cost-optimizer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add armanzeroeight/fastagent-plugins --skill gcp-cost-optimizer
Clone the repo
git clone --depth 1 https://github.com/armanzeroeight/fastagent-plugins

Made for: Claude Code.

Or install gcp-toolkit, the plugin that ships this one along with the rest of its 2 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gcp-cost-optimizer

README.md
[![agentmods](https://agentmods.dev/badge/skills/armanzeroeight/fastagent-plugins/gcp-cost-optimizer.svg)](https://agentmods.dev/skills/armanzeroeight/fastagent-plugins/gcp-cost-optimizer)
Your own site
<a href="https://agentmods.dev/skills/armanzeroeight/fastagent-plugins/gcp-cost-optimizer"><img src="https://agentmods.dev/badge/skills/armanzeroeight/fastagent-plugins/gcp-cost-optimizer.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 509 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.00509
Opus 5 $0.00019 $0.00254
Sonnet 5 $0.00008 $0.00102
Haiku 4.5 $0.00004 $0.00051

Measured 4d ago against content hash 3e754f31e5f5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

gcp-cost-optimizer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/gcp-toolkit/skills/gcp-cost-optimizer/SKILL.md · 80 lines

What it actually says

GCP Cost Optimizer

Quick Start

Analyze GCP costs and implement optimization strategies to reduce spending.

Instructions

Step 1: Analyze current costs

# View billing data
gcloud billing accounts list

# Export billing data to BigQuery
gcloud billing accounts projects link PROJECT_ID \
  --billing-account=BILLING_ACCOUNT_ID

# Query costs
bq query --use_legacy_sql=false \
  'SELECT service.description, SUM(cost) as total_cost
   FROM `project.dataset.gcp_billing_export`
   WHERE DATE(_PARTITIONTIME) >= DATE_SUB(CURRENT_DATE(), INTERVAL 30 DAY)
   GROUP BY service.description
   ORDER BY total_cost DESC'

Step 2: Identify optimization opportunities

Committed Use Discounts:

  • 1-year or 3-year commitments
  • Up to 57% savings for Compute Engine
  • Up to 70% savings for Cloud SQL

Sustained Use Discounts:

  • Automatic discounts for running instances
  • Up to 30% for instances running >25% of month

Preemptible VMs:

  • Up to 80% savings
  • Suitable for fault-tolerant workloads

Rightsizing:

  • Use Recommender API for suggestions
  • Downsize overprovisioned instances
  • Adjust machine types

Step 3: Implement cost-saving measures

# Get rightsizing recommendations
gcloud recommender recommendations list \
  --project=PROJECT_ID \
  --location=us-central1 \
  --recommender=google.compute.instance.MachineTypeRecommender

# Apply recommendation
gcloud recommender recommendations mark-claimed \
  RECOMMENDATION_ID \
  --project=PROJECT_ID \
  --location=us-central1 \
  --recommender=google.compute.instance.MachineTypeRecommender

Best Practices

  1. Enable billing export to BigQuery
  2. Set up budget alerts
  3. Use labels for cost allocation
  4. Review Recommender suggestions monthly
  5. Implement committed use discounts for stable workloads
  6. Use preemptible VMs for batch processing
  7. Clean up unused resources regularly
  8. Optimize storage classes
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 80 lines · 39 tokens per session scan A 3e754f31e5f5

Subscribe to this mod's changes

gcp-cost-optimizer is a skill published in the GitHub repository armanzeroeight/fastagent-plugins (29 stars, last pushed 1mo ago), licensed MIT. It adds 39 tokens to every session and 509 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

stock-analyzer

A comprehensive stock deep analysis tool that combines real-time quotes, fundamental metrics, technical indicators, and growth analysis into a single professional report. Supports A-share, US stocks, HK stocks. Generates detailed investment recommendations with risk assessment and actionable trading strategies.

netease-youdao/LobsterAI · 53 tokens

stock-announcements

A tool guide for fetching official announcements from companies listed on China’s A-share stock markets.

netease-youdao/LobsterAI · 79 tokens

stock-explorer

A Yahoo Finance (yfinance) powered financial analysis tool. Get real-time quotes, generate technical indicator reports (RSI/MACD/Bollinger/VWAP/ATR), summarize fundamentals, and run a one-shot report that outputs a text summary.

netease-youdao/LobsterAI · 55 tokens

agent-payment-x402

Add x402 payment execution to AI agents with per-task budgets, spending controls, and non-custodial wallets. Supports Base through agentwallet-sdk and X Layer through OKX Payments / OKX Agent Payments Protocol.

DekaPrayoga/AurixAgent · 49 tokens

ledger

A cloud-cost and budget-management skill for examining infrastructure, resource sizes, spending patterns, and AI workload costs.

seaworld008/Commonly-used-high-value-skills · 20 tokens

skin-creator

Create and apply a two-asset LobsterAI visual skin from the user's style description. Use only when the AI Skin Designer kit supplies the structured skinpack workflow marker; do not use for ordinary theme or image requests.

netease-youdao/LobsterAI · 48 tokens