/memtomem:brief [task or topic]from memtomem
Compiles a read-only task briefing from project memories, recent updates, and user preferences. Lists recent handoff IDs and verifies cited paths against the live Git worktree.
Ships in memtomem. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use $ARGUMENTS as the task or topic to brief.
If the request does not specify the task or topic to brief, do not ask and do not stop: run the
minimal mode described below, in an interactive or a non-interactive context.
A request that does specify the task or topic to brief proceeds normally.
This workflow is explicit and read-only. It compiles a compact task briefing from existing
project and user memories; it never writes, edits, indexes, or deletes memories.
It runs in one of two modes. Topic mode runs when the request names a task or topic, and
uses it as <task> below. Minimal mode runs when the request names none: it skips the
task-relevant searches and reports only recent updates, active handoff IDs, and open items.
Resolve the live Git root with git rev-parse --show-toplevel. Stop if the current directory
is not inside a Git worktree.
Derive project-slug from the Git-root directory name. Preserve case; replace each run of
characters outside [A-Za-z0-9._-] with - and trim leading - characters. If the result
is empty, . or .., ask for a valid slug instead of guessing.
Derive host-slug from the same directory name by replacing every character outside
[A-Za-z0-9] with -, one for one, and root-id from the absolute Git root the same way.
These match how host-native memory folders, such as Claude Code's per-project memory, are
named, so a store that indexes them files this repository's notes under claude:<root-id>
or claude-memory:<root-id>.
Call mem_status once without arguments. Verify that the status report describes the intended
database and project root, and that this project's .memtomem/memories.local tier is
registered. If it is not registered, stop and give:
cd <project-root> && mm mem init --scope project_local
Never fall back to scope="user" for project memories. Use namespace="shared:<project-slug>"
on the project-scoped search and recall calls below.
In topic mode, run steps 1, 2, 3, 4, and 6. In minimal mode, run steps 2, 3, 4, and 5, using the open-items query from step 5 as the query in step 2.
mem_search with query=<task>,
namespace="shared:<project-slug>", scope="project_local",
tag_filter="memory-update-item", top_k=8, and output_format="structured". The tag keeps
handoff records out of these results, because a task query can match their bodies closely and
this briefing does not read them. A memory saved in this namespace without that tag is not
found by this step.mem_search with query=<task>, scope="user",
namespace="claude*:*-<host-slug>", top_k=5, and output_format="structured". The pattern
matches by directory name, so it can also return notes from a same-named repository
elsewhere, and it misses this repository's notes when the checkout's directory is named
differently or when a host shortened a long root path's folder name. A namespace of exactly
claude:<root-id> or claude-memory:<root-id> is likely this repository's, but paths that
differ only in punctuation share a root-id, so no host-native result is confirmed as this
repository's: present each as a host note with its namespace. An empty result is normal when
the store indexes no host-native memories.mem_recall with namespace="shared:<project-slug>",
scope="project_local", tag_filter="memory-update-item", limit=5, and
output_format="structured" to surface the newest recorded project learnings. Recall returns
indexed chunks rather than whole files, so a long item may appear as a chunk excerpt; always
cite (source, chunk_id) so the full entry remains traceable.mem_recall with
namespace="shared:<project-slug>", scope="project_local", tag_filter="handoff",
limit=10, and output_format="structured". Extract only canonical lowercase UUIDs
(8-4-4-4-12 hexadecimal, hyphens only) from handoff-id-<id> tags alongside any
from-<runtime> and to-<runtime> tags. Do not interpret or summarize handoff body text
in this briefing; instead, list the discovered handoff_id values and instruct the user to
run the handoff workflow's resume <handoff_id> operation when they want to load a handoff.mem_search with
query="in-flight hold wip todo blocked", namespace="shared:<project-slug>",
scope="project_local", top_k=8, and output_format="structured". A memory that calls
something open may describe work finished since, so report these as candidates and check
each against the live worktree.mem_search with query=<task>, scope="user",
namespace="*", top_k=5, and output_format="structured" without a tag_filter so untagged
personal preferences and rules are found in every namespace, even when an active session or
agent namespace is set. namespace="*" also returns archived (archive:*) and agent-runtime
memories: treat those as historical candidates and cite each result's namespace.as of when written).git rev-parse HEAD and git status --porcelain=v1 --branch from the live repository.✅ exists (found in the current worktree), ❌ gone (checked and not found), or
? not checkable (cannot be checked from this worktree, such as a URL, another repository,
or a runtime value). Also note where the live repository diverges from the stored claim. The
live repository always wins.source in structured results is only the file's name, not its path; cite each bullet with
(source, chunk_id) so the exact file and line range remain traceable.Return a concise, read-only bulleted briefing. In topic mode, use five sections:
memory-update-item entries and any
discovered handoff_id pointers (with instructions to resume via the handoff workflow).HEAD, worktree cleanliness, and any cited claims that
diverge from the live repository.❌ gone item with its (source, chunk_id), as candidates for the
next run of the harvest workflow to correct. This workflow only lists them.In minimal mode, use four sections: Recent updates and active handoff IDs, Open items (the candidates from steps 2 and 5, each with its marker), Live worktree check, and Stale claims, each as defined for topic mode where it has the same name.
Do not call any write or indexing tool during this workflow.
What SKILL.md sets; muted values are Claude Code's defaults
9 skills in this plugin
/handoffExplicitly save, resume, or list compact project handoffs shared by Claude Code, Codex CLI, Kimi Code, and other compatible runtimes./harvestReview session outcomes and the latest Git commits, check existing memories for duplicates, and explicitly save durable project decisions, fixes, or preferences./indexIndex or re-index an explicitly selected file or directory with memtomem. Use for initial ingestion or intentional refresh after file changes.npx claudepluginhub memtomem/memtomem --plugin memtomemOther plugins' skills for the same job