/gmem-tools:gmem-migratefrom gmem-tools
Migrates memory from older gmem/typmem or crew layouts into the current gmem structure. Shows a dry-run plan first and never deletes files. Manual-only, invoked as /gmem-migrate.
Ships in gmem-tools. 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.
Read when SKILL.md points to them.
Move memory that was written for an older layout into the one the gmem plugin reads
today. This touches many files at once, so it is manual-only, and it always shows the
plan before changing anything.
Resolve the gmem config first, using the rules in gmem-setup. If there is no
config, offer to run the gmem-setup interview before going further — where memory
should end up is the first decision of a migration. Then:
Each <kind> below means <location.<kind>>/<memory_dir>/<kind>/, as the config
says. Only if there is still no config file after that offer, use the default: all seven
under ~/.gmem/<kind>/ (Central memory).
<memory>/
├── active/
│ ├── index.md one table per category: file → when to read it
│ ├── correction/ <topic>.md, lessons.md
│ └── reference/ <topic>.md
└── YYYY-MM-DD_HHMM_<topic>.md ledger
<note>/ YYYY-MM-DD_HHMM_<topic>.md frontmatter `status: in-progress | blocked | done`
<rules>/ index.md + <topic>.md
<precedents>/ index.md + <slug>.md
<learnings>/ <slug>.md
<proposals>/ <slug>.md
<retro>/ YYYY-MM-DD-<slug>.md
Every index.md row is | <file> | <when to read it> |.
gmem was called typmem before. Old installs use typmem in folder and skill
names.
| Old | Detect | Migrate to |
|---|---|---|
| typmem folders | .typmem/memory/ or .typmem/note/ under the project, ~/, or a custom location | Split by kind: rules.md, precedents/, learnings/, proposals/, retro/ go to <rules>, <precedents>, <learnings>, <proposals>, <retro>; ledger entries and active/ go to <memory>; notes go to <note> |
Old rules.md (any of the above) | the file exists | Split by topic into <rules>/<topic>.md (propose the split; the user confirms — rules are human-owned) and write <rules>/index.md |
precedents/ without an index | no precedents/index.md, or files missing from it | Write the missing rows; draft each "when to read" from the file, user confirms |
| Old skill names | typmem-*, typ-wait-listen-me, typ-wrap-up-memory in CLAUDE.md / AGENTS.md | Rename to gmem-*; typ-wait-listen-me → gmem-stop, typ-wrap-up-memory → gmem-bye |
| Old CLAUDE.md block | a long ## Memory (typmem) or ## Memory (gmem) section (memory shapes, authority, skill list, rhythm) instead of the short pointer to gmem-map in the current README | Show the diff; replace the section with the pointer only if the user agrees. Anything in it that isn't in gmem-map (a project-specific addition), point out and keep |
locker/)| Old | Detect | Migrate to |
|---|---|---|
locker/memory/active/<topic>.md (flat) | topic files directly under active/ | Classify each as correction/ or reference/ (propose; user confirms), move it, then rebuild active/index.md |
locker/memory/active/index.md | exists | Use its "when to read" text for the new rows; replace the file with the rebuilt index |
locker/memory/*.md ledger, dated | name starts with a date | Move into <memory>/ as-is. Ledger entries are dated records — never rewrite their content |
locker/memory/*.md, undated (e.g. ground-mode.md) | name has no date | Ask per file: ledger (keep the name, move into <memory>/), or current understanding (move into active/correction/ or active/reference/) |
locker/memory/index.md | exists | Drop from the target; its rows feed active/index.md where they still apply. Keep the original under the source (nothing is deleted) |
locker/note/*.md | any note file | Move into <note>/, rename to YYYY-MM-DD_HHMM_<topic>.md (YYYY-MM-DD-<topic>.md becomes YYYY-MM-DD_0000_<topic>.md; the date stays the note's creation date), and add status: frontmatter — infer it from the body (open items → in-progress, waiting on someone → blocked, all done → done) and let the user confirm |
locker/note/index.md, locker/note/tmp/ | exist | Not part of the gmem layout. Leave in place and report |
| Crew skill names | crew-note, crew-memory, crew-good-bye in CLAUDE.md / AGENTS.md | Rename to gmem-note, gmem-memory, gmem-bye, only after asking — these skills may still be installed and in use |
The crew source is locker/ under the project by default; ask for the path if it isn't
there.
memory -> /path/to/project/.gmem/memory
note -> /path/to/project/.gmem/note
rules -> /Users/you/.gmem/rules
precedents -> /Users/you/.gmem/precedents
learnings -> /Users/you/.gmem/learnings
proposals -> /Users/you/.gmem/proposals
retro -> /Users/you/.gmem/retro
old → new), each new
or rebuilt index, each rename in CLAUDE.md / AGENTS.md, and a count of decisions
that need the user.rules.md, a note's status, whether an
undated file is ledger or active. Do not batch them into one wall of questions.git mv when source and target are in the same git repo, so history follows.
Otherwise copy, and tell the user the source can be removed by hand once they've
checked the result.<memory>/YYYY-MM-DD_HHMM_gmem-migrate.md: sources,
what moved where, which decisions the user made, and (in git) the pre-migration
commit to recover anything from (git show <sha>:<path>).<rules>, <precedents> and <memory>/active/ has a row in its index.md,
and every row points at a file that exists;status.
Then suggest running gmem-tidy to check content now that the layout is right.rules.md moves its text; it doesn't
reword it.CLAUDE.md / AGENTS.md without asking, and don't touch other
sections of those files.gmem-tidy's job, after migration.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
memory-migration, gmem, typmem, crew-layout, file-organization
Other plugins' skills for the same job
npx claudepluginhub thaitype/gmem --plugin gmem-tools