CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

claude-cost-optimization

Comprehensive cost tracking and optimization for production Claude deployments. Covers Admin API usage tracking, efficiency measurement, ROI calculation, optimization patterns (caching, batching, model selection, context editing, effort parameter), and cost prediction. Use when tracking costs, optimizing token usage, measuring efficiency, calculating ROI, reducing production expenses, or implementing cost-effective Claude integrations.

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

The canonical home for this skill is claude-cost-optimization in fernandezbaptiste/Skrillz

SKILL.md
Quality
Evals
Security

Quality

Content

71%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.

The skill body is highly actionable with executable code, pricing tables, a decision tree, and quantified scenarios organized around a clear 5-step workflow. Its main weaknesses are redundancy (duplicated usage-tracking code and restated pricing/ROI figures) and inlining detail that belongs in the four existing reference files, three of which are never explicitly named.

Suggestions

Remove the duplicated Admin API usage code: keep one canonical version in the Quick Start section and have Step 1 reference it, cutting ~45 redundant lines.

Replace the inline pricing table and both long code examples with brief summaries plus explicit pointers to the individual reference files (e.g., "Pricing details: see references/cost-analysis.md", "ROI frameworks: see references/efficiency-measurement.md") so all four reference files are discoverable by name.

Make validation explicit in the workflow: add a checkpoint in Step 4 such as "Only consider an optimization successful after 1-2 weeks of tracked metrics confirm cost reduction with no quality regression."

DimensionReasoningScore

Conciseness

The body is data-dense and avoids explaining concepts Claude already knows, but the Admin API usage code appears nearly verbatim in both Step 1 and "Quick Start - Usage Tracking" (~45 duplicated lines), and pricing figures and ROI formulas are restated across Step 3, Step 5, and the Pricing Overview. This matches "mostly efficient but includes some unnecessary explanation or could be tightened"; it is not level 2 because the padding is duplication rather than broad conceptual over-explanation, and not level 4 because the duplication is substantial, not minor.

3 / 5

Actionability

Fully executable copy-paste code is provided (Anthropic SDK Admin API usage_metrics.list call with token aggregation and cost math, a runnable ROI calculator), plus concrete pricing tables, a decision tree, and quantified before/after scenarios. Specific examples cover the common cases (usage tracking, ROI), matching the level-5 anchor.

5 / 5

Workflow Clarity

The 5-step workflow (measure baseline → analyze drivers → apply optimizations → track improvements → report ROI) is clearly sequenced, and Step 4 provides a feedback loop (before/after cost per transaction, quality-impact check, 1–2 week measurement period). It is not level 5 because validation checkpoints are implicit (e.g., no explicit verify-gate before declaring an optimization successful) — matching "clear sequence with most checkpoints present; minor validation gaps".

4 / 5

Progressive Disclosure

Structure is good with clearly signaled one-level-deep references ("See references/usage-tracking.md"), but only 1 of the 4 bundle files is individually named in the body, and substantial content that duplicates the references — the full pricing table, both long code examples, and the scenario walkthroughs — is inlined in a ~370-line SKILL.md. This fits "some structure but could be better organized; content that should be separate is inline"; it is not level 4 because the inlining and unnamed references are more than minor gaps.

3 / 5

Total

15

/

20

Passed

Description

88%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 description that clearly states what the skill covers and gives an explicit, well-phrased "Use when..." trigger clause with natural user language. The only gaps are a few missing synonym trigger terms and slight overlap risk with sibling optimization skills.

DimensionReasoningScore

Specificity

The description lists multiple concrete capabilities — "Admin API usage tracking, efficiency measurement, ROI calculation, optimization patterns (caching, batching, model selection, context editing, effort parameter), and cost prediction" — covering the full track/analyze/optimize/report span with named techniques. It matches the comprehensive-coverage anchor; the minor fluff of "Comprehensive" at the start does not create real gaps, so it is not level 4.

5 / 5

Completeness

It explicitly answers both what ("Covers Admin API usage tracking... cost prediction") and when ("Use when tracking costs, optimizing token usage, measuring efficiency, calculating ROI, reducing production expenses, or implementing cost-effective Claude integrations") with concrete trigger phrases. This matches the level-5 anchor exactly; the "when" clause is explicit, not weakly implied as at level 4.

5 / 5

Trigger Term Quality

"Use when tracking costs, optimizing token usage, measuring efficiency, calculating ROI, reducing production expenses" gives good keyword coverage with natural phrasing a user would say. It is not level 5 because common variations like "token costs", "API spend", "budget forecasting", or "Admin API" as a trigger term are absent.

4 / 5

Distinctiveness Conflict Risk

The niche — cost tracking and optimization for production Claude deployments — is mostly distinct with clear triggers. It is not level 5 because caching, context editing, and model selection also appear as triggers for sibling skills (claude-context-management, claude-advanced-tool-use), creating minor overlap risk on optimization-related queries.

4 / 5

Total

18

/

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

fernandezbaptiste/Skrillz

Path

.claude/skills/claude-cost-optimization/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.