migrate-memory
b1rdmania/ghostclaw/.claude/skills/migrate-memory/SKILL.md
Migrate from monolith CLAUDE.md to the three-file memory system (identity + state + log). Non-destructive — backs up the original first.
Skill91 starsChanged 5 months ago
- Deletes or force-pushes
What's in it
- Migrate Memory
- What it does
- Steps
- 1. Identify the group folder
- 2. Back up
- 3. Read the existing CLAUDE.md
- 4. Create memory/identity.md
- 5. Create memory/state.md
- 6. Create memory/log.md
- 7. Rewrite CLAUDE.md
- 8. Confirm
- 9. Restart
--- name: migrate-memory description: Migrate from monolith CLAUDE.md to the three-file memory system (identity + state + log). Non-destructive — backs up the original first. --- # Migrate Memory Migrates an existing GhostClaw group from the single-file CLAUDE.md memory system to the structured three-file system. ## What it does 1. Backs up the current `CLAUDE.md` to `CLAUDE.md.backup` 2. Creates `memory/identity.md` — extracts soul, personality, user info 3. Creates `memory/state.md` — extracts project status, current work 4. Creates `memory/log.md` — empty, ready for the agent to start logging 5. Rewrites `CLAUDE.md` to 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: ```bash GROUP_DIR="$GHOSTCLAW_GROUP_DIR" ``` ### 2. Back up ```bash 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: ```markdown # 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: ```markdown # 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 ```markdown # 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: ```markdown # 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: ```bash # macOS launchctl kickstart -k gui/$(id -u)/com.ghostclaw # Linux systemctl --user restart ghostclaw ```
More agent context in b1rdmania/ghostclaw
55 other files this repository gives its agents.
Skill
- ab-test-setup.claude/skills/ab-test-setup/SKILL.md
- ad-creative.claude/skills/ad-creative/SKILL.md
- add-discord.claude/skills/add-discord/SKILL.md
- add-gmail-agent.claude/skills/add-gmail-agent/SKILL.md
- add-heartbeat.claude/skills/add-heartbeat/SKILL.md
- add-morning-briefing.claude/skills/add-morning-briefing/SKILL.md
- add-slack.claude/skills/add-slack/SKILL.md
- add-telegram.claude/skills/add-telegram/SKILL.md
- add-telegram-swarm.claude/skills/add-telegram-swarm/SKILL.md
- add-update-check.claude/skills/add-update-check/SKILL.md
- add-voice-reply.claude/skills/add-voice-reply/SKILL.md
- add-voice-transcription.claude/skills/add-voice-transcription/SKILL.md
- ai-seo.claude/skills/ai-seo/SKILL.md
- analytics-tracking.claude/skills/analytics-tracking/SKILL.md
- churn-prevention.claude/skills/churn-prevention/SKILL.md
- cold-email.claude/skills/cold-email/SKILL.md
- competitor-alternatives.claude/skills/competitor-alternatives/SKILL.md
- content-strategy.claude/skills/content-strategy/SKILL.md
- copy-editing.claude/skills/copy-editing/SKILL.md
- copywriting.claude/skills/copywriting/SKILL.md
- customize.claude/skills/customize/SKILL.md
- debug.claude/skills/debug/SKILL.md
- design.claude/skills/design/SKILL.md
- domain-check.claude/skills/domain-check/skill.md
- email-sequence.claude/skills/email-sequence/SKILL.md
- form-cro.claude/skills/form-cro/SKILL.md
- free-tool-strategy.claude/skills/free-tool-strategy/SKILL.md
- get-qodo-rules.claude/skills/get-qodo-rules/SKILL.md
- launch-strategy.claude/skills/launch-strategy/SKILL.md
- marketing-ideas.claude/skills/marketing-ideas/SKILL.md
- marketing-psychology.claude/skills/marketing-psychology/SKILL.md
- onboarding-cro.claude/skills/onboarding-cro/SKILL.md
- page-cro.claude/skills/page-cro/SKILL.md
- paid-ads.claude/skills/paid-ads/SKILL.md
- paywall-upgrade-cro.claude/skills/paywall-upgrade-cro/SKILL.md
- popup-cro.claude/skills/popup-cro/SKILL.md
- pr-babysitter.claude/skills/pr-babysitter/SKILL.md
- pricing-strategy.claude/skills/pricing-strategy/SKILL.md
- product-marketing-context.claude/skills/product-marketing-context/SKILL.md
- programmatic-seo.claude/skills/programmatic-seo/SKILL.md
- qodo-pr-resolver.claude/skills/qodo-pr-resolver/SKILL.md
- referral-program.claude/skills/referral-program/SKILL.md
- revops.claude/skills/revops/SKILL.md
- run-ralph.claude/skills/run-ralph/SKILL.md
- sales-enablement.claude/skills/sales-enablement/SKILL.md
- schema-markup.claude/skills/schema-markup/SKILL.md
- seo-audit.claude/skills/seo-audit/SKILL.md
- setup-ghostclaw.claude/skills/setup-ghostclaw/SKILL.md
- setup-shared-folder.claude/skills/setup-shared-folder/SKILL.md
- setup.claude/skills/setup/SKILL.md
- signup-flow-cro.claude/skills/signup-flow-cro/SKILL.md
- site-architecture.claude/skills/site-architecture/SKILL.md
- social-content.claude/skills/social-content/SKILL.md
- update-ghostclaw.claude/skills/update-ghostclaw/SKILL.md
- update-nanoclaw.claude/skills/update-nanoclaw/SKILL.md
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool public_context_discussion, action report. How to connect one.

