cost-measurement

cost-measurement is a skill for Claude Code, Codex from gaia-research/gaia-skill-heaven. It costs 62 tokens per session (1,171 once invoked), scanned A, original, no licence file.

A tool for measuring how many language-model tokens and how much money a coding-agent session, worker, or benchmark uses.

In plain words
What is it for?
Use it to measure session spend, report token usage, compare benchmark approaches, or record the cost of dispatched workers.
Why use it?
It provides a consistent basis for reporting spending and comparing the cost of different ways of doing work.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Use it to measure session spend, report token usage, compare benchmark approaches, or record the cost of dispatched workers.

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

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-measurement

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/gaia-research/gaia-skill-heaven/cost-measurement"><img src="https://agentmods.dev/badge/skills/gaia-research/gaia-skill-heaven/cost-measurement.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,171 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 unknown 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.00062 $0.01171
Opus 5 $0.00031 $0.00585
Sonnet 5 $0.00012 $0.00234
Haiku 4.5 $0.00006 $0.00117

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

Security

Grade A, and why

cost-measurement 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 12d 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.

packages/core/skills/cost-measurement/SKILL.md · 121 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 12d ago First seen · 121 lines · 62 tokens per session scan A 9beb1f360772

Subscribe to this mod's changes

cost-measurement is a skill published in the GitHub repository gaia-research/gaia-skill-heaven (4 stars, last pushed 2d ago), with no licence file. It adds 62 tokens to every session and 1,171 once invoked, about $0.0003 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-08-31.

Related

Other skills, from other repositories

architecture-compass

Architectural thinking partner for an existing repository — scans the codebase, conducts a structured interview, agrees on current architectural state and recommended direction, and produces a shareable insights document. Scoped to one repository, module, or folder. Does not execute transformation — it orients. Use…

techygarg/lattice · 114 tokens

skill-review

Deep behavioral audit of a Lattice skill — proposes 3 review personas relevant to the skill, runs independent scenario analysis from each persona's perspective, then merges only the high-confidence, practical findings into a severity-ordered gap report with proposed fixes. Structural validation (conventions…

techygarg/lattice · 180 tokens

architecture-refiner

Facilitate a structured conversation to define architecture principles for a repository. Supports multiple architecture styles: clean architecture (default), hexagonal / ports & adapters, modular monolith, or custom. Produces a formal architecture document that the corresponding atom will use. Use when setting up a…

techygarg/lattice · 114 tokens

clean-code-refiner

Facilitate a structured conversation to define clean code principles for a repository. Produces a formal clean-code.md document that the clean-code atom will use as its override. Use when setting up coding standards, defining code quality rules, or when the user says 'setup clean code', 'define coding standards'…

techygarg/lattice · 84 tokens

context-anchoring

Manage per-feature living documents that capture decisions, constraints, and reasoning across AI sessions during active development. Scoped to feature-level work — design, implementation, bugfix, refactor — not for codebase-wide assessments or product-wide specifications (those define their own document lifecycles).…

techygarg/lattice · 147 tokens

ddd-refiner

Facilitate a structured conversation to define DDD guardrails for domain design within a repository. Produces a formal ddd-principles.md document that the domain-driven-design atom will use as its override. Use when setting up domain design principles, defining aggregate rules, or when the user says 'setup DDD'…

techygarg/lattice · 86 tokens