agentleFS
mboss37mboss37/claude-launchpad/.claude/skills/lp-migrate-memory/SKILL.md

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.

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
  1. Very specific:

    Call memory_search with the description or first 100 chars

    line 29
  2. Distinctive:

    If a close match exists, mark as skip (duplicate)

    line 30
  3. Very specific:

    Use frontmatter name as title, body as content, source: import.

    line 42
  4. Distinctive:

    Do NOT delete original files.

    line 50
  5. Distinctive:

    Do NOT migrate content derived from code (architecture, file structure).

    line 51
  6. Distinctive:

    If unsure about value, migrate it.

    line 52

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Migrate Legacy Claude Code Memories

Migrate memory files from Claude Code's built-in auto-memory system into agentic-memory.

Phase 1: Discover

  1. Scan ~/.claude/projects/*/memory/*.md for directories matching the current project
  2. The slug format is the absolute path with / replaced by - (e.g., -Users-john-projects-myapp)
  3. Also check ~/.claude/projects/*/memory/team/*.md for team memories
  4. 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:

  1. Parse YAML frontmatter: name, description, type (user/feedback/project/reference)
  2. Extract body content (everything after closing ---)
  3. Call memory_search with the description or first 100 chars
  4. 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.7
  • feedback -> type: semantic, tags: [feedback, migrated], importance: 0.8
  • project -> type: semantic, tags: [project, migrated], importance: 0.6
  • reference -> 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.