Skip to content
Back to skills

Migrate Memory

ASecurity

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.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
development

Works with

  • claude code
  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add missing-bits/claude-plugins --skill migrate-memory --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Migrate Memory?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Migrate Memory
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/missing-bits-migrate-memory/badge)](https://www.skillsdirectory.com/skills/missing-bits-migrate-memory)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Files in this skill

  • SKILL.md4 KB
  • evals/trigger-evals.json1.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.