一键导入
strategic-compact
Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | strategic-compact |
| description | Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction. |
Suggests manual /compact at strategic points in your workflow rather than relying on arbitrary auto-compaction.
Auto-compaction triggers at arbitrary points:
Strategic compaction at logical boundaries:
The suggest-compact.sh script runs on PreToolUse (Edit/Write) and:
Add to your ~/.claude/settings.json:
{
"hooks": {
"PreToolUse": [{
"matcher": "tool == \"Edit\" || tool == \"Write\"",
"hooks": [{
"type": "command",
"command": "~/.claude/skills/strategic-compact/suggest-compact.sh"
}]
}]
}
}
Environment variables:
COMPACT_THRESHOLD - Tool calls before first suggestion (default: 50)Node.js、Express 和 Next.js API 路由的后端架构模式、API 设计、数据库优化和服务端最佳实践。
TypeScript、JavaScript、React 和 Node.js 开发的通用编码标准、最佳实践和模式。
Automatically extract reusable patterns from Claude Code sessions and save them as learned skills for future use.
React、Next.js、状态管理、性能优化和 UI 最佳实践的前端开发模式。
在添加身份验证、处理用户输入、使用密钥、创建 API 端点或实现支付/敏感功能时使用此技能。提供全面的安全检查清单和模式。
在编写新功能、修复错误或重构代码时使用此技能。强制执行测试驱动开发,要求 80% 以上的覆盖率,包括单元测试、集成测试和 E2E 测试。