AgentSkillsCN

memory-recall

围绕某一主题,从Basic Memory中构建全面的背景知识。当用户在对话中提及某个可能已有一定了解的主题时,或在对话中途切换话题时,又或者当用户说“我们对X了解多少?”“回忆一下X”“我们之前聊过X什么?”“继续聊聊X”“给我补一下X的相关内容”时,可使用此功能。此外,当用户的问题很可能在Basic Memory中已有相关背景知识时,也可主动使用此功能。

SKILL.md
--- frontmatter
name: memory-recall
description: "Build comprehensive context from Basic Memory on a topic. Use at the start of conversations when the user asks about a topic that may have prior knowledge, when switching topics mid-conversation, or when the user says 'what do we know about X', 'recall X', 'what have we discussed about X', 'continue our discussion on X', or 'catch me up on X'. Also use proactively when the user's question likely has relevant prior context in Basic Memory."

Recall from Basic Memory

Build comprehensive context by searching with multiple strategies and traversing the knowledge graph.

Workflow

Step 1: Determine project

If project is unknown:

code
list_memory_projects()

Ask the user which project, or use the default. Remember their choice for the session.

Step 2: Multi-strategy search

Run multiple searches to maximize recall. Don't stop at the first query.

code
# Primary: direct topic search
search_notes(query="<exact topic>", project="<project>")

# Broaden: alternate terms and synonyms
search_notes(query="<broader or alternate terms>", project="<project>")

# Title match: find by entity name
search_notes(query="<topic>", search_type="title", project="<project>")

# Recent: check if discussed recently
recent_activity(timeframe="30d", project="<project>")

Step 3: Build context graph

For the most relevant results, traverse the knowledge graph to find connected knowledge:

code
build_context(url="memory://<best-match-permalink>", depth=2, project="<project>")

This returns:

  • The root entity with observations and relations
  • Related entities up to 2 hops away
  • Connection paths between entities

Step 4: Read key notes

Read the most relevant 2-3 notes in full to understand details:

code
read_note(identifier="<permalink>", project="<project>")

Step 5: Present summary

Synthesize findings into a concise briefing for the user:

  1. What's known: Key facts and decisions from prior sessions
  2. Connections: How this topic relates to other knowledge
  3. Recent changes: What's been updated recently
  4. Open items: Unresolved questions or pending actions
  5. Forward references: Entities referenced but not yet created

See references/search-strategies.md for advanced search patterns when initial searches return poor results.