建议在逻辑间隔处进行手动上下文压缩,以在任务阶段中保留上下文,而非任意的自动压缩。
Install with Tessl CLI
npx tessl i github:affaan-m/everything-claude-code --skill strategic-compactOverall
score
55%
Does it follow best practices?
If you maintain this skill, you can automatically optimize it using the tessl CLI to improve its score:
npx tessl skill review --optimize ./path/to/skillValidation for skill structure
建议在你的工作流程中的战略节点手动执行 /compact,而不是依赖任意的自动精简。
自动精简会在任意时间点触发:
在逻辑边界进行战略精简:
suggest-compact.sh 脚本在 PreToolUse(编辑/写入)时运行并执行:
添加到你的 ~/.claude/settings.json:
{
"hooks": {
"PreToolUse": [{
"matcher": "tool == \"Edit\" || tool == \"Write\"",
"hooks": [{
"type": "command",
"command": "~/.claude/skills/strategic-compact/suggest-compact.sh"
}]
}]
}
}环境变量:
COMPACT_THRESHOLD - 首次建议前的工具调用次数(默认:50)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.