cost-check

cost-check is a skill for Claude Code, Codex from rshade/finfocus. It costs 131 tokens per session (1,853 once invoked), scanned A, original, Apache-2.0.

A cost-estimation workflow for Pulumi or Terraform infrastructure projects using the FinFocus command-line tool. It prices supported resources, checks configured thresholds, and writes a COST_CHECK.md report.

In plain words
What is it for?
Use it before infrastructure changes to review projected monthly costs for a Pulumi project or existing Terraform state. It can flag resources that exceed the project's cost limits.
Why use it?
It replaces manual price guesses with the numbers returned by the cost tool and highlights expensive resources, increases, and total cost. It also makes clear when Terraform input is missing or unsupported, so an estimate is not mistaken for a complete plan.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument; mentions Claude Code.

Good fit Use it before infrastructure changes to review projected monthly costs for a Pulumi project or existing Terraform state. It can flag resources that exceed the project's cost limits.

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

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 cost-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/rshade/finfocus/cost-check/github.svg)](https://agentmods.dev/skills/rshade/finfocus/cost-check)
Your own site
<a href="https://agentmods.dev/skills/rshade/finfocus/cost-check"><img src="https://agentmods.dev/badge/skills/rshade/finfocus/cost-check/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 cost-check

Your own site · 80×15
<a href="https://agentmods.dev/skills/rshade/finfocus/cost-check"><img src="https://agentmods.dev/badge/skills/rshade/finfocus/cost-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 131 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,853 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.00131 $0.01853
Opus 5.5 $0.00052 $0.00741
Sonnet 5.5 $0.00026 $0.00371
Haiku 4.5 $0.00013 $0.00185

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

Security

Grade A, and why

cost-check 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 3d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (hooks/cost-check-hook.sh), 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.

agent-skills/cost-check/SKILL.md · 164 lines

How it starts

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

Cost Check

Run finfocus cost projected on the current project, apply thresholds, and write COST_CHECK.md.

Install: npx skills add rshade/finfocus -s cost-check.

Required CLI: finfocus v0.5.0 or newer. Update this line with the release the skill was last run against.

Core principle: read the numbers the CLI returns. Never estimate a price by hand, never parse the table output, and never report an unpriced resource as $0.

1. Detect the input

Found in the project Input Status
Pulumi.yaml or Pulumi.yml (this directory or a parent) --pulumi-json plan.json, or auto-detect supported
terraform.tfstate --terraform-state terraform.tfstate supported, state only
*.tf with no state file none not supported: Terraform plan input is not available as of v0.5.0

Terraform: the CLI prices what is in the state file, so a state that does not exist yet or is stale gives no estimate for the pending change. Say so in the report. Do not run terraform plan and do not convert its output. When Terraform plan input ships, edit this table and references/cli-contract.md.

If a Pulumi project and a Terraform state are both present, run each separately. If nothing is found, stop: "No Pulumi project or Terraform state found in this directory."

2. Preflight

command -v finfocus
finfocus --version
finfocus plugin list --output json
  • No binary: stop, name the failure, point to the finfocus-install skill.
  • Version older than the required one: stop and print both versions. A build such as v0.5.0-6-g3cb7ded counts as v0.5.0. An unparseable version, or 0.1.0 with no leading v (an unstamped source build), continues, and the report says "version unverified".
  • plugin list returns []: no plugin is installed. Continue. cost projected can still price resources from local YAML specs, so an empty list does not mean nothing is priced. Step 5 decides whether an estimate exists. Point to finfocus-install for the missing prices.

Read the full file on GitHub · 164 lines

Files

What ships with it

7 files 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. 3d ago Changed · +13 lines 6120b6dc6d6e
  2. 19d ago Changed · +10 lines 5906b5386640
  3. 1mo ago Changed · +2 lines a95a30009e4e
  4. 1mo ago Changed · +4 lines f61e8a50c4b9
  5. 1mo ago First seen · 135 lines · 131 tokens per session scan A 6ff2eb7e028b

Subscribe to this mod's changes

cost-check is a skill published in the GitHub repository rshade/finfocus (11 stars, last pushed yesterday), licensed Apache-2.0. It adds 131 tokens to every session and 1,853 once invoked, about $0.0005 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-10-20.

Related

cost-check compared with skills from other repositories

cost-check next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cost-checkrshade/finfocusSkill11yesterdayApache-2.0A131Claude Code, Codex
recipescostory-io/costory-finops-mcp-skillsSkill415d agoApache-2.0A236Claude Code, Codex
cost-optimizationcamilooscargbaptista/cto-toolkitSkill98mo agoMITA117Claude Code
aws-cost-opsautomateyournetwork/netclawSkill7394d agoApache-2.0A45Claude Code, Codex
eos-cost-analysisaws/tools-for-devops-agentSkill160yesterdayApache-2.0A215Claude Code, Codex
finops-expertpersonamanagmentlayer/pclSkill471mo agoApache-2.0A55Claude Code
gcp-spend-cap-setupshivamsriva31093/gcp-ironcladSkill241mo agoMITA98Claude Code, Codex