CtrlK
BlogDocsLog inGet started
Tessl Logo

context-optimization

Use when a task risks running out of context window, when a long-running agent session or multi-step workflow must stay coherent across many turns, when token cost or latency climbs with conversation length, or when the user asks about compaction, summarizing conversation history, truncating tool output, KV-cache or prefix caching, cache-friendly prompt ordering, context budgets, or splitting work across sub-agents. Covers compaction, observation masking, cache-aware layout, and context partitioning, both for an agent managing its own session and for code that builds agent systems. Do not use for RAG retrieval design or vector database selection.

77

Quality

96%

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

93%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 instruction skill: concrete policies, thresholds, and error-recovery loops for each technique, with detail correctly pushed to a real, well-matched reference file. The only deductions are minor — a few trimmable explanatory passages and measurement mechanics deferred to the reference.

Suggestions

Tighten the cache explainer in 'Cache-friendly layout': drop the sentence redefining prefix caching and keep only the operational ordering and stability rules.

Add one line to the opening 'Measure before you optimize' section pointing to the specific measurement step (e.g., 'Fill in the budget worksheet in references/optimization-techniques.md') so the diagnosis step is executable without inference.

DimensionReasoningScore

Conciseness

Mostly lean, table-driven guidance where every section carries operational rules, but a few passages restate concepts Claude already knows (e.g., 'Prefix caching reuses the computed key and value tensors for any request sharing a leading prefix with an earlier one'), fitting anchor 4's 'minor instances of over-explanation that could be trimmed' rather than anchor 5's every-token-earns-its-place.

4 / 5

Actionability

For an instruction-only skill the guidance is fully actionable: ordered compression priorities ('Compress in this order, cheapest loss first'), a three-tier masking retention policy ('Never mask / Consider masking / Always mask'), a stable-to-variable cache layout order, explicit never-compress lists, budget categories, and numeric targets ('50 to 70 percent token reduction') covering all four techniques.

5 / 5

Workflow Clarity

The symptom-to-move decision table plus per-technique recovery loops ('re-read that list and restore anything the summary dropped', 'retry the missing one rather than the whole task', 'reject any setting where task success drops') give a clear sequence with most checkpoints, but the opening 'Measure before you optimize' step defers its concrete mechanics to the reference, leaving a minor validation gap at anchor 4 rather than 5.

4 / 5

Progressive Disclosure

The body keeps working guidance while recipes, worksheets, templates, and provider mechanics are split into references/optimization-techniques.md, which exists, is one level deep, and its section headings match exactly what the 'Reference file' section advertises — clear overview with well-signaled one-level-deep references.

5 / 5

Total

18

/

20

Passed

Description

100%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: explicit 'Use when...' triggers with synonyms, a clear four-technique capability list, both agent-self and agent-builder audiences, and an explicit negative boundary. Third person throughout with no fluff or over-claims.

DimensionReasoningScore

Specificity

Names multiple concrete capabilities — 'compaction, observation masking, cache-aware layout, and context partitioning' plus 'summarizing conversation history, truncating tool output' — with comprehensive coverage of the domain, matching the anchor-5 pattern of several specific actions without gaps.

5 / 5

Completeness

Explicitly answers both: 'Covers compaction, observation masking, cache-aware layout, and context partitioning' (what) and 'Use when a task risks running out of context window... or when the user asks about compaction...' (when), with concrete trigger phrases and a negative boundary.

5 / 5

Trigger Term Quality

Covers natural phrases users would say ('running out of context window', 'compaction', 'context budgets', 'splitting work across sub-agents') including synonyms ('KV-cache or prefix caching', 'cache-friendly prompt ordering'), which matches comprehensive synonym coverage rather than the 'a few natural terms missing' anchor.

5 / 5

Distinctiveness Conflict Risk

Clear niche (context window management) with distinct triggers and an explicit exclusion — 'Do not use for RAG retrieval design or vector database selection' — keeping conflict risk minimal rather than merely 'minor'.

5 / 5

Total

20

/

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
administrakt0r/pro-skills-repo-administraktor
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.