langfuse-hello-world
Create a minimal working Langfuse trace example. Use when starting a new Langfuse integration, testing your setup, or learning basic Langfuse tracing patterns. Trigger with phrases like "langfuse hello world", "langfuse example", "langfuse quick start", "first langfuse trace", "simple langfuse code".
npx skills add majiayu000/claude-skill-registry --skill langfuse-hello-world --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Langfuse Hello World ## Overview Minimal working example demonstrating core Langfuse tracing functionality. ## Prerequisites - Completed `langfuse-install-auth` setup - Valid API credentials configured - Development environment ready ## Instructions ### Step 1: Create Entry File Create a new file for your hello world trace. ### Step 2: Import and Initialize Client ```typescript import { Langfuse } from "langfuse"; const langfuse = new Langfuse({ publicKey: process.env.LANGFUSE_PUBLIC_KEY!, secretKey: process.env.LANGFUSE_SECRET_KEY!, baseUrl: process.env.LANGFUSE_HOST, }); ``` ### Step 3: Create Your First Trace ```typescript async function helloLangfuse() { // Create a trace (top-level operation) const trace = langfuse.trace({ name: "hello-world", userId: "demo-user", metadata: { source: "hello-world-example" }, tags: ["demo", "getting-started"], }); // Add a span (child operation) const span = trace.span({ name: "process-input", input: { message: "Hello, Langfuse!" }, }); // Simulate some processing await new Promise((resolve) => setTimeout(resolve, 100)); // End the span with output span.end({ output: { result: "Processed successfully!" }, }); // Add a generation (LLM call tra
- Overview
- Prerequisites
- Instructions
- Step 1: Create Entry File
- Step 2: Import and Initialize Client
- Step 3: Create Your First Trace
- Output
- Error Handling
- Examples
- TypeScript Complete Example
- Python Complete Example
- With Decorators (Python)
- Resources
- Next Steps
What does the langfuse-hello-world skill do?
Create a minimal working Langfuse trace example. Use when starting a new Langfuse integration, testing your setup, or learning basic Langfuse tracing patterns. Trigger with phrases like "langfuse hello world", "langfuse example", "langfuse quick start", "first langfuse trace", "simple langfuse code".
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill langfuse-hello-world --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
