langfuse/add-model-price
Use when editing worker/src/constants/default-model-prices.json, packages/shared/src/server/llm/types.ts, pricing tiers, tokenizer IDs, or matchPattern regexes for OpenAI, Anthropic, Bedrock, Vertex, Azure, or Gemini model pricing.
npx skills add https://github.com/langfuse/langfuse --skill add-model-price
Use this skill for model pricing changes in worker/ and shared LLM type
updates in packages/shared/.
worker/src/constants/default-model-prices.jsonpackages/shared/src/server/llm/types.tsmodel names
pricing
receive default pricing and, when appropriate, selectable-model coverage
SKILL.md as the high-level workflow and helper index.matchPattern that covers supported provider formats.may persist.
worker/src/constants/default-model-prices.json.packages/shared/src/server/llm/types.ts if the model should beselectable in playground or evaluation flows.
updatedAt to today's ISO-8601 timestamp.| Topic | Read this when | File |
| ------------------------------- | ------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| Schema and tier rules | You need the entry shape or pricing-tier invariants | references/schema-and-tiers.md |
| Provider sources and price keys | You need official pricing URLs, per-token conversion, or provider-specific usage keys | references/provider-sources-and-price-keys.md |
| Provider usage-key matrix | You are adding or changing OpenAI, Gemini, Anthropic, or Bedrock usage keys | references/provider-usage-key-matrix.md |
| Match patterns | You are editing matchPattern regexes or provider coverage | references/match-patterns.md |
| Workflow and validation | You are applying the end-to-end edit process or checking common mistakes | references/workflow-and-validation.md |
| Automated audit mode | You are running a scheduled/default-price audit and need CI-safe edit rules | references/automated-audit.md |
| Audit memory | You need optional per-model context retained from a useful prior automated audit | references/model-audit-memory.md |
node .agents/skills/add-model-price/scripts/validate-pricing-file.mjs
node .agents/skills/add-model-price/scripts/test-match-pattern.mjs --model <modelName> --accept <sample...> --reject <sample...>
node .agents/skills/add-model-price/scripts/test-match-pattern.mjs --pattern '(?i)^(openai/)?(gpt-4o)$' --accept gpt-4o openai/gpt-4o --reject gpt-4o-mini
Take langfuse/add-model-price from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.