Search Memory

nowledge-co/community/nowledge-mem-droid-plugin/skills/search-memory

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

Search memory and thread history when past knowledge would materially improve the answer. Route between distilled memories and prior discussions instead of treating them as separate silos.

仅含说明AI & Agents
AI 生成的概览

指导智能体在过往上下文有助于回答时,检索已存储的记忆和过往讨论记录。

功能
该技能提供判断何时应检索持久记忆或早期对话线程的说明。它列出强信号与情境信号,给出记忆搜索、线程搜索以及逐步获取线程内容的命令,并规定披露所回忆知识的响应约定。它产出的是检索指导与行为规范,而非文件或代码。
适用场景
当任务与先前工作相关、与之前解决过的问题相似,涉及评审、回归、发布、文档对齐或连接器行为,或用户询问某项决策的原因时使用。也适用于“那个方案”“像之前那样”等隐含回忆的表述。对于全新任务、通用语法问题或用户希望获得全新视角的情况则应跳过。
运行要求
需要 nmem 命令行工具及其记忆与线程搜索子命令,并能访问底层的记忆与线程存储。该技能不附带脚本,仅为说明性指令。

Search Memory

When to Search

Strong signals — search when:

  • the current task connects to prior work
  • the bug or design resembles something solved earlier
  • the task is a review, regression, release, docs-alignment, or connector-behavior question
  • the user asks why a decision was made
  • a previous discussion or session likely contains the missing context
  • the user uses implicit recall language: "that approach", "like before"

Contextual signals — consider searching when:

  • complex debugging where prior context would narrow the search space
  • architecture discussion that may intersect with past decisions
  • domain-specific conventions the user has established before

Skip when:

  • the task is fundamentally new
  • the question is generic syntax or reference material
  • the user explicitly wants a fresh perspective

Tool Usage

Start with durable knowledge:

bash
nmem --json m search "3-7 core concepts"

Use thread search when the user is really asking about a prior conversation:

bash
nmem --json t search "query" --limit 5

If a memory result includes source_thread, or thread search identifies the likely discussion, fetch progressively:

bash
nmem --json t show <thread_id> --limit 8 --offset 0 --content-limit 1200

Increase --offset only when more messages are actually needed.

Response Contract

  • Be explicit when you relied on recalled knowledge
  • Prefer the smallest retrieval surface that answers the question
  • Suggest distillation only if the current discussion produced new durable knowledge
  • For continuation-heavy engineering work, search near the start of the task rather than waiting for an explicit recall request

来源与署名

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

许可证: 无许可证

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

举报或申请下架