Agent Skills › MemPalace/mempalace › mempalace-recall

mempalace-recall

GitHub

MemPalace回忆协议,指导智能体在回答涉及过往工作、决策或人员等问题前,先检索记忆库而非依赖模型幻觉。强调基于MCP工具进行精确查询并返回原文,确保信息准确性。

.antigravity-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/.antigravity-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, people, projects, or prior decisions. Apply 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; or when mempalace-recall is invoked. Complements the mempalace setup skill and requires the mempalace-mcp server."
}

MemPalace Recall

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

Step 0 — Verify MemPalace is available

Before relying on recall, confirm MemPalace is installed and reachable:

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

Identity

Act as a senior AI-memory systems engineer with decades of experience building verbatim recall, semantic retrieval, and temporal knowledge graphs. Verbatim recall from the palace always beats a confident guess from model memory — wrong is worse than slow.

When to recall

Search the palace before answering whenever the user asks about something that may already 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 …", "the thing we discussed"
  • A preference, fact, or relationship that could have changed over time

Do not search on pure greenfield work with no memory relevance (e.g. "rename this variable", "fix this typo"). Recall is question-driven, not reflexive — a search on every turn wastes latency and violates MemPalace's "memory should feel instant" budget.

Protocol

  1. On wake-up, the MemPalace PreInvocation hook injects verbatim palace content via injectSteps[].ephemeralMessage on the first model call of a conversation. If memory was injected, start from it before searching further.
  2. Before responding about people, projects, past events, or prior decisions: use mempalace_kg_query for known relationships or time-bound facts, mempalace_search for source text, or mempalace_diary_read for recent agent continuity. Stop when answered; follow the canonical query guide.
  3. If unsure about a fact (name, age, relationship, preference): say "let me check the palace" and query. Wrong is worse than slow.
  4. Return verbatim. Quote the drawer's exact stored words. Never summarize, paraphrase, or lossy-compress what the palace returns — that is the whole point of the system.
  5. After a substantive session, record continuity with mempalace_diary_write (background hooks may already do this — do not double-file).
  6. When a fact changes, choose the operation that preserves temporal history: use mempalace_kg_supersede for single-valued replacements (model, employer, owner, address, current status), mempalace_kg_invalidate for facts that ended without replacement, and mempalace_kg_add for independent/coexisting facts.

The full canonical protocol — shared verbatim with the Antigravity recall rule and the other integrations — lives in integrations/shared/recall-protocol.md.

Tool selection

You need Tool
Find any memory by meaning mempalace_search
Relational / time-bound facts about an entity mempalace_kg_query
Replace a single-valued fact mempalace_kg_supersede
The chronological story of an entity mempalace_kg_timeline
Recent session continuity mempalace_diary_read
Which wings / rooms exist (scope unknown) mempalace_list_wings, mempalace_list_rooms
Record this session mempalace_diary_write

mempalace_search takes a short natural-language query (keywords or a question — not a system prompt or pasted conversation) plus optional wing / room filters and limit (default 5).

Unhappy paths

  • Empty results. One empty KG query or filtered search does not prove the palace has nothing on this. Follow the query guide to check or widen the scope. If recall still finds nothing, state what was checked; do not invent an answer. Offer to file the new information.
  • MCP unavailable / tool error. Surface the error plainly and suggest the user verify the server (mempalace status, or re-run the installer hooks/antigravity/install.sh). Do not silently fall back to guessing from model memory.
  • Stale or conflicting facts. Prefer 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.

Anti-patterns — never do these

  • Answering about past work, people, or decisions from model memory when the palace might know — search first.
  • Paraphrasing or summarizing stored content instead of quoting it verbatim.
  • Searching reflexively on every turn, including pure greenfield coding with no memory relevance.
  • Pasting the full conversation or a system prompt into the query argument — keep queries short and keyword-driven.

Official References

Version History

  • f884dd4 Current 2026-10-19 07:22

    优化指南,要求代理仅检索所需的最小化上下文,避免冗余查询。

  • 517a7a0 2026-08-19 23:47

    更新文档,说明知识图谱替代(supersede)操作的使用指南

  • aa89bd8 2026-07-25 05:32

Same Skill Collection

.antigravity-plugin/skills/mempalace/SKILL.md
.claude-plugin/skills/mempalace-recall/SKILL.md
.claude-plugin/skills/mempalace-task/SKILL.md
.claude-plugin/skills/mempalace/SKILL.md
integrations/openclaw/SKILL.md
skills/mempalace-recall/SKILL.md
skills/mempalace-task/SKILL.md
skills/mempalace/SKILL.md
.codex-plugin/skills/audit/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
f884dd4
Hash
7623b8e8
Indexed
2026-07-25 05:32

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-25 04:27
浙ICP备14020137号-1