Langfuse LLM Observability Testing
Skill by PramodDutta
Instruments LLM apps with Langfuse tracing and uses traces, scores and datasets to test in production. Aimed at AI quality engineers who want evals on real traffic and regression checks before prompt changes ship.
Install Langfuse LLM Observability Testing
Built from the published package, never by AI.
git clone --depth 1 https://github.com/PramodDutta/qaskills /tmp/qaskills && mkdir -p ~/.claude/skills && cp -r /tmp/qaskills/seed-skills/langfuse-llm-observability ~/.claude/skills/langfuse-llm-observability-testingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install Langfuse LLM Observability Testing in Claude Code
git clone --depth 1 https://github.com/PramodDutta/qaskills /tmp/qaskills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/qaskills/seed-skills/langfuse-llm-observability ~/.gemini/antigravity-cli/skills/langfuse-llm-observability-testingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install Langfuse LLM Observability Testing in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an AI assistant through instrumenting an LLM application with Langfuse tracing in Python or TypeScript. It covers traces with spans for retrieval, generation and tool calls, user and session IDs, and prompt management with labels. The skill describes a loop where production traces feed datasets, datasets feed offline experiments, and experiments gate changes.
It also covers three score streams: user feedback, sampled LLM-as-judge scores, and human annotation for calibration. It describes turning failing traces into golden dataset items with provenance, running experiments before prompt labels move, and a nightly CI gate with thresholds. It is written for AI quality engineers who want to test LLM apps using production data.
Written from the project's SKILL.md and checked against it.
What it can do
- Tracing instrumentationAdds Langfuse traces and spans for retrieval, generation and tool calls using @observe.
- Scoring signalsRecords user feedback, LLM-as-judge scores and human annotation against traces.
- Golden datasetsTurns failing production traces into dataset items that keep their source trace ID.
- Dataset experimentsRuns a candidate prompt or model against a dataset and scores each output.
- Prompt change controlStores prompts with labels and requires dataset experiments before production labels move.
- Monitoring viewsDescribes dashboards for score trends, cost per trace, latency and session turn counts.
- Nightly CI gateSets up a nightly experiment that fails when correctness drops below a threshold or delta.
What you need
- Langfuse public and secret API keys
- Langfuse Cloud account or self-hosted Langfuse instance
- Python with pip, or Node.js with npm
Try asking
- Instrument my support bot with Langfuse tracing including retrieval and generation spans
- Build a Langfuse dataset from my failing production traces with source trace IDs
- Set up a nightly Langfuse experiment that fails CI if correctness drops
Good to know
- LLM-as-judge evaluators are configured in the Langfuse UI or through your own job.
- The judge example imports a my_judges module that the source does not provide.
- Human annotation queues are set up in the Langfuse UI.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: seed-skills/langfuse-llm-observability/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Langfuse LLM Observability Testing
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 LLM Observability Testing: common questions
What does Langfuse need to be set up?
The skill expects LANGFUSE_PUBLIC_KEY and LANGFUSE_SECRET_KEY, plus LANGFUSE_HOST, which can point to Langfuse Cloud or a self-hosted URL.
Which languages does it cover?
The source gives examples in Python and TypeScript, using the langfuse package for both.
How does it use production data for testing?
Failing traces are added to a golden dataset, run as offline experiments, and used as CI gates before prompt changes reach production.
How do I install Langfuse LLM Observability Testing?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is Langfuse LLM Observability Testing free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Langfuse LLM Observability Testing safe to use?
It scores 59 of 100. Grades: maintenance B, licence A, quality B. 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 LLM Observability Testing?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
