AgentSkillsCN

mnemonic-core

当用户说出“捕获记忆”、“保存到记忆”、“记住这个”,或触发诸如“我决定了”、“让我们用”、“我们选择”、“我学到了”、“原来如此”、“今日学到”、“发现了”、“我卡住了”、“被……阻碍”、“一定要用”、“千万别做”、“惯例是”等语句时,可选用此技能。同样适用于回忆相关的语句:“我们当时是怎么决定的?”、“我们该如何应对?”、“提醒我一下”、“去记忆里找找”。

SKILL.md
--- frontmatter
name: mnemonic-core
description: >
  This skill should be used when the user says "capture memory", "save to memory",
  "remember this", or trigger phrases like: "I've decided", "let's use", "we're going with",
  "I learned", "turns out", "TIL", "discovered", "I'm stuck", "blocked by",
  "always use", "never do", "convention is". Also triggers on recall phrases:
  "what did we decide", "how do we handle", "remind me", "search memories".
user-invocable: true
allowed-tools:
  - Bash
  - Read
  - Write
  - Glob
  - Grep
<!-- BEGIN MNEMONIC PROTOCOL -->

Memory

Search first: /mnemonic:search {relevant_keywords} Capture after: /mnemonic:capture {namespace} "{title}"

Run /mnemonic:list --namespaces to see available namespaces from loaded ontologies.

<!-- END MNEMONIC PROTOCOL -->

Mnemonic Core

Memory system operations. See references/ for full documentation.

Trigger Phrases

Capture Triggers (silently capture when user says):

Decisions (namespace: _semantic/decisions):

  • "I've decided", "let's use", "we're going with"
  • "we'll use", "I'm choosing", "going forward with"
  • "the decision is", "we chose", "decided on"

Learnings (namespace: _semantic/knowledge):

  • "I learned", "turns out", "discovered that"
  • "TIL", "gotcha", "found out", "realized"
  • "the root cause was", "it was because"

Patterns (namespace: _procedural/patterns):

  • "always use", "never do", "when X do Y"
  • "the pattern is", "we should always", "convention is"
  • "standard approach", "best practice here"

Blockers (namespace: _episodic/sessions/blockers):

  • "I'm stuck on", "blocked by", "can't figure out"
  • "hitting a wall", "the problem is", "struggling with"

Context (namespace: _semantic/knowledge):

  • "important to know", "keep in mind", "context is"
  • "background", "constraint", "requirement"

Recall Triggers (search memories when user asks):

  • "what did we decide about", "how do we handle"
  • "what's our approach to", "check for decisions"
  • "any learnings about", "patterns for"
  • "remind me", "what do we know about"
  • "search memories", "recall", "find memories"

Silent Capture Protocol

When to capture: Only capture when the user explicitly states a decision, learning, pattern, or blocker in their message. Do NOT capture based on Claude's own suggestions or recommendations.

When trigger phrases are detected:

  1. Capture to appropriate namespace WITHOUT announcing
  2. Do NOT say "I'm capturing this" or similar
  3. Continue natural conversation flow
  4. Memory creation is invisible to user

Do NOT capture:

  • Claude's own suggestions (only user-stated facts)
  • Hypothetical scenarios ("we could use...")
  • Questions or exploratory discussion

Visibility & Review

Users can review captured memories at any time:

bash
# Check session status and recent captures
/mnemonic:status

# List recent memories (last 7 days)
find ~/.claude/mnemonic -name "*.memory.md" -mtime -7 -exec basename {} \;

# Search for specific captures
/mnemonic:search {keywords}

If a user asks "what did you capture?" or "show me my memories":

  • Run /mnemonic:status to show memory stats
  • Use search to find recent relevant memories
  • This is NOT a violation of silent capture - user explicitly requested visibility

Capture

bash
/mnemonic:capture {namespace} "{title}"

Namespaces: _semantic/decisions | _semantic/knowledge | _procedural/patterns | _episodic/blockers | _episodic/sessions

Recall

bash
rg -i "{keywords}" ~/.claude/mnemonic/ --glob "*.memory.md" -l

Minimal Memory Format

yaml
---
id: {uuid}
title: "Title"
type: semantic|episodic|procedural
created: {iso-date}
---

# Title

Content here.

References

  • references/capture.md - Full capture workflow
  • references/recall.md - Search and retrieval patterns
  • references/schema.md - Complete MIF Level 3 schema
  • references/examples.md - Working examples