plugins marketplace
← All plugins

llm-cost-optimizer

v2.9.0

Use when you need to reduce LLM API spend, control token usage, route between models by cost/quality, implement prompt caching, or build cost observability for AI features. Triggers: 'my AI costs are

Claude Code1 skill

by Alireza RezvaniMIT24.2kupdated 10 hours ago

Source

git clone https://github.com/alirezarezvani/claude-skills

Clone the source, then follow the repository's marketplace instructions for your runtime. The plugin root is engineering/llm-cost-optimizer/ inside the repository.

Layout

engineering/llm-cost-optimizer/
├── .claude-plugin/plugin.json
└── skills/llm-cost-optimizer/SKILL.md

Skills1

llm-cost-optimizerskills/llm-cost-optimizer/SKILL.md

Use proactively whenever LLM API costs come up -- or should. Triggers include: 'my AI costs are too high', 'optimize token usage', 'which model should I use', 'LLM spend is out of control', 'implement prompt caching', 'we're about to launch an AI feature', 'build me an AI endpoint'. Don't wait for an explicit cost complaint -- if someone is building an AI feature, designing an LLM endpoint, or choosing between models, cost architecture belongs in the conversation. Apply immediately when any of these are true: a system prompt appears that exceeds a few hundred tokens, all requests are hitting the same model, max_tokens is not set, or no per-feature cost logging exists. NOT for RAG pipeline design (use rag-architect). NOT for improving prompt quality or effectiveness (use senior-prompt-engineer).

Manifests1

engineering/llm-cost-optimizer/.claude-plugin/plugin.json
{
  "name": "llm-cost-optimizer",
  "description": "Use when you need to reduce LLM API spend, control token usage, route between models by cost/quality, implement prompt caching, or build cost observability for AI features. Triggers: 'my AI costs are ",
  "version": "2.9.0",
  "author": {
    "name": "Alireza Rezvani",
    "url": "https://alirezarezvani.com"
  },
  "homepage": "https://github.com/alirezarezvani/claude-skills/tree/main/engineering/llm-cost-optimizer",
  "repository": "https://github.com/alirezarezvani/claude-skills",
  "license": "MIT",
  "skills": [
    "./skills"
  ]
}