CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

llm-cost-optimizer

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).

67

Quality

84%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

81%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A well-structured decision-guide skill: clear mode classification, sequenced optimization steps with validation gates and failure-recovery loops, and unusually concrete numbers and tool recommendations throughout. Its weaknesses are minor -- some cross-section repetition and thin implementation detail on the routing layer.

DimensionReasoningScore

Conciseness

The body is dense, table-driven, and assumes Claude's competence ('Tiers, not model names: the naming churns every few months'), with no explanation of known concepts. The only trim opportunity is repetition: the system-prompt-size and max_tokens flags each appear in Mode 2, the Proactive Flags table, and again in Anti-Patterns.

4 / 5

Actionability

Concrete thresholds and named tools throughout (cosine similarity >0.95, >60% hit-rate targets, ~2,000-token caching flag, GPTCache, LiteLLM Proxy, cache_control, a per-request logging field schema, before/after compression examples). Minor gaps: model routing stays at 'a lightweight classifier or rule engine' with no concrete example, and there is no code snippet for the highest-ROI techniques.

4 / 5

Workflow Clarity

Modes are classified before questions are asked, steps are ROI-ordered with an explicit instruction to measure impact at each step, and validation is enforced ('Stop. Logging schema is deliverable #1. Return once baseline data exists'). The Failure Modes and Recovery table provides feedback loops (low cache hit rate -> diagnose; compression degrades quality -> restore the compressed section), matching the top anchor's validate-fix-retry pattern.

5 / 5

Progressive Disclosure

A single-file skill with no bundle files, well-organized headers, scannable tables, and clearly signaled handoffs to sibling skills rather than deep file references. Nothing inlined clearly belongs in a separate file, but at ~220 lines the Mode 2 technique detail is approaching the point where references would improve the overview.

4 / 5

Total

17

/

20

Passed

Description

81%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong trigger-focused description with excellent natural trigger phrases, explicit proactive application conditions, and clear disambiguation from sibling skills. Its main gap is that the skill's concrete capabilities are never explicitly stated -- the 'what' is inferred from the name and trigger context rather than declared.

Suggestions

Add an explicit capability statement such as 'Reduces LLM API spend via model routing, prompt caching, output length control, and cost observability' so the 'what' is stated, not inferred.

Mention the deliverables the skill produces (cost audit breakdown, routing decision tree, caching strategy) to make the concrete actions visible in the description itself.

DimensionReasoningScore

Specificity

The domain is concrete and the technical signals are specific ('max_tokens is not set', 'system prompt... exceeds a few hundred tokens', 'no per-feature cost logging exists'), but the description enumerates triggers rather than the skill's actual actions (routing, caching, prompt compression, auditing) -- the 'what' is only implied by the skill name.

3 / 5

Completeness

The 'when' is exceptionally explicit with concrete trigger phrases and proactive conditions, but the 'what' is never directly stated -- the description relies on the skill name and trigger topics rather than stating what it does (e.g., 'reduces LLM costs via model routing, caching, and prompt compression').

4 / 5

Trigger Term Quality

Comprehensive natural-language triggers users would actually say ('my AI costs are too high', 'LLM spend is out of control', 'which model should I use', 'we're about to launch an AI feature', 'build me an AI endpoint') plus proactive technical signals, covering synonyms and paraphrases thoroughly.

5 / 5

Distinctiveness Conflict Risk

Explicit negative boundaries ('NOT for RAG pipeline design (use rag-architect)', 'NOT for improving prompt quality or effectiveness (use senior-prompt-engineer)') carve out a clear niche with distinct triggers and minimal conflict risk against adjacent skills.

5 / 5

Total

17

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

alirezarezvani/claude-skills

Path

engineering/llm-cost-optimizer/skills/llm-cost-optimizer/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.