Distill Memory

nowledge-co/community/nowledge-mem-copilot-cli-plugin/skills/distill-memory

作者 nowledge-co1f4d7eb61466dbfc93ce8d7a0a806c4d4a196dd0無授權條款收錄於 2026年10月9日更新於 2026年10月9日

Recognize breakthrough moments, blocking resolutions, and design decisions worth preserving. Detect high-value insights that save future time. Suggest distillation at valuable moments, not routine work.

AI 產生的概覽

辨識對話中的高價值時刻,並透過 nmem CLI 將其儲存為持久記憶。

功能
此技能引導代理辨識值得保留的突破時刻、決策、研究結論、意外發現與經驗教訓,並略過例行性工作。它定義了原子化、可執行的記憶項目品質標準,並展示使用 nmem CLI 新增或更新記憶(含標題與重要性評分)的指令。它也說明了何時及如何向使用者建議提煉記憶,並提供 nmem 安裝與設定的疑難排解方式。
適用情境
適用於長時間工作階段中出現應跨對話保留的持久事實、偏好、決策、計畫或經驗教訓的情況。適合在問題解決或做出選擇之後、使用者暫停時使用。不適用於例行修復、進行中的工作或簡單問答。
執行需求
需要在 PATH 中可用的 nmem CLI(可透過 pip install nmem-cli 安裝,Arch Linux 上可用 yay/paru)。遠端使用需設定伺服器 URL 與 API 金鑰。不附帶指令碼,僅為說明文件。

Distill Memory

Save proactively when the conversation produces a durable fact, preference, decision, plan, procedure, learning, event, or important context. Do not wait to be asked.

When to Suggest (Moment Detection)

Breakthrough: Extended debugging resolves, user relief ("Finally!", "Aha!"), root cause found

Decision: Compared options, chose with rationale, trade-off resolved

Research: Investigated multiple approaches, conclusion reached, optimal path determined

Twist: Unexpected cause-effect, counterintuitive solution, assumption challenged

Lesson: "Next time do X", preventive measure, pattern recognized

Skip: Routine fixes, work in progress, simple Q&A, generic info

Memory Quality

Good (atomic + actionable):

  • "React hooks cleanup must return function. Caused leaks."
  • "PostgreSQL over MongoDB: ACID needed for transactions."

Poor: Vague "Fixed bugs", conversation transcript

Tool Usage

Use nmem CLI to create memories:

bash
nmem m add "Insight + context for future use" \  -t "Searchable title (50-60 chars)" \  -i 0.8

If an existing memory already captures the same decision, workflow, or preference and the new information refines it, update that memory instead of creating a duplicate:

bash
nmem m update <id> -t "Updated title"

Content: Outcome/insight focus, include "why", enough context

Importance: 0.8-1.0 major | 0.5-0.7 useful | 0.3-0.4 minor

Note: For programmatic use, add --json flag to get JSON response

Examples:

bash
# High-value insightnmem m add "React hooks cleanup must return function. Caused memory leaks in event listeners." \  -t "React Hooks Cleanup Pattern" \  -i 0.9
# Decision with contextnmem m add "Chose PostgreSQL over MongoDB for ACID compliance and complex queries" \  -t "Database: PostgreSQL" \  -i 0.9

Suggestion

Timing: After resolution/decision, when user pauses

Pattern: "This [type] seems valuable - [essence]. Distill into memory?"

Frequency: 1-3 per session typical, quality over quantity

Troubleshooting

If nmem is not in PATH: pip install nmem-cli, or on Arch Linux yay -S nmem-cli / paru -S nmem-cli

For remote servers: run nmem config client set url https://... and nmem config client set api-key ... once on this machine.

Run nmem status to check server connection.

來源與署名

來源:nowledge-co/community位於nowledge-mem-copilot-cli-plugin/skills/distill-memory提交1f4d7eb

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架