lp-migrate-memory
Skill8 starsChanged 5 months agoMITView on GitHub
Migrate legacy Claude Code auto-memory files into agentic-memory. TRIGGER when: user asks to migrate memories, port old memories, or has just installed agentic-memory on a project with existing built-in memories. DO NOT TRIGGER when: user is storing new memories, searching, or using memory normally.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/architecture.mdcCursor rule
- .cursor/rules/conventions.mdcCursor rule
- .cursor/rules/doctor.mdcCursor rule
- .cursor/rules/hooks.mdcCursor rule
- .cursor/rules/memory.mdcCursor rule
- .cursor/rules/verification.mdcCursor rule
- .cursor/rules/workflow.mdcCursor rule
- lp-enhanceSkill
- lp-enhanceSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
Call memory_search with the description or first 100 chars
- Distinctive: line 30
If a close match exists, mark as skip (duplicate)
- Very specific: line 42
Use frontmatter name as title, body as content, source: import.
- Distinctive: line 50
Do NOT delete original files.
- Distinctive: line 51
Do NOT migrate content derived from code (architecture, file structure).
- Distinctive: line 52
If unsure about value, migrate it.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Migrate Legacy Claude Code Memories
Migrate memory files from Claude Code's built-in auto-memory system into agentic-memory.
Phase 1: Discover
- Scan
~/.claude/projects/*/memory/*.mdfor directories matching the current project - The slug format is the absolute path with
/replaced by-(e.g.,-Users-john-projects-myapp) - Also check
~/.claude/projects/*/memory/team/*.mdfor team memories - Skip
MEMORY.md(it's an index file, not a memory)
Done when: you have a list of memory files to migrate.
Phase 2: Parse and Deduplicate
For each memory file:
- Parse YAML frontmatter:
name,description,type(user/feedback/project/reference) - Extract body content (everything after closing
---) - Call
memory_searchwith the description or first 100 chars - If a close match exists, mark as skip (duplicate)
Done when: each file is classified as migrate or skip.
Phase 3: Store
Map types and store each non-duplicate via memory_store:
user-> type: semantic, tags: [user, migrated], importance: 0.7feedback-> type: semantic, tags: [feedback, migrated], importance: 0.8project-> type: semantic, tags: [project, migrated], importance: 0.6reference-> type: semantic, tags: [reference, migrated], importance: 0.5
Use frontmatter name as title, body as content, source: import.
Adjust importance based on content (decisions and gotchas deserve higher).
Phase 4: Report
List what was migrated, skipped (duplicates), and failed.
Important:
- Do NOT delete original files. The user verifies first.
- Do NOT migrate content derived from code (architecture, file structure). That belongs in CLAUDE.md.
- If unsure about value, migrate it. The decay system prunes low-value memories naturally.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

