npx skills add https://github.com/langfuse/skills --skill langfuse此技能可帮助您在所有常见工作流程中高效使用 Langfuse:插桩应用、迁移提示词、调试追踪以及以编程方式访问数据。
所有 Langfuse 工作请遵循以下原则:
langfuse-cli。请参阅下方关于如何使用 CLI 的部分。使用 langfuse-cli 从命令行与完整的 Langfuse REST API 交互。通过 npx 运行(无需安装):
首先探索模式和可用参数:
# 发现所有可用资源
npx langfuse-cli api __schema
# 列出资源的操作
npx langfuse-cli api <resource> --help
# 显示特定操作的参数/选项
npx langfuse-cli api <resource> <action> --help
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
在调用前设置环境变量:
export LANGFUSE_PUBLIC_KEY=pk-lf-...
export LANGFUSE_SECRET_KEY=sk-lf-...
export LANGFUSE_HOST=https://cloud.langfuse.com # 以欧盟云为例。对于美国云是 us.cloud.langfuse.com,也可以是自托管 URL。必须始终指定服务器才能访问 Langfuse。
如果未设置,请向用户询问其 API 密钥(可在 Langfuse UI → 设置 → API 密钥 中找到)。
关于常见工作流程、技巧和完整使用模式,请参阅 references/cli.md。
按优先级顺序,有三种方法可以访问 Langfuse 文档。只要可用,请始终优先使用您应用原生的网络获取和搜索工具(例如 WebFetch、WebSearch、mcp_fetch 等),而不是 curl。以下 URL 和模式适用于任何获取方法——curl 示例仅为说明。
获取所有文档页面的完整索引:
curl -s https://langfuse.com/llms.txt
返回包含标题和 URL 的每个文档页面的结构化列表。使用此列表来发现主题对应的正确页面,然后直接获取该页面。
或者,您可以从 https://langfuse.com/docs 开始,浏览网站以找到所需页面。
llms.txt 中列出的任何页面都可以通过在其路径后追加 .md 或在请求头中使用 Accept: text/markdown 来以 Markdown 格式获取。当您知道哪个页面包含所需信息时使用此方法。返回包含代码示例和配置详情的干净 Markdown。
curl -s "https://langfuse.com/docs/observability/overview.md"
curl -s "https://langfuse.com/docs/observability/overview" -H "Accept: text/markdown"
当您需要在所有文档以及 GitHub Issues/Discussions 中查找信息,但不知道具体页面时:
curl -s "https://langfuse.com/api/search-docs?query=<url-encoded-query>"
示例:
curl -s "https://langfuse.com/api/search-docs?query=How+do+I+trace+LangGraph+agents"
返回一个 JSON 响应,包含:
query:原始查询answer:一个包含匹配文档数组的 JSON 字符串,每个文档包含:
url:文档页面的链接title:页面标题source.content:页面相关文本摘录的数组如果您找不到相关页面或需要更多上下文,搜索是一个很好的备选方案。在调试问题时尤其有用,因为所有 GitHub Issues 和 Discussions 也会被索引。响应可能很大——请仅提取相关部分。
当用户表示此技能的某些方面未按预期工作、给出了错误指导、缺少信息或可以改进时——请主动提出向 Langfuse 技能维护者提交反馈。这包括以下情况:
请勿因 Langfuse 本身(产品)的问题触发此操作——仅针对此技能的指令和行为问题。
触发后,请按照 references/skill-feedback.md 中的流程操作。
每周安装数
1.3K
代码库
GitHub 星标数
37
首次出现
2026年2月15日
安全审计
安装于
codex898
claude-code893
opencode842
gemini-cli835
github-copilot834
kimi-cli824
This skill helps you use Langfuse effectively across all common workflows: instrumenting applications, migrating prompts, debugging traces, and accessing data programmatically.
Follow these principles for ALL Langfuse work:
langfuse-cli when querying/modifying Langfuse data. See the section below on how to use the 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:
# Discover all available resources
npx langfuse-cli api __schema
# 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
Set environment variables before making calls:
export LANGFUSE_PUBLIC_KEY=pk-lf-...
export LANGFUSE_SECRET_KEY=sk-lf-...
export LANGFUSE_HOST=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 not set, ask the user for their API keys (found in Langfuse UI → Settings → API Keys).
For common workflows, tips, and full usage patterns, see references/cli.md.
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.
Fetch the full index of all documentation pages:
curl -s https://langfuse.com/llms.txt
Returns a structured list of every doc page with titles and URLs. Use this to discover the right page for a topic, then fetch that page directly.
Alternatively, you can start on https://langfuse.com/docs and explore the site to find the page you need.
Any page listed in llms.txt can be fetched as markdown by appending .md to its path or by using Accept: text/markdown in the request headers. Use this when you know which page contains the information needed. Returns clean markdown with code examples and configuration details.
curl -s "https://langfuse.com/docs/observability/overview.md"
curl -s "https://langfuse.com/docs/observability/overview" -H "Accept: text/markdown"
When you need to find information across all docs and github issues/discussions without knowing the specific page:
curl -s "https://langfuse.com/api/search-docs?query=<url-encoded-query>"
Example:
curl -s "https://langfuse.com/api/search-docs?query=How+do+I+trace+LangGraph+agents"
Returns a JSON response with:
query: the original queryanswer: a JSON string containing an array of matching documents, each with:
url: link to the doc pagetitle: page titlesource.content: array of relevant text excerpts from the pageSearch is a great fallback if you cannot find the relevant pages or need more context. Especially useful when debugging issues as all GitHub Issues and Discussions are also indexed. Responses can be large — extract only the relevant portions.
When the user expresses that something about this skill is not working as expected, gives incorrect guidance, is missing information, or could be improved — offer to submit feedback to the Langfuse skill maintainers. This includes when:
Do NOT trigger this for issues with Langfuse itself (the product) — only for issues with this skill's instructions and behavior.
When triggered, follow the process in references/skill-feedback.md.
Weekly Installs
1.3K
Repository
GitHub Stars
37
First Seen
Feb 15, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
codex898
claude-code893
opencode842
gemini-cli835
github-copilot834
kimi-cli824
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装