Agent skill · Data & Analytics

langfuse-cost-tuning

Monitor and optimize LLM costs using Langfuse analytics and dashboards. Use when tracking LLM spending, identifying cost anomalies, or implementing cost controls for AI applications. Trigger with phrases like "langfuse costs", "LLM spending", "track AI costs", "langfuse token usage", "optimize LLM budget".

majiayu000github.com/majiayu000GitHub ↗
claude-codecan modify filesMIT
Install
npx skills add majiayu000/claude-skill-registry --skill langfuse-cost-tuning --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 11 KB
Bundled scripts: none
Version: 1.0.0
Declared author: Jeremy Longshore <jeremy@intentsolutions.io>
Allowed tools: ReadWriteEdit
Path: skills/ai-llm/langfuse-cost-tuning/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Langfuse Cost Tuning ## Overview Track, analyze, and optimize LLM costs using Langfuse observability data. ## Prerequisites - Langfuse tracing with token usage - Understanding of LLM pricing models - Access to Langfuse analytics dashboard ## LLM Cost Reference | Model | Input (per 1M) | Output (per 1M) | |-------|----------------|-----------------| | GPT-4 Turbo | $10.00 | $30.00 | | GPT-4o | $5.00 | $15.00 | | GPT-4o-mini | $0.15 | $0.60 | | GPT-3.5 Turbo | $0.50 | $1.50 | | Claude 3 Opus | $15.00 | $75.00 | | Claude 3 Sonnet | $3.00 | $15.00 | | Claude 3 Haiku | $0.25 | $1.25 | ## Instructions ### Step 1: Track Token Usage in Generations ```typescript import { Langfuse } from "langfuse"; const langfuse = new Langfuse(); // Model pricing configuration const MODEL_PRICING: Record< string, { input: number; output: number } > = { "gpt-4-turbo": { input: 10.0, output: 30.0 }, "gpt-4o": { input: 5.0, output: 15.0 }, "gpt-4o-mini": { input: 0.15, output: 0.6 }, "gpt-3.5-turbo": { input: 0.5, output: 1.5 }, "claude-3-opus": { input: 15.0, output: 75.0 }, "claude-3-sonnet": { input: 3.0, output: 15.0 }, "claude-3-haiku": { input: 0.25, output: 1.25 }, }; function calculateCost( model: s

What's inside
Steps it walks through
  1. Overview
  2. Prerequisites
  3. LLM Cost Reference
  4. Instructions
  5. Step 1: Track Token Usage in Generations
  6. Step 2: Create Cost Dashboard Queries
  7. Step 3: Implement Cost Alerts
  8. Step 4: Implement Cost Optimization Strategies
  9. Step 5: Generate Cost Reports
  10. Output
  11. Cost Optimization Strategies
  12. Error Handling
  13. Resources
  14. Next Steps
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the langfuse-cost-tuning skill do?

Monitor and optimize LLM costs using Langfuse analytics and dashboards. Use when tracking LLM spending, identifying cost anomalies, or implementing cost controls for AI applications. Trigger with phrases like "langfuse costs", "LLM spending", "track AI costs", "langfuse token usage", "optimize LLM budget".

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill langfuse-cost-tuning --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going