--- title: "Pattern-Key" type: concept tags: [openclaw, memory, agent] last_updated: 2026-04-17 --- ## Definition Pattern-Key(模式键)是 Self-Improving Skill 中用于追踪同一类型问题生命周期的检索键,帮助 Agent 区分一次性错误和系统性重复。 ## Usage 在 LRN 记录的 Metadata 中使用: ```markdown ### Metadata - Pattern-Key: cron.telegram-delivery - Recurrence-Count: 2 - See Also: LRN-20260325-001 ``` ## Detection Logic | Recurrence-Count | 含义 | 处理方式 | |-----------------|------|---------| | 1 | 一次性错误 | 记录并解决 | | 2+ | 系统性重复 | 需要系统性修复 | ## Example - `cron.daily-self-review`:出现9次,持续优化领域 - `cron.telegram-delivery`:出现2次,第二次解决 ## Core Insight Pattern-Key 重复本身就是一个信号——第一次记了,第二次就该解决了。 ## Related - [[Self-Improving Skill]] - [[每日复盘机制]] - [[双层记忆架构]] - [[OpenClaw]]