Install
openclaw skills install @tomleelive/clawsoulsManage AI agent personas (Souls) for OpenClaw. Installs/switches/restores persona files in the agent workspace, searches and publishes to the clawsouls.ai registry (network + token auth), optionally syncs encrypted agent memory via Git (explicit sync/swarm commands only), and detects the local agent platform. Use only when the user explicitly asks to manage personas — e.g. "install a soul", "switch persona to X", "list souls", "restore my previous soul", "publish my soul", or "login to clawsouls". Workspace-modifying and publishing actions should be confirmed with the user first.
openclaw skills install @tomleelive/clawsoulsManage Soul packages that define an AI agent's personality, behavior, and identity.
Souls use owner/name namespacing (e.g., clawsouls/surgical-coder, TomLeeLive/my-soul).
Ensure clawsouls CLI is available:
npx clawsouls --version
If not installed, install globally:
npm install -g clawsouls
Current version: v0.6.4
npx clawsouls install clawsouls/surgical-coder
npx clawsouls install clawsouls/surgical-coder --force # overwrite existing
npx clawsouls install clawsouls/surgical-coder@0.1.0 # specific version
80+ souls available. Browse all at https://clawsouls.ai
Official souls (owner: clawsouls):
npx clawsouls use clawsouls/surgical-coder
npx clawsouls restore
Reverts to the most recent backup created by use.
npx clawsouls list
Shows installed souls in owner/name format.
npx clawsouls init my-soul
Scaffolds a new soul directory with soul.json, SOUL.md, IDENTITY.md, AGENTS.md, HEARTBEAT.md, README.md.
npx clawsouls export claude-md # generate CLAUDE.md from current workspace soul files
npx clawsouls export system-prompt # generate a system prompt string
Combines SOUL.md, IDENTITY.md, AGENTS.md, HEARTBEAT.md, STYLE.md into a single file. Useful for Claude Code, Cursor, Windsurf, and other tools that use a single config file.
npx clawsouls version bump patch # 1.0.0 → 1.0.1
npx clawsouls version bump minor # 1.0.0 → 1.1.0
npx clawsouls version bump major # 1.0.0 → 2.0.0
npx clawsouls diff # colored diff of soul files
npx clawsouls test # Level 1 (schema) + Level 2 (soulscan)
npx clawsouls test --level 3 # + Level 3 (behavioral LLM tests)
Level 3 requires soul.test.yaml in the soul directory and an LLM provider (OpenAI/Anthropic/Ollama).
npx clawsouls doctor # 12 environment checks
npx clawsouls migrate # migrate soul from v0.3 → v0.4 → v0.5
npx clawsouls search "engineer" # search souls from registry
npx clawsouls info clawsouls/brad # show soul metadata
npx clawsouls update # update installed soul to latest
npx clawsouls validate ./my-soul/
npx clawsouls validate --soulscan ./my-soul/ # with SoulScan security analysis
npx clawsouls check ./my-soul/ # alias
Validates against the spec: schema, required files. Add --soulscan for full security & quality analysis with scoring. Also runs automatically before publish.
npx clawsouls soulscan # scan current OpenClaw workspace
npx clawsouls soulscan ./my-soul/ # scan a specific directory
npx clawsouls soulscan --init # initialize baseline checksums
npx clawsouls soulscan -q # quiet mode for cron (SOULSCAN_OK / SOULSCAN_ALERT)
npx clawsouls scan # alias
SoulScan checks active soul files for:
Cron usage — periodic tamper detection:
# Run every hour to monitor workspace integrity
npx clawsouls soulscan -q
# Exit code 0 = OK, 1 = alert (tampered or security issue)
First run: Use --init to establish baseline checksums without triggering alerts.
SOULSCAN™ — Score: 0-100, Grades: Verified (90+) / Low Risk (70+) / Medium Risk (40+) / High Risk / Blocked
export CLAWSOULS_TOKEN=<token>
npx clawsouls publish ./my-soul/
Publishes to username/soul-name namespace automatically. Requires authentication token. Runs validation automatically before publishing — blocks on failure.
npx clawsouls login
Instructions to get API token: Sign in at https://clawsouls.ai → Dashboard → Generate API Token.
npx clawsouls install clawsouls/surgical-codernpx clawsouls use clawsouls/surgical-codersoulclaw gateway restart to apply the new persona/new in chat to clear previous persona context from conversation historynpx clawsouls restorenpx clawsouls login → get token from dashboardexport CLAWSOULS_TOKEN=<token>npx clawsouls init my-soul → edit filesnpx clawsouls publish ./my-soul/npx clawsouls sync # sync encrypted memory to/from GitHub
npx clawsouls swarm # multi-agent memory branch & merge system
Sync agent memory across machines via encrypted Git. Uses age encryption for local-first privacy.
npx clawsouls checkpoint # manage soul checkpoints
npx clawsouls checkpoint create # create a checkpoint of current soul state
npx clawsouls checkpoint list # list available checkpoints
npx clawsouls checkpoint restore # restore from a checkpoint
Checkpoint-based rollback for persona contamination detection and recovery.
npx clawsouls platform # show detected agent platform(s) and workspace path
npx clawsouls detect # alias
Detects which agent platform is running (OpenClaw, SoulClaw, ZeroClaw, etc.) and shows workspace paths.
For Claude Desktop or Cowork users, there's also a dedicated MCP server:
npx -y soul-spec-mcp
Or add to Claude Desktop config (claude_desktop_config.json):
{ "mcpServers": { "soul-spec": { "command": "npx", "args": ["-y", "soul-spec-mcp"] } } }
6 tools: search_souls, get_soul, install_soul, preview_soul, list_categories, apply_persona
GitHub: https://github.com/clawsouls/soul-spec-mcp
Full transparency on what this skill can touch — review before use in workspaces containing sensitive prompts, memories, or client data.
What this skill does:
use/restore/checkpoint replace persona files (SOUL.md, IDENTITY.md, AGENTS.md, HEARTBEAT.md, STYLE.md) in the agent workspace. An automatic backup is created before every use. USER.md, MEMORY.md, TOOLS.md are never overwritten.install/search/info/update talk to the clawsouls.ai registry. publish uploads your soul directory to a public registry.sync/swarm move agent memory to/from a Git remote you configure, encrypted locally with age before leaving the machine. These commands never run implicitly — only on explicit user request.platform/detect inspect the local environment to find the agent workspace path. Nothing is transmitted.publish uses CLAWSOULS_TOKEN (env var). Never echo it, commit it, or leave it in shell history.Ask the user before:
use — switching personas rewrites workspace identity files (routine requests like "change personality" should be confirmed once before files change)publish — uploads content publicly; list the files being uploaded firstsync/swarm — pushes (encrypted) memory to a remoteSafety recommendations: keep backups enabled (default), use soulscan to verify soul integrity after installs, and only install souls from owners you trust.
use, always remind the user to run soulclaw gateway restart and then /new to start a fresh session (old conversation history retains the previous persona's identity)use command creates automatic backups — data loss is unlikelyhttps://clawsouls.ai/souls/owner/nameCLAWSOULS_CDN=/path/to/soulsclawsouls.ai/ko/souls/...)