CtrlK
BlogDocsLog inGet started
Tessl Logo

cost-aware-llm-pipeline

LLM API 使用成本优化模式——基于任务复杂度的模型路由、预算跟踪、重试逻辑和提示词缓存。

66

Quality

80%

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

Fix and improve this skill with Tessl

tessl review fix ./skills/cost-aware-llm-pipeline/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

100%

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

The body is a tight, actionable, well-sequenced skill: executable code throughout, a composed pipeline with a budget guard and retry loop, and clean sectioning. It fully meets the content rubric across all dimensions.

DimensionReasoningScore

Conciseness

The body is lean: brief one-line framing per concept followed directly by executable code, with concise best-practice and anti-pattern lists and no padding explaining basic concepts Claude already knows.

3 / 3

Actionability

It provides complete, executable Python (select_model, frozen CostTracker, call_with_retry, cached message construction, and a composed process pipeline) that is copy-paste ready with specific thresholds and constants.

3 / 3

Workflow Clarity

The '组合使用' section sequences a clear four-step pipeline with an explicit validation checkpoint (the over_budget guard raising BudgetExceededError before the call) and a feedback loop (retry with exponential backoff on transient errors).

3 / 3

Progressive Disclosure

The skill is a self-contained single file with no bundle references, organized into clearly labeled sections (concepts, composition, price reference, best practices, anti-patterns) with no nested or deep references, satisfying the well-organized single-file case.

3 / 3

Total

12

/

12

Passed

Description

60%

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

The description is specific about capabilities but lacks an explicit trigger clause and natural user-facing keywords, leaving both the 'when' and distinctiveness underspecified. Adding a 'Use when...' sentence with common phrasings would raise the weaker dimensions.

Suggestions

Append an explicit trigger clause, e.g. 'Use when building apps that call LLM APIs and you need to control API spending, reduce token costs, or route between cheaper and expensive models.'

Add natural user-facing keywords beyond technical jargon — 'reduce LLM costs', 'save on API spending', 'cheaper model', 'token budget'.

Tighten distinctiveness by framing the trigger around cost/budget specifically (e.g. 'when API cost or budget overrun is a concern') so it does not fire for general LLM usage.

DimensionReasoningScore

Specificity

The description lists multiple concrete techniques — '基于任务复杂度的模型路由、预算跟踪、重试逻辑和提示词缓存' (model routing, budget tracking, retry logic, prompt caching) — matching the anchor for several specific concrete actions rather than vague language.

3 / 3

Completeness

It clearly answers 'what' (cost optimization via four named techniques) but offers no explicit 'when to use it' guidance; per the rubric a missing 'Use when...' clause caps completeness at 2.

2 / 3

Trigger Term Quality

It includes relevant technical terms (LLM API, 成本优化, 模型路由) but misses natural user phrasings like 'reduce LLM costs', 'save on API spending', or 'cheaper model', and contains no explicit 'Use when...' trigger clause.

2 / 3

Distinctiveness Conflict Risk

The cost-optimization niche is somewhat specific, but the absence of distinct trigger phrases means it could still overlap with general LLM-calling skills, matching the 'somewhat specific but could overlap' anchor.

2 / 3

Total

9

/

12

Passed

Validation

93%

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

Validation15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

15

/

16

Passed

Repository
xu-xiang/everything-claude-code-zh
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.