packages/openclaw-memory-kernel/skills/memory-kernel/SKILL.md
Structured typed memory with event-log replay, confidence scoring, temporal decay, type-aware ranking, typed relation edges, and conflict detection. Use for facts, decisions, constraints, beliefs, and open questions — when structure matters more than fuzzy recall.
npx skillsauth add mainion-ai/memory-kernel memory-kernelInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
memory-kernel stores memories as typed atoms — not flat notes. Each atom has a type, confidence score, optional TTL, and classification.
| Type | When to use |
|---|---|
| fact | Objective information you observed or were told |
| decision | A choice that was made — always include rationale in the body |
| constraint | A rule or requirement that must not be violated |
| belief | Something probably true but uncertain — pair with confidence: 0.5–0.7 |
| open_question | An unresolved question worth tracking across sessions |
Use mk_recall when you need:
types: ["decision", "constraint"])task param enables re-ranking)Use the built-in memory_search for:
mk_remember
Call when the user makes a decision, states a rule, shares a fact worth preserving, or explicitly asks to remember something. Always pick the most specific type. Set confidence below 1.0 for uncertain information. For decisions, include the rationale in the body.
mk_recall
Call at session start or when you need structured context. Pass task to get results ranked by relevance to what you're doing. Use types: ["decision", "constraint"] to load active rules without noise from facts.
mk_reflect
Call at end of session. Expires TTL'd atoms, deduplicates redundant atoms, auto-promotes high-confidence beliefs to facts, surfaces conflicts, and regenerates all view files. Also call after merging a remote memory directory.
mk_context_bundle
Call when you want a single pre-assembled Markdown document with current context. Runs reflect + recall in one call. Best for session start when you need a full picture before beginning work.
mk_status
Call to check memory health: atom counts by type, index status, embedding count. Use when diagnosing recall issues or verifying memory state.
The plugin handles these automatically — you don't need to call them:
/new or /reset is used, reflect runs automatically and an episode is written.tools
Diagnose and fix memory-kernel setup issues for any agent host — NanoClaw, OpenClaw, MCP clients (Claude Desktop / Cursor), or a plain native install. Verifies the universal store (atoms, events, index, lifecycle atoms, semantic health, drift) and then runs host-specific checks (mounts, plugin doctrine, MCP wiring, cron). Use when atoms are missing, CLAUDE.md is empty, recall feels off, the agent doesn't seem to remember anything across sessions, or you want a health check before debugging further. Triggers on "mk doctor", "memory-kernel diagnose", "atoms missing", "CLAUDE.md empty", "memory-kernel broken", "agent memory not working", "mk-memory health", "diagnose mk", "memory-kernel check", "verify memory setup".
tools
Set up memory-kernel — persistent, file-based agent memory — for any host that needs it. Universal core (install CLI, init store, seed identity + lifecycle atoms, schedule reflect) plus host-specific plumbing for NanoClaw container agents (mounts, allowlist, restart), OpenClaw plugin-based agents (plugin install, isolation config, AGENTS.md / MEMORY.md doctrine), or any MCP-capable client (Claude Desktop, Cursor, Continue) that needs an `mk-mcp` server entry. Use when the user asks to "set up memory-kernel", "install mk", "configure agent memory", "add persistent memory to my agent", "wire up memory-kernel for NanoClaw / OpenClaw / Claude Desktop / Cursor", or anything similar where memory-kernel is being introduced to an agent host. Triggers on "mk-memory-setup", "memory-kernel setup", "set up agent memory", "install memory-kernel", "configure mk", "persistent memory across sessions", "add memory to my agent", "memory-kernel for NanoClaw", "memory-kernel for OpenClaw", "memory-kernel MCP server".
data-ai
Set up memory-kernel for a NanoClaw agent — persistent memory across sessions. Use when user asks to set up memory, install memory-kernel, add persistent memory, or configure agent memory. Triggers on "setup memory", "memory-kernel", "mk-memory-setup", "add memory", "persistent memory".
testing
Diagnose and fix memory-kernel setup issues. Use when memory isn't working, CLAUDE.md is empty, atoms aren't being retained, or you want to verify your memory setup is healthy. Triggers on "check memory", "memory broken", "mk doctor", "memory not working", "diagnose memory", "fix memory".