/llm-observability:instrument-llm-observabilityfrom llm-observability
Adds OpenTelemetry-based tracing to LLM/agent apps to capture prompts, tool calls, token usage, latency, and cost per step. Use when debugging production LLM behavior or adding observability.
Ships in llm-observability. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Add production-grade tracing to an LLM/agent app so every run is inspectable: prompts, tool calls, retrievals, token usage, latency, and cost per span.
Emit gen_ai.* spans via an OTel instrumentation library, then point at any collector.
traceloop-sdk) or OpenInference (Arize) - both emit OTel-compatible LLM spans.OTEL_EXPORTER_OTLP_ENDPOINT).gen_ai.operation.name, tool spans).See references/opentelemetry.md for the exact span attributes to set and a copy-paste init.
Wrap the LLM client with the platform's tracer (e.g. track_openai(...), @observe, an OTel exporter to that backend). Prefer their auto-instrumentation over hand-rolled spans; add manual spans only for custom tool/retrieval steps the SDK can't see.
prompt_tokens/completion_tokens, latency.except that returns empty output hides the failure).Run one representative request and confirm the trace tree shows the full chain (parent → LLM/tool/retrieval children) with tokens + latency populated. If spans are missing, the instrumentation isn't wrapping that code path - instrument it manually.
Not sure which backend? See the sibling choose-observability-stack skill, or the curated list in this repo's README.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
26 skills in this plugin
/add-llm-evalsUse this when adding evaluation to an LLM/agent app - measuring output quality (correctness, faithfulness, relevance, safety) rather than just watching traces. Trigger on "add evals", "test my prompt", "is my RAG accurate", "catch regressions", "score outputs", or setting up an eval suite in CI. Covers offline (CI) and online (production LLM-as-a-judge) evaluation./add-llm-fallbacksUse this to make an LLM app resilient to provider failures, rate limits, timeouts, and outages. Trigger on "handle LLM API errors", "add retries/fallbacks", "the app breaks when OpenAI is down", "rate limit errors", "make my LLM calls reliable", "timeout handling". Add retries, timeouts, and model/provider fallbacks, and observe them so failures are visible./npx claudepluginhub contextjet-ai/awesome-llm-observability --plugin llm-observabilityOther plugins' skills for the same job