agentleFS
GetStreamGetStream/Agents/.claude/skills/pricing/SKILL.md

pricing

Skill8.2k starsChanged 57 days agoApache-2.0View on GitHub

How to make new billable work (a model, vendor, modality or phone feature) report usage and get priced correctly. Read before adding anything the router bills, or when work shows up unpriced.

67 other projects use a version of this.

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projectsWeek of Nov 22: 0 new projects
Oct 2026Nov 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Most recently taken up by

Who's talking about GetStream/Agents

The biggest 5 of 8 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 8

Talked about on GitHub (8 times).

On GitHub · 8

3 more on GitHub

Used with

Projects with it also use grow-sustainably, processize and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • slavingiaSkill

    grow-sustainably

    Evaluate business decisions through the lens of sustainable, profitable growth. Use when someone is making decisions about spending, hiring, fundraising, or scaling their business.

    Also in 8 projects that use this

  • slavingiaSkill

    processize

    Turn a product idea into a manual-first process you can start delivering today. Use when you have an idea and want to figure out how to deliver value by hand before writing any code.

    Also in 8 projects that use this

  • CesarjoquinSkill

    popups

    When the user wants to create or optimize popups, modals, overlays, slide-ins, or banners for conversion purposes. Also use when the user mentions "exit intent," "popup conversions," "modal optimization," "lead capture popup," "email popup," "announcement banner," "overlay," "collect emails with a popup," "exit popup," "scroll trigger," "sticky bar," or "notification bar." Use this for any overlay or interrupt-style conversion element. For forms outside of popups, see cro. For general page conversion optimization, see cro.

    Also in 25 projects that use this

  • CesarjoquinSkill

    paywalls

    When the user wants to create or optimize in-app paywalls, upgrade screens, upsell modals, or feature gates. Also use when the user mentions "paywall," "upgrade screen," "upgrade modal," "upsell," "feature gate," "convert free to paid," "freemium conversion," "trial expiration screen," "limit reached screen," "plan upgrade prompt," "in-app pricing," "free users won't upgrade," "trial to paid conversion," or "how do I get users to pay." Use this for any in-product moment where you're asking users to upgrade. Distinct from public pricing pages (see cro) — this focuses on in-product upgrade moments where the user has already experienced value. For pricing decisions, see pricing.

    Also in 23 projects that use this

  • coreyhaines31Skill

    marketing-loops

    When the user wants a recurring marketing job an AI agent runs on a cadence or trigger, or asks what a weekly or daily automated check should do, remember, and when it should stop: SEO and ads checks, churn watches, outbound triage. For one-off ideas, see marketing-ideas. For the test loop, see ab-testing.

    Also in 13 projects that use this

  • +6 more from Cesarjoquin
  • +1 more from slavingia

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 0 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 62 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Vendor cost: if the vendor's response says what it charged, put it in VendorCostMicros so router prices drift can check the rate.

    line 14
  2. Very specific:

    Add the vendor.json entry from the vendor's pricing page, dated in the router.yaml comment.

    line 19
  3. Very specific:

    Run go test ./internal/routing/ -run TestEveryRoutedModelIsPriced, router prices check, and the modality's integration suite.

    line 20
  4. Very specific:

    After the deploy, in each environment: router prices show --unpriced is empty, the start log has no "billable work has no price", and one …

    line 21

“Common” is measured: kept by at least 6 in 10 of the 62 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Pricing and usage

Providers report quantities; the price list turns them into cost. Never compute cost in a provider.

  • Meters: internal/pricing/pricing.go. List prices: acceleration/prices/vendor.json (rates only, region required).
  • The database is the source of truth. On start a router adds items the database has never priced, at rates × 1.08. It never changes an existing price, so get the rates right before the first deploy. Later changes go through a price change per environment (management API) plus a vendor.json PR. See check_prices.
  • Unpriced work is recorded at $0. It reserves no spend and raises unpriced, and configs naming it get a 400. free: true is a price; a missing entry is not.
  • Every meter the vendor bills needs a rate. Missing cached or cache-write rates fall back to input. A missing output_tokens rate does not fall back: it is free.
  • Vendor cost: if the vendor's response says what it charged, put it in VendorCostMicros so router prices drift can check the rate.

Every change

  1. Report usage from the provider, in meters the vendor bills.
  2. Add the vendor.json entry from the vendor's pricing page, dated in the router.yaml comment. Self-hosted models get local: true instead.
  3. Run go test ./internal/routing/ -run TestEveryRoutedModelIsPriced, router prices check, and the modality's integration suite.
  4. After the deploy, in each environment: router prices show --unpriced is empty, the start log has no "billable work has no price", and one real request returns X-Stream-Cost-Micros equal to quantity × price.

By type

  • LLM: input_tokens, cached_input_tokens, cache_write_input_tokens, output_tokens. Write a long-prompt surcharge as tiers (above_input_tokens) and a service tier as when: {service_tier}. A customer-key (BYOK) twin is generated: never write one. See router-llm.
  • STS: split by modality (input_audio_tokens, output_text_tokens, …), plus generic input_tokens/output_tokens at the audio rates as a fallback for vendors that report no split. See router-sts.
  • STT: audio_ms (per minute is per: 3600000). See router-stt.
  • TTS: characters, or audio_ms if the vendor bills by duration. See router-tts.
  • Decision model: input_tokens, plus output_tokens if billed. A System One vendor reports usage for you; :free endpoints use free: true. See decision_model.
  • Search: requests, or tokens for LLM-backed search. See router-search.
  • Image, detection, OCR: images, pages, or tokens, whichever the vendor bills. See router-detection.
  • Memory, knowledge: requests; knowledge also uses bytes_written, bytes_queried, bytes_returned, results and byte_hours. Add new billed work to internal/billable so --unpriced checks it.
  • Sandbox: vcpu_seconds, memory_gb_seconds and disk_gb_seconds, with when: {class}, recorded by the usage jobs. Each new region or target needs entries.
  • Phone: per vendor, dial and call_minutes (call_seconds); SMS uses messages, message_segments and media_messages with when by country, direction or category. A cost the vendor quotes outright (a number's month) goes through Quoted, with no entry. WhatsApp and iMessage are billed by the app's own account: don't price them. A new vendor goes in billable.Items. See telnyx, phonecheck.
  • Runtime: stream text/voice/video by seconds, recorded in slices by routing.NewRecorder. These are the operator's own prices: set them by price change, not in vendor.json.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.