Agent Skillsbingquanzhao/langfuse › add-model-price

add-model-price

GitHub

用于管理LLM模型定价变更,涉及修改价格配置文件、更新类型定义及匹配规则。提供验证器和测试脚本辅助确保数据准确性和兼容性。

.agents/skills/add-model-price/SKILL.md bingquanzhao/langfuse

Trigger Scenarios

编辑默认模型价格文件 更新LLM类型定义 添加新定价模型 调整提供商价格或缓存策略 修改模型名称匹配正则

Install

npx skills add bingquanzhao/langfuse --skill add-model-price -g -y
More Options

Non-standard path

npx skills add https://github.com/bingquanzhao/langfuse/tree/main/.agents/skills/add-model-price -g -y

Use without installing

npx skills use bingquanzhao/langfuse@add-model-price

指定 Agent (Claude Code)

npx skills add bingquanzhao/langfuse --skill add-model-price -a claude-code -g -y

安装 repo 全部 skill

npx skills add bingquanzhao/langfuse --all -g -y

预览 repo 内 skill

npx skills add bingquanzhao/langfuse --list

SKILL.md

Frontmatter
{
    "name": "add-model-price",
    "description": "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."
}

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...>

Version History

  • bdc6b78 Current 2026-08-20 10:48

Same Skill Collection

.agents/skills/backend-dev-guidelines/SKILL.md
.agents/skills/clickhouse-best-practices/SKILL.md
.agents/skills/turborepo/SKILL.md
web/.agents/skills/vercel-composition-patterns/SKILL.md
web/.agents/skills/vercel-react-best-practices/SKILL.md

Metadata

Files
0
Version
bdc6b78
Hash
53643bba
Indexed
2026-08-20 10:48

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-25 05:48
浙ICP备14020137号-1 $방문자$