Skip to content
Back to skills

Update Model Pricing

ASecurity

Add or change model token rates in Decant. Use when a provider publishes new pricing, a new model needs a rate, a model ID pattern fails to match, or a retired model should stop inheriting a current tier's price.

  • 79 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 1, 2026
developmentgogit

Security analysis

A100/100

Scanned October 1, 2026

npx -y skills add dosu-ai/decant --skill update-model-pricing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Update Model Pricing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Update Model Pricing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dosu-ai-update-model-pricing/badge)](https://www.skillsdirectory.com/skills/dosu-ai-update-model-pricing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: update-model-pricing
description: Add or change model token rates in Decant. Use when a provider publishes new pricing, a new model needs a rate, a model ID pattern fails to match, or a retired model should stop inheriting a current tier's price.
---

# 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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.