Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

langfuselangfuse 测试

Agent Skill

langfuse 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,187

周安装

178

GitHub Stars

1

下载量

1,467
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:langfuse(langfuse 测试)
来源仓库:https://github.com/south-american-cowboy/langfuse
安装命令:
openclaw skills install langfuse
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install langfuse

简介

langfuse 通过 SDK 与公共 API 管理 Langfuse 跟踪、数据集与评估指标。

  • 适用于 LLM 应用调试、提示工程优化与 RAG 系统性能监控。
  • 支持查询历史会话、分数分布与观察结果,辅助迭代改进模型表现。
  • 需配置 LANGSMITH_API_KEY 等凭证方可正常使用数据查询功能。
  • 生产环境中建议开启采样率控制,避免全量日志拖慢系统性能。

SKILL.md

name
langfuse
description
Query and manage Langfuse traces, prompts, datasets, sessions, observations, scores, and metrics via Langfuse SDKs and the public API. Use when setting up or auditing Langfuse tracing in cloud or self-hosted deployments, migrating hardcoded prompts into Langfuse prompt management, attaching evaluation scores or feedback, querying Langfuse data for debugging or analytics, or building Langfuse-backed workflows in Python or JS/TS projects.
metadata

Langfuse

Use this skill to integrate codebases and workflows with Langfuse, the open-source LLM engineering platform for tracing, prompt management, and evaluation.

Treat self-hosted Langfuse as a first-class deployment mode, not a special case. When the user mentions private infrastructure, on-prem, internal URLs, custom domains, or self-hosting, configure examples and guidance around their deployment URL and platform compatibility.

Prefer SDK-based examples for Python and JS/TS. Use the public API when the task is language-agnostic, needs direct HTTP examples, or fits an existing automation pipeline.

Quick Decision Tree

  1. Migrating hardcoded prompts into Langfuse?

- Read references/prompt-migration.md. - Create prompts in Langfuse, replace inline prompt literals with fetch/render calls, and preserve variable semantics.

  1. Adding observability/tracing to an app or agent?

- Read references/tracing-and-querying.md. - Prefer native SDK instrumentation and OpenTelemetry-compatible patterns over bespoke logging.

  1. Querying traces, observations, scores, sessions, or metrics?

- Read references/tracing-and-querying.md. - Use high-performance api.observations, api.scores, and api.metrics namespaces in current SDKs.

  1. Adding evaluation scores, feedback, or custom quality checks?

- Read references/evals-and-scores.md. - Attach scores at the right level: trace, observation, session, or dataset run.

  1. Working in a self-hosted Langfuse environment?

- Read references/self-hosted.md and references/tracing-and-querying.md. - Replace cloud defaults with the real deployment URL, verify platform/SDK compatibility, and avoid examples that silently assume EU cloud.

  1. Creating datasets or experiment-oriented evaluation workflows?

- Read references/evals-and-scores.md. - Use Langfuse datasets and dataset items where repeatable testing matters.

Core Rules

  • Prefer Langfuse SDKs for application integration work.
  • Prefer current SDK namespaces:

- Python SDK v4 / JS/TS SDK v5 use api.observations, api.scores, and api.metrics as the default high-performance resources. - Legacy v1 endpoints live under api.legacy.*.

  • Prefer get_prompt / getPrompt for runtime prompt fetching to benefit from caching, retries, and fallbacks.
  • Prefer OpenTelemetry ingestion/instrumentation over older bespoke ingestion patterns when setting up tracing.
  • Keep examples small and production-usable. Do not generate giant framework-specific abstractions unless asked.
  • When migrating prompts, preserve behavior first; optimize prompt structure second.
  • When self-hosted is in play, do not leave cloud-region defaults in code snippets or docs. Use the deployment URL explicitly.
  • Only ask for Langfuse credentials and base URL when the task actually needs live access to a Langfuse project. For design-only or code-only work, prefer placeholders or existing environment references instead of requesting secrets.

Authentication and Environment

This skill may require these environment variables for live Langfuse access:

LANGFUSE_PUBLIC_KEY="pk-lf-..."
LANGFUSE_SECRET_KEY="sk-lf-..."
LANGFUSE_BASE_URL="https://cloud.langfuse.com"

Possible base URLs include:

  • https://cloud.langfuse.com for EU Cloud
  • https://us.cloud.langfuse.com for US Cloud
  • self-hosted deployment URL when applicable, for example https://langfuse.internal.example.com

For self-hosted environments, prefer examples like:

LANGFUSE_PUBLIC_KEY="pk-lf-..."
LANGFUSE_SECRET_KEY="sk-lf-..."
LANGFUSE_BASE_URL="https://langfuse.internal.example.com"

For direct API examples, use Basic Auth with:

  • username = public key
  • password = secret key

