Agent Skills › zilliztech/memsearch › memory-recall

memory-recall

GitHub

通过MemSearch搜索并召回过往会话记忆、调试笔记及项目知识。支持查询、获取详情及还原原始对话,适用于上下文包含记忆提示的场景,帮助恢复历史决策与知识。

plugins/opencode/skills/memory-recall/SKILL.md zilliztech/memsearch

触发场景

需要回顾过往对话或决策 包含MemSearch记忆提示 查找历史调试笔记

安装

npx skills add zilliztech/memsearch --skill memory-recall -g -y
更多选项

非标准路径

npx skills add https://github.com/zilliztech/memsearch/tree/main/plugins/opencode/skills/memory-recall -g -y

不安装直接使用

npx skills use zilliztech/memsearch@memory-recall

指定 Agent (Claude Code)

npx skills add zilliztech/memsearch --skill memory-recall -a claude-code -g -y

安装 repo 全部 skill

npx skills add zilliztech/memsearch --all -g -y

预览 repo 内 skill

npx skills add zilliztech/memsearch --list

SKILL.md

Frontmatter
{
    "name": "memory-recall",
    "description": "Search and recall relevant memories from past sessions via MemSearch. Use for past decisions, debugging notes, previous conversations, and project knowledge, especially when the context includes a MemSearch memory hint. Skip purely current-code questions or when the user asks to ignore memory."
}

Search memories relevant to the user's current question. The plugin's tools resolve the requesting session's checkout and configured collection, and recover pending capture before recall.

Steps

  1. Use memory_search with a concrete query and top_k: 5. It returns text containing a JSON array of objects with chunk_hash, content and source. When calling through execute, return the search result and inspect its text before selecting hashes. Evaluate relevance before expanding results.

  2. Use memory_get with the most promising chunk_hash values to read full Markdown sections.

  3. For claims requiring original dialogue, use memory_transcript with session_id, turn_id and db_path from the expanded session: / turn: / db: anchor. Set context: 3; for an anchor without a turn, use limit: 10.

    • If OpenCode transcript lookup fails after an upgrade, distinguish an incompatible host/plugin pair, an unavailable database or session/turn, and an incomplete V1-to-V2 database migration. See OpenCode diagnostics, also used by memory-config. Check the referenced conversation only; a lookup failure does not justify scanning unrelated transcripts.
    • Keep existing markdown and session: / turn: / db: anchors unchanged. Return useful search/expand results with the L3 limitation stated. If host migration is needed, direct the user to OpenCode's migration guidance; do not migrate the database or rewrite anchors during recall. Do not describe a summary as verified original dialogue.
  4. Return a concise account of relevant facts with dates and source files. Distinguish journal summaries from verified dialogue. If nothing relevant is found, say so.

If the query is unclear, inspect recent daily Markdown files under .memsearch/memory/ to identify a topic, then search. Avoid unrelated memory and transcript scans. A capture-pending diagnostic means new memories may still be recovering; existing Markdown/search results remain useful.

These tools require OpenCode V2. V1 users pin the published @zilliz/memsearch-opencode@0.3.17. Plugin 0.4.0 supports OpenCode >=2.0.32 <3. OpenCode's own database migration remains user-owned.

版本历史

  • 65d8b22 当前 2026-11-02 22:12

    支持OpenCode V2,发布插件0.4.0,新增有限捕获、持久恢复和无状态原生摘要功能,优化作用域召回工具。

  • 4ad9ee4 2026-09-09 04:50

    修复配置问题,确保目录派生的集成集合仅作为回退默认值,允许显式项目和全局设置覆盖。

  • 8cec40e 2026-07-24 20:49

同 Skill 集合

plugins/_shared/skills/memory-config/SKILL.md
plugins/_shared/skills/memory-to-skill/SKILL.md
plugins/claude-code/skills/memory-config/SKILL.md
plugins/claude-code/skills/memory-to-skill/SKILL.md
plugins/codex/skills/memory-config/SKILL.md
plugins/codex/skills/memory-to-skill/SKILL.md
plugins/openclaw/skills/memory-config/SKILL.md
plugins/openclaw/skills/memory-to-skill/SKILL.md
plugins/opencode/skills/memory-config/SKILL.md
plugins/opencode/skills/memory-to-skill/SKILL.md
plugins/claude-code/skills/memory-recall/SKILL.md
plugins/codex/skills/memory-recall/SKILL.md
plugins/openclaw/skills/memory-recall/SKILL.md

元信息

文件数
0
版本
65d8b22
Hash
e8be53fd
收录时间
2026-07-24 20:49

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-06 19:02
浙ICP备14020137号-1