Distill Memory

nowledge-co/community/nowledge-mem-dimagent-plugin/skills/distill-memory

作者 nowledge-co1f4d7eb61466dbfc93ce8d7a0a806c4d4a196dd0无许可证收录于 2026年10月9日更新于 2026年10月9日

Save key decisions, procedures, or learnings so the user never has to rediscover them. Trigger when a significant decision is made, a non-obvious procedure is found, or a lesson is learned. Do not wait to be asked.

AI 生成的概览

将关键决策、流程和经验保存为持久记忆,供后续连接的 AI 工具检索。

功能
该技能指导智能体在会话结束前记录重要决策、非显而易见的流程、经验、偏好、计划和上下文,并将其保存为持久记忆。它说明了应提炼和应跳过的内容,并给出工作流:先搜索以避免重复,然后更新已有记忆或创建新记忆。它还规定了单元类型、时间标记和重要性等级,并要求智能体报告保存了什么以及原因。
适用场景
当会话中做出重要决策、发现非显而易见的流程或获得经验时使用。它也适用于一项重要任务结束时,即使用户没有要求,也要检查是否应新增或更新一条持久记忆。
运行要求
需要 Nowledge Mem MCP 服务器及其 memory_search、memory_update 和 memory_add 工具,或需要 nmem 命令行工具及其 search、update 和 add 子命令。该技能不附带脚本,仅为说明文档。

Capture what matters before the session ends. Save decisions, procedures, and learnings as durable memories that any connected AI tool can find later.

What to distill

  • Decisions with rationale ("we chose PostgreSQL because ACID is required")
  • Procedures: non-obvious steps, workarounds, setup sequences
  • Learnings: surprises, gotchas, corrections to prior assumptions
  • Preferences: user's stated preferences for future reference
  • Plans that future sessions will need to resume
  • Context that would be lost when the session ends

What to skip

  • Routine code changes, obvious fixes, standard operations
  • Work in progress that will change before it matters
  • Generic information already widely known
  • Simple Q&A answerable from documentation

Workflow

If this session already exposes the Nowledge Mem MCP server:

  1. Search first with memory_search to avoid duplicates.
  2. If an existing memory captures the same concept, use memory_update.
  3. Otherwise, create it with memory_add.

Otherwise:

  1. Search first to avoid duplicates: nmem --json m search "concept"
  2. If an existing memory captures the same concept, update it:
    bash
    nmem --json m update <memory_id> -c "updated content"
  3. Otherwise, create a new memory:
    bash
    nmem --json m add "content" -t "Title" --unit-type decision -l "label" -s dimagent -i 0.8

At the end of a substantial task, explicitly check whether one durable memory should be added or updated. Do not skip that review just because the user did not ask.

Unit types

fact, preference, decision, plan, procedure, learning, context, event

Additional flags

  • Temporal context: --when past (or present, future, timeless)
  • Event date: --event-start 2026-03 (for time-anchored knowledge)

Importance scale

  • 0.8-0.9: Major decisions, important procedures, breakthroughs
  • 0.5-0.7: Useful patterns, conventions, secondary decisions
  • 0.3-0.4: Minor notes, preferences, contextual observations
  • 1.0: rare, only for critical corrections or pivotal choices

After saving

Report what was stored, which unit type was used, and why each memory was worth keeping. One strong memory is better than three weak ones.

Links

来源与署名

来源:nowledge-co/community位于nowledge-mem-dimagent-plugin/skills/distill-memory提交1f4d7eb

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架