engram-memory-protocol

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

When to Use

使用场景

Use this skill when:
  • Making architecture or implementation decisions
  • Fixing bugs with non-obvious root causes
  • Discovering patterns, gotchas, or user preferences
  • Closing a session or after compaction

在以下场景中使用本skill:
  • 制定架构或实现决策时
  • 修复具有非明显根本原因的bug时
  • 发现模式、陷阱或用户偏好时
  • 结束会话或完成压缩操作后

Save Rules

保存规则

Call
mem_save
immediately after:
  • decision
  • bugfix
  • pattern/discovery
  • config/preference changes
Use structured content:
  • What
  • Why
  • Where
  • Learned
Use stable
topic_key
for evolving topics.

在以下操作后立即调用
mem_save
  • 决策制定完成后
  • bug修复完成后
  • 发现模式/新发现后
  • 配置/偏好设置更改后
使用结构化内容:
  • 内容(What)
  • 原因(Why)
  • 位置(Where)
  • 经验总结(Learned)
为不断演进的主题使用稳定的
topic_key

Search Rules

搜索规则

  • On recall requests:
    mem_context
    first, then
    mem_search
    .
  • Before similar work: run proactive
    mem_search
    .

  • 处理召回请求时:先调用
    mem_context
    ,再调用
    mem_search
  • 开展类似工作前:主动运行
    mem_search

Session Close Rules

会话结束规则

Before saying done/listo:
  1. Call
    mem_session_summary
    .
  2. Include goal, discoveries, accomplished, next steps, relevant files.
After compaction:
  1. Save summary first.
  2. Recover context.
  3. Continue work.
在说“完成/结束(done/listo)”之前:
  1. 调用
    mem_session_summary
  2. 包含目标、新发现、已完成事项、下一步计划和相关文件。
完成压缩操作后:
  1. 先保存摘要。
  2. 恢复上下文。
  3. 继续工作。