/llm-observability:reduce-llm-costfrom llm-observability
Cuts LLM API costs by analyzing observability traces to find expensive spans, then applying targeted optimizations like model right-sizing, context trimming, caching, and retry fixes.
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.
None: SKILL.md is the whole skill.
Most LLM bills are dominated by a few patterns you can see in traces. Measure before optimizing - the biggest cost is rarely where people assume.
From your observability tool, sort spans by cost (or input_tokens). You're looking for:
If you have no cost data yet, add tracing first (see instrument-llm-observability) - you can't optimize what you can't see.
max_tokens. Unbounded outputs cost unbounded money; set a sane ceiling.Retry-After; a backoff bug can 10× cost silently.Every cost cut is a potential quality regression. Gate changes with an eval suite (see add-llm-evals): make the cheap change, run evals, keep it only if quality holds. Then watch cost + quality together on a dashboard so a future change doesn't silently trade one for the other.
monthly_cost_of_a_span = per_call_tokens × price × calls_per_month. Optimize the span with the biggest product, not the one that looks expensive per call.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub contextjet-ai/awesome-llm-observability --plugin llm-observability26 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./Other plugins' skills for the same job