一键导入
migrate-memory
Migrate from monolith CLAUDE.md to the three-file memory system (identity + state + log). Non-destructive — backs up the original first.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Migrate from monolith CLAUDE.md to the three-file memory system (identity + state + log). Non-destructive — backs up the original first.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Wire Gmail MCP server into the agent so it can read, search, and send emails. Optional — not core functionality.
Add Slack as a channel. Can replace WhatsApp entirely or run alongside it. Uses Socket Mode (no public URL needed).
Add Telegram as a channel. Can replace WhatsApp entirely or run alongside it. Also configurable as a control-only channel (triggers actions) or passive channel (receives notifications only).
Add Agent Swarm (Teams) support to Telegram. Each subagent gets its own bot identity in the group. Requires Telegram channel to be set up first (use /add-telegram). Triggers on "agent swarm", "agent teams telegram", "telegram swarm", "bot pool".
Add new capabilities or modify GhostClaw behavior. Use when user wants to add channels (Telegram, Slack, email input), change triggers, add integrations, modify the router, or make any other customizations. This is an interactive skill that asks questions to understand what the user wants.
Debug agent issues. Use when things aren't working, agent fails, authentication problems, or to understand how the system works. Covers logs, environment variables, sessions, and common issues.
| 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. |
Migrates an existing GhostClaw group from the single-file CLAUDE.md memory system to the structured three-file system.
CLAUDE.md to CLAUDE.md.backupmemory/identity.md — extracts soul, personality, user infomemory/state.md — extracts project status, current workmemory/log.md — empty, ready for the agent to start loggingCLAUDE.md to be instructions-only (no project data)Ask the user which group to migrate, or default to the main group:
GROUP_DIR="$GHOSTCLAW_GROUP_DIR"
cp "$GROUP_DIR/CLAUDE.md" "$GROUP_DIR/CLAUDE.md.backup"
Read the full file. Identify these sections:
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]
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]
# 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)
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.
Tell the user:
CLAUDE.md.backupmemory/identity.md, memory/state.md, memory/log.mdcp CLAUDE.md.backup CLAUDE.md && rm -rf memory/Restart GhostClaw so the agent picks up the new structure:
# macOS
launchctl kickstart -k gui/$(id -u)/com.ghostclaw
# Linux
systemctl --user restart ghostclaw