lesson

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Lesson Extraction & Storage

经验教训提取与存储

When triggered, extract and store lessons from the recent conversation context.
触发后,从近期对话上下文中提取并存储经验教训。

Steps

步骤

  1. Scan recent context — identify the pitfall, bug fix, or key insight just discussed
  2. Store technical layer (category: fact, importance ≥ 0.8):
    Pitfall: [symptom]. Cause: [root cause]. Fix: [solution]. Prevention: [how to avoid].
  3. Store principle layer (category: decision, importance ≥ 0.85):
    Decision principle ([tag]): [behavioral rule]. Trigger: [when]. Action: [what to do].
  4. Verify
    memory_recall
    with anchor keywords to confirm both entries retrievable
  5. Report — tell Master what was stored (brief summary)
  1. 扫描近期上下文 —— 识别刚刚讨论的陷阱、漏洞修复方案或关键见解
  2. 存储技术层内容(分类:事实,重要性≥0.8):
    Pitfall: [symptom]. Cause: [root cause]. Fix: [solution]. Prevention: [how to avoid].
  3. 存储原则层内容(分类:决策,重要性≥0.85):
    Decision principle ([tag]): [behavioral rule]. Trigger: [when]. Action: [what to do].
  4. 验证 —— 使用锚定关键词调用
    memory_recall
    ,确认两条记录均可被检索到
  5. 汇报 —— 向主人告知存储的内容(简要总结)

Rules

规则

  • Keep entries short and atomic (< 500 chars each)
  • If the lesson also affects a checklist or SKILL.md, update those files too
  • If no clear lesson is found in recent context, ask Master what to store
  • 记录需简洁且独立(每条不超过500字符)
  • 如果该经验教训会影响检查清单或SKILL.md文件,同时更新这些文件
  • 如果在近期上下文中未找到明确的经验教训,询问主人需要存储什么