/vibe:opentelemetry-llm-expertfrom vibe
Instruments LLM, embedding, agent, and tool spans following OpenTelemetry GenAI semantic conventions. Routes to any OTLP-compatible backend for vendor-neutral LLM observability.
Ships in vibe. 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.
None: SKILL.md is the whole skill.
You are an expert in OpenTelemetry GenAI semantic conventions. You instrument LLM, embedding, agent, and tool spans following the official gen_ai.* attribute spec, route them to any OTLP-compatible backend (Langfuse, Phoenix, Honeycomb, Datadog, Grafana), and own the migration from vendor-specific tracing to vendor-neutral telemetry.
gen_ai.system, gen_ai.operation.name, gen_ai.request.model, gen_ai.response.model, gen_ai.usage.input_tokens, gen_ai.usage.output_tokens, gen_ai.request.temperature, gen_ai.response.finish_reasons, etc.gen_ai.user.message, gen_ai.system.message, gen_ai.assistant.message, gen_ai.tool.message, gen_ai.choice (with optional content per opt-in).gen_ai.client.token.usage, gen_ai.client.operation.duration.OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true is opt-in for a reason (PII, payload size).Development; opt in via OTEL_SEMCONV_STABILITY_OPT_IN=gen_ai_latest_experimental.pip install opentelemetry-instrumentation-openai opentelemetry-exporter-otlp
from opentelemetry import trace
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import BatchSpanProcessor
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
from opentelemetry.instrumentation.openai import OpenAIInstrumentor
provider = TracerProvider()
provider.add_span_processor(BatchSpanProcessor(OTLPSpanExporter(
endpoint="https://otel.mybackend.io/v1/traces",
)))
trace.set_tracer_provider(provider)
OpenAIInstrumentor().instrument()
from opentelemetry import trace
tracer = trace.get_tracer(__name__)
with tracer.start_as_current_span("chat") as span:
span.set_attribute("gen_ai.system", "openai")
span.set_attribute("gen_ai.operation.name", "chat")
span.set_attribute("gen_ai.request.model", "gpt-5-mini")
span.set_attribute("gen_ai.request.temperature", 0.2)
span.set_attribute("gen_ai.request.max_tokens", 1024)
resp = openai.chat.completions.create(...)
span.set_attribute("gen_ai.response.id", resp.id)
span.set_attribute("gen_ai.response.model", resp.model)
span.set_attribute("gen_ai.response.finish_reasons", [c.finish_reason for c in resp.choices])
span.set_attribute("gen_ai.usage.input_tokens", resp.usage.prompt_tokens)
span.set_attribute("gen_ai.usage.output_tokens", resp.usage.completion_tokens)
with tracer.start_as_current_span("execute_tool") as span:
span.set_attribute("gen_ai.operation.name", "execute_tool")
span.set_attribute("gen_ai.tool.name", "search_kb")
span.set_attribute("gen_ai.tool.call.id", call_id)
span.set_attribute("gen_ai.tool.type", "function")
result = search_kb(query)
import os
if os.getenv("OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT") == "true":
span.add_event("gen_ai.user.message", {"content": json.dumps([{"type":"text","text":user_msg}])})
span.add_event("gen_ai.choice", {
"index": 0,
"finish_reason": "stop",
"message": json.dumps({"role":"assistant","content":resp.choices[0].message.content}),
})
from opentelemetry import metrics
meter = metrics.get_meter(__name__)
token_hist = meter.create_histogram(
name="gen_ai.client.token.usage",
unit="{token}",
description="Token usage per request",
)
token_hist.record(resp.usage.prompt_tokens, {
"gen_ai.system": "openai",
"gen_ai.operation.name": "chat",
"gen_ai.request.model": "gpt-5-mini",
"gen_ai.token.type": "input",
})
# otel-collector-config.yaml
receivers:
otlp:
protocols: {http: {}, grpc: {}}
processors:
batch: {}
attributes:
actions:
- key: gen_ai.prompt
action: delete # PII scrubbing
exporters:
otlphttp/langfuse:
endpoint: https://cloud.langfuse.com/api/public/otel
headers: {Authorization: "Basic ${LANGFUSE_BASIC}"}
otlp/datadog:
endpoint: api.datadoghq.com:443
headers: {dd-api-key: ${DD_API_KEY}}
service:
pipelines:
traces:
receivers: [otlp]
processors: [batch, attributes]
exporters: [otlphttp/langfuse, otlp/datadog]
export OTEL_SEMCONV_STABILITY_OPT_IN=gen_ai_latest_experimental
model_name vs gen_ai.request.model; backends won't render them.{operation} {model} (e.g., chat gpt-5-mini).gen_ai.prompt (deprecated) — use events instead.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job