add-model-price

작성자: langfuse

worker/src/constants/default-model-prices.json, packages/shared/src/server/llm/types.ts, 가격 등급, 토크나이저 ID 또는 matchPattern 정규식을 편집할 때 사용합니다…

npx skills add https://github.com/langfuse/langfuse --skill add-model-price

Add 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.md as 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 matchPattern that 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.ts if 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 updatedAt to today's ISO-8601 timestamp.
  • Validate the JSON after editing.

Reference Map

TopicRead this whenFile
Schema and tier rulesYou need the entry shape or pricing-tier invariantsreferences/schema-and-tiers.md
Provider sources and price keysYou need official pricing URLs, per-token conversion, or provider-specific usage keysreferences/provider-sources-and-price-keys.md
Match patternsYou are editing matchPattern regexes or provider coveragereferences/match-patterns.md
Workflow and validationYou are applying the end-to-end edit process or checking common mistakesreferences/workflow-and-validation.md
Automated audit modeYou are running a scheduled/default-price audit and need CI-safe edit rulesreferences/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

langfuse의 다른 스킬

agent-setup-maintenance
langfuse
이 스킬은 저장소의 공유 에이전트 설정을 변경할 때 사용하세요.
official
backend-dev-guidelines
langfuse
Langfuse의 Next.js, tRPC, BullMQ 및 TypeScript 모노레포를 위한 공유 백엔드 가이드입니다. tRPC 라우터, 공개 REST 엔드포인트, BullMQ를 생성하거나 검토할 때 사용하세요.
official
changelog-writing
langfuse
완료된 기능 브랜치에 체인지로그 항목이 필요할 때 이 스킬을 사용하세요.
official
clickhouse-best-practices
langfuse
ClickHouse 스키마, 쿼리 또는 구성을 검토할 때 반드시 사용해야 합니다. 권장 사항을 제공하기 전에 반드시 확인해야 하는 28개의 규칙이 포함되어 있습니다. 항상 읽어보세요…
official
code-review
langfuse
이 스킬은 기능을 구현하는 것이 아니라 코드 변경 사항을 검토하는 작업일 때 사용하세요.
official
frontend-browser-review
langfuse
이 스킬은 변경 사항이 브라우저에서 사용자가 보거나 수행하는 작업에 영향을 미칠 때 사용하세요.
official
skill-developer
langfuse
Anthropic 모범 사례에 따라 Claude Code 스킬을 생성하고 관리합니다. 새 스킬을 만들거나, skill-rules.json을 수정하거나, 트리거를 이해할 때 사용합니다.
official
turborepo
langfuse
JavaScript/TypeScript 모노레포를 위한 빌드 시스템입니다. Turborepo는 태스크 출력을 캐싱하고 의존성 그래프를 기반으로 태스크를 병렬로 실행합니다.
official