Agent skill
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.
Install this agent skill to your Project
npx add-skill https://github.com/langfuse/langfuse/tree/main/.agents/skills/add-model-price
SKILL.md
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
How to Read This Skill
- Start with AGENTS.md for the high-level workflow and helper scripts.
- Then open only the specific reference file that matches the task.
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 |
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...>
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
frontend-browser-review
Shared workflow for browser-based review of user-visible frontend changes in Langfuse. Use when a change affects UI behavior, layout, styling, navigation, or browser-visible regressions and should be checked with the Playwright MCP server before signoff.
changelog-writing
Shared workflow for writing Langfuse changelog entries after a feature is complete. Use when a branch is ready for merge and a changelog entry or changelog draft is needed.
code-review
Shared code review workflow for Langfuse. Use when reviewing a PR, branch, diff, or local changes for correctness, regressions, risk, and missing tests. Start with references/review-checklist.md for repo-specific review rules and use package AGENTS.md files plus any matching shared skills when the change touches those areas.
turborepo
Turborepo monorepo build system guidance. Triggers on: turbo.json, task pipelines, dependsOn, caching, remote cache, the "turbo" CLI, --filter, --affected, CI optimization, environment variables, internal packages, monorepo structure/best practices, and boundaries. Use when user: configures tasks/workflows/pipelines, creates packages, sets up monorepo, shares code between apps, runs changed/affected packages, debugs cache, or has apps/packages directories.
agent-setup-maintenance
Shared workflow for editing Langfuse's repo-owned agent setup under `.agents/`. Use when changing AGENTS files, shared skills, `.agents/config.json`, generated shim behavior, provider discovery paths, or install-time agent sync.
backend-dev-guidelines
Shared backend guide for Langfuse's Next.js 14, tRPC, BullMQ, and TypeScript monorepo. Use when creating or reviewing tRPC routers, public REST endpoints, BullMQ queue processors, backend services, middleware, Prisma or ClickHouse data access, OpenTelemetry instrumentation, Zod validation, env configuration, or backend tests across web, worker, or packages/shared.
Didn't find tool you were looking for?