CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

self-managed-context

This skill should be used when a model gets read-write control over its own live context window instead of a harness-scheduled compaction policy: the context exposed as an editable file the model rewrites with code tools, model-driven eviction and in-place updates, the harness invariants that keep self-editing safe (pinned prefix, edit gate, edit receipts, budget readouts, rollback on overflow), the prefix-cache cost of mid-context edits, and steering or training the model's own context-editing strategy. Route note content and fixed-threshold summarization to context-compression, cache-stable layout under harness control to context-optimization, file offloading to filesystem-context, and loop governance to self-improvement-loops.

Quality

89%

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 high-quality, deeply actionable body: executable code, a validated multi-step workflow with feedback loops, and real well-gated reference files. Its main weakness is redundancy — the invariant set is restated across the table, Guidelines, Gotchas, and workflow sections — plus a body that retains more detail than an overview strictly needs.

Suggestions

Collapse the redundancy between 'The Harness Owns the Invariants', 'Guidelines', and 'Gotchas': state each invariant once in the table and have Guidelines/Gotchas reference it, cutting roughly 30-40 lines without information loss.

Move the worked code examples (or at least Example 1's full harness step) into references/harness-protocol.md, keeping one short illustrative edit inline in the body.

Drop the 'Skill Metadata' section (Created/Author/Version) — it is version-control metadata with no operational value in the skill body.

DimensionReasoningScore

Conciseness

The body is dense with genuinely novel material (nothing here is knowledge Claude already has), but the same rules are restated three to four times — the invariants table reappears as Guidelines ('Return a receipt whenever a command changes or targets the context file'), Gotchas ('Early how-to nudges trigger mass deletion' restates the budget-tiering rule), and the Implementation Workflow — and the 'Skill Metadata' block adds no operational value. It could be tightened noticeably without losing anything.

3 / 5

Actionability

Three complete, executable examples are provided: a full `step()` harness function implementing the gate/receipt/readout contract, a runnable `python3 - <<'PY'` regex edit against the live context file, and the `efficiency_advantage` RL function. The 8-step Implementation Workflow and Measurement sections give equally concrete instructions, making this copy-paste ready for the common cases.

5 / 5

Workflow Clarity

The Implementation Workflow is a clearly sequenced 8-step process with explicit validation checkpoints ('confirm it is excluded from the editable file and re-pinned on parse', 'switch to shrink if applied-but-grew receipts are frequent') and error-recovery feedback loops (receipts on every edit outcome, rollback that deepens only after repeated ignored rollbacks). The Guidelines section doubles as a 10-item checklist and Measurement adds held-out-split validation for the evolution loop.

5 / 5

Progressive Disclosure

Two one-level-deep references (references/harness-protocol.md and references/evidence.md) exist on disk, are clearly signaled with conditional 'Read when:' triggers, and genuinely offload implementation detail and dated evidence. The main body still carries substantial detail that could live in those references (full protocol tables, three multi-line code examples), and the trailing metadata block is extraneous, so structure is good but not fully split.

4 / 5

Total

17

/

20

Passed

Description

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

An excellent description: it states an explicit activation condition, comprehensively enumerates concrete capabilities rather than abstractions, and actively routes adjacent territories to sibling skills. The only weakness is trigger-term coverage that favors domain jargon over the synonyms a user might naturally type.

DimensionReasoningScore

Specificity

The description lists multiple concrete capabilities — 'the context exposed as an editable file the model rewrites with code tools', 'model-driven eviction and in-place updates', specific invariants ('pinned prefix, edit gate, edit receipts, budget readouts, rollback on overflow'), 'the prefix-cache cost of mid-context edits', and 'steering or training the model's own context-editing strategy' — comprehensively covering the skill's domain with no vague filler.

5 / 5

Completeness

It opens with an explicit trigger clause ('This skill should be used when a model gets read-write control over its own live context window instead of a harness-scheduled compaction policy') and then explicitly enumerates what the skill covers, cleanly answering both what and when.

5 / 5

Trigger Term Quality

Good keyword coverage of natural domain terms ('context window', 'compaction policy', 'summarization', 'prefix-cache', 'eviction', 'offloading'), but it misses common variations like 'context management' and 'self-compaction' and leans on internal jargon ('edit receipts', 'budget readouts') a user would not naturally say.

4 / 5

Distinctiveness Conflict Risk

The niche is sharply drawn — model-controlled context editing versus harness-scheduled compaction — and the closing routing sentence explicitly disambiguates adjacent skills ('Route note content and fixed-threshold summarization to context-compression, cache-stable layout under harness control to context-optimization, file offloading to filesystem-context, and loop governance to self-improvement-loops'), minimizing wrong-skill triggering.

5 / 5

Total

19

/

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

muratcankoylan/Agent-Skills-for-Context-Engineering

Path

skills/self-managed-context/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.