langfuse

Query Langfuse data via CLI and retrieve Langfuse documentation for observability workflows.

2.1k|244|Updated Dec 21, 2025
One-click install
npx skills add https://github.com/raphaelmansuy/edgequake --skill langfuse-raphaelmansuy
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: langfuse
Source: https://github.com/raphaelmansuy/edgequake/tree/main/.github/skills/langfuse
Command: npx skills add https://github.com/raphaelmansuy/edgequake --skill langfuse-raphaelmansuy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires langfuse-cli, and includes references (resource) components.

What problem does it solve? Working with Langfuse requires up-to-date knowledge of its frequently changing APIs, SDKs, and documentation, and manually querying traces, prompts, datasets, or scores through the UI is slow and hard to automate. ## Core Features & Use Cases - CLI-Based API Access: Query and modify any Langfuse resource (traces, prompts, datasets, scores, sessions) programmatically using langfuse-cli via npx, with schema discovery through api __schema. - Documentation Retrieval: Access current Langfuse docs through llms.txt, markdown page fetches, and a search API covering docs plus GitHub issues and discussions. - Use-Case Reference Guides: Follow dedicated guides for instrumentation, prompt migration, prompt engineering, user feedback capture, error analysis, judge calibration, CI/CD experiment gating, evaluator upgrades, and v4 migration. - Use Case: When debugging why an LLM application produces bad outputs, use the error-analysis reference to sample traces, build a failure taxonomy, create annotation queues, and decide what to fix. ## Quick Start Set the LANGFUSE_PUBLIC_KEY, LANGFUSE_SECRET_KEY, and LANGFUSE_BASE_URL environment variables, then ask the assistant to list recent traces or look up a Langfuse documentation topic.

Frequently Asked Questions about langfuse

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query Langfuse traces from the command line?▼

Use langfuse-cli via npx with your credentials set as environment variables. Run npx langfuse-cli api __schema to discover resources, then use commands like traces list or observations list with --json for machine-readable output.

How do I find current Langfuse documentation for a feature?▼

Fetch https://langfuse.com/llms.txt for a full index of doc pages, then append .md to any page path to get it as markdown. For broader searches, use the search-docs API endpoint which also indexes GitHub issues and discussions.

What credentials does the Langfuse CLI need?▼

Set LANGFUSE_PUBLIC_KEY, LANGFUSE_SECRET_KEY, and LANGFUSE_BASE_URL (or LANGFUSE_HOST) as environment variables. Keys are created in your Langfuse project under Settings, API Keys, and should never be pasted into chat.

Why do broad Langfuse trace list queries time out?▼

The traces list endpoint can time out on Langfuse Cloud for broad queries. Use the modern observations endpoint with cursor-based pagination instead, optionally filtering by trace ID, and prefer it over the deprecated legacy v1 endpoints.

Can I migrate hardcoded prompts into Langfuse prompt management?▼

Yes, the prompt-migration reference guides inventorying prompts, converting variables to double-brace syntax, creating versioned prompts with the production label, and refactoring call sites to fetch and compile prompts from Langfuse.