decant: Skill for Claude Code

.claude/skills/update-model-pricing/SKILL.md

update-model-pricing is a skill for Claude Code from dosu-ai/decant. It costs 52 tokens per session (399 once invoked), scanned A, original, Apache-2.0.

A procedure for adding or changing token prices for AI models in Decant. Token rates are the provider's charges for the text sent to and returned by a model.

In plain words
What is it for?
Use it when a provider changes rates, a model is added or retired, a model ID pattern needs fixing, or context-window tests must change.
Why use it?
It keeps cost calculations, model-ID matching, documentation, and tests aligned with the provider's current first-party pricing. It also avoids silently assigning a retired model the price of a different model.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions AGENTS.md.

This is dosu-ai/decant's own configuration. It tells Claude Code how to work on decant itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything decant configures →

Reuse

Borrowing it

Nothing to install: this file belongs to dosu-ai/decant. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/dosu-ai/decant/main/.claude/skills/update-model-pricing/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/dosu-ai/decant

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 update-model-pricing

README.md
[![agentmods](https://agentmods.dev/badge/skills/dosu-ai/decant/update-model-pricing/github.svg)](https://agentmods.dev/skills/dosu-ai/decant/update-model-pricing)
Your own site
<a href="https://agentmods.dev/skills/dosu-ai/decant/update-model-pricing"><img src="https://agentmods.dev/badge/skills/dosu-ai/decant/update-model-pricing/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 update-model-pricing

Your own site · 80×15
<a href="https://agentmods.dev/skills/dosu-ai/decant/update-model-pricing"><img src="https://agentmods.dev/badge/skills/dosu-ai/decant/update-model-pricing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 399 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.00052 $0.00399
Opus 5.5 $0.00021 $0.00160
Sonnet 5.5 $0.00010 $0.00080
Haiku 4.5 $0.00005 $0.00040

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

Security

Grade A, and why

update-model-pricing 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 28d 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.

.claude/skills/update-model-pricing/SKILL.md · 42 lines

What it actually says

Update model pricing

Rates live in src/cost.ts and are documented in docs/pricing.md. AGENTS.md invariant 4 explains why stored costs follow current rates.

Steps

  1. Verify every rate against the provider's first-party pricing page. Do not use third-party aggregators or memory.
  2. Edit the pricing table and model-ID patterns in src/cost.ts. Retired models without a published rate stay unpriced rather than falling through to a newer tier.
  3. Update docs/pricing.md: the table row, the source link list, and the dated "verified on" sentence at the top.
  4. Add cases to test/cost.test.ts for each new or changed pattern, including dated-suffix variants of the model ID.
  5. If context-window sizes changed too, update the model window tests in test/context-window.test.ts.

What happens to existing archives

Every sync reprices stored session and activity costs with current rates, so a rate change needs no migration. Bump INGEST_PIPELINE_REVISION only when unchanged sources must be re-derived, for example when session model selection changes which model a session is attributed to.

Goldens

Golden outputs that include cost change when a fixture model's rate changes. Review that diff line by line, then regenerate with bun run scripts/regen-goldens.ts --i-reviewed-the-diff.

Prior art

git log --oneline -- src/cost.ts docs/pricing.md shows earlier pricing changes and the tests that shipped with them.

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. 28d ago First seen · 42 lines · 52 tokens per session scan A eb7963ff482d

Subscribe to this mod's changes

update-model-pricing is a skill published in the GitHub repository dosu-ai/decant (72 stars, last pushed today), licensed Apache-2.0. It adds 52 tokens to every session and 399 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories

tinker-training-cost

Calculates training costs for Tinker fine-tuning jobs. Use when estimating costs for Tinker LLM training, counting tokens in datasets, or comparing Tinker model training prices. Tokenizes datasets using the correct model tokenizer and provides accurate cost estimates.

synthetic-sciences/openscience · 55 tokens

aitask-run-gates

Run a task's declared gates — the conversational front of the headless gate orchestrator engine. Dispatches unlocked machine-gate verifiers within their retry budgets, observes human gates without self-signalling, and reports.

beyondeye/aitasks · 49 tokens

aitask-add-model

Register a known code-agent model in models .json, optionally promote it to default across config/seed/DEFAULTAGENTSTRING.

beyondeye/aitasks · 32 tokens

money

Skill "money" from Hmbown/Codewhale, covering money, when to use, setup, workflow and non-goals.

Hmbown/Codewhale · 0 tokens

cdf-anomalygen

Use when running the CDF AnomalyGen pipeline over a defect dataset — mask placement, fine-tuning, synthetic defect-image generation (SDG), evaluation, quality refinement, and pseudo-labeling — even when the user names only one stage.

NVIDIA/skills · 54 tokens

deepstream-sop

Use this skill when building, deploying, evaluating, debugging, or measuring latency for the DeepStream SOP Inference Microservice — a GPU-accelerated FastAPI service that detects whether operators perform assembly-line steps in order via event boundary detection (GEBD) plus VLM classification. Trigger even if the…

NVIDIA/skills · 219 tokens