langfuse
Skill by benjaminasterA
Guides an AI assistant through instrumenting LLM applications with Langfuse, the open-source observability platform. Covers tracing, prompt management, evaluation, datasets, and OpenAI and LangChain integration. Aimed at developers debugging and monitoring LLM applications.
Install langfuse
Built from the published package, never by AI.
git clone --depth 1 https://github.com/benjaminasterA/antigravity-awesome-skills /tmp/antigravity-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/antigravity-awesome-skills/skills/langfuse ~/.claude/skills/langfuseRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/benjaminasterA/antigravity-awesome-skills /tmp/antigravity-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/antigravity-awesome-skills/skills/langfuse ~/.gemini/antigravity-cli/skills/langfuseAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The Langfuse skill gives an AI assistant guidance on instrumenting LLM applications with Langfuse, an open-source LLM observability platform. It covers tracing, prompt management and versioning, evaluation and scoring, dataset management, cost tracking, performance monitoring, and A/B testing prompts. The skill includes Python code patterns for basic tracing, the OpenAI SDK wrapper, and the LangChain callback handler.
Each pattern shows how to attach user and session IDs to traces, flush data before exit in serverless environments, and score traces with feedback values. The source lists Python or TypeScript/JavaScript, a Langfuse account in cloud or self-hosted form, and LLM API keys as requirements. It is aimed at developers building LLM applications who want to monitor cost, quality, and latency. The source frames it as a guide for debugging and catching regressions.
Written from the project's SKILL.md and checked against it.
What it can do
- LLM tracingInstruments LLM calls with traces, spans, and generations for observability.
- Prompt managementManages and versions prompts.
- Evaluation and scoringScores traces, for example with user feedback values.
- Dataset managementManages datasets for LLM evaluation work.
- Cost trackingLogs token usage so cost can be tracked.
- Performance monitoringMonitors latency and performance of LLM calls.
- A/B testing promptsCompares prompt variants using collected data.
- OpenAI integrationTraces OpenAI calls automatically through a drop-in Langfuse client.
- LangChain integrationTraces LangChain chains and agents with a callback handler.
What you need
- Python or TypeScript/JavaScript
- Langfuse account (cloud or self-hosted)
- LLM API keys
Try asking
- Add Langfuse tracing to my OpenAI chat calls with user and session IDs.
- Trace my LangChain chain with a Langfuse callback handler.
- Score my Langfuse traces with user feedback values.
Good to know
- Self-hosted deployments require infrastructure.
- High-volume workloads may need optimization.
- Real-time dashboard has latency.
- Evaluation requires setup.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/langfuse/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB
Alternatives to langfuse
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
langfuse: common questions
Does Langfuse work with the OpenAI SDK?
Yes. The source shows a drop-in Langfuse OpenAI client that traces calls automatically, including streaming and async calls.
Why should I flush Langfuse in serverless code?
Traces are batched, so a serverless function may exit before data is sent. The source says to call langfuse.flush() at the end.
Can I use a self-hosted Langfuse server?
Yes. The client takes a host setting that can point to a self-hosted URL, though the source notes self-hosting requires infrastructure.
How do I install langfuse?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is langfuse free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is langfuse safe to use?
It scores 82 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to langfuse?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