Secret-handling rules

  • Prefer existing environment variables over asking the user to paste keys into chat.
  • If live credentials are needed, recommend least-privilege or scoped project keys.
  • Do not request production keys for read-only design or documentation tasks.
  • Treat internal/self-hosted base URLs as sensitive infrastructure context and only use them for the Langfuse task at hand.

Self-Hosted Defaults

When the user is self-hosting Langfuse:

  1. Ask for or detect the actual base URL.
  2. Update all code snippets and env examples to use that URL.
  3. Check whether the installed SDK generation matches the self-hosted Langfuse platform version.
  4. Avoid mixing LANGFUSE_HOST and LANGFUSE_BASE_URL casually; prefer the current documented variable in examples.
  5. Treat self-hosted network reachability, TLS, reverse proxy paths, and auth configuration as likely failure points.

See references/self-hosted.md.

Common Task Patterns

1. Migrate prompts into Langfuse

Use when the user says things like:

  • migrate our prompts to Langfuse
  • move hardcoded prompts into Langfuse prompt management
  • version prompts centrally
  • replace inline prompts with Langfuse fetches

Default workflow:

  1. Find hardcoded prompt strings or message arrays.
  2. Normalize prompt names and variable placeholders.
  3. Create prompt definitions in Langfuse.
  4. Replace inline prompt literals in code with Langfuse fetch/render calls.
  5. Keep runtime behavior equivalent.
  6. If possible, link prompt usage to traces.

See references/prompt-migration.md.

2. Add tracing / observability

Use when the user says things like:

  • instrument this agent/app with Langfuse
  • trace LLM calls
  • add observability to prompt/model execution
  • inspect sessions, generations, spans, or costs

Default workflow:

  1. Identify the execution boundary: request, conversation, workflow, or agent run.
  2. Decide what should be traces vs observations/spans/generations.
  3. Add SDK instrumentation with stable identifiers where possible.
  4. Include useful attributes: user, session, tags, model, latency, token/cost-relevant data.
  5. Verify resulting traces are queryable.

See references/tracing-and-querying.md.

3. Query data for debugging or analytics

Use when the user asks to:

  • inspect traces or observations
  • pull sessions or scores
  • build analysis scripts on Langfuse data
  • generate reports from Langfuse metrics

Default workflow:

  1. Use direct entity APIs for individual data retrieval.
  2. Use the Metrics API for aggregated counts, costs, token usage, or grouped reporting.
  3. Paginate explicitly.
  4. Select only the fields needed.

See references/tracing-and-querying.md.

4. Add evaluations and scores

Use when the user asks to:

  • score traces or outputs
  • collect user feedback
  • implement guardrails or quality checks
  • attach custom eval results to traces or sessions

Default workflow:

  1. Choose the score target: trace, observation, session, or dataset run.
  2. Choose the score type: numeric, categorical, or boolean.
  3. Use stable score names and comments.
  4. Keep score semantics consistent across runs.

See references/evals-and-scores.md.

5. Adapt work for self-hosted Langfuse

Use when the user says things like:

  • we run Langfuse on-prem
  • we are self-hosting Langfuse
  • use our internal Langfuse URL
  • this is not cloud.langfuse.com
  • make this work behind our private domain or proxy

Default workflow:

  1. Replace cloud URLs with the real deployment URL.
  2. Verify environment-variable naming and SDK initialization for the target stack.
  3. Check platform/SDK compatibility if behavior looks incomplete or broken.
  4. Keep examples deployment-agnostic except for the explicit base URL.
  5. Flag infra issues separately from application-instrumentation issues.

See references/self-hosted.md.

Output Expectations

When doing Langfuse work, produce one or more of:

  • code patches for Python or JS/TS integration
  • prompt migration plans with explicit before/after mapping
  • small utility scripts for querying or migrating data
  • API examples with auth and payload shape
  • concise runbooks for how to verify Langfuse behavior
  • self-hosted deployment-aware env/config examples when applicable

References

  • references/prompt-migration.md — prompt management and migration patterns
  • references/tracing-and-querying.md — observability, querying, traces, observations, sessions, metrics
  • references/evals-and-scores.md — scores, feedback, datasets, evaluation workflows
  • references/self-hosted.md — self-hosted deployment guidance, compatibility, and env/config rules

Coverage check against Langfuse's own skill/docs

This skill intentionally covers the main workflows Langfuse advertises for coding agents:

  • setting up Langfuse tracing in a project
  • auditing existing instrumentation
  • migrating prompts to Langfuse prompt management
  • querying traces, prompts, datasets, and related entities via SDK/API
  • looking up Langfuse integration and usage patterns
  • adapting integrations for self-hosted Langfuse deployments

If the request becomes very framework-specific, keep this skill as the Langfuse layer and combine it with the relevant coding/framework skill rather than bloating this skill with per-framework boilerplate.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

84.44%
按下载量换算1,239

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills