add-model-price
bởi langfuse
Sử dụng khi chỉnh sửa worker/src/constants/default-model-prices.json, packages/shared/src/server/llm/types.ts, các bậc giá, ID tokenizer, hoặc regex matchPattern…
npx skills add https://github.com/langfuse/langfuse --skill add-model-priceAdd Model Price
Use this skill for model pricing changes in worker/ and shared LLM type
updates in packages/shared/.
When to Apply
- Editing
worker/src/constants/default-model-prices.json - Editing
packages/shared/src/server/llm/types.ts - Adding a new priced model
- Updating provider prices, cache pricing, or tier conditions
- Expanding regex coverage for Bedrock, Vertex, Azure, or provider-prefixed model names
- Auditing default model prices for stale, missing, or unmatched provider pricing
How to Read This Skill
- Use this
SKILL.mdas the high-level workflow and helper index. - Open only the specific reference file that matches the task.
Quick Start Checklist
Adding a New Model
- Gather official pricing from the provider documentation.
- Generate a lowercase UUID for the model entry.
- Create a
matchPatternthat covers supported provider formats. - Add at least one default pricing tier.
- Insert the pricing entry into
worker/src/constants/default-model-prices.json. - Update
packages/shared/src/server/llm/types.tsif the model should be selectable in playground or evaluation flows. - Validate the JSON after editing.
Updating an Existing Model
- Update the relevant prices, keys, tiers, or regexes.
- Refresh
updatedAtto today's ISO-8601 timestamp. - Validate the JSON after editing.
Reference Map
| 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 |
| 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 |
Deterministic Helpers
- Pricing file validator:
node .agents/skills/add-model-price/scripts/validate-pricing-file.mjs - Match-pattern tester:
node .agents/skills/add-model-price/scripts/test-match-pattern.mjs --model <modelName> --accept <sample...> --reject <sample...> - Direct regex tester:
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
Thêm skills từ langfuse
agent-setup-maintenance
langfuse
Sử dụng kỹ năng này khi thay đổi thiết lập agent dùng chung cho kho lưu trữ.
official
backend-dev-guidelines
langfuse
Hướng dẫn backend chung cho monorepo Next.js, tRPC, BullMQ và TypeScript của Langfuse. Sử dụng khi tạo hoặc xem xét các router tRPC, endpoint REST công khai, BullMQ…
official
changelog-writing
langfuse
Sử dụng kỹ năng này khi một nhánh tính năng đã hoàn thành cần một mục nhật ký thay đổi.
official
clickhouse-best-practices
langfuse
PHẢI SỬ DỤNG khi xem xét lược đồ ClickHouse, truy vấn hoặc cấu hình. Chứa 28 quy tắc PHẢI được kiểm tra trước khi đưa ra khuyến nghị. Luôn đọc…
official
code-review
langfuse
Sử dụng kỹ năng này khi nhiệm vụ là xem xét các thay đổi mã thay vì triển khai một tính năng.
official
frontend-browser-review
langfuse
Sử dụng kỹ năng này khi một thay đổi ảnh hưởng đến những gì người dùng nhìn thấy hoặc thực hiện trong trình duyệt.
official
skill-developer
langfuse
Tạo và quản lý các kỹ năng Claude Code theo các phương pháp tốt nhất của Anthropic. Sử dụng khi tạo kỹ năng mới, sửa đổi skill-rules.json, hiểu trigger…
official
turborepo
langfuse
Hệ thống xây dựng cho monorepo JavaScript/TypeScript. Turborepo lưu cache đầu ra của tác vụ và chạy các tác vụ song song dựa trên đồ thị phụ thuộc.
official