/segmem:importfrom segmem
Reconcile Claude Code's markdown memory (~/.claude/projects/<slug>/memory/*.md) with segmem. Use when a project has both, when the user says "import my memory" or "merge the memories", or when a wake contradicts something the markdown memory says.
Ships in segmem. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Two memories that don't know about each other drift and contradict. This skill moves what matters from the markdown files into segmem, once, and leaves the markdown side as a pointer.
The slug is the project path with every / turned into -:
ls ~/.claude/projects/$(pwd | tr / -)/memory/
MEMORY.md is the index; the other files each hold one fact with a
frontmatter type of user, feedback, project, or reference.
| Markdown type | segmem kind | Scope |
|---|---|---|
user | identity | global |
feedback about how the user works anywhere | identity | global |
feedback about this repo's rules | procedural | project |
project describing a standing rule or how something works | procedural | project |
project describing a decision, a root cause, or a handoff | episodic | project |
reference (a URL, a dashboard, a ticket) | procedural, with the URL in the text | project |
A workstream status ("in progress", "awaiting review", a list of open slices) is not a memory. Skip it: it fails the 30-day test.
segmem recall <two or three words from it>. If a live note already
covers the fact, skip the file. If a live note says something the file
contradicts, decide which is current by checking the repo, then supersede
the wrong one.note suggests. Date the text only when the
fact is about a past event.note refused as a duplicate.Work through the files in one pass and keep a tally: imported, skipped as status, skipped as already known, superseded.
When the pass is done, offer to replace the directory's contents with a
MEMORY.md that says memory lives in segmem and how to search it. Delete
nothing without the user's approval; the markdown files are theirs.
Give the tally, the ids of what landed, and the files you recommend removing. Record one episodic note for the import itself only if something about it would change a future decision (for example, a class of markdown memory that turned out to be all status).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mahuebel/segmem --plugin segmemOther plugins' skills for the same job
4 skills in this plugin
/compileMove a stable-and-hot segmem fact out of memory and into the repo in its strongest form (enforcement, then a skill, then CLAUDE.md, then docs). Use when wake or a <segmem-upkeep> block says a fact is "stable and hot" or "compile it into the repo", or when the user asks to make a memory permanent./orgThe org layer of segmem, a shared knowledge repo of one fact per file. Use when recall shows an (org) fact, when wake says a local fact matches a candidate or OVERRIDES an org fact, when the user asks to share a fact with the team, or to set up the repo with org-init./reviewHealth review of the segmem store: size, wake cost per project, pressure and where it comes from, duplicates, untagged facts, session bursts. Use when the user asks how memory is doing, says "review segmem" or "audit the store", or once a month.