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

langfuse-observabilitylangfuse 可观测性

Agent Skill

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

总安装

5,187

周安装

214

GitHub Stars

107

下载量

1,695
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/langfuse/skills --skill langfuse-observability

简介

用于查找、检索和筛选相关信息,支持关键词和任务场景快速定位结果。

  • 适合在需要围绕仓库状态、代码变更或协作事项进行整理时使用。
  • 可结合来源仓库和原始 README 核验具体用法。
  • 安装命令:npx skills add https://github.com/langfuse/skills --skill langfuse-observability。
  • 安装前建议确认权限范围和维护状态,避免触发不必要操作。

SKILL.md

Langfuse Observability

Instrument LLM applications with Langfuse tracing, following best practices and tailored to your use case.

When to Use

  • Setting up Langfuse in a new project
  • Auditing existing Langfuse instrumentation
  • Adding observability to LLM calls

Workflow

1. Assess Current State

Check the project:

  • Is Langfuse SDK installed?
  • What LLM frameworks are used? (OpenAI SDK, LangChain, LlamaIndex, Vercel AI SDK, etc.)
  • Is there existing instrumentation?

No integration yet: Set up Langfuse using a framework integration if available. Integrations capture more context automatically and require less code than manual instrumentation.

Integration exists: Audit against baseline requirements below.

2. Verify Baseline Requirements

Every trace should have these fundamentals:

RequirementCheckWhy
Model nameIs the LLM model captured?Enables model comparison and filtering
Token usageAre input/output tokens tracked?Enables automatic cost calculation
Good trace namesAre names descriptive? (chat-response, not trace-1)Makes traces findable and filterable
Span hierarchyAre multi-step operations nested properly?Shows which step is slow or failing
Correct observation typesAre generations marked as generations?Enables model-specific analytics
Sensitive data maskedIs PII/confidential data excluded or masked?Prevents data leakage
Trace input/outputDoes the trace capture the full data being processed as input, and the result as output?Enables debugging and understanding what was processed

Framework integrations (OpenAI, LangChain, etc.) handle model name, tokens, and observation types automatically. Prefer integrations over manual instrumentation.

Docs: https://langfuse.com/docs/tracing

3. Explore Traces First

Once baseline instrumentation is working, encourage the user to explore their traces in the Langfuse UI before adding more context:

"Your traces are now appearing in Langfuse. Take a look at a few of them—see what data is being captured, what's useful, and what's missing. This will help us decide what additional context to add."

This helps the user:

  • Understand what they're already getting
  • Form opinions about what's missing
  • Ask better questions about what they need

4. Discover Additional Context Needs

Determine what additional instrumentation would be valuable. Infer from code when possible, only ask when unclear.

Infer from code:

If you see in code...InferSuggest
Conversation history, chat endpoints, message arraysMulti-turn appsession_id
User authentication, user_id variablesUser-aware appuser_id on traces
Multiple distinct endpoints/featuresMulti-feature appfeature tag
Customer/tenant identifiersMulti-tenant appcustomer_id or tier tag
Feedback collection, ratingsHas user feedbackCapture as scores

Only ask when not obvious from code:

  • "How do you know when a response is good vs bad?" → Determines scoring approach
  • "What would you want to filter by in a dashboard?" → Surfaces non-obvious tags
  • "Are there different user segments you'd want to compare?" → Customer tiers, plans, etc.

Additions and their value:

AdditionWhyDocs
session_idGroups conversations togetherhttps://langfuse.com/docs/tracing-features/sessions
user_idEnables user filtering and cost attributionhttps://langfuse.com/docs/tracing-features/users
User feedback scoreEnables quality filtering and trendshttps://langfuse.com/docs/scores/overview
feature tagPer-feature analyticshttps://langfuse.com/docs/tracing-features/tags
customer_tier tagCost/quality breakdown by segmenthttps://langfuse.com/docs/tracing-features/tags

These are NOT baseline requirements—only add what's relevant based on inference or user input.

5. Guide to UI

After adding context, point users to relevant UI features:

  • Traces view: See individual requests
  • Sessions view: See grouped conversations (if session_id added)
  • Dashboard: Build filtered views using tags
  • Scores: Filter by quality metrics

Framework Integrations

Prefer these over manual instrumentation:

FrameworkIntegrationDocs
OpenAI SDKDrop-in replacementhttps://langfuse.com/docs/integrations/openai
LangChainCallback handlerhttps://langfuse.com/docs/integrations/langchain
LlamaIndexCallback handlerhttps://langfuse.com/docs/integrations/llama-index
Vercel AI SDKOpenTelemetry exporterhttps://langfuse.com/docs/integrations/vercel-ai-sdk
LiteLLMCallback or proxyhttps://langfuse.com/docs/integrations/litellm

Full list: https://langfuse.com/docs/integrations

Always Explain Why

When suggesting additions, explain the user benefit:

"I recommend adding session_id to your traces.

Why: This groups messages from the same conversation together.
You'll be able to see full conversation flows in the Sessions view,
making it much easier to debug multi-turn interactions.

Learn more: https://langfuse.com/docs/tracing-features/sessions"

Common Mistakes

MistakeProblemFix
No flush() in scriptsTraces never sentCall langfuse.flush() before exit
Flat tracesCan't see which step failedUse nested spans for distinct steps
Generic trace namesHard to filterUse descriptive names: chat-response, doc-summary
Logging sensitive dataData leakage riskMask PII before tracing
Manual instrumentation when integration existsMore code, less contextUse framework integration
Langfuse import before env vars loadedLangfuse initializes with missing/wrong credentialsImport Langfuse AFTER loading environment variables (e.g., after load_dotenv())
Wrong import order with OpenAILangfuse can't patch the OpenAI clientImport Langfuse and call its setup BEFORE importing OpenAI client

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

Claude Code

27.6%
按下载量换算468

Cursor

20.31%
按下载量换算344

Codex

18.5%
按下载量换算314

OpenCode

11.79%
按下载量换算200

Gemini CLI

7.73%
按下载量换算131

Antigravity

3.06%
按下载量换算52

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills