price-check
Keeps AI model pricing information current and documented within the Chatty repository.
Install
mkdir -p .claude/skills/price-check && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12033" && unzip -o skill.zip -d .claude/skills/price-check && rm skill.zipInstalls to .claude/skills/price-check
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Verify and refresh AI model pricing in Chatty's pricing.py from official provider pricing pages, and regenerate PRICING.md. Run during any PR that touches providers or usage. Skips re-fetching if pricing was already verified earlier in the current chat. Only operates inside the Chatty repo.Key capabilities
- →Fetch current AI model pricing from official provider pages
- →Diff fetched rates against current MODEL_PRICING
- →Update pricing.py with new model rates and sources
- →Regenerate PRICING.md from updated pricing.py
- →Report a concise diff table to the user
How it works
This skill fetches current AI model pricing from official provider pages, compares it to existing data, updates the internal pricing configuration, and regenerates the PRICING.md report. It operates only within the Chatty repo.
Inputs & outputs
When to use price-check
- →Updating model costs after a provider change
- →Verifying pricing dashboard accuracy
- →PR maintenance for model updates
About this skill
price-check
Keeps backend/core/providers/pricing.py (MODEL_PRICING + PRICING_SOURCES) current with published per-token rates and regenerates the reviewable report backend/core/providers/PRICING.md. No provider's models API exposes price, so this skill is the maintenance mechanism that keeps the usage/cost dashboard accurate as new models are added dynamically.
When to run
- During any PR that adds/changes models or touches
core/providers/orcore/agents/usage/(required by the projectCLAUDE.md→ Model Pricing). - On request: "check prices", "refresh model pricing", "is pricing current?".
Guard 1 — ship only in the Chatty repo
Before writing or committing anything, confirm this is the Chatty repo:
git remote -vcontainswwilson1017/chatty, ORCLAUDE.mdstarts with# ChattyANDbackend/core/providers/pricing.pyexists.
If neither holds, STOP: report that price-check only runs in the Chatty repo, and make no changes.
Guard 2 — skip if already verified this chat
If model pricing was already fetched/verified earlier in THIS conversation, or backend/core/providers/PRICING.md already shows Last verified: <today> with no pending diff, do NOT re-fetch. Reuse the in-session results and report "already current". Re-fetching wastes calls and risks rate limits.
Procedure
- Model set. Union of the keys in
MODEL_PRICINGand each provider's current model list — the fallback*_MODELSconstants, plus (if credentials are configured) whatGET /api/providers/{provider}/modelsreturns. This prices newly-surfaced dynamic models, not just legacy ones. - Fetch current STANDARD-tier rates (USD per 1M input / output tokens) via WebFetch from the official pages:
- Anthropic —
https://platform.claude.com/docs/en/about-claude/models/overview - OpenAI —
https://developers.openai.com/api/docs/pricing - Google —
https://ai.google.dev/gemini-api/docs/pricing - Together —
https://www.together.ai/pricingRecord tier caveats (e.g. Gemini 2.5 Pro is the ≤200K-prompt tier) in a code comment.
- Anthropic —
- Diff against the current
MODEL_PRICING; classify each model: added / changed / unchanged / unverifiable. - Never fabricate. If a model's rate isn't on the official page, leave it OUT of
MODEL_PRICINGand report it as "unknown" — the usage dashboard already flags unpriced paid models (is_priced/ per-agenthas_unknown_pricing). Do NOT guess from memory or community posts. - Write
backend/core/providers/pricing.py:MODEL_PRICING[model] = (input, output)PRICING_SOURCES[model] = (source_url, "<YYYY-MM-DD>")— use the current session date. Keep proven legacy entries (the dashboard prices historical rows by model id via longest-prefix match).
- Regenerate
backend/core/providers/PRICING.mdfrom the updatedpricing.py(do not hand-author divergent numbers): a header lineLast verified: <YYYY-MM-DD> (price-check)followed by a per-provider tablemodel | input $/M | output $/M | source | verified. - Report a concise diff table to the user. When run during a PR, also place the diff in the PR description.
Commit
- Commit
pricing.pyandPRICING.mdtogether, e.g.Refresh model pricing (price-check <YYYY-MM-DD>). - No
Co-Authored-Byor "Generated with Claude Code" footers (repo policy). - Never commit secrets; never run
gcloud secrets/--set-secretscommands.
Notes
- The session date is authoritative for the
verifieddate — read it from the environment context, don't compute it in code. - This skill is committed into the Chatty repo so it travels with the project; it is the canonical place to evolve the pricing-refresh workflow.
When not to use it
- →When not inside the Chatty repo
- →When pricing was already verified earlier in the current chat
- →When not needing to update model pricing
Limitations
- →Only operates inside the Chatty repo
- →Skips re-fetching if pricing was already verified in the current chat
- →Does not fabricate rates if not found on official pages
How it compares
This workflow ensures AI model pricing is kept current and accurate by directly fetching from official sources and updating internal configurations, unlike manual price tracking.
Compared to similar skills
price-check side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| price-check (this skill) | 0 | 1mo | No flags | Intermediate |
| dbt-transformation-patterns | 6 | 2mo | No flags | Intermediate |
| skills | 0 | 5mo | Review | Beginner |
| MinerU Document Extractor | 0 | 3mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
dbt-transformation-patterns
wshobson
Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.
skills
second-state
Transcribe speech from audio files to text.
MinerU Document Extractor
opendatalab
>
hugging-face-evaluation
FISCFED9
Add and manage evaluation results in Hugging Face model cards. Supports extracting eval tables from README content, importing scores from Artificial Analysis API, and running custom model evaluations with vLLM/lighteval. Works with the model-index metadata format.
ai-dock-history-exporter-executor
Nepopams
Use for scoped AI Dock History Hub, exporter, source metadata, and safe history data workflow changes.
Create SDRF
bigbio
Create a sample-to-data-relationship format (SDRF) file (usually from another type of samplesheet)