Move project-scoped facts about the current repo out of Claude Code's home-dir memory and into this project's Project-memory store (one direction, home-dir → project), routing each to Team or Private memory. Use ONLY when the developer explicitly asks to migrate or move their notes into the project (\"migrate memory\", \"move my notes to the project\", \"przenieś notatki do projektu\"). Not for team↔private rebalancing (that is memory-review-session) and not a routine memory write.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Migrate Memory?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/missing-bits-migrate-memory)
---
name: migrate-memory
description: "Move project-scoped facts about the current repo out of Claude Code's home-dir memory and into this project's Project-memory store (one direction, home-dir → project), routing each to Team or Private memory. Use ONLY when the developer explicitly asks to migrate or move their notes into the project (\"migrate memory\", \"move my notes to the project\", \"przenieś notatki do projektu\"). Not for team↔private rebalancing (that is memory-review-session) and not a routine memory write."
---
# migrate-memory
An operational skill that repairs routing: home-dir memory is where
project-scoped facts land on a miss, and this is the "moved later" the
core rule promises. One direction only — home-dir → project. Never commits.
## When it runs
Only on a direct request to migrate notes into the project. team ↔ private
rebalancing belongs to memory-review-session; a routine memory write is not a
trigger.
## Scan
First check for identity: when the Auto-memory redirect is active in this
environment (`autoMemoryDirectory` in `.claude/settings.local.json` equals
the realpath of `<project>/.claude/memory`), home-dir → Private is a no-op
— the two directories are one. Say so and skip the Private-memory
candidates; Team-memory moves are unaffected. Each environment keeps its
own Home-dir store, so run the migration where the notes live.
Read home-dir memory — the Home-dir store's `MEMORY.md` and entry files,
under `~/.claude/projects/<project>/memory/` by default. Candidates are facts
**project-scoped to the current repo**, judged by content. Cross-project and
personal facts stay in home-dir memory — do not propose them. When a fact's
scope is unclear, ask; never guess.
A `type:` of `user` or `feedback` — nested under `metadata:`, where the
harness writes it — hints that the fact may be personal rather than scoped to
this repository, so consider those entries last. The hint never decides: a
per-user fact ABOUT this repo belongs in Private memory, and content stays the
criterion.
## No store yet → offer adoption
If the project has no store, running this skill IS the signal of intent the
core rule requires: offer to create a part. Carry the tracked/ignored
first-create question for Team memory (Private is never asked — always
ignored). Declining adoption ends the skill with no writes.
## Per fact
Recommend move or leave. For a move, route per the core rule: team-relevant →
Team memory, per-user → Private memory. The developer decides each.
## Move mechanics
- Carry the shape across: a home-dir entry becomes a **note** or an
`idea-<slug>.md` per the conventions rule — shape is the criterion, the
`idea-` prefix authoritative. `description` moves over unchanged. `name`
and `metadata` do not survive as fields, but `name` carries the entry's
only title, so it becomes the new entry's H1 and its slug the filename —
dropped as a field, kept as information. Add the plugin's own fields per
the conventions rule.
- Project the entry's line into the target part's `MEMORY.md` — link text
from its H1, summary from its `description`, per the conventions rule.
- Delete the home-dir body file and its line in the Home-dir store's
`MEMORY.md`.
- `ticket` frontmatter on a migrated idea only when the project keeps that
convention (e.g. via working-process).
## Collision
If a fact already has a counterpart in the project store, the project store
wins: offer to merge into the project entry and remove the home-dir copy.
## Migration trace
After moving one or more facts, leave a single roll-up line in the Home-dir store's
`MEMORY.md` — "project-scoped notes for <repo> migrated to its Project memory, <date>"
— not a per-entry pointer.
The harness caps what it loads from that index — 200 lines / 25 KB, the
budget convention the conventions rule owns. Keep the trace to one line;
on a cap error shorten the index, never retry the write.
## Boundaries
One direction only. Never commits. Works without working-process — the
`ticket` convention applies only when the project keeps it.