migrate-memory
Skill91 starsChanged 7 months agoMITView on GitHub
Migrate from monolith CLAUDE.md to the three-file memory system (identity + state + log). Non-destructive — backs up the original first.
- Deletes or force-pushes
4 other projects use a version of this.
Adopted by
Most recently taken up by
- prathish-ks/isthmustheir own version, first seen Oct 6, 2026
- nanocoai/nanoclawtheir own version, first seen Oct 4, 2026
- TomGranot/groupguardtheir own version, first seen Sep 3, 2026
- corygabrielsen/skillstheir own version, first seen May 19, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- nanocoai/nanoclaw★ 31ksame name
- TomGranot/groupguard★ 4same name
- prathish-ks/isthmus★ 2same name
- corygabrielsen/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository55 other files it gives its agents.
- ab-test-setupSkill
- ad-creativeSkill
- add-discordSkill
- add-gmail-agentSkill
- add-heartbeatSkill
- add-morning-briefingSkill
- add-slackSkill
- add-telegramSkill
- add-telegram-swarmSkill
- add-update-checkSkill
- add-voice-replySkill
- add-voice-transcriptionSkill
- ai-seoSkill
- analytics-trackingSkill
- churn-preventionSkill
- cold-emailSkill
- competitor-alternativesSkill
- content-strategySkill
- copy-editingSkill
- copywritingSkill
- customizeSkill
- debugSkill
- designSkill
- domain-checkSkill
- email-sequenceSkill
- form-croSkill
- free-tool-strategySkill
- get-qodo-rulesSkill
- launch-strategySkill
- marketing-ideasSkill
- marketing-psychologySkill
- onboarding-croSkill
- page-croSkill
- paid-adsSkill
- paywall-upgrade-croSkill
- popup-croSkill
- pr-babysitterSkill
- pricing-strategySkill
- product-marketing-contextSkill
- programmatic-seoSkill
- qodo-pr-resolverSkill
- referral-programSkill
- revopsSkill
- run-ralphSkill
- sales-enablementSkill
- schema-markupSkill
- seo-auditSkill
- setup-ghostclawSkill
- setup-shared-folderSkill
- setupSkill
- signup-flow-croSkill
- site-architectureSkill
- social-contentSkill
- update-ghostclawSkill
- update-nanoclawSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Ask the user which group to migrate, or default to the main group:
- Distinctive: line 36
Read the full file. Identify these sections:
- Distinctive: line 102
If the template doesn't exist, use this structure:
- Distinctive: line 141
Keep the Communication, File Paths, Scheduling Tasks, and Global Memory sections from the template.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Migrate Memory
Migrates an existing GhostClaw group from the single-file CLAUDE.md memory system to the structured three-file system.
What it does
- Backs up the current
CLAUDE.mdtoCLAUDE.md.backup - Creates
memory/identity.md— extracts soul, personality, user info - Creates
memory/state.md— extracts project status, current work - Creates
memory/log.md— empty, ready for the agent to start logging - Rewrites
CLAUDE.mdto be instructions-only (no project data)
Steps
1. Identify the group folder
Ask the user which group to migrate, or default to the main group:
GROUP_DIR="$GHOSTCLAW_GROUP_DIR"2. Back up
cp "$GROUP_DIR/CLAUDE.md" "$GROUP_DIR/CLAUDE.md.backup"3. Read the existing CLAUDE.md
Read the full file. Identify these sections:
- Soul/personality — voice, tone, communication style
- About the user — name, location, projects, key people
- About the agent — name, machine, accounts, capabilities
- Project status — active projects, parked projects, shipped work
- Admin/technical — file paths, IPC, scheduling, group management
4. Create memory/identity.md
Extract soul + user info + agent info into this structure:
# Identity
## Soul
[paste soul/personality section]
## About the User
[paste user details]
## About Me
[paste agent details — name, machine, accounts]5. Create memory/state.md
Extract project status into this structure:
# Current State
Last updated: [today's date]
## Active Projects
[active projects with current status]
## Parked
[inactive/shipped projects]
## Recent Decisions
[leave empty — agent will start populating this]6. Create memory/log.md
# Log
Append-only. Most recent first. Never edit old entries — only prepend new ones.
---
## [today's date]
- Migrated to three-file memory system (identity + state + log)7. Rewrite CLAUDE.md
Replace the CLAUDE.md with the instructions-only template from .claude/skills/setup-ghostclaw/templates/CLAUDE.md.
If the template doesn't exist, use this structure:
# Assistant
You are a personal AI assistant running on a dedicated machine.
## Memory
Your memory lives in `memory/`. Read these files at the start of every conversation:
| File | What it is | How it changes |
|------|-----------|----------------|
| `memory/identity.md` | Who you are, who the user is, personality | Rarely — only when facts change |
| `memory/state.md` | Active projects, current status, recent decisions | After every meaningful conversation |
| `memory/log.md` | Append-only history of what happened and when | Prepend new entries, never edit old ones |
**CRITICAL — Before responding to ANY message, you MUST use the Read tool to read `memory/state.md`.** Do this BEFORE generating any response. If you skip this step, your answers will be wrong.
On your **first message of a session only**, also read `memory/identity.md`. You don't need to re-read it after that — identity rarely changes.
### When to update memory
**Update `memory/state.md`** when:
- A project's status changes (started, shipped, paused, blocked)
- New project or work stream begins
- A decision is made that affects what you're working on
- Update the "Last updated" date when you edit this file
**Prepend to `memory/log.md`** when:
- Work is completed (shipped a feature, sent emails, finished research)
- A significant decision is made (chose a tool, changed direction, agreed on a plan)
- Format: `## YYYY-MM-DD` header, bullet points underneath, most recent first
**Don't log** routine messages, simple Q&A, or work that didn't change anything.
**Don't put project details in this file.** This file is for instructions. Memory lives in `memory/`.Keep the Communication, File Paths, Scheduling Tasks, and Global Memory sections from the template.
8. Confirm
Tell the user:
- Backup saved to
CLAUDE.md.backup - Memory split into
memory/identity.md,memory/state.md,memory/log.md - CLAUDE.md rewritten as instructions-only
- To revert:
cp CLAUDE.md.backup CLAUDE.md && rm -rf memory/
9. Restart
Restart GhostClaw so the agent picks up the new structure:
# macOS
launchctl kickstart -k gui/$(id -u)/com.ghostclaw
# Linux
systemctl --user restart ghostclawDoes 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.

