langfuse-observability

langfuse-observability is a skill for Claude Code from ArieGoldkin/claude-forge. It costs 34 tokens per session (1,646 once invoked), scanned A, original, MIT.

An observability guide for Langfuse, a platform that records and examines how language-model applications run. It covers tracing, evaluations, prompt versions, costs, and scoring by another language model.

In plain words
What is it for?
Use it to trace model calls and nested retrieval or generation steps, evaluate outputs, manage prompt versions, track spending, and add model-based scoring.
Why use it?
It helps you see what happens inside multi-step AI requests and compare their quality and cost. This makes problems and regressions easier to investigate.

Skill for Claude Code

Written for Claude Code: paths in frontmatter. Also seen: positional $N argument.

Part of the atk plugin — 16 skills, 25 commands, 1 agent, 1 hook shipped together

Good fit Use it to trace model calls and nested retrieval or generation steps, evaluate outputs, manage prompt versions, track spending, and add model-based scoring.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ariegoldkin/claude-forge/langfuse-observability
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ArieGoldkin/claude-forge --skill langfuse-observability
Clone the repo
git clone --depth 1 https://github.com/ArieGoldkin/claude-forge

Made for: Claude Code.

Or install atk, the plugin that ships this one along with the rest of its 16 skills, 25 commands, 1 agent, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for langfuse-observability

README.md
[![agentmods](https://agentmods.dev/badge/skills/ariegoldkin/claude-forge/langfuse-observability/github.svg)](https://agentmods.dev/skills/ariegoldkin/claude-forge/langfuse-observability)
Your own site
<a href="https://agentmods.dev/skills/ariegoldkin/claude-forge/langfuse-observability"><img src="https://agentmods.dev/badge/skills/ariegoldkin/claude-forge/langfuse-observability/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for langfuse-observability

Your own site · 80×15
<a href="https://agentmods.dev/skills/ariegoldkin/claude-forge/langfuse-observability"><img src="https://agentmods.dev/badge/skills/ariegoldkin/claude-forge/langfuse-observability.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,646 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.01646
Opus 5.5 $0.00014 $0.00658
Sonnet 5.5 $0.00007 $0.00329
Haiku 4.5 $0.00003 $0.00165

Measured 3mo ago against content hash 07f640fb8593, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

langfuse-observability scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (templates/callback-handler.py, templates/observe-decorator.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ai-toolkit/skills/langfuse-observability/SKILL.md · 205 lines

How it starts

The opening of the file, as written. The whole thing — 205 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Langfuse Observability

Overview

Langfuse is the open-source LLM observability platform recommended for tracing, monitoring, evaluation, and prompt management. Unlike LangSmith (deprecated), Langfuse is self-hosted, free, and designed for production LLM applications.


Core Features

1. Distributed Tracing

Track LLM calls across your application with automatic parent-child span relationships.

from langfuse.decorators import observe, langfuse_context

@observe()  # Automatic tracing
async def analyze_content(content: str, agent_type: str):
    """Analyze content with automatic Langfuse tracing."""

    # Nested span for retrieval
    @observe(name="retrieval")
    async def retrieve_context():
        chunks = await vector_db.search(content)
        langfuse_context.update_current_observation(
            metadata={"chunks_retrieved": len(chunks)}
        )
        return chunks

    # Nested span for generation
    @observe(name="generation")
    async def generate_analysis(context):
        response = await llm.generate(
            prompt=f"Context: {context}\n\nAnalyze: {content}"
        )
        langfuse_context.update_current_observation(
            input=content[:500],
            output=response[:500],
            model="claude-sonnet-4-20250514",
            usage={
                "input_tokens": response.usage.input_tokens,
                "output_tokens": response.usage.output_tokens
            }
        )
        return response

    context = await retrieve_context()
    return await generate_analysis(context)

Result in Langfuse UI:

analyze_content (2.3s, $0.045)
├── retrieval (0.1s)
│   └── metadata: {chunks_retrieved: 5}
└── generation (2.2s, $0.045)
    └── model: claude-sonnet-4-20250514
    └── tokens: 1500 input, 1000 output

2. Token & Cost Tracking

Automatic cost calculation based on model pricing, with a built-in pricing database for all major models and custom pricing support. See references/cost-tracking.md for detailed patterns, dashboard queries, and best practices.

Read the full file on GitHub · 205 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 205 lines · 34 tokens per session scan A 07f640fb8593

Subscribe to this mod's changes

langfuse-observability is a skill published in the GitHub repository ArieGoldkin/claude-forge (7 stars, last pushed 3mo ago), licensed MIT. It adds 34 tokens to every session and 1,646 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

langfuse-observability compared with skills from other repositories

langfuse-observability next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
langfuse-observabilityArieGoldkin/claude-forgeSkill73mo agoMITA34Claude Code
inference-serving-sglangdavila7/claude-code-templatesSkill35ktodayMITA76Claude Code, Codex
dataset-transformationawslabs/agent-pluginsSkill957todayApache-2.0A110Claude Code
dataset-evaluationawslabs/agent-pluginsSkill957todayApache-2.0A93Claude Code
use-case-specificationawslabs/agent-pluginsSkill957todayApache-2.0A85Claude Code
model-selectionawslabs/agent-pluginsSkill957todayApache-2.0A98Claude Code
finetuning-techniqueawslabs/agent-pluginsSkill957todayApache-2.0A87Claude Code