Back to skills
SKILL.md
Strategic Compact Majiayu000 Claude Arsenal
ASecurity策略性压缩 — 在逻辑边界手动压缩上下文,而非任意自动压缩。保留关键决策和约束,丢弃中间探索过程。
- 666 stars
- 0 votes
- 0 copies
- 0 views
- Added June 2, 2026
Security analysis
100/100npx -y skills add majiayu000/claude-skill-registry --skill strategic-compact-majiayu000-spellbook --agent claude-codeAre you the author of Strategic Compact Majiayu000 Claude Arsenal?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/majiayu000-strategic-compact-majiayu000-claude-arsenal)---
name: strategic-compact
description: "策略性压缩 — 在逻辑边界手动压缩上下文,而非任意自动压缩。保留关键决策和约束,丢弃中间探索过程。"
---
# Strategic Compact
## 概述
在长会话中,上下文窗口有限。此 skill 指导何时压缩、保留什么、丢弃什么。
核心原则:**在逻辑边界压缩,不在任意时刻压缩。**
## 压缩决策表
| 当前阶段 | 下一阶段 | 是否压缩 | 理由 |
|----------|----------|----------|------|
| 研究/探索 | 规划 | 是 | 探索细节不需要带入规划 |
| 规划 | 实现 | 是 | 保留计划,丢弃规划过程 |
| 实现步骤 N | 实现步骤 N+1 | 否 | 实现中途压缩会丢失上下文 |
| 实现完成 | 验证 | 可选 | 如果上下文接近上限 |
| 验证 | 提交 | 否 | 验证结果需要带入提交 |
| 任务 A 完成 | 任务 B 开始 | 是 | 不同任务间压缩 |
## 压缩后保留清单
必须保留:
- 当前任务目标和约束
- 已做的架构决策及理由
- 已修改的文件列表
- 未完成的步骤
- 发现的问题和 TODO
- VibeGuard 约束(始终保留)
可以丢弃:
- 文件内容的完整引用(保留路径即可)
- 搜索过程中的中间结果
- 已解决的错误的完整堆栈
- 探索性的代码阅读记录
## 使用方式
当感觉上下文即将耗尽时:
1. 判断当前处于哪个阶段
2. 查压缩决策表,确认是否适合压缩
3. 如果适合,按保留清单整理摘要
4. 执行压缩
## 反模式
- 在实现中途压缩 → 丢失关键上下文,导致重复工作
- 压缩时丢弃约束 → 后续步骤违反规则
- 不压缩直到溢出 → 被动截断比主动压缩更危险
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.