compaction-control-profiling
БесплатноБез исполняемых скриптовНе проверенThis skill should be used when deciding, for a specific model and workload, whether the harness or the model should control compaction, and when qualifying or…
от muratcankoylan★ 18 470 звёзд на GitHubОб этом скилле
Compaction Control Profiling
This skill covers the decision that comes before any self-compacting agent design: for this model, on this workload, should the harness or the model decide when and what to compact? The answer is measured, not assumed. In a cross-model study that gave four current models one compaction interface and one set of instructions, one model nearly tripled its score at a tight context budget while another called the interface in a small minority of tasks and trailed the harness baseline until budgets were large (claim-compaction-control-tight-budget-gain, claim-compaction-control-uptake-variance).
The operating rule: treat compaction control as a property of one model at one context pressure under one prompt. The study saw the outcome change across models, across budgets, and with a single timing sentence. It did not test model versions or alternative wordings, so re-qualifying on those changes is a precaution this skill adds, not a measured result. Qualify the model with a budget sweep and a behavior profile, calibrate the timing instruction, assign control per model and pressure regime, and re-qualify when the model or the prompt changes.
When to Activate
Activate this skill when:
- Choosing between a harness threshold, a model-called compaction interface, or a hybrid for a specific model and workload
- Onboarding a new model, model version, or system prompt into a harness that exposes compaction to the model
- Designing an experiment that compares compaction policies across context budgets
- An agent with a compaction interface never calls it, calls it at low fill, or returns an answer when warned that context is filling
- Calibrating a compaction timing instruction or the wording of a context-pressure warning
- Specifying the telemetry of a reversible compaction interface: range collapse, archived originals, retrieval by tag
- Checking whether a run that used fewer tokens was cheaper to serve
Do not activate this skill for adjacent work owned by other skills:
- Building the self-editing harness (context as an editable file and the invariants around it), edit-position cache cost, and training a context-editing strategy:
self-managed-context. This skill decides whether a model qualifies for that control and at which settings. - What the summary written at a collapse must preserve:
context-compression. - Harness-side threshold policy, masking, and cache-stable layout:
context-optimization. - Diagnosing why output quality degrades inside a long context:
context-degradation. - General evaluation design, rubrics, and regression suites:
evaluation. - Early stopping that traces to the task brief instead of a context warning:
long-horizon-prompting.
Core Concepts
Control Is a Per-Model Property
Read a model's compaction behavior on four axes together, never one alone: whether it calls the interface, how much each call removes, whether it goes back for what it removed, and when it starts. Models given an identical interface diverge on all four (claim-compaction-control-uptake-variance, claim-compaction-control-compression-reopen, claim-compaction-control-context-anxiety). In the study, uptake was similar across the three models that used the interface, yet their gains differed; the one that gained most had the largest shrink per call and the highest reopen rate. Uptake alone is not the goal.
The table below is an operating rule derived from those results. The study observed the signals; it did not test the actions.
| Signal | Reading | Action |
|---|---|---|
| Low uptake, score at or below the harness baseline at tight budgets | The model is declining control | Keep harness-driven, or hybrid with a harness fallback |
| Low uptake, tasks end below the timing threshold | Compaction was never needed | Not a failure; the budget is loose for this task |
| First compaction far below the instructed threshold, or at low fill with no instruction | Context anxiety | Compare accuracy at large budgets with and without a timing floor. Add or raise the floor where early compaction costs accuracy; where accuracy holds, the floor is optional |
| Uptake collapses when a timing instruction is added | The instruction may be suppressing use | Check whether those tasks reach the warning or the fallback; if they do, lower the threshold or pair the floor with an explicit expectation to act |
| Large shrink per call with a high reopen rate | Aggressive, recovering through the archive | Acceptable; count the tokens spent on reopens |
| Large shrink per call, low reopen rate, score drop | State lost and not recovered | Require richer summaries; route summary content to context-compression |
| First pressure warning resolves as a returned answer | Warning read as a stop signal | Reword the warning to name compaction as the expected action |
Context Pressure Sets the Payoff
Estimate context pressure, the ratio of what the task needs to what the window holds, before choosin
Установить compaction-control-profiling в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл compaction-control-profiling?
This skill should be used when deciding, for a specific model and workload, whether the harness or the model should control compaction, and when qualifying or calibrating that choice with measurements: context-budget sweeps that compare harness-driven and model-driven compaction on one harness, the context-pressure regime where delegation pays, a per-model compaction behavior profile (interface uptake, compression factor per call, reopen rate of archived content, context fill at first compaction, response to pressure warnings), context anxiety and timing-instruction calibration, reversible collapse-and-archive interfaces, and re-qualification after a model or prompt change. Route the editable-file protocol, harness invariants, and edit-position cache cost of self-editing agents to self-managed-context, summary content to context-compression, harness thresholds and cache layout to context-optimization, and general evaluation design to evaluation.
Как установить скилл compaction-control-profiling?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл compaction-control-profiling запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic