langfuse
Skill by trailofbits
Langfuse gives an AI assistant CLI access to the Langfuse REST API and to its documentation. It is for developers who work with Langfuse traces, prompts, datasets, scores and SDK integrations.
Install langfuse
Built from the published package, never by AI.
git clone --depth 1 https://github.com/trailofbits/buttercup /tmp/buttercup && mkdir -p ~/.claude/skills && cp -r /tmp/buttercup/.claude/skills/langfuse ~/.claude/skills/langfuseRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/trailofbits/buttercup /tmp/buttercup && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/buttercup/.claude/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
This skill lets an AI assistant query or modify Langfuse data from the command line using langfuse-cli, which runs through npx or bunx. It covers resources such as traces, prompts, datasets, scores and sessions. The assistant discovers available resources and arguments with schema and help commands before it makes calls.
For documentation, the skill points to langfuse.com in three ways: the llms.txt index, individual pages fetched as markdown, and a search endpoint that also indexes GitHub issues and discussions. It also includes reference guides for instrumentation, prompt migration, user feedback scores, SDK upgrades and error analysis. The skill is aimed at developers building or debugging applications with Langfuse.
Written from the project's SKILL.md and checked against it.
What it can do
- CLI API accessQueries or modifies any Langfuse API resource using langfuse-cli via npx or bunx.
- Schema discoveryLists available resources and shows arguments for each action with help commands.
- Documentation indexFetches the llms.txt index of all Langfuse documentation pages.
- Markdown page fetchRetrieves individual Langfuse doc pages as clean markdown.
- Documentation searchSearches Langfuse docs, GitHub issues and discussions through the search-docs endpoint.
- Instrumentation guideProvides best practices for instrumenting an existing function or application.
- Prompt migration guideDescribes how to move prompts from a codebase into Langfuse.
- User feedback scoresCovers capturing thumbs, ratings and implicit signals as scores on traces.
- Error analysis guideCovers reading traces, building a failure taxonomy and deciding what to fix.
- Skill feedbackSubmits feedback about the skill's instructions to its maintainers.
What you need
- Langfuse public and secret API keys
- LANGFUSE_HOST set to a cloud or self-hosted Langfuse URL
- npx or bunx to run langfuse-cli
Try asking
- List the recent traces in my Langfuse project
- Show me the Langfuse docs on tracing LangGraph agents
- Help me migrate my prompts from this codebase into Langfuse
Good to know
- Pre-approved CLI commands are limited to schema, help, list and get actions.
- Search responses can be large and need to be filtered for relevant parts.
- The skill requires LANGFUSE_HOST to be set, since the server must always be specified.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/langfuse/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: WebFetch(domain:langfuse.com)Bash(curl *langfuse.com/*)Bash(npx langfuse-cli api __schema *)Bash(npx langfuse-cli api * --help *)Bash(npx langfuse-cli api * list *)Bash(npx langfuse-cli api * get *)Bash(bunx langfuse-cli api __schema *)Bash(bunx langfuse-cli api * --help *)Bash(bunx langfuse-cli api * list *)Bash(bunx langfuse-cli api * get *)
-
SKILL.md6 KB -
references/cli.md1 KB -
references/error-analysis.md5 KB -
references/instrumentation.md9 KB -
references/prompt-migration.md8 KB
Show all 8 files
-
references/sdk-upgrade.md8 KB -
references/skill-feedback.md2 KB -
references/user-feedback.md4 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 the Langfuse skill need API keys?
Yes. The CLI reads LANGFUSE_PUBLIC_KEY and LANGFUSE_SECRET_KEY from the environment, and the source says to find them under Langfuse UI, Settings, API Keys.
Can it work with a self-hosted Langfuse server?
Yes. The source says LANGFUSE_HOST can be a self-hosted URL, and that the server must always be specified.
Can the skill change Langfuse data?
The CLI covers the full REST API, but the pre-approved commands in the skill are limited to schema, help, list and get actions.
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 AGPL-3.0 licence. The service it connects to may have its own pricing.
Is langfuse safe to use?
It scores 84 of 100. Grades: maintenance B, licence C, 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.
