Agent SkillsMemPalace/mempalace › mempalace-recall

mempalace-recall

GitHub

MemPalace记忆宫殿召回协议,指导Agent在回答涉及过往决策、人物或项目等问题前,先通过MCP工具搜索记忆库而非依赖模型幻觉,确保答案基于存储事实。

.claude-plugin/skills/mempalace-recall/SKILL.md MemPalace/mempalace

Trigger Scenarios

询问过去的工作或决定 查询特定人物或项目信息 回忆之前的会话内容 核实可能已变更的事实或偏好

Install

npx skills add MemPalace/mempalace --skill mempalace-recall -g -y
More Options

Non-standard path

npx skills add https://github.com/MemPalace/mempalace/tree/develop/.claude-plugin/skills/mempalace-recall -g -y

Use without installing

npx skills use MemPalace/mempalace@mempalace-recall

指定 Agent (Claude Code)

npx skills add MemPalace/mempalace --skill mempalace-recall -a claude-code -g -y

安装 repo 全部 skill

npx skills add MemPalace/mempalace --all -g -y

预览 repo 内 skill

npx skills add MemPalace/mempalace --list

SKILL.md

Frontmatter
{
    "name": "mempalace-recall",
    "description": "Recall protocol for MemPalace — search the palace before answering about past work, prior decisions, people, or projects. Use when the user asks what was decided, what happened before, who someone is, what was discussed last time, or anything that may already be filed in their memory palace.",
    "allowed-tools": "Bash"
}

MemPalace Recall

Search-before-answer protocol for MemPalace. Read the user's memory palace before answering anything that may already be filed there, instead of guessing from model memory. This complements the mempalace skill (install / mine / status); this one covers recall only.

Step 0 — Verify MemPalace is available

mempalace --version

If the mempalace_* MCP tools are not available, tell the user the server is not connected and point them at the mempalace skill or /init. Do not silently fall back to answering from model memory.

When to recall

Search the palace before answering whenever the user asks about something that may be filed:

  • Past work or prior decisions — "what did we decide / try / do?"
  • A person, project, or entity — "who is …", "what is …"
  • An earlier session — "remember when …", "last time …"
  • A preference, fact, or relationship that could have changed over time

Skip recall for pure greenfield work with no memory relevance (renaming a variable, fixing a typo). Recall is question-driven, not reflexive.

Protocol

  1. Before responding about people / projects / past events / prior decisions: call mempalace_search first. Use mempalace_kg_query for relational or time-bound facts.
  2. If unsure about a fact: say "let me check the palace" and query.
  3. Return the drawer's verbatim text — never summarize or paraphrase stored content.
  4. After a substantive session, record continuity with mempalace_diary_write (skip if a background hook already saved).
  5. When a fact changes: use mempalace_kg_supersede for single-valued replacements, mempalace_kg_invalidate for facts that ended without replacement, and mempalace_kg_add for independent/coexisting facts.

Unhappy paths

  • Empty results — say the palace has nothing on this; do not invent an answer. Offer to widen the search or file the new information.
  • MCP error / server down — surface the error, suggest mempalace status or re-running /init; never fall back to guessing.
  • Palace index corrupt / compactor error — if the server reports an HNSW segment-writer error, a ChromaDB compaction failure, or stays "Not connected" after a write, the index is out of sync with chroma.sqlite3 but the rows are intact. Tell the user to stop the server and rebuild from SQLite (mempalace repair --mode from-sqlite --archive-existing --yes), not re-mine, which drops MCP-added drawers and diary entries (#1843). Do not repair in-process.
  • Conflicting facts — trust the knowledge graph's time-valid answer; use mempalace_kg_supersede for single-valued replacements, mempalace_kg_invalidate for facts that ended without replacement, and mempalace_kg_add for independent/coexisting facts.

The canonical protocol, shared across all MemPalace integrations, lives in integrations/shared/recall-protocol.md.

Version History

  • 517a7a0 Current 2026-08-19 23:47

    文档更新:补充了知识图谱(KG)中supersede(覆盖/替换)的使用说明及指南。

  • aa89bd8 2026-07-25 05:32

Same Skill Collection

.antigravity-plugin/skills/mempalace-recall/SKILL.md
.antigravity-plugin/skills/mempalace/SKILL.md
.claude-plugin/skills/mempalace/SKILL.md
integrations/openclaw/SKILL.md
skills/mempalace-recall/SKILL.md
skills/mempalace/SKILL.md
.codex-plugin/skills/help/SKILL.md
.codex-plugin/skills/init/SKILL.md
.codex-plugin/skills/mine/SKILL.md
.codex-plugin/skills/search/SKILL.md
.codex-plugin/skills/status/SKILL.md

Metadata

Files
0
Version
517a7a0
Hash
b837c091
Indexed
2026-07-25 05:32

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 13:53
浙ICP备14020137号-1 $Гость$