langfuse
Skill157 starsChanged 7 months agoMITView on GitHub
Use Langfuse for LLM observability and evaluation and look up Langfuse documentation. In HybridClaw, data access (traces, observations, sessions, scores, prompts, datasets, metrics) goes through the gateway-proxied langfuse.cjs helper with SecretRef auth — reads are green, writes are grant-gated. Documentation retrieval uses langfuse.com llms.txt, markdown pages, and search-docs. Covers instrumentation, prompt migration, error analysis, and LLM-as-a-judge calibration.
- Reads credentials
10 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- LunarCommand/claude-skillstheir own version, first seen Sep 4, 2026
- KonghaYao/peritheir own version, first seen Aug 14, 2026
- Bbar0n234/learnflow-aitheir own version, first seen Aug 11, 2026
- phuquocchamp/claude-code-101edited, first seen Apr 13, 2026
- lifegenieai/claude-code-observabilitytheir own version, first seen Apr 4, 2026
- avivsinai/langfuse-mcptheir own version, first seen Mar 27, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- phuquocchamp/claude-code-101★ 027% same
Wrote their own version · 9
- langfuse/skills★ 295same name
- KonghaYao/peri★ 221same name
- avivsinai/langfuse-mcp★ 113same name
- Bbar0n234/learnflow-ai★ 35same name
- xfstudio/skills★ 9same name
- ajbmachon/ajbm-skills★ 7same name
- ai4brands-design/claude-skills★ 2same name
- lifegenieai/claude-code-observability★ 2same name
- LunarCommand/claude-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository88 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/llm-wiki/templates/AGENTS.mdAGENTS.md
- templates/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- 1passwordSkill
- agentic-tpmSkill
- airtableSkill
- alexaSkill
- apple-calendarSkill
- apple-musicSkill
- apple-passwordsSkill
- bahnSkill
- blinkSkill
- bookingSkill
- brand-voiceSkill
- byd-batterySkill
- channel-catchupSkill
- code-reviewSkill
- code-simplificationSkill
- current-timeSkill
- diagramSkill
- discordSkill
- distil-pii-redactorSkill
- docxSkill
- download-platform-invoicesSkill
- excalidrawSkill
- fastbillSkill
- fax-sendSkill
- feature-planningSkill
- firecrawlSkill
- froniusSkill
- ga4Skill
- gh-issuesSkill
- github-pr-workflowSkill
- gogSkill
- google-adsSkill
- google-workspaceSkill
- gwsSkill
- handoff-linksSkill
- hermes3000-writingSkill
- hetzner-cloudSkill
- hetzner-dnsSkill
- hetzner-storage-boxSkill
- heygenSkill
- homematicSkill
- hubspotSkill
- hueSkill
- human-distillSkill
- hybridclaw-helpSkill
- image-generationSkill
- iss-positionSkill
- lexware-officeSkill
- llm-wikiSkill
- mailchimpSkill
- manim-videoSkill
- microsoft-365Skill
- miroSkill
- mittwaldSkill
- notionSkill
- obsidianSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 5 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 134
Follow these principles for ALL Langfuse work:
- Distinctive: line 136
Documentation first: never implement from memory.
- Very specific: line 139
Helper for data access: use langfuse.cjs (gateway + SecretRef) when querying or modifying Langfuse data.
- Distinctive: line 142
Best practices by use case: check the relevant reference below before implementing.
- Very specific: line 229
Before creating a score config, list existing ones (list-score-configs).
- Very specific: line 231
Never print, inspect, or ask for LANGFUSE_BASIC_AUTH.
- Very specific: line 238
Prefer your application's native web fetch/search tools (e.g.
- Distinctive: line 259
When you don't know the page (also indexes GitHub issues/discussions):
- Distinctive: line 280
If the skill gives wrong or outdated guidance, is missing something, or could be improved, offer to submit feedback to the Langfuse skill …
“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Langfuse
This skill helps you use Langfuse effectively across all common workflows: instrumenting applications, migrating prompts, debugging traces, accessing data, and evaluating outputs.
HybridClaw integration. This is the official Langfuse skill (github.com/langfuse/skills, MIT) adapted for HybridClaw. Two things differ from the upstream skill:
- Credentials never leave the gateway. Do not export
LANGFUSE_PUBLIC_KEY/LANGFUSE_SECRET_KEY, runnpx langfuse-cli, or paste keys anywhere. Store them once in the runtime stores (below); the gateway injects them server-side.- Data access goes through
langfuse.cjs, not the Langfuse CLI. The helper builds each REST request and sends it through the HybridClaw gateway, which resolvesAuthorization: Basic <secret:LANGFUSE_BASIC_AUTH>and the<env:LANGFUSE_HOST>base URL. Wherever a reference says to runlangfuse-cliorcurl -H "Authorization: Basic $AUTH", use the helper instead. Documentation retrieval (section 2) is unchanged.
HybridClaw setup
The helper never sees credentials. Store two values once. For secrets, use this order:
- Browser admin: open the active HybridClaw admin URL ending in
/admin/secrets. - Browser
/chator TUI fallback. - Local console fallback.
LANGFUSE_BASIC_AUTH— base64 ofpublic-key:secret-key:/secret set LANGFUSE_BASIC_AUTH "<base64-public-colon-secret>"LANGFUSE_HOST— your Langfuse base URL:/env set LANGFUSE_HOST https://cloud.langfuse.com(usehttps://us.cloud.langfuse.comfor US,https://jp.cloud.langfuse.comfor JP, or your self-hosted origin).
Local console fallback: hybridclaw secret set LANGFUSE_BASIC_AUTH "<...>"
and hybridclaw env set LANGFUSE_HOST https://cloud.langfuse.com.
See references/operator-setup.md for key scope, host selection, autonomy defaults, and network-policy notes.
Core Principles
Follow these principles for ALL Langfuse work:
- Documentation first: never implement from memory. Langfuse updates frequently — fetch current docs (section 2) before writing instrumentation or SDK code.
- Helper for data access: use
langfuse.cjs(gateway + SecretRef) when querying or modifying Langfuse data. It owns endpoints, methods, bodies, stakes tiers, host, and the Basic auth placeholder. - Best practices by use case: check the relevant reference below before implementing.
- Use latest Langfuse versions: unless the user says otherwise, target the latest Langfuse SDKs/APIs.
Use-case references
- instrumenting an existing function/application: references/instrumentation.md
- migrating prompts from a codebase into Langfuse: references/prompt-migration.md
- capturing user feedback (thumbs, ratings, implicit signals) as scores: references/user-feedback.md
- systematic error analysis — reading traces, building a failure taxonomy, deciding what to fix: references/error-analysis.md
- judge calibration (LLM-as-a-Judge reliability, accuracy checks, confusion matrices, metric ingestion): references/judge-calibration.md
- upgrading or migrating Langfuse SDKs: references/sdk-upgrade.md
- CI/CD experiment gates with
langfuse/experiment-action: references/ci-cd.md - raw Langfuse REST/CLI semantics (endpoints, pagination, v2 vs legacy): references/cli.md
- HybridClaw credential, host, autonomy, and network-policy setup: references/operator-setup.md
- submitting feedback about this skill: references/skill-feedback.md
1. Langfuse data access (HybridClaw gateway helper)
langfuse.cjs is the API wrapper. Do not handcraft Langfuse API URLs, JSON
bodies, tiers, host, or the Basic auth header from memory.
node skills/langfuse/langfuse.cjs --help- plan classifies a natural-language request into an operation + tier:
node skills/langfuse/langfuse.cjs --format json plan "average eval score this week" - run executes a live request through the gateway (the gateway injects the
Basic auth header):
node skills/langfuse/langfuse.cjs --format json run list-traces --user-id alice --limit 50 - http-request emits the gateway-ready payload without calling Langfuse — use it for dry-run inspection or runtimes without helper gateway access.
Read examples (green):
node skills/langfuse/langfuse.cjs --format json run get-trace --trace-id abc123
node skills/langfuse/langfuse.cjs --format json run list-observations --type GENERATION --trace-id abc123
node skills/langfuse/langfuse.cjs --format json run list-scores --name quality
node skills/langfuse/langfuse.cjs --format json run get-prompt --prompt-name support-reply --label production
node skills/langfuse/langfuse.cjs --format json run metrics --query '{"view":"traces","metrics":[{"measure":"count","aggregation":"count"}]}'Guarded write examples (amber — only after an explicit operator grant):
node skills/langfuse/langfuse.cjs --format json run create-score \
--trace-id abc123 --name quality --value 0.8 --data-type NUMERIC --comment "reviewed" --operator-grant
node skills/langfuse/langfuse.cjs --format json run create-prompt \
--name summarizer --type text --prompt "Summarize: {{input}}" --label production --operator-grantSelect region or self-hosted host explicitly (otherwise <env:LANGFUSE_HOST>):
node skills/langfuse/langfuse.cjs --format json run list-traces --host https://us.cloud.langfuse.comWorking rules
- Reads are green. Writes (
create-score,create-comment,create-dataset,create-dataset-item,create-prompt) require--operator-grant: produce a plan, wait for the operator's grant, then run the exact approved command. - Deletions and project / API-key / organization / SCIM administration are out of scope. Use the Langfuse UI for those.
- Page size is capped at 100; use
--page(legacy) or--cursor(modern endpoints) to paginate. The helper rejects--limitabove 100. - Trace reads use Langfuse's v2 Observations API.
list-tracesreturns logical root observation rows (one application root per trace);get-tracereturns every observation row sharing the requested trace ID. Followmeta.cursorwith--cursorwhen more rows are available. - Langfuse v4 has no separate trace-level
input/output. Reconstruct them from the root observation; prompts and outputs may instead live on a childGENERATIONobservation. - Before creating a score config, list existing ones (
list-score-configs); configs cannot be deleted. - Never print, inspect, or ask for
LANGFUSE_BASIC_AUTH; the gateway injects it asAuthorization: Basic <secret:LANGFUSE_BASIC_AUTH>. - Cost per assistant run is recorded by HybridClaw
UsageTotals; helper output includescostMeasurement.system = "UsageTotals"for eval verification.
2. Langfuse documentation
Prefer your application's native web fetch/search tools (e.g. web_fetch,
web_search) over curl. The URLs work with any fetching method.
2a. Documentation index (llms.txt)
Fetch the full index of doc pages, then fetch the right one:
curl -s https://langfuse.com/llms.txt2b. Fetch individual pages as markdown
Append .md to any doc path (or send Accept: text/markdown):
curl -s "https://langfuse.com/docs/observability/overview.md"2c. Search documentation
When you don't know the page (also indexes GitHub issues/discussions):
curl -s "https://langfuse.com/api/search-docs?query=How+do+I+trace+LangGraph+agents"Workflow: start with llms.txt to orient → fetch the specific page → fall back to search when the topic is unclear.
Eval suite
node skills/langfuse/langfuse.cjs --format json eval-scenariosThe fixture at evals/scenarios.json contains 10 scenarios covering trace,
observation, session, score, metric, prompt, and dataset reads plus guarded
score, dataset, and prompt writes.
Skill feedback
If the skill gives wrong or outdated guidance, is missing something, or could be improved, offer to submit feedback to the Langfuse skill maintainers following references/skill-feedback.md. Do not trigger this for issues with Langfuse the product — only this skill's instructions.
Attribution
Adapted from the official Langfuse skill
(github.com/langfuse/skills), MIT-licensed,
with HybridClaw gateway/SecretRef data access in place of the upstream
langfuse-cli + plaintext-key path. See NOTICE.md.
Validation
python3 skills/skill-creator/scripts/quick_validate.py skills/langfuse
node skills/langfuse/langfuse.cjs --help
node skills/langfuse/langfuse.cjs --format json eval-scenariosDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

