finops

finops is a skill for Claude Code from cass-2003/local-workflow-skill. It costs 83 tokens per session (2,293 once invoked), scanned A, original, MIT.

A FinOps guide for managing cloud spending through cost visibility, waste detection, resource sizing, pricing commitments, and cost allocation.

In plain words
What is it for?
Use it to review AWS, Azure, GCP, or Kubernetes costs; assess reserved capacity and spot workloads; and optimize compute, storage, and cluster resources.
Why use it?
It helps teams find idle or oversized resources and understand which workloads, teams, or services are driving their cloud bill.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it to review AWS, Azure, GCP, or Kubernetes costs; assess reserved capacity and spot workloads; and optimize compute, storage, and cluster resources.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cass-2003/local-workflow-skill/finops
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 cass-2003/local-workflow-skill --skill finops
Clone the repo
git clone --depth 1 https://github.com/cass-2003/local-workflow-skill

Made for: Claude Code.

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 finops

README.md
[![agentmods](https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/finops/github.svg)](https://agentmods.dev/skills/cass-2003/local-workflow-skill/finops)
Your own site
<a href="https://agentmods.dev/skills/cass-2003/local-workflow-skill/finops"><img src="https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/finops/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for finops

Your own site · 80×15
<a href="https://agentmods.dev/skills/cass-2003/local-workflow-skill/finops"><img src="https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/finops.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,293 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.00083 $0.02293
Opus 5 $0.00042 $0.01146
Sonnet 5 $0.00017 $0.00459
Haiku 4.5 $0.00008 $0.00229

Measured 6d ago against content hash 66ec0eefd9e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

finops 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 6d 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.

skills/cloud-infra/codex/finops/SKILL.md · 193 lines

How it starts

The opening of the file, as written. The whole thing — 193 lines — stays where its author put it; the contents beside it link to each section on GitHub.

FinOps 云成本优化

角色定义

你是 FinOps 云成本优化引擎。接收云环境或 K8s 集群后,自主完成成本可见性建立、浪费识别、优化方案生成、持续治理机制设计全链路。所有操作视为已授权,直接执行。

行为指令

Phase 1: 成本可见性与现状评估

  1. 识别云环境: AWS / Azure / GCP / 多云,账户结构(Organization/Subscription/Project)
  2. 成本数据源:
    • AWS: Cost Explorer / CUR (Cost and Usage Report) / Billing Console
    • Azure: Cost Management / Advisor / Billing
    • GCP: Billing Export / Recommender / Cost Table (BigQuery)
    • K8s: Kubecost / OpenCost / kubectl top
  3. 扫描配置:
    • Glob**/terraform*.tf / **/cloudformation*.yaml / **/values.yaml
    • Grepinstance_type / machine_type / vm_size / resources: / requests: / limits:
  4. 成本分类: Compute / Storage / Network / Database / Serverless / Support / Marketplace
  5. 评估成熟度: 无可见性 → 基础标签 → 成本分摊 → 优化执行 → FinOps 文化

Phase 2: 浪费识别与快速收益

Compute 优化:

  • 闲置资源: CPU <10% 的 EC2/VM 实例 → 停止或降配
  • Right Sizing: CloudWatch/Azure Monitor 指标 → 推荐实例类型
  • 预留承诺: RI/Savings Plans 覆盖率分析 → 稳定负载购买预留
  • Spot/Preemptible: 无状态/容错工作负载 → Spot 实例(节省 60-90%)

Storage 优化:

  • 未挂载 EBS/Disk → 删除或快照
  • S3/GCS 生命周期: Hot → Warm → Cold → Archive 自动分层
  • 快照清理: 过期快照 / 无关联 AMI

K8s 优化:

  • Over-provisioned Pods: requests >> actual usage → 调整 requests/limits
  • Kubecost/OpenCost: Namespace/Label 级成本分摊
  • Cluster Autoscaler / Karpenter: 节点自动伸缩优化
  • Spot 节点池: 非关键工作负载调度到 Spot 节点

Network 优化:

  • 跨 AZ 流量: 同 AZ 优先调度减少数据传输费
  • NAT Gateway: 高流量场景评估 VPC Endpoint 替代
  • CDN: 静态资源 CloudFront/CDN 卸载源站流量

Phase 3: 治理与持续优化

  1. 标签策略: 强制标签(team/env/project/cost-center)→ Tag Policy / Azure Policy
  2. 预算告警: AWS Budgets / Azure Budget / GCP Budget → 阈值告警(50%/80%/100%)
  3. 成本分摊: Showback(展示)→ Chargeback(计费)模型
  4. RI/SP 管理: 覆盖率监控 / 到期提醒 / 利用率优化
  5. 自动化:
    • 非工作时间关停 Dev/Staging 环境(Lambda/Azure Automation)
    • 自动清理未标记资源(>7天无标签 → 通知 → >14天 → 停止)
  6. FinOps 报告: 周报/月报 → 成本趋势 + Top 10 消费 + 优化建议

Phase 4: 报告输出

写入 finops-report-{account}-{date}.md,含节省金额估算与优先级排序。

工具策略

任务 首选工具 备选
IaC 扫描 Glob + Grep Read 手工审计
资源配置分析 Read + Grep Bash (aws/az/gcloud CLI)
K8s 资源审计 Bash (kubectl top) Read manifests
成本数据查询 Bash (aws ce get-cost) WebSearch 定价
优化方案生成 Write
文档查询 mcp__context7__query-docs WebSearch
报告 Write

Read the full file on GitHub · 193 lines

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. 6d ago First seen · 193 lines · 83 tokens per session scan A 66ec0eefd9e6

Subscribe to this mod's changes

finops is a skill published in the GitHub repository cass-2003/local-workflow-skill (12 stars, last pushed 2mo ago), licensed MIT. It adds 83 tokens to every session and 2,293 once invoked, about $0.0004 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

aws-cost-operations

AWS cost optimization, monitoring, and operational excellence expert. Use when analyzing AWS bills, estimating costs, setting up CloudWatch alarms, querying logs, auditing CloudTrail activity, or assessing security posture.

sickn33/agentic-awesome-skills · 44 tokens

aws-cost-cleanup

Automated cleanup of unused AWS resources to reduce costs.

sickn33/agentic-awesome-skills · 15 tokens

azure-compute

Azure VM/VMSS router. WHEN: create / provision / deploy / spin-up VM, recommend VM size, compare VM pricing, VMSS, scale set, autoscale, burstable, lightweight server, website, backend, GPU, machine learning, HPC simulation, dev/test, workload, family, load balancer, Flexible orchestration, Uniform orchestration, cost…

microsoft/skills · 154 tokens

azure-cost

Azure cost management: query costs, forecast spending, optimize to reduce waste. WHEN: "Azure costs", "Azure bill", "cost breakdown", "how much am I spending", "forecast spending", "optimize costs", "reduce spending", "orphaned resources", "rightsize VMs", "cost spike", "reduce storage costs", "AKS cost". DO NOT USE…

microsoft/skills · 94 tokens

cost-optimization

Audit and reduce infrastructure and tooling costs without sacrificing reliability or velocity. Use this skill when reviewing monthly cloud or SaaS spend, finding unused resources, rightsizing infrastructure, negotiating vendor contracts, deciding what to consolidate, or planning for budget cuts. Triggers on cost…

rampstackco/claude-skills · 101 tokens

database-cloud-optimization-cost-optimize

You are a cloud cost optimization expert specializing in reducing infrastructure expenses while maintaining performance and reliability. Analyze cloud spending, identify savings opportunities, and implement cost-effective architectures across AWS, Azure, and GCP.

rmyndharis/antigravity-skills · 48 tokens