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.
npx skills add cass-2003/local-workflow-skill --skill finopsgit clone --depth 1 https://github.com/cass-2003/local-workflow-skillWrote 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.
[](https://agentmods.dev/skills/cass-2003/local-workflow-skill/finops)<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.
<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>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00083 | $0.02293 |
| Opus 5.5 | $0.00033 | $0.00917 |
| Sonnet 5.5 | $0.00017 | $0.00459 |
| Haiku 4.5 | $0.00008 | $0.00229 |
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 3mo 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.
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: 成本可见性与现状评估
- 识别云环境: AWS / Azure / GCP / 多云,账户结构(Organization/Subscription/Project)
- 成本数据源:
- 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
- 扫描配置:
Glob—**/terraform*.tf/**/cloudformation*.yaml/**/values.yamlGrep—instance_type/machine_type/vm_size/resources:/requests:/limits:
- 成本分类: Compute / Storage / Network / Database / Serverless / Support / Marketplace
- 评估成熟度: 无可见性 → 基础标签 → 成本分摊 → 优化执行 → 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: 治理与持续优化
- 标签策略: 强制标签(team/env/project/cost-center)→ Tag Policy / Azure Policy
- 预算告警: AWS Budgets / Azure Budget / GCP Budget → 阈值告警(50%/80%/100%)
- 成本分摊: Showback(展示)→ Chargeback(计费)模型
- RI/SP 管理: 覆盖率监控 / 到期提醒 / 利用率优化
- 自动化:
- 非工作时间关停 Dev/Staging 环境(Lambda/Azure Automation)
- 自动清理未标记资源(>7天无标签 → 通知 → >14天 → 停止)
- 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 |
— |
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.
- 3mo ago First seen · 193 lines · 83 tokens per session scan A 66ec0eefd9e6
finops is a skill published in the GitHub repository cass-2003/local-workflow-skill (12 stars, last pushed 4mo ago), licensed MIT. It adds 83 tokens to every session and 2,293 once invoked, about $0.0003 per session on Opus 5.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.
finops compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| finopscass-2003/local-workflow-skill | Skill | 12 | 4mo ago | MIT | A | 83 | Claude Code |
| aws-cost-cleanupsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 15 | Claude Code |
| aws-cost-operationssickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 44 | Claude Code |
| estimating-aws-workload-costsaws/agent-toolkit-for-aws | Skill | 3.8k | today | Apache-2.0 | A | 173 | Claude Code, Codex |
| azure-computemicrosoft/skills | Skill | 3.3k | today | MIT | A | 154 | Claude Code |
| cost-estimationmicrosoft/skills | Skill | 3.3k | today | MIT | A | 97 | Claude Code |
| cost-optimizationmicrosoft/skills | Skill | 3.3k | today | MIT | A | 98 | Claude Code |