Model Price Check

VerifiedSafe

Verify and refresh AI model pricing in pricing.py from official provider pages, then regenerate PRICING.md. Run during PRs that touch providers or usage.

Sby Skills Guide Bot
DevelopmentIntermediate
7/22/2026
Claude Code
#pricing#ai-models#cost-tracking#repo-maintenance#documentation-generation

Recommended for

Automated summary

Verifies per-token AI model pricing against official provider pages, updates backend/core/providers/pricing.py and regenerates the PRICING.md report, but only inside the Chatty repo.

Strengths

  • Enforces two explicit guards: it refuses to act outside the Chatty repo, and it skips re-fetching when pricing was already verified earlier in the same conversation.
  • Forbids fabrication: a model whose rate is missing from the official page is left out of MODEL_PRICING and reported as unknown instead of guessed.
  • Regenerates PRICING.md from the updated code (with per-model source URL and verification date) rather than letting hand-written numbers drift.
  • Also prices newly surfaced dynamic models by taking the union of existing keys and each provider's current model list.

Limitations

  • Tightly coupled to the Chatty repo: file paths, provider set and identity guard are hard-coded, so it is not portable to other projects.
  • Relies on WebFetch against four vendor pricing pages whose layout can change or become unreachable, which may leave models unverifiable.
  • Covers only the STANDARD tier and the four listed providers (Anthropic, OpenAI, Google, Together); other tiers or providers are not handled.
When to use it

Run it on any PR that adds or changes models or touches core/providers/ or core/agents/usage/, or when someone explicitly asks whether pricing is current.

When not to use it

Don't use it outside the Chatty repo, or when you need rates for providers or billing tiers this skill does not cover.

Security analysis

Safe
Quality score82/100

The skill is narrowly scoped to the Chatty repository and only edits pricing metadata files. It explicitly forbids secret handling, avoids destructive commands, and uses network access solely to read public pricing pages. The automatic git commit is a mild operational concern but not a security risk.

Findings
  • •Automatically commits changes to git without an explicit user confirmation step, though it is guarded to a specific repo and files.
  • •Uses WebFetch against external pricing pages and may call local provider model-list endpoints if credentials are configured, but does not send secrets out.
How this analysis is made

Examples

PR check
I just added Gemini 2.5 Flash to the provider model list — run price-check and show me the diff table before I open the PR.
On-demand refresh
Check prices: is our model pricing current? Refresh pricing.py and PRICING.md if anything changed.
Unknown model handling
Is pricing current? If any model's rate isn't on the official page, leave it out and tell me which ones are unknown.

name: price-check description: 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.

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/ or core/agents/usage/ (required by the project CLAUDE.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 -v contains wwilson1017/chatty, OR
  • CLAUDE.md starts with # Chatty AND backend/core/providers/pricing.py exists.

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

  1. Model set. Union of the keys in MODEL_PRICING and each provider's current model list — the fallback *_MODELS constants, plus (if credentials are configured) what GET /api/providers/{provider}/models returns. This prices newly-surfaced dynamic models, not just legacy ones.
  2. 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/pricing Record tier caveats (e.g. Gemini 2.5 Pro is the ≤200K-prompt tier) in a code comment.
  3. Diff against the current MODEL_PRICING; classify each model: added / changed / unchanged / unverifiable.
  4. Never fabricate. If a model's rate isn't on the official page, leave it OUT of MODEL_PRICING and report it as "unknown" — the usage dashboard already flags unpriced paid models (is_priced / per-agent has_unknown_pricing). Do NOT guess from memory or community posts.
  5. 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).
  6. Regenerate backend/core/providers/PRICING.md from the updated pricing.py (do not hand-author divergent numbers): a header line Last verified: <YYYY-MM-DD> (price-check) followed by a per-provider table model | input $/M | output $/M | source | verified.
  7. Report a concise diff table to the user. When run during a PR, also place the diff in the PR description.

Commit

  • Commit pricing.py and PRICING.md together, e.g. Refresh model pricing (price-check <YYYY-MM-DD>).
  • No Co-Authored-By or "Generated with Claude Code" footers (repo policy).
  • Never commit secrets; never run gcloud secrets/--set-secrets commands.

Notes

  • The session date is authoritative for the verified date — 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.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/model-price-check-mrwak9bz/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/model-price-check-mrwak9bz' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/model-price-check-mrwak9bz/download' --output '.skill-downloads/model-price-check-mrwak9bz/SKILL.md.part' && mv '.skill-downloads/model-price-check-mrwak9bz/SKILL.md.part' '.skill-downloads/model-price-check-mrwak9bz/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/model-price-check-mrwak9bz/SKILL.md' && test -s '.skill-downloads/model-price-check-mrwak9bz/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/price-check' && cp -R '.skill-downloads/model-price-check-mrwak9bz' '.claude/skills/price-check'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/model-price-check-mrwak9bz'

openskills read 'model-price-check-mrwak9bz'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/model-price-check-mrwak9bz/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills