Skip to content
Back to skills

M3 Guide

ASecurity

How to use m3 memory well — search-first protocol, write vs supersede, chatlog access and its store-topology trap, and verifying capture is live. Use when working with m3 memory tools or unsure which one fits.

  • 29 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 19, 2026
ai-agentsrustgosqlgitdatabase

Works with

  • mcp

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add skynetcmd/m3-memory --skill m3-guide --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of M3 Guide?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for M3 Guide
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/skynetcmd-m3-guide-m3-memory/badge)](https://www.skillsdirectory.com/skills/skynetcmd-m3-guide-m3-memory)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: m3-guide
description: How to use m3 memory well — search-first protocol, write vs supersede, chatlog access and its store-topology trap, and verifying capture is live. Use when working with m3 memory tools or unsure which one fits.
---

# Using m3 Memory

Tool names and signatures come from the MCP tool list. This is the part that
isn't in a tool description: the protocol, and the traps.

## Trust order

**m3 memory > artifacts (git, handoff files) > session context.**
When m3 contradicts what you think you remember, trust m3 — context degrades
across session boundaries, memory does not.

## Verify capture is live

**Registered ≠ working.** The server can be connected while chatlog capture is
silently dead. Call `m3_call("chatlog_status")` once early in a substantive session. If
hooks are off or `last_write` is null/stale, say so loudly and don't proceed
silently — a dead chatlog means this session's decisions vanish at the next
session boundary. Never degrade quietly to flat files.

## Protocol

- **Search first.** `memory_search` before re-deriving anything about this user,
  project, or machine. A settled decision re-litigated is a bug reintroduced.
- **Grade what you used.** After answering with retrieved memories, grade them
  once: `m3_call("memory_grade", {"grades": [{"memory_id": "<id>", "verdict":
  "helpful"}, ...]})` — `helpful` if you relied on it, `unhelpful` if it was shown
  but did not help. `memory_search` lists the ids in `grade_with`.
- **Write as you go.** If it took effort to learn and will matter later,
  `memory_write` it — decisions, corrections, runbooks, preferences.
- **Update, don't duplicate.** Search before writing; prefer `memory_update` or
  `memory_supersede` (retires the old claim with a `supersedes` edge, keeps
  history) over a near-duplicate. Duplicates degrade later retrieval.
- **Link.** Reference related memories as `[[name]]` so `memory_graph` traversal
  stays useful.

## Chat log

Captured turns from host agents live in a store separate from curated memory.
Reach them with `chatlog_search`, `chatlog_list_conversations`, and
`chatlog_promote` (promotes turns into curated memory).

### ⚠️ Never open a database file directly

The chat store and main store may be **two databases, one unified database, or
PostgreSQL** — a deployment choice only the tools know.

Querying `agent_memory.db` for `type='chat_log'` returns **zero rows on a split
deployment even when capture is perfectly healthy** — a false emergency. On a
PostgreSQL primary there's no local file at all. Use `m3_call("chatlog_status")`;
`m3 chatlog status --json` reports `unified: true|false` if you need the
topology.

## Scoping

Passing `conversation_id`, `agent_filter`, `user_id`, or `scope` enforces the
filter strictly: an empty result means nothing matched *in that scope*, not that
the store is empty.

## More

Only six tools load at startup (`memory_write`, `memory_search`,
`memory_supersede`, `memory_get`, `chatlog_search`, `m3_call`). Reach any other
tool (100+ in total) with `m3_call("<tool>", {...args})`; `m3_call("m3_index")`
lists them with exact args. `m3_call("tools_load_domain", {"domain": "files"})`
is optional — worth it only when you'll call many tools from one domain. Health: `m3 doctor`, `m3 chatlog doctor`.
Full reference: [`docs/AGENT_INSTRUCTIONS.md`](https://github.com/skynetcmd/m3-memory/blob/main/docs/AGENT_INSTRUCTIONS.md)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.