[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M752GD9Y7FD9J8BZ3HB6V981":3,"skill-same:01M752GD9Y7FD9J8BZ3HB6V981":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M752GD9Y7FD9J8BZ3HB6V981","langfuse-hello-world",null,"Create a minimal working Langfuse trace example.\nUse when starting a new Langfuse integration, testing your setup,\nor learning basic Langfuse tracing patterns.\nTrigger with phrases like \"langfuse hello world\", \"langfuse example\",\n\"langfuse quick start\", \"first langfuse trace\", \"simple langfuse code\".","SamuelChien\u002Fmega-skills-collection","SamuelChien","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F4652114?v=4","01M74KK34WVHA0P5ZYSJRDDFMG","Samuel Chien","01M74KK35FQN1N9VZ9EPTH3P2S",0,"MIT","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Flangfuse-hello-world\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: langfuse-hello-world\ndescription: |\n  Create a minimal working Langfuse trace example.\n  Use when starting a new Langfuse integration, testing your setup,\n  or learning basic Langfuse tracing patterns.\n  Trigger with phrases like \"langfuse hello world\", \"langfuse example\",\n  \"langfuse quick start\", \"first langfuse trace\", \"simple langfuse code\".\nallowed-tools: Read, Write, Edit\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code, codex, openclaw\n---\n# Langfuse Hello World\n\n## Overview\nMinimal working example demonstrating core Langfuse tracing functionality.\n\n## Prerequisites\n- Completed `langfuse-install-auth` setup\n- Valid API credentials configured\n- Development environment ready\n\n## Instructions\n\n### Step 1: Create Entry File\n\nCreate a new file for your hello world trace.\n\n### Step 2: Import and Initialize Client\n\n```typescript\nimport { Langfuse } from \"langfuse\";\n\nconst langfuse = new Langfuse({\n  publicKey: process.env.LANGFUSE_PUBLIC_KEY!,\n  secretKey: process.env.LANGFUSE_SECRET_KEY!,\n  baseUrl: process.env.LANGFUSE_HOST,\n});\n```\n\n### Step 3: Create Your First Trace\n\n```typescript\nasync function helloLangfuse() {\n  \u002F\u002F Create a trace (top-level operation)\n  const trace = langfuse.trace({\n    name: \"hello-world\",\n    userId: \"demo-user\",\n    metadata: { source: \"hello-world-example\" },\n    tags: [\"demo\", \"getting-started\"],\n  });\n\n  \u002F\u002F Add a span (child operation)\n  const span = trace.span({\n    name: \"process-input\",\n    input: { message: \"Hello, Langfuse!\" },\n  });\n\n  \u002F\u002F Simulate some processing\n  await new Promise((resolve) => setTimeout(resolve, 100));\n\n  \u002F\u002F End the span with output\n  span.end({\n    output: { result: \"Processed successfully!\" },\n  });\n\n  \u002F\u002F Add a generation (LLM call tracking)\n  trace.generation({\n    name: \"llm-response\",\n    model: \"gpt-4\",\n    input: [{ role: \"user\", content: \"Say hello\" }],\n    output: { content: \"Hello! How can I help you today?\" },\n    usage: {\n      promptTokens: 5,\n      completionTokens: 10,\n      totalTokens: 15,\n    },\n  });\n\n  \u002F\u002F Flush to ensure data is sent\n  await langfuse.flushAsync();\n\n  console.log(\"Trace created! View at:\", trace.getTraceUrl());\n}\n\nhelloLangfuse().catch(console.error);\n```\n\n## Output\n- Working code file with Langfuse client initialization\n- A trace visible in Langfuse dashboard containing:\n  - One span with input\u002Foutput\n  - One generation with mock LLM data\n- Console output showing:\n```\nTrace created! View at: https:\u002F\u002Fcloud.langfuse.com\u002Ftrace\u002Fabc123...\n```\n\n## Error Handling\n| Error | Cause | Solution |\n|-------|-------|----------|\n| Import Error | SDK not installed | Verify with `npm list langfuse` |\n| Auth Error | Invalid credentials | Check environment variables are set |\n| Trace not appearing | Data not flushed | Ensure `flushAsync()` is called |\n| Network Error | Host unreachable | Verify LANGFUSE_HOST URL |\n\n## Examples\n\n### TypeScript Complete Example\n```typescript\nimport { Langfuse } from \"langfuse\";\n\nconst langfuse = new Langfuse();\n\nasync function main() {\n  \u002F\u002F Create trace\n  const trace = langfuse.trace({\n    name: \"hello-world\",\n    input: { query: \"What is Langfuse?\" },\n  });\n\n  \u002F\u002F Simulate LLM call\n  const generation = trace.generation({\n    name: \"answer-query\",\n    model: \"gpt-4\",\n    modelParameters: { temperature: 0.7 },\n    input: [\n      { role: \"system\", content: \"You are a helpful assistant.\" },\n      { role: \"user\", content: \"What is Langfuse?\" },\n    ],\n  });\n\n  \u002F\u002F Simulate response\n  await new Promise((r) => setTimeout(r, 500));  # HTTP 500 Internal Server Error\n\n  \u002F\u002F End generation with output\n  generation.end({\n    output: \"Langfuse is an open-source LLM observability platform...\",\n    usage: { promptTokens: 25, completionTokens: 50 },\n  });\n\n  \u002F\u002F Update trace with final output\n  trace.update({\n    output: { answer: \"Langfuse is an LLM observability platform.\" },\n  });\n\n  \u002F\u002F Flush and get URL\n  await langfuse.flushAsync();\n  console.log(\"View trace:\", trace.getTraceUrl());\n}\n\nmain();\n```\n\n### Python Complete Example\n```python\nfrom langfuse import Langfuse\nimport time\n\nlangfuse = Langfuse()\n\ndef main():\n    # Create trace\n    trace = langfuse.trace(\n        name=\"hello-world\",\n        input={\"query\": \"What is Langfuse?\"},\n        user_id=\"demo-user\",\n    )\n\n    # Add a span for processing\n    span = trace.span(\n        name=\"process-query\",\n        input={\"query\": \"What is Langfuse?\"},\n    )\n\n    # Simulate processing\n    time.sleep(0.1)\n\n    span.end(output={\"processed\": True})\n\n    # Add LLM generation\n    generation = trace.generation(\n        name=\"answer-query\",\n        model=\"gpt-4\",\n        model_parameters={\"temperature\": 0.7},\n        input=[\n            {\"role\": \"system\", \"content\": \"You are a helpful assistant.\"},\n            {\"role\": \"user\", \"content\": \"What is Langfuse?\"},\n        ],\n    )\n\n    # Simulate LLM response\n    time.sleep(0.5)\n\n    generation.end(\n        output=\"Langfuse is an open-source LLM observability platform...\",\n        usage={\"prompt_tokens\": 25, \"completion_tokens\": 50},\n    )\n\n    # Update trace with final output\n    trace.update(\n        output={\"answer\": \"Langfuse is an LLM observability platform.\"}\n    )\n\n    # Flush data\n    langfuse.flush()\n    print(f\"View trace: {trace.get_trace_url()}\")\n\nif __name__ == \"__main__\":\n    main()\n```\n\n### With Decorators (Python)\n```python\nfrom langfuse.decorators import observe, langfuse_context\n\n@observe()\ndef process_query(query: str) -> str:\n    # This function is automatically traced\n    return f\"Processed: {query}\"\n\n@observe(as_type=\"generation\")\ndef generate_response(messages: list) -> str:\n    # This is tracked as an LLM generation\n    langfuse_context.update_current_observation(\n        model=\"gpt-4\",\n        usage={\"prompt_tokens\": 10, \"completion_tokens\": 20},\n    )\n    return \"Hello from Langfuse!\"\n\n@observe()\ndef main():\n    result = process_query(\"Hello!\")\n    response = generate_response([{\"role\": \"user\", \"content\": \"Hi\"}])\n    return response\n\nmain()\n```\n\n## Resources\n- [Langfuse Tracing Concepts](https:\u002F\u002Flangfuse.com\u002Fdocs\u002Ftracing)\n- [Langfuse SDK Reference](https:\u002F\u002Flangfuse.com\u002Fdocs\u002Fsdk)\n- [Langfuse Examples](https:\u002F\u002Flangfuse.com\u002Fdocs\u002Fget-started)\n\n## Next Steps\nProceed to `langfuse-local-dev-loop` for development workflow setup.","# Langfuse Hello World\n\n## Overview\nMinimal working example demonstrating core Langfuse tracing functionality.\n\n## Prerequisites\n- Completed `langfuse-install-auth` setup\n- Valid API credentials configured\n- Development environment ready\n\n## Instructions\n\n### Step 1: Create Entry File\n\nCreate a new file for your hello world trace.\n\n### Step 2: Import and Initialize Client\n\n```typescript\nimport { Langfuse } from \"langfuse\";\n\nconst langfuse = new Langfuse({\n  publicKey: process.env.LANGFUSE_PUBLIC_KEY!,\n  secretKey: process.env.LANGFUSE_SECRET_KEY!,\n  baseUrl: process.env.LANGFUSE_HOST,\n});\n```\n\n### Step 3: Create Your First Trace\n\n```typescript\nasync function helloLangfuse() {\n  \u002F\u002F Create a trace (top-level operation)\n  const trace = langfuse.trace({\n    name: \"hello-world\",\n    userId: \"demo-user\",\n    metadata: { source: \"hello-world-example\" },\n    tags: [\"demo\", \"getting-started\"],\n  });\n\n  \u002F\u002F Add a span (child operation)\n  const span = trace.span({\n    name: \"process-input\",\n    input: { message: \"Hello, Langfuse!\" },\n  });\n\n  \u002F\u002F Simulate some processing\n  await new Promise((resolve) => setTimeout(resolve, 100));\n\n  \u002F\u002F End the span with output\n  span.end({\n    output: { result: \"Processed successfully!\" },\n  });\n\n  \u002F\u002F Add a generation (LLM call tracking)\n  trace.generation({\n    name: \"llm-response\",\n    model: \"gpt-4\",\n    input: [{ role: \"user\", content: \"Say hello\" }],\n    output: { content: \"Hello! How can I help you today?\" },\n    usage: {\n      promptTokens: 5,\n      completionTokens: 10,\n      totalTokens: 15,\n    },\n  });\n\n  \u002F\u002F Flush to ensure data is sent\n  await langfuse.flushAsync();\n\n  console.log(\"Trace created! View at:\", trace.getTraceUrl());\n}\n\nhelloLangfuse().catch(console.error);\n```\n\n## Output\n- Working code file with Langfuse client initialization\n- A trace visible in Langfuse dashboard containing:\n  - One span with input\u002Foutput\n  - One generation with mock LLM data\n- Console output showing:\n```\nTrace created! View at: https:\u002F\u002Fcloud.langfuse.com\u002Ftrace\u002Fabc123...\n```\n\n## Error Handling\n| Error | Cause | Solution |\n|-------|-------|----------|\n| Import Error | SDK not installed | Verify with `npm list langfuse` |\n| Auth Error | Invalid credentials | Check environment variables are set |\n| Trace not appearing | Data not flushed | Ensure `flushAsync()` is called |\n| Network Error | Host unreachable | Verify LANGFUSE_HOST URL |\n\n## Examples\n\n### TypeScript Complete Example\n```typescript\nimport { Langfuse } from \"langfuse\";\n\nconst langfuse = new Langfuse();\n\nasync function main() {\n  \u002F\u002F Create trace\n  const trace = langfuse.trace({\n    name: \"hello-world\",\n    input: { query: \"What is Langfuse?\" },\n  });\n\n  \u002F\u002F Simulate LLM call\n  const generation = trace.generation({\n    name: \"answer-query\",\n    model: \"gpt-4\",\n    modelParameters: { temperature: 0.7 },\n    input: [\n      { role: \"system\", content: \"You are a helpful assistant.\" },\n      { role: \"user\", content: \"What is Langfuse?\" },\n    ],\n  });\n\n  \u002F\u002F Simulate response\n  await new Promise((r) => setTimeout(r, 500));  # HTTP 500 Internal Server Error\n\n  \u002F\u002F End generation with output\n  generation.end({\n    output: \"Langfuse is an open-source LLM observability platform...\",\n    usage: { promptTokens: 25, completionTokens: 50 },\n  });\n\n  \u002F\u002F Update trace with final output\n  trace.update({\n    output: { answer: \"Langfuse is an LLM observability platform.\" },\n  });\n\n  \u002F\u002F Flush and get URL\n  await langfuse.flushAsync();\n  console.log(\"View trace:\", trace.getTraceUrl());\n}\n\nmain();\n```\n\n### Python Complete Example\n```python\nfrom langfuse import Langfuse\nimport time\n\nlangfuse = Langfuse()\n\ndef main():\n    # Create trace\n    trace = langfuse.trace(\n        name=\"hello-world\",\n        input={\"query\": \"What is Langfuse?\"},\n        user_id=\"demo-user\",\n    )\n\n    # Add a span for processing\n    span = trace.span(\n        name=\"process-query\",\n        input={\"query\": \"What is Langfuse?\"},\n    )\n\n    # Simulate processing\n    time.sleep(0.1)\n\n    span.end(output={\"processed\": True})\n\n    # Add LLM generation\n    generation = trace.generation(\n        name=\"answer-query\",\n        model=\"gpt-4\",\n        model_parameters={\"temperature\": 0.7},\n        input=[\n            {\"role\": \"system\", \"content\": \"You are a helpful assistant.\"},\n            {\"role\": \"user\", \"content\": \"What is Langfuse?\"},\n        ],\n    )\n\n    # Simulate LLM response\n    time.sleep(0.5)\n\n    generation.end(\n        output=\"Langfuse is an open-source LLM observability platform...\",\n        usage={\"prompt_tokens\": 25, \"completion_tokens\": 50},\n    )\n\n    # Update trace with final output\n    trace.update(\n        output={\"answer\": \"Langfuse is an LLM observability platform.\"}\n    )\n\n    # Flush data\n    langfuse.flush()\n    print(f\"View trace: {trace.get_trace_url()}\")\n\nif __name__ == \"__main__\":\n    main()\n```\n\n### With Decorators (Python)\n```python\nfrom langfuse.decorators import observe, langfuse_context\n\n@observe()\ndef process_query(query: str) -> str:\n    # This function is automatically traced\n    return f\"Processed: {query}\"\n\n@observe(as_type=\"generation\")\ndef generate_response(messages: list) -> str:\n    # This is tracked as an LLM generation\n    langfuse_context.update_current_observation(\n        model=\"gpt-4\",\n        usage={\"prompt_tokens\": 10, \"completion_tokens\": 20},\n    )\n    return \"Hello from Langfuse!\"\n\n@observe()\ndef main():\n    result = process_query(\"Hello!\")\n    response = generate_response([{\"role\": \"user\", \"content\": \"Hi\"}])\n    return response\n\nmain()\n```\n\n## Resources\n- [Langfuse Tracing Concepts](https:\u002F\u002Flangfuse.com\u002Fdocs\u002Ftracing)\n- [Langfuse SDK Reference](https:\u002F\u002Flangfuse.com\u002Fdocs\u002Fsdk)\n- [Langfuse Examples](https:\u002F\u002Flangfuse.com\u002Fdocs\u002Fget-started)\n\n## Next Steps\nProceed to `langfuse-local-dev-loop` for development workflow setup.",{"name":5,"author":24,"license":15,"version":25,"description":26,"allowed-tools":27,"compatible-with":28},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Create a minimal working Langfuse trace example.\nUse when starting a new Langfuse integration, testing your setup,\nor learning basic Langfuse tracing patterns.\nTrigger with phrases like \"langfuse hello world\", \"langfuse example\",\n\"langfuse quick start\", \"first langfuse trace\", \"simple langfuse code\".\n","Read, Write, Edit","claude-code, codex, openclaw","main","c2b1fdccc779e99ac814e55fb69ca8d71215dd0f","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection","https:\u002F\u002Fgithub.com\u002FSamuelChien","http:\u002F\u002Fsamuelchien.com\u002F","2026-05-26 08:27:14",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add SamuelChien\u002Fmega-skills-collection --skill langfuse-hello-world",{"tool":41,"command":42},"bunx","bunx skills add SamuelChien\u002Fmega-skills-collection --skill langfuse-hello-world",{"tool":44,"command":45},"pnpm","pnpm dlx skills add SamuelChien\u002Fmega-skills-collection --skill langfuse-hello-world","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Flangfuse-hello-world\u002FSKILL.md",true,[],[50,57,64,71,78,86],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M76R4WZQZAXGGXMQCA0FZ716","zustand-store-ts","Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state\u002Faction separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-ts\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M76R4T9KENDH7FENGZQHBW4G","zustand-store-creator","Zustand Store Creator - Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M76R3YWN84B7SANJ52X799ZE","zero-trust-config-helper","Zero Trust Config Helper - Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M76R3HNSV2AEYSKHM915GJ58","zapier-integration-helper","Zapier Integration Helper - Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":82,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M76R3DJSKAT4FA7DV4BF3GCE","zai-cli","Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP.\nUse when user needs image\u002Fvideo analysis, OCR, UI-to-code conversion, error diagnosis,\nreal-time web search, web page to markdown extraction, or GitHub code exploration.\nTrigger with phrases like \"analyze this image\", \"search the web for\", \"read this page\",\n\"explore this repo\", or \"use zai\". Requires Z_AI_API_KEY.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzai-cli\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M76R2KAM699XE9AJVAWE4H2E","yt-research","Research competitor YouTube channels, niches, and trending topics for your content strategy.\nUse this skill whenever the user says \"research channels\", \"analyze competitors\", \"find trending topics\",\n\"niche analysis\", \"competitive research\", \"what are other creators doing\", \"scrape YouTube channels\",\nor wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fyt-research\u002FSKILL.md",[],[]]