From cc-poem
Compresses long conversations into concise classical Chinese (wenyanwen) summaries, preserving core entities, emotions, and logic. Auto-activates on Claude Code's PreCompact hook for token savings in extended projects.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cc-poem:compressThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
当你需要进行上下文压缩(compact)时,按照以下策略执行。
当你需要进行上下文压缩(compact)时,按照以下策略执行。
统一使用文言文,可叙事、承载技术术语与逻辑关系。
文言文是一种古典书面语言,与现代白话文有本质区别:
| 特点 | 说明 | 示例 |
|---|---|---|
| 简洁凝练 | 用词精简,一字多义 | 「吾」代「我」,「曰」代「说」 |
| 句式整齐 | 善用对仗、排比 | 「山高水深」,「日月星辰」 |
| 虚词传神 | 助词连接,表达语气 | 「乃」「故」「若」「则」「矣」「焉」 |
| 省略主语 | 上下文可推知时省略 | 省略主语使句子更简洁 |
判断句:XXX者,XXX也。
叙述句:主语 + 谓语 + 宾语
条件句:若XXX,则XXX
因果句:XXX,故XXX
转折句:XXX,然XXX
人称:「吾」「我」「汝」「尔」「其」「之」 动词:「为」「作」「行」「成」「变」「通」「达」「明」「知」「识」 形容词:「大」「小」「高」「低」「新」「旧」「善」「美」「真」「实」 虚词:「乃」「故」「若」「则」「而」「且」「矣」「焉」「哉」「乎」 连词:「及」「与」「或」「然」「然则」「然而」
技术术语直接保留,无需翻译:
现代文: "我们讨论了用户认证模块的优化方案,决定采用 JWT token 进行身份验证,同时引入 Redis 缓存来提升性能。"
文言文: "论用户认证之事,定用 JWT token 核验身份,引入 Redis 缓存以增其效。"
现代文: "由于数据库连接池配置不当,导致在高并发场景下出现连接超时错误。"
文言文: "数据库连接池配置失当,致高并发时连接超时。"
【风格】文言文
【正文】
(文言短文,含句读,可叙事)
【译】关键词1;关键词2;关键词3
译码部分必须包含:
示例译码:需求变更;状态机重构;压缩;积极推进
当 PreCompact hook 触发时,无需询问用户,直接使用文言文风格进行压缩。
npx claudepluginhub weibaohui/cc-poemCompresses verbose Claude responses into concise grammatical English by removing filler, hedging, and ceremony while preserving technical accuracy and decision-oriented register.
Enforces token-efficient prose and disciplined code generation via two orthogonal layers: SPEAK (caveman compression) and THINK (surgical edits, simplicity).