Agent skill

Pricing

by Piebald-AI in Piebald-AI/splitrail

Guide for updating model pricing in Splitrail. An agent skill from Piebald-AI/splitrail.

MITAuto-check passed

Install Pricing

skills CLI
$ npx skills add Piebald-AI/splitrail --skill pricing -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Piebald-AI/splitrail pricing --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Piebald-AI/splitrail.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/pricing .claude/skills/pricing && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pricing
GitHub stars
223
Token cost
~783 tokens
SKILL.md length
356 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

Guide for updating model pricing in Splitrail. An agent skill from Piebald-AI/splitrail.

  • Works in 3 steps: Add a ModelInfo entry in… → If the model has aliases (date suffixes,… → Add or update tests in src/models.rs for…
  • Adding new AI model costs
  • SKILL.md covers Adding a New Model, Dated Pricing Overrides, Price Calculation and Common Pricing Sources
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Pricing is an agent skill from Piebald-AI/splitrail. Guide for updating model pricing in Splitrail. Use when adding new AI model costs or updating existing pricing data.

Its SKILL.md is about 780 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Qwen. The repository describes itself as: Fast, cross-platform, real-time token usage tracker and cost monitor for Claude Code / Codex CLI / Antigravity CLI / Qwen Code / Cline / Zoo Code / Kilo Code / GitHub Copilot /… The licence is MIT.

When your agent uses it

  • Adding new AI model costs
  • Updating existing pricing data

Example prompts

  • “/pricing”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Add a ModelInfo entry in populate_defaults() with
  2. If the model has aliases (date suffixes, provider-prefixed names, regional names, etc.), add entries to the alias section mapping each…
  3. Add or update tests in src/models.rs for canonical pricing, aliases, caching, and estimated/non-estimated status.

What it can do on your machine

Read from SKILL.md and the folder at commit d9cbe50. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • anthropic.com
    • openai.com
    • ai.google.dev

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Pricing loads about 783 tokens when it runs. Until then it costs about 31 tokens; SKILL.md has 356 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~31
When it runs · the whole SKILL.md, loaded when a task matches
~783

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Piebald-AI/splitrail at commit d9cbe50, republished under its MIT licence (© Piebald-AI). 356 words, ~783 tokens.

Download SKILL.mdSave it as .claude/skills/pricing/SKILL.md (or your agent's skills folder).
name
pricing
description
Guide for updating model pricing in Splitrail. Use when adding new AI model costs or updating existing pricing data.

Pricing Model Updates

Token pricing is defined in src/models.rs. Built-in models are populated by populate_defaults() into the runtime model registry, and user/config models can be merged with init_external_models().

Adding a New Model

  1. Add a ModelInfo entry in populate_defaults() with:
    • pricing: Use PricingStructure::Flat { input_per_1m, output_per_1m } for flat-rate models, or PricingStructure::Tiered for threshold-based pricing.
    • caching: Use the appropriate CachingSupport variant (None, OpenAI, Anthropic, OpenAIWithWrites, or Tiered).
    • service_tiers: Leave empty unless the provider has distinct priority/flex/batch rates.
    • dated_pricing: Leave empty unless pricing changes by usage date.
    • is_estimated: Set to true only when pricing is not confirmed by a provider/tool source.
    • input_token_semantics: Auto-derived for built-in models (defaults to ExcludesCache); only GPT/o-series models typically need IncludesCacheRead. External model configs should set this explicitly if it affects cache-read counting.
  2. If the model has aliases (date suffixes, provider-prefixed names, regional names, etc.), add entries to the alias section mapping each observed name to the canonical model name.
  3. Add or update tests in src/models.rs for canonical pricing, aliases, caching, and estimated/non-estimated status.
Show full SKILL.md (189 more words)Show less

Dated Pricing Overrides

Use dated_pricing when a model has temporary promotional pricing, launch pricing, or another time-bounded rate that should apply based on the original usage timestamp.

The default pricing and caching fields should represent the durable/current sticker price. Each DatedPricing override has a valid_until: NaiveDate exclusive end date and applies when usage_date < valid_until. For example, an introductory rate that applies through 2026-08-31 should use valid_until = NaiveDate::from_ymd_opt(2026, 9, 1).expect("valid date").

When adding a dated override:

  • Keep the model's default pricing/caching at the post-promo or durable rate.
  • Add the temporary rate with add_dated_pricing!() after add_model!().
  • Add boundary tests for the final day of the temporary rate and the first day after it ends.
  • Prefer dated calculator functions in analyzers that know the usage timestamp.

Price Calculation

Use models::calculate_total_cost_for_service_tier_at() when an analyzer has a message or event timestamp. This preserves historical costs across dated pricing windows.

Use the undated compatibility helpers, such as models::calculate_total_cost(), only for tests, config-like calculations, or call sites that truly do not know the usage date. Undated helpers use the model's default pricing/caching, not temporary dated overrides.

Common Pricing Sources

© Piebald-AI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/pricing of Piebald-AI/splitrail.

Open the folder on GitHubat commit d9cbe50

Compare with similar skills

Pricing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Pricing compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pricing this skillPiebald-AI/splitrail223—~783Automated safety check: PassMIT
AI Image Generation and Editingzhayujie/CowAgent47k—~1.3kAutomated safety check: PassMIT
Agent Feature ReproductionQwenLM/qwen-code28k—~1.5kAutomated safety check: PassApache-2.0
Qwen Code E2E TestingQwenLM/qwen-code28k—~2.1kAutomated safety check: PassApache-2.0
Game Asset Generatorhtdt/godogen7.1k—~2.8kAutomated safety check: PassMIT
Fix Art IssuesOpenPipe/ART11k—~840Automated safety check: NotesApache-2.0

Similar skills

  • Generates or edits images from text prompts through a Python script that picks an image backend based on which API keys are configured.

    47k GitHub stars~1.3k tokensUpdated today
    Media & CreativeAuto-check passed
  • Reproduces a feature from Codex or Claude Code in Qwen Code by running the reference agent under capture, reading the traces, then implementing matching behavior.

    28k GitHub stars~1.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Qwen Code E2E Testing

    QwenLM/qwen-code

    Guides end-to-end testing of the Qwen Code CLI in headless mode with real model calls, MCP test servers and inspection of raw API traffic.

    28k GitHub stars~2.1k tokensUpdated today
    Testing & QAAuto-check passed
  • Generates game art from text prompts: PNG images, GLB 3D models, rigged characters, animations and sprites, with background removal.

    7.1k GitHub stars~2.8k tokensUpdated 7 days ago
    Game DevelopmentAuto-check passed
  • Fix Art Issues

    OpenPipe/ART

    Fix a GitHub issue on OpenPipe/ART and open a PR. An agent skill from OpenPipe/ART.

    11k GitHub stars~840 tokensUpdated today
    AI & LLM EngineeringAuto-check: notes
  • Weavebench Cua Reproduce

    AMAP-ML/LongHorizon-Harness

    Reproduce CUA-Harness experiments on WeaveBench from a GitHub checkout.

    1.7k GitHub stars~1.6k tokensUpdated 1 mo ago
    Testing & QAAuto-check passed

More from Piebald-AI/splitrail

  • MCP

    Piebald-AI/splitrail

    Guide for working with Splitrail's MCP server. An agent skill from Piebald-AI/splitrail.

    223 GitHub stars~335 tokensUpdated yesterday
    Auto-check passed
  • New Analyzer

    Piebald-AI/splitrail

    Guide for adding a new AI coding agent analyzer to Splitrail.

    223 GitHub stars~326 tokensUpdated yesterday
    Auto-check passed
  • Performance

    Piebald-AI/splitrail

    Performance optimization guidelines for Splitrail. An agent skill from Piebald-AI/splitrail.

    223 GitHub stars~245 tokensUpdated yesterday
    Auto-check passed
  • Tui

    Piebald-AI/splitrail

    Guide for Splitrail's terminal UI and file watching. An agent skill from Piebald-AI/splitrail.

    223 GitHub stars~349 tokensUpdated yesterday
    Auto-check passed
  • Types

    Piebald-AI/splitrail

    Reference for Splitrail's core data types. An agent skill from Piebald-AI/splitrail.

    223 GitHub stars~271 tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Pricing

What does Pricing do?

Guide for updating model pricing in Splitrail. An agent skill from Piebald-AI/splitrail. Pricing is an agent skill from Piebald-AI/splitrail. Guide for updating model pricing in Splitrail.

When should I use Pricing?

Pricing fits situations like: adding new AI model costs; updating existing pricing data.

How do I install Pricing in Claude Code?

Run `npx skills add Piebald-AI/splitrail --skill pricing -a claude-code`. Or copy the skill folder (.claude/skills/pricing in Piebald-AI/splitrail) into .claude/skills/pricing in your project. Claude Code loads it when a task matches its description.

How do I install Pricing in Codex?

Run `npx skills add Piebald-AI/splitrail --skill pricing -a codex`. Or copy the skill folder (.claude/skills/pricing in Piebald-AI/splitrail) into .agents/skills/pricing in your project. Codex loads it when a task matches its description.

Can I use Pricing in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Piebald-AI/splitrail --skill pricing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pricing, .gemini/skills/pricing, .github/skills/pricing and .opencode/skills/pricing in your project.

What does Pricing need to run?

SKILL.md names no scripts, command-line tools or credentials: Pricing is instructions for the agent only.

Does Pricing access the network?

SKILL.md names 3 domains. As links in the text: anthropic.com, openai.com and ai.google.dev. This is read from the text; nothing was executed.

Is Pricing safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Pricing use?

Pricing is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Pricing use?

About 783 tokens (SKILL.md is roughly 3.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Pricing?

Skills that share tags, products or a category with Pricing: AI Image Generation and Editing (zhayujie/CowAgent, 47k stars), Agent Feature Reproduction (QwenLM/qwen-code, 28k stars), Qwen Code E2E Testing (QwenLM/qwen-code, 28k stars) and Game Asset Generator (htdt/godogen, 7.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pricing?

Piebald-AI (a GitHub organization) maintains it in Piebald-AI/splitrail, which has 223 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 7, 2026.

Source: Piebald-AI/splitrail on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.