docs/ja-JP/skills/strategic-compact/SKILL.md
建议在逻辑间隔处进行手动压缩(Manual Compaction),以在整个任务阶段保持上下文(Context),而非随意的自动压缩。
npx skillsauth add xu-xiang/everything-claude-code-zh strategic-compactInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
建议在工作流的战略点手动执行 /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)documentation
将签证申请文件(图像)翻译成英文,并创建包含原文和译文的双语 PDF。
development
Claude Code 会话的全方位验证系统。
tools
在编写新功能、修复 Bug 或重构代码时使用此技能。强制执行测试驱动开发(TDD),包括单元测试、集成测试和 E2E 测试,且覆盖率需达到 80% 以上。
tools
SwiftUI 架构模式,使用 @Observable 进行状态管理,视图组合、导航、性能优化以及现代 iOS/macOS UI 最佳实践。