memory-on-demand

按需记忆检索。当用户询问历史相关问题时,自动搜索 memory 和 QMD 获取相关信息。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "memory-on-demand" with this command: npx skills add aeoleader/memory-on-demand

Memory On Demand - 按需记忆检索

触发条件

当用户问题包含以下关键词时自动触发:

  • "之前"、"以前"、"上次"
  • "历史"、"记录"
  • "那次"、"那次"
  • "还记得吗"
  • "我之前"
  • "之前我们"
  • "那时候"

执行流程

1. 判断是否需要检索

检查用户问题是否与历史记录相关。

2. 选择检索方式

首选:QMD 搜索(更快、更准确)

qmd search "关键词" --limit 5

备选:Memory 搜索

# 搜索 memory 文件
grep -r "关键词" ~/.openclaw/workspace/memory/

# 或使用 memory_search

3. 返回结果

将搜索结果整理后返回给用户。

使用示例

用户问:"之前那次健身训练的记录是什么?"

自动执行:

  1. 检测到"之前"关键词
  2. 执行 qmd search "健身 训练"
  3. 返回相关记录

优势

  • 按需加载:只在需要时搜索,不浪费 context
  • 自动触发:无需手动指定
  • 多源检索:QMD + Memory 双保险

配置

  • QMD 索引:已配置 workspace + butler + researcher + sessions
  • Memory 文件:自动读取 memory/*.md

自动记忆检索 skill

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Accelo

Accelo integration. Manage Organizations, Leads, Pipelines, Users, Goals, Filters. Use when the user wants to interact with Accelo data.

Registry SourceRecently Updated
General

8X8

8x8 integration. Manage Persons, Organizations, Deals, Leads, Activities, Notes and more. Use when the user wants to interact with 8x8 data.

Registry SourceRecently Updated
General

7Shifts

7shifts integration. Manage Companies. Use when the user wants to interact with 7shifts data.

Registry SourceRecently Updated
General

46Elks

46elks integration. Manage Organizations. Use when the user wants to interact with 46elks data.

Registry SourceRecently Updated