Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 59
  • 253 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install Langfuse LLM Observability Testing in Claude Code

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

A

No 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 →

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.

Langfuse LLM Observability Testing Install

Add to stack

Loading.