mcpField
L
litefuse

litefuse

github.com/litefuseAgent workflows344 installsUpdated 27w ago
Repository

About litefuse

litefuse is a skill for developers and agents working with Litefuse, covering instrumentation, prompt migration, trace debugging, and data access. It emphasizes consulting current documentation and using litefuse-cli to work with data.

Key features

  1. 01Guidance for application instrumentation
  2. 02Prompt migration workflows
  3. 03Trace debugging and user feedback scoring
  4. 04REST API access through the CLI
  5. 05Use-case-specific reference guides

Use cases

  1. 01Instrument an existing application
  2. 02Move prompts from a codebase into Litefuse
  3. 03Debug traces and record user ratings
  4. 04Query or modify Litefuse data with the CLI

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/litefuse/skills --skill litefuse

After installing, type/litefusein Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
cli.md
instrumentation.md
prompt-migration.md
sdk-upgrade.md
skill-feedback.md
user-feedback.md

Details

From the project README

Litefuse

This skill helps you use Litefuse effectively across all common workflows: instrumenting applications, migrating prompts, debugging traces, and accessing data programmatically.

Core Principles

Follow these principles for ALL Litefuse work:

  1. Documentation First: NEVER implement based on memory. Always fetch current docs before writing code (Litefuse updates frequently) See the section below on how to access documentation.
  2. CLI for Data Access: Use litefuse-cli when querying/modifying Litefuse data. See the section below on how to use the CLI.
  3. Best Practices by Use Case: Check the relevant reference file below for use-case-specific guidelines before implementing
  4. Use latest Litefuse versions: Unless the user specified otherwise or there's a good reason, always use the latest version of Langfuse SDKs/APIs.

Use case specific references

  • instrumenting an existing function/application: references/instrumentation.md
  • migrating prompts from a codebase into Litefuse: references/prompt-migration.md
  • capturing user feedback (thumbs, ratings, implicit signals) as scores on traces: references/user-feedback.md
  • further tips on using the Litefuse CLI: references/cli.md
  • upgrading or migrating Langfuse SDKs to the latest version: references/sdk-upgrade.md
  • submitting feedback about this skill: references/skill-feedback.md

1. Langfuse API via CLI

Use the litefuse-cli to interact with the full Litefuse 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 litefuse-cli api __schema

# List actions for a resource
npx litefuse-cli api <resource> --help

# Show args/options for a specific action
npx litefuse-cli api <resource> <action> --help
Credentials

Set environment variables before making calls:

export LANGFUSE_PUBLIC_KEY=pk-lf-...
export LANGFUSE_SECRET_KEY=sk-lf-...
export LANGFUSE_HOST=https://litefuse.cloud # default Litefuse cloud host. Can also be a self-hosted URL. The server must always be specified in order to access Litefuse.

If not set, ask the user for their API keys (found in Litefuse UI → Settings → API Keys).

Detailed CLI Reference

For common workflows, tips, and full usage patterns, see references/cli.md.

2. Litefuse Documentation

Three methods to access Litefuse 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.

2a. Documentation Index (llms.txt)

Fetch the full index of all documentation pages:

curl -s https://litefuse.ai/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://litefuse.ai/docs and explore the site to find the page you need.

2b. Fetch Individual Pages as Markdown

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://litefuse.ai/docs/observability/overview.md"
curl -s "https://litefuse.ai/docs/observability/overview" -H "Accept: text/markdown"
2c. Search Documentation

When you need to find information across all docs and github issues/discussions without knowing the specific page:

curl -s "https://litefuse.ai/api/search-docs?query=<url-encoded-query>"

Example:

curl -s "https://litefuse.ai/api/search-docs?query=How+do+I+trace+LangGraph+agents"

Returns a JSON response with:

  • query: the original query
  • answer: a JSON string containing an array of matching documents, each with:
    • url: link to the doc page
    • title: page title
    • source.content: array of relevant text excerpts from the page

Search 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.

Documentation Workflow
  1. Start with llms.txt to orient — scan for relevant page titles
  2. Fetch specific pages when you identify the right one
  3. Fall back to search when the topic is unclear and you want more context

Skill Feedback

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 Litefuse skill maintainers. This includes when:

  • The skill gave wrong or outdated instructions
  • A workflow didn't produce the expected result
  • The user wishes the skill covered something it doesn't
  • The user explicitly says something like "this should work differently" or "this is wrong"

Do NOT trigger this for issues with Litefuse itself (the product) — only for issues with this skill's instructions and behavior.

When triggered, follow the process in references/skill-feedback.md.

Comments

Markdown supported