/segmem:compilefrom segmem
Move 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.
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.
A fact that was confirmed once and came under pressure again has proven two things: it's stable, and it's load-bearing. Memory is the staging ground, not the archive. Its home is the repo, where everyone looks and where a tool can enforce it.
Run segmem recall <its id> or read it from the wake line. Then grep the
repo for its key words. It may already be there; if so, skip to the
pointer step.
Work down this ladder and stop at the first rung that holds. Each rung is a question about the fact, not about effort.
engine-strict in .npmrc for "use pnpm, not npm"; a lint
rule for a forbidden import; a CI step for a check people skip; a type
for a value with a fixed set; a test for a behavior that regressed; a git
hook for a commit rule. The fact stops needing to be remembered at all.SKILL.md with a trigger description, loaded only when it applies.~/.claude/CLAUDE.md.Prefer the rung that removes the need for memory over the rung that restates the memory in another file.
Make the change in the repo. Keep it minimal: one config line, one rule, one paragraph. Do not commit unless the user asked; say what you changed.
Replace the note with one that says where the fact now lives, so recall still finds the trail:
segmem note procedural "<the fact in one clause>: now enforced by <file>" \
--supersedes=<id> --entities=<the same entities>
If the repo cannot hold the fact (private context, another team's repo, a fact about a person), keep it in memory instead and stop the export ask:
segmem touch <id> --keep
Say which rung held, what file changed, and the new note id.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 skills in this plugin
/importReconcile 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./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.npx claudepluginhub mahuebel/segmem --plugin segmem