profiling-llm-cost

Community

Measure and reduce LLM spend fast.

Authorrocklambros
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill finds where LLM application spend is coming from when bills spike, cache hit rates drop, or per-task economics are unknown. It replaces guesswork with a measured cost baseline so you can identify the real driver before changing prompts, models, or architecture.

Core Features & Use Cases

  • Builds per-call cost from logged token counts and model pricing, including cached versus uncached input tokens and output tokens.
  • Rolls costs up per task so agentic workflows can be evaluated by the economics a user actually experiences, not just by individual calls.
  • Measures cache-hit trends, slices spend by model, step, route, or cohort, and compares the current window against a prior baseline to localize cost spikes.
  • Produces ranked savings opportunities with the highest-leverage fix first, while refusing to recommend cost cuts without a measured baseline.
  • Use it when a production chatbot, RAG pipeline, or multi-step agent suddenly costs more, when prompt caching appears to be failing, or when a team needs a budget gate before scaling.

Quick Start

Ask Claude to profile your LLM trace log, compute per-call and per-task cost, measure cache-hit rate, and identify the highest-leverage savings opportunities.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: profiling-llm-cost
Download link: https://github.com/rocklambros/rcs/archive/main.zip#profiling-llm-cost

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 536,000+ vetted skills library on demand.