用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/andrem-sec/psc-comet --skill distill命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | distill |
| description | Memory consolidation — distills session learnings and transcripts into persistent memory files |
| version | 0.1.0 |
| level | 2 |
| triggers | ["/distill","distill memory","consolidate memory","update memory files"] |
| context_files | ["context/learnings.md"] |
| steps | [{"name":"Orient","description":"Survey the current memory landscape before writing anything"},{"name":"Gather","description":"Collect signal from learnings.md and recent session state"},{"name":"Consolidate","description":"Write and update memory files with new signal"},{"name":"Prune","description":"Keep MEMORY.md index under 200 lines, remove stale entries"}] |
Consolidates session learnings and accumulated context into the persistent memory system
(~/.claude/memory/). Run when the ember gate fires (heartbeat will notify you) or manually
at any time to refresh memory with recent work.
Without distillation, session learnings accumulate in context/learnings.md but never get
promoted to the global memory system that persists across projects. The memory index grows
stale. Future sessions start with outdated context.
ember-due flag (automatic — run /distill to clear it)context/learnings.md has grown significantly since the last distillationBefore writing anything, survey the current memory landscape:
ls ~/.claude/memory/
cat ~/.claude/memory/MEMORY.md
Read the MEMORY.md index. Skim 2-3 of the most relevant topic files to understand what's already there. Avoid duplicating entries that already exist.
Collect signal from three sources, in priority order:
For each entry, ask: is this general enough to be useful outside this project, or is it project-specific? General → global memory. Project-specific → project memory file.
Write or update memory files:
Use the standard memory frontmatter format:
---
name: [descriptive name]
description: [one-line description for relevance matching]
type: user | feedback | project | reference
---
[memory content]
Bash access is read-only during distillation. Use only:
ls, find, grep, cat, stat, wc, head, tail
All writes go through the Write/Edit tools only.
After writing:
~/.claude/memory/MEMORY.md index — one line per file, under 150 chars| Content type | Where it goes |
|---|---|
| How I prefer to work, style preferences | ~/.claude/memory/ (user scope) |
| Project architecture, active constraints | ~/.claude/memory/ with project tag |
| Lessons that apply across projects | ~/.claude/memory/ (global) |
| One-off task detail | Leave in learnings.md, do not promote |
Update the ember lock to mark consolidation complete:
touch ~/.claude/memory/.ember.lock 2>/dev/null || true
This resets the ember gate's time counter. The session counter resets automatically when the gate fires.
Do not copy-paste entire learnings.md entries into memory. Summarize — memory files should be denser than raw session notes.
Do not distill one-off task details. The quality gate: would this entry help a future session that has never seen this project before? If no, leave it in learnings.md.
Do not let MEMORY.md exceed 200 lines. When it approaches the limit, merge related entries into topic files and keep only the pointer in the index.