Install any skill in seconds. Free to start, no credit card required.
Get Started Free →xu-xiang/strategic-compact
Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.
Passed 22 of 22 test cases with the skill, and 13 of 22 without it.
and 8 more in the full report
9 fixed13 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 9 test cases the skill fixed. Same model, same prompt, with and without the skill.
請問在不另行設定環境變數的情況下,這個策略性壓縮腳本預設會在累積多少次工具呼叫後跳出第一次建議?
| Checked | Without skill | With skill |
|---|---|---|
| The response specifies 50 tool calls as the default threshold. | Missed | Passed |
The instructions your model reads when the skill loads.
在工作流程的策略點建議手動 /compact,而非依賴任意的自動壓縮。
自動壓縮在任意點觸發:
邏輯邊界的策略性壓縮:
suggest-compact.sh 腳本在 PreToolUse(Edit/Write)執行並:
新增到你的 ~/.claude/settings.json:
{
"hooks": {
"PreToolUse": [{
"matcher": "tool == \"Edit\" || tool == \"Write\"",
"hooks": [{
"type": "command",
"command": "~/.claude/skills/strategic-compact/suggest-compact.sh"
}]
}]
}
}
test cases passed, vs 13 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.