llm-cost-optimizer
SolidAudits an AI application for unnecessary token spend and recommends prompt caching, model routing, and token reduction techniques to cut costs.
Install
Quality Score: 85/100
Skill Content
Details
- Author
- Notysoty
- Repository
- Notysoty/openagentskills
- Created
- 5 months ago
- Last Updated
- 6 days ago
- Language
- JavaScript
- License
- MIT
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
llm-cost-optimizer
Analyze and reduce LLM API costs through model routing, caching, and prompt optimization. TRIGGER when: user asks about LLM costs, API spend reduction, token optimization, model routing, or prompt caching. DO NOT TRIGGER when: user asks about model quality comparison, fine-tuning, or general prompt engineering.
llm-cost-optimization-audit
You added prompt caching and your bill went up.
llm-cost-guard
Review LLM-calling code for token and cost blowups before they hit your bill — a large static prompt prefix re-sent uncached on every call, a frontier model doing a task a cheap one handles, unbounded context or output, per-item calls that should be batched, re-embedding unchanged content, and agent loops with no token budget. Estimates the dominant cost driver, rewrites it, and reports the before/after spend, naming the latency and quality trade-offs. Use whenever writing or reviewing code that calls an LLM or embedding API — Anthropic/Claude, OpenAI, Bedrock, Vertex, or a framework like LangChain/LlamaIndex — a chat endpoint, a RAG pipeline, an agent loop, or a batch job, especially one that runs at volume.