一键导入
context-compression-engineer
Triggers: "compress this", "context bloat", "weekly rollup", "compression strategy", "summary preserving wikilinks".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Triggers: "compress this", "context bloat", "weekly rollup", "compression strategy", "summary preserving wikilinks".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | context-compression-engineer |
| description | Triggers: "compress this", "context bloat", "weekly rollup", "compression strategy", "summary preserving wikilinks". |
| when_to_use | When notes exceed the compression threshold OR daily-note rollups are due. Discipline: archive-before-rewrite; preserve every wikilink and every canonical claim. |
| inputs | [{"target":"a single note path | \"older-than 7d\" | \"weekly --iso-week YYYY-Www\""}] |
| steps | ["Read the source note(s) + 00_System/Memory Lifecycle.md (compression rules).","Identify canonical claims, all wikilinks, and any privacy: client tags.","If the note has stability: canonical → REFUSE; HIGH-risk to compress.","Generate a summary ≤ 40% of the original word count.","Verify: every wikilink appears in the summary.","Verify: every canonical claim appears verbatim in the summary.","If verification fails, regenerate (up to 3 attempts) before refusing.","Move the original to _archive/<id>-original.md (NEVER rm).","Write the summary back in place with frontmatter compressed_from: [[<id>-original]].","Re-embed both the compressed summary and the archived original.","Append a metrics row to 90-Meta/metrics.ndjson."] |
| tools | ["Read","Write","Edit","Bash(harness compress:*,harness embed:*,mv:*,find:*)"] |
| failure_modes | ["canonical note targeted → REFUSE; HIGH-risk","verification (every wikilink preserved) fails after 3 attempts → REFUSE; surface to user","rm requested → REFUSE; archive-only",{"privacy":"client note compressed without privacy frontmatter retained → REFUSE"}] |
| last_validated | "2026-05-09T00:00:00.000Z" |
| metrics | {"invocations":0,"success_rate":null,"mean_tokens":null} |
| prerequisites | ["memory-architect","recall"] |
| is_prerequisite_of | [] |
| links | ["[[docs/MEMORY_MODEL.md]]","[[00_System/Memory Lifecycle.md]]","[[prompts/ralph-meta-chain/05-compress.md]]","[[harness/harness/compress.py]]"] |
| tags | ["skill","specialist","compression"] |
The role you assume when the bloated-note threshold fires or when weekly rollups are due. Discipline: append-only invariant is sacred; verify wikilink + canonical-claim preservation before mv-to-archive.
Given a 4500-word note in 30-Notes/test-bloat.md with:
[[A]], [[B]], ..., [[H]]),stability: stable somewhere; the body
contains "Decision: X" and "Decision: Y"),the skill must:
stability: canonical._archive/<id>-original.md.30-Notes/test-bloat.md with
compressed_from: [[<id>-original]].harness embed.tokens_before / tokens_after / ratio.Verification: ratio < 0.4 AND all 8 wikilinks present AND both decision lines present.
Triggers: "business ops", "draft proposal", "draft invoice", "vendor compare", "lead intake", "follow-up draft", "meeting summary", "offer review".
Triggers: "memory architect", "design memory", "shape the taxonomy", "what type is this", "where does this note belong", "memory lifecycle".
Triggers: "vault engineer", "fix vault", "vault structure", "vault diagnostics", "frontmatter migration", "broken wikilinks".
Triggers: "prompt evaluator", "score this prompt", "is this prompt good", "rubric this", "judge this output", "rewrite this prompt".
Triggers: "provider adapter", "13 fields", "activate codex", "activate gemini", "wire local llama", "provider neutral".
Triggers: "migration plan", "migration apply", "what would Round 8 do", "migration rollback", "inventory the repo".