Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

langfuse

БесплатноБез исполняемых скриптовНе проверен

Interact with Langfuse and access its documentation: tracing, monitoring, creating datasets, running experiments, and evaluating AI applications. Use when…

langfuseот langfuse★ 351 звезда на GitHub

Об этом скилле

Langfuse

This skill helps you use Langfuse effectively across all common workflows: instrumenting applications, migrating prompts, debugging traces, and accessing data programmatically.

Core Principles

Follow these principles for ALL Langfuse work:

  1. Documentation First: NEVER implement based on memory. Always fetch current docs before writing code (Langfuse updates frequently) See the section below on how to access documentation.
  2. CLI for Data Access: Use @langfuse/cli when querying/modifying Langfuse data. See the section below on how to use the CLI.
  3. Best Practices by Use Case: Read the relevant reference below use-case-specific guidelines before asking the user for more details or implementing.
  4. Use latest Langfuse versions: Unless the user specified otherwise or there's a good reason, always use the latest version of Langfuse SDKs/APIs. Even if you're only creating a plan for another agent to execute, be explicit about the exact version to use.
  5. If you guide the user through UI and are unsure about a label or location, inspect the user’s screenshots or ask to see the relevant screen. Do not assume UI labels have the exact same names as API, SDK, or CLI fields.

Use case specific references

  • instrumenting an existing function/application or a coding agent: references/instrumentation.md
  • creating or getting to a good (evaluation) dataset to measure quality or test for regressions in AI systems: references/create-dataset.md
  • migrating prompts from a codebase into Langfuse: references/prompt-migration.md
  • creating a prompt or changing any part of an existing prompt, including small edits and debugging/tuning: references/prompt-engineering.md
  • setting up evals when the user needs to identify gaps across signal capture, monitoring, and evaluator metrics ("I have traces, how do I set up evals?"): references/setting-up-evals.md
  • capturing user feedback signals (explicit ratings, behavioral events, conversation signals, task outcomes) as scores: references/user-feedback.md
  • further tips on using the Langfuse CLI: references/cli.md
  • preparing a Langfuse project for the v4 platform migration: references/v4-project-migration.md
  • calibrating a new or existing LLM-as-a-Judge against labeled examples, iterating on its prompt, and deploying the approved judge: references/judge-calibration.md
  • systematic error analysis when requested directly or eval setup still lacks concrete failure modes after agent-led trace inspection: references/error-analysis.md
  • setting up CI/CD experiment gates with langfuse/experiment-action: references/ci-cd.md
  • optimizing the cost of an LLM application or AI agent: references/cost-optimization.md
  • submitting feedback about this skill: references/skill-feedback.md

1. Langfuse API via CLI

Use the @langfuse/cli to interact with the full Langfuse REST API from the command line. Run via npx (no install required):

Start by discovering the schema and available arguments:

# List all resources
npx @langfuse/cli api help

# List actions for a resource
npx @langfuse/cli api <resource> --help

# Show args/options for a specific action
npx @langfuse/cli api <resource> <action> --help

# Machine-readable schema of every command
npx @langfuse/cli api schema --json

The official Langfuse CLI is the npm package @langfuse/cli. Do not run pip install langfuse-cli: the deprecated langfuse-cli on PyPI is a separate third-party tool that installs a command named lf, and it does not talk to Langfuse the way the commands in this skill do.

Credentials

Set environment variables before making calls:

export LANGFUSE_PUBLIC_KEY=pk-lf-...
export LANGFUSE_SECRET_KEY=sk-lf-...
export LANGFUSE_BASE_URL=https://cloud.langfuse.com # example for EU cloud. For US cloud it's us.cloud.langfuse.com, and can also be a self-hosted URL. The server must always be specified in order to access Langfuse.

If LANGFUSE_BASE_URL is used instead of LANGFUSE_HOST, run export LANGFUSE_HOST="$LANGFUSE_BASE_URL". If not set, ask the user to set them in their shell or a .env file. Keys are found in the Langfuse project under Settings -> API Keys; the user should create a project API key pair there. If they do not have a Langfuse account yet, share that they can create one for free at https://langfuse.com/cloud. Do not ask them to paste keys into chat for security reasons.

Detailed CLI Reference

For common workflows, tips, and full usage patterns, see references/cli.md.

2. Langfuse Documentation

Three methods to access Langfuse docs, in order of preference. Always prefer your application's native web fetch and search tools (e.g., WebFetch, WebSearch, mcp_fetch, etc.) over curl when available. The URLs and patterns below work with any fetching method — the curl examples are just illustrative.

When working with self-hosted Langfuse, prefer the [API reference served by the deployment](ht

Полный SKILL.md на GitHub

Установить langfuse в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

WebFetch(domain:langfuse.com)
Bash(curl *langfuse.com/*)
Bash(npx @langfuse/cli api help *)
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 --bun @langfuse/cli api help *)
Bash(bunx --bun @langfuse/cli api schema *)
Bash(bunx --bun @langfuse/cli api * --help *)
Bash(bunx --bun @langfuse/cli api * list *)
Bash(bunx --bun @langfuse/cli api * get *)

Вложенные файлы

references/ci-cd.mdreferences/cli.mdreferences/cost-optimization.mdreferences/create-dataset.mdreferences/error-analysis.mdreferences/instrumentation.mdreferences/judge-calibration.mdreferences/prompt-engineering.mdreferences/prompt-migration.mdreferences/setting-up-evals.mdreferences/skill-feedback.mdreferences/user-feedback.mdreferences/v4-project-migration.md

FAQ

Что делает скилл langfuse?

Interact with Langfuse and access its documentation: tracing, monitoring, creating datasets, running experiments, and evaluating AI applications. Use when needing to (1) query or modify Langfuse data, (2) look up Langfuse documentation, concepts, integration guides, a feature or SDK usage, or (3) do any AI engineering task (AI observability, prompt engineering/management, evaluation and evaluator management, experimentation, dataset management, evaluation-driven CI/CD, feedback collection). Invoke it for tasks in this scope even when Langfuse is not configured or explicitly mentioned.

Как установить скилл langfuse?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл langfuse запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить langfuse с