建议在逻辑间隔处进行手动压缩(Manual Compaction),以在整个任务阶段保持上下文(Context),而非随意的自动压缩。
48
50%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./docs/ja-JP/skills/strategic-compact/SKILL.md建议在工作流的战略点手动执行 /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"
}]
}]
}
}环境变量:
COMPACT_THRESHOLD - 触发首次建议前的工具调用次数(默认:50)dfbf946
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.