finops

finops is a skill for Claude Code, Codex from fmind/dot. It costs 27 tokens per session (1,070 once invoked), scanned A, original, MIT.

A set of practices for measuring and controlling cloud and AI operating costs. It covers compute, storage, databases, network transfer, monitoring, CI/CD, and model inference spending.

In plain words
What is it for?
Use it to set billing alerts and hard limits, cap cloud workloads, scale services to zero when idle, control warehouse and storage usage, and reduce unnecessary monitoring or build costs.
Why use it?
It helps prevent unexpected bills by applying budgets, alerts, quotas, cost labels, resource limits, and automatic expiry or scale-down rules. It also helps identify which service, environment, or owner is responsible for spending.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to set billing alerts and hard limits, cap cloud workloads, scale services to zero when idle, control warehouse and storage usage, and reduce unnecessary monitoring or build costs.

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

Made for: Claude Code, Codex.

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/fmind/dot/finops/github.svg)](https://agentmods.dev/skills/fmind/dot/finops)
Your own site
<a href="https://agentmods.dev/skills/fmind/dot/finops"><img src="https://agentmods.dev/badge/skills/fmind/dot/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/fmind/dot/finops"><img src="https://agentmods.dev/badge/skills/fmind/dot/finops.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,070 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.00027 $0.01070
Opus 5.5 $0.00011 $0.00428
Sonnet 5.5 $0.00005 $0.00214
Haiku 4.5 $0.00003 $0.00107

Measured 2d ago against content hash 763fc617d03e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/tco_model.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/finops/SKILL.md · 42 lines

How it starts

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

Cloud & AI FinOps

Model, bound, and verify non-human technical spend across compute, warehouses, storage, egress, observability, CI/CD, and AI inference. Delegate human effort/SOW pricing to proposal.

Workflow

  1. Audit live spend first: measure baselines across billing exports and ingest meters via gcloud/bigquery (billing exports & dry-run scan bytes), cloud-ops/databricks (warehouse/job DBU spend), and cloud-ops/pup (log/trace/metric ingest).
  2. Separate alert-only budgets from hard ceilings: billing budgets (50%, 80%, 100% actual/forecast + anomaly alerts) notify only and never stop spend. Pair them with hard service quotas, Cloud Billing spend caps, per-tenant circuit breakers, and mandatory labels (env, service, owner, cost-center) in infra-as-code.
  3. Cap compute & scale-to-zero: keep min-instances = 0 on Cloud Run and preview stacks unless a latency SLO justifies idle spend; set max-instances, concurrency, preview TTLs, and spot/preemptible batch pools.
  4. Bound warehouse, storage & egress: enforce maximum_bytes_billed and partition/cluster pruning per bigquery; add lifecycle/archive/abort-multipart/TTL rules and image retention; prefer private endpoints over NAT gateways and CDN for public assets.
  5. Control observability & CI burn: block prod DEBUG payload logs, ban high-cardinality metric labels (user_id, request_id, raw URLs), cap trace sampling/retention, cache CI layers, and skip heavy runners on doc-only diffs.
  6. Model cloud & AI TCO deterministically: fetch current pricing from primary docs (never memory) and run tco_model.py (python3 -I ~/.agents/skills/finops/scripts/tco_model.py scenario.json --json) for exact Decimal monthly/annual totals, $/1k requests, P50/P90 spikes, and one-time vs run-rate splits. Apply AI levers before scaling:
    • Route routine work to bulk/flash tiers (request-contracts).
    • Place static instructions/schemas before dynamic context for prompt-cache hits.
    • Check cache-write vs TTL breakeven (reads/write >= (write_mult - 1) / (1 - read_mult)): low-reuse prefixes with paid cache writes cost more than uncached calls.
    • Cap multi-turn $O(T^2)$ transcript growth via rolling summaries or compaction caps.
    • Set explicit max_output_tokens/thinking effort, deduplicate embeddings by content hash, and shift offline jobs to 50%-off Batch APIs.
  7. Verify figures: freeze IaC/config/model sheets and reconcile pricing, units, and totals end to end (apply risk-gated review per subagent on external models).

Read the full file on GitHub · 42 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago Changed 763fc617d03e
  2. 3d ago Changed · +1 lines · +4 tokens per session 68a001433dd9
  3. 8d ago First seen · 41 lines · 23 tokens per session scan A 3f77d6517509

Subscribe to this mod's changes

finops is a skill published in the GitHub repository fmind/dot (14 stars, last pushed yesterday), licensed MIT. It adds 27 tokens to every session and 1,070 once invoked, about $0.0001 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-11-22.

Related

finops compared with skills from other repositories

finops next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
finopsfmind/dotSkill14yesterdayMITA27Claude Code, Codex
cloud-runfmind/dotfilesSkill43mo agoMITA28Claude Code, Codex
google-cloud-operationsfmind/dotfilesSkill43mo agoMITA34Claude Code, Codex
terraform-stackfmind/dotfilesSkill43mo agoMITA45Claude Code, Codex
dotfiles-bootstrapsebastienrousseau/dotfilesSkill84todayApache-2.0A89Claude Code, Codex
scaffold-terraformurmzd/dotfilesSkill65d agoApache-2.0A115Claude Code
k8s-localfmind/dotfilesSkill43mo agoMITA50Claude Code, Codex