migrate-openclaw
Skill2 starsChanged 7 months agoApache-2.0View on GitHub
Migrate an OpenClaw/SoulClaw workspace to Claude Code. Triggers on: migrate openclaw, openclaw to claude code, convert openclaw, import openclaw, switch from openclaw.
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- claude-world/claude-agenttheir own version, first seen Mar 22, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- claude-world/claude-agent★ 5same 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 repository4 other files it gives its agents.
- persona-managerSkill
- soul-rollbackSkill
- soulscanSkill
- swarm-memorySkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Search for OpenClaw workspace in this order.
- Distinctive: line 31
Read every file in the source.
- Very specific: line 88
Keep name and description from YAML frontmatter
- Very specific: line 89
Remove metadata.openclaw block (requires.bins, requires.env)
- Very specific: line 90
If skill had requires.bins, add note: "Requires: [tool names]"
- Very specific: line 91
If skill had requires.env, add note: "Environment variables: [var names]"
- Distinctive: line 92
Keep all other content as-is
- Very specific: line 128
Important: If CLAUDE.md already exists, append a ## Migrated from OpenClaw section instead of overwriting.
- Distinctive: line 132
Before executing, display a summary:
- Distinctive: line 167
Wait for explicit confirmation before executing.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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 OpenClaw to Claude Code
Converts an OpenClaw workspace into a Claude Code project while preserving Soul Spec compatibility. Unlike a destructive migration, this keeps files portable — they work in both OpenClaw and Claude Code.
When to activate
- User says "migrate openclaw", "switch from openclaw", "convert openclaw"
- User provides an OpenClaw workspace path and wants to use Claude Code
- User asks about moving from OpenClaw/SoulClaw to Claude Code
Phase 1: Detect Source
Search for OpenClaw workspace in this order. Stop at first match:
- Current directory — look for
SOUL.md+AGENTS.md,openclaw.json, or.openclaw/ - Default location — check
~/.openclaw/workspace/ - GitHub URL — if user provides a repo URL, clone to temp dir first
- Ask — if nothing found, prompt user for path
Confirmation markers:
SOUL.mdalongsideAGENTS.mdorUSER.mdopenclaw.json.openclaw/directory
Phase 2: Scan & Categorize
Read every file in the source. Categorize into three buckets:
MIGRATE — Becomes part of Claude Code project
| Source File | Destination | Method |
SOUL.md | ./SOUL.md | Copy as-is (project root, NOT renamed) |
IDENTITY.md | ./IDENTITY.md | Copy as-is |
USER.md | ./USER.md | Copy as-is |
AGENTS.md | ./AGENTS.md | Copy, then clean (see Cleaning Rules) |
MEMORY.md | ./MEMORY.md | Copy as-is |
memory/*.md | ./memory/ | Copy all files |
STYLE.md | ./STYLE.md | Copy if exists |
TOOLS.md | ./TOOLS.md | Copy if exists, strip OpenClaw-specific tool configs |
Custom skills (skills/*/SKILL.md) | .claude/skills/*/SKILL.md | Convert (see Skill Conversion) |
ARCHIVE — Moved to _openclaw_archive/ (nothing lost)
openclaw.json(gateway config)credentials/(channel tokens)agents/*/sessions/(old transcripts)devices/(mobile node pairings)logs/(gateway logs).openclaw/(internal state)cron/(scheduled jobs)BOOTSTRAP.md(first-run ritual)HEARTBEAT.md(periodic task config)- Channel config files (
*-allowFrom.json)
SKIP — Not touched
.git/node_modules/- Files unrelated to OpenClaw
Phase 3: AGENTS.md Cleaning Rules
Strip OpenClaw-specific directives. Keep universal rules.
Remove:
- Heartbeat instructions (check pending work, HEARTBEAT_OK)
- Gateway commands (openclaw gateway start/stop/restart)
- Channel routing rules (Telegram/Discord/Signal-specific routing)
- OpenClaw tool references (sessions_spawn, nodes, canvas)
- SoulClaw config references (openclaw.json settings)
Keep:
- Work style rules (commit frequently, test before reporting)
- Safety rules (no destructive commands, trash > rm)
- Communication preferences (language, tone, brevity)
- Memory management rules (topic files, daily logs, compaction)
- Git conventions (commit messages, branch strategy)
Phase 4: Skill Conversion
OpenClaw skills → Claude Code skills (same markdown, minor cleanup):
- Keep
nameanddescriptionfrom YAML frontmatter - Remove
metadata.openclawblock (requires.bins, requires.env) - If skill had
requires.bins, add note: "Requires: [tool names]" - If skill had
requires.env, add note: "Environment variables: [var names]" - Keep all other content as-is
- Write to
.claude/skills/<skill-name>/SKILL.md
Phase 5: CLAUDE.md Generation
Generate a lean CLAUDE.md that references files (NOT inlines them):
# [Agent Name] — Claude Code Project
## Persona
Read `SOUL.md` for personality, values, and communication style.
Read `IDENTITY.md` for agent name, role, and metadata.
## Operating Rules
See `AGENTS.md` for work rules, safety guidelines, and conventions.
## User Context
See `USER.md` for information about the human you're helping.
## Memory Rules
- Session start: read MEMORY.md + recent memory/*.md files
- Important decisions/discoveries → memory/YYYY-MM-DD.md (daily log)
- Long-running project context → memory/topic-<project>.md
- Long-term knowledge (contacts, architecture, rules) → promote to MEMORY.md
- Topic files: History max 30 lines, Decisions max 50 lines
- Before context gets full: save unsaved knowledge to memory files
## Memory
Previous context stored in `MEMORY.md` and `memory/` directory.
Search with: `/clawsouls:memory search "<query>"`
## Migrated Skills
[List each: - `<skill-name>` — <description>]Important: If CLAUDE.md already exists, append a ## Migrated from OpenClaw section instead of overwriting.
Phase 6: Preview & Confirm
Before executing, display a summary:
📋 Migration Plan
═══════════════════════════════════════
Source: ~/.openclaw/workspace/
MIGRATE (to project root):
✅ SOUL.md → ./SOUL.md
✅ IDENTITY.md → ./IDENTITY.md
✅ AGENTS.md → ./AGENTS.md (cleaned)
✅ MEMORY.md → ./MEMORY.md
✅ memory/ (12 files) → ./memory/
✅ skills/weather/ → .claude/skills/weather/
ARCHIVE (to _openclaw_archive/):
📦 openclaw.json
📦 credentials/ (3 files)
📦 HEARTBEAT.md
SKIP:
⏭️ .git/
⚠️ NOT migrated (no Claude Code equivalent):
- Heartbeat/cron jobs → use external cron
- Channel routing → use --channels flag
- Multi-agent sessions → use Claude agents
Generate CLAUDE.md: Yes (new file)
Memory rules: Will be added to CLAUDE.md
Proceed? (yes/no/revise)Wait for explicit confirmation before executing.
Phase 7: Execute & Report
After confirmation:
- Create destination directories
- Copy/convert files per the plan
- Archive infrastructure files
- Generate CLAUDE.md
- Display final report:
✅ Migration Complete
═══════════════════════════════════════
Files migrated: 18
Files archived: 7
Skills converted: 2
CLAUDE.md: Created
Your Soul Spec files are portable — they still work
with OpenClaw, Cursor, Windsurf, or any MCP client.
Next steps:
1. Review CLAUDE.md and adjust as needed
2. Install ClawSouls MCP for memory search:
Add to .mcp.json: {"soul-spec": {"command": "npx", "args": ["soul-spec-mcp@0.5.0"]}}
3. Launch: claude --plugin-dir ~/.claude/clawsouls-plugin
4. Delete _openclaw_archive/ when you're confidentKey Differences from Other Migration Tools
- Files stay in project root — SOUL.md stays SOUL.md, not
KNOWLEDGE BASE/soul.md - Soul Spec portable — migrated files work in OpenClaw, Cursor, Windsurf, anywhere
- Memory rules included — CLAUDE.md gets memory management rules so the agent persists knowledge
- Non-destructive — originals archived, nothing deleted
- MCP integration — recommends soul-spec-mcp for ongoing memory search + SoulScan
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.

