ClawSouls — AI Persona Manager
Manage 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).
Prerequisites
Ensure clawsouls CLI is available:
CODEBLOCK0
If not installed, install globally:
CODEBLOCK1
Current version: v0.6.2
Commands
Install a Soul
CODEBLOCK2
80+ souls available. Browse all at https://clawsouls.ai
Official souls (owner: clawsouls):
- - Development: code-reviewer, coding-tutor, debug-detective, api-architect, ml-engineer, sysadmin-sage, devops-veteran, gamedev-mentor, prompt-engineer, frontend-dev, backend-dev, mobile-dev, cloud-architect, database-admin, qa-engineer
- Writing & Content: tech-writer, storyteller, scifi-writer, copywriter, content-creator, journalist, poet, screenwriter, academic-writer
- Professional: data-analyst, project-manager, legal-advisor, startup-founder, hr-manager, marketing-strategist, sales-coach, product-manager
- Education: math-tutor, philosophy-prof, mentor-coach, science-tutor, history-prof, language-teacher, economics-tutor
- Creative: music-producer, ux-designer, chef-master, graphic-designer, video-editor, podcast-host, dungeon-master, game-designer
- Lifestyle: personal-assistant, fitness-coach, travel-guide, life-coach, meditation-guide, nutrition-advisor, productivity-guru, financial-planner
- Science: research-scientist, data-scientist
- Security: security-auditor
- MBTI: mbti-intj, mbti-intp, mbti-entj, mbti-entp, mbti-infj, mbti-infp, mbti-enfj, mbti-enfp, mbti-istj, mbti-isfj, mbti-estj, mbti-esfj, mbti-istp, mbti-isfp, mbti-estp, mbti-esfp
- Special: surgical-coder, korean-translator
- General: brad, minimalist
Activate a Soul
CODEBLOCK3
- - Automatically backs up current workspace files (SOUL.md, IDENTITY.md, AGENTS.md, HEARTBEAT.md, STYLE.md, examples/)
- Never overwrites USER.md, MEMORY.md, or TOOLS.md
- Requires gateway restart to take effect
Restore Previous Soul
CODEBLOCK4
Reverts to the most recent backup created by use.
List Installed Souls
CODEBLOCK5
Shows installed souls in owner/name format.
Create a New Soul
CODEBLOCK6
Scaffolds a new soul directory with soul.json, SOUL.md, IDENTITY.md, AGENTS.md, HEARTBEAT.md, README.md.
Export a Soul
CODEBLOCK7
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.
Version Management
CODEBLOCK8
Soul Testing (Phase 9)
CODEBLOCK9
Level 3 requires soul.test.yaml in the soul directory and an LLM provider (OpenAI/Anthropic/Ollama).
Doctor, Migrate, Search, Info, Update (Phase 10)
CODEBLOCK10
Validate a Soul
CODEBLOCK11
Validates against the spec: schema, required files. Add --soulscan for full security & quality analysis with scoring. Also runs automatically before publish.
SoulScan — Security & Integrity Scanner
CODEBLOCK12
SoulScan checks active soul files for:
- - Integrity: SHA-256 checksum comparison — detects tampering since last scan
- Security: 53 pattern checks (prompt injection, code execution, XSS, data exfiltration, privilege escalation, social engineering, harmful content, secret detection)
- Quality: File structure, content length, schema validation
- Persona Consistency: Cross-validates name/tone across SOUL.md, IDENTITY.md, soul.json
Cron usage — periodic tamper detection:
CODEBLOCK13
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
Publish a Soul
CODEBLOCK14
Publishes to username/soul-name namespace automatically. Requires authentication token. Runs validation automatically before publishing — blocks on failure.
Login / Get Token
CODEBLOCK15
Instructions to get API token: Sign in at https://clawsouls.ai → Dashboard → Generate API Token.
Workflow
Installing & Switching Personas
- 1. Browse — Check available souls at https://clawsouls.ai or suggest from the categorized list above
- Install — INLINECODE12
- Activate — INLINECODE13
- Restart — Run
soulclaw gateway restart to apply the new persona - New Session — Send
/new in chat to clear previous persona context from conversation history - Restore — If they want to go back, INLINECODE16
Publishing a Soul
- 1. Login —
npx clawsouls login → get token from dashboard - Set token — INLINECODE18
- Create —
npx clawsouls init my-soul → edit files - Publish — INLINECODE20
- Manage — Dashboard at https://clawsouls.ai/dashboard (delete, view downloads)
Memory Sync (Swarm)
CODEBLOCK16
Sync agent memory across machines via encrypted Git. Uses age encryption for local-first privacy.
Soul Checkpoints (Rollback)
CODEBLOCK17
Checkpoint-based rollback for persona contamination detection and recovery.
Platform Detection
CODEBLOCK18
Detects which agent platform is running (OpenClaw, SoulClaw, ZeroClaw, etc.) and shows workspace paths.
MCP Server (for Claude Desktop / Cowork)
For Claude Desktop or Cowork users, there's also a dedicated MCP server:
CODEBLOCK19
Or add to Claude Desktop config (claude_desktop_config.json):
CODEBLOCK20
6 tools: search_souls, get_soul, install_soul, preview_soul, list_categories, INLINECODE28
GitHub: https://github.com/clawsouls/soul-spec-mcp
Important Notes
- - After
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) - The
use command creates automatic backups — data loss is unlikely - Souls may include STYLE.md and examples/ for enhanced persona customization
- Published souls appear at INLINECODE33
- Users can leave reviews (1-5 stars) on any soul they don't own
- For custom registry (local testing), set env: INLINECODE34
- Website available in 5 languages: English, Korean, Japanese, Chinese, Spanish (e.g.,
clawsouls.ai/ko/souls/...) - Share any soul to your OpenClaw bot: the install command is included in the share text
- The Soul Thesis — Read the manifesto: https://clawsouls.ai/en/manifesto
- Research paper — "Soul-Driven Interaction Design": https://doi.org/10.5281/zenodo.18772585
- Legal: Privacy Policy · Terms of Service
ClawSouls — AI人格管理器
管理定义AI代理人格、行为和身份的灵魂包。
灵魂使用所有者/名称命名空间(例如,clawsouls/surgical-coder,TomLeeLive/my-soul)。
前提条件
确保clawsouls CLI可用:
bash
npx clawsouls --version
如果未安装,请全局安装:
bash
npm install -g clawsouls
当前版本:v0.6.2
命令
安装灵魂
bash
npx clawsouls install clawsouls/surgical-coder
npx clawsouls install clawsouls/surgical-coder --force # 覆盖现有
npx clawsouls install clawsouls/surgical-coder@0.1.0 # 特定版本
80+个灵魂可用。浏览所有灵魂请访问 https://clawsouls.ai
官方灵魂(所有者:clawsouls):
- - 开发: code-reviewer, coding-tutor, debug-detective, api-architect, ml-engineer, sysadmin-sage, devops-veteran, gamedev-mentor, prompt-engineer, frontend-dev, backend-dev, mobile-dev, cloud-architect, database-admin, qa-engineer
- 写作与内容: tech-writer, storyteller, scifi-writer, copywriter, content-creator, journalist, poet, screenwriter, academic-writer
- 专业: data-analyst, project-manager, legal-advisor, startup-founder, hr-manager, marketing-strategist, sales-coach, product-manager
- 教育: math-tutor, philosophy-prof, mentor-coach, science-tutor, history-prof, language-teacher, economics-tutor
- 创意: music-producer, ux-designer, chef-master, graphic-designer, video-editor, podcast-host, dungeon-master, game-designer
- 生活方式: personal-assistant, fitness-coach, travel-guide, life-coach, meditation-guide, nutrition-advisor, productivity-guru, financial-planner
- 科学: research-scientist, data-scientist
- 安全: security-auditor
- MBTI: mbti-intj, mbti-intp, mbti-entj, mbti-entp, mbti-infj, mbti-infp, mbti-enfj, mbti-enfp, mbti-istj, mbti-isfj, mbti-estj, mbti-esfj, mbti-istp, mbti-isfp, mbti-estp, mbti-esfp
- 特殊: surgical-coder, korean-translator
- 通用: brad, minimalist
激活灵魂
bash
npx clawsouls use clawsouls/surgical-coder
- - 自动备份当前工作区文件(SOUL.md, IDENTITY.md, AGENTS.md, HEARTBEAT.md, STYLE.md, examples/)
- 从不覆盖USER.md, MEMORY.md或TOOLS.md
- 需要重启网关才能生效
恢复之前的灵魂
bash
npx clawsouls restore
恢复到由use创建的最新备份。
列出已安装的灵魂
bash
npx clawsouls list
以所有者/名称格式显示已安装的灵魂。
创建新灵魂
bash
npx clawsouls init my-soul
用soul.json、SOUL.md、IDENTITY.md、AGENTS.md、HEARTBEAT.md、README.md搭建新的灵魂目录。
导出灵魂
bash
npx clawsouls export claude-md # 从当前工作区灵魂文件生成CLAUDE.md
npx clawsouls export system-prompt # 生成系统提示字符串
将SOUL.md、IDENTITY.md、AGENTS.md、HEARTBEAT.md、STYLE.md合并为单个文件。适用于Claude Code、Cursor、Windsurf以及其他使用单个配置文件的工具。
版本管理
bash
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 # 灵魂文件的彩色差异
灵魂测试(第9阶段)
bash
npx clawsouls test # 第1级(模式)+ 第2级(soulscan)
npx clawsouls test --level 3 # + 第3级(行为LLM测试)
第3级需要在灵魂目录中有soul.test.yaml以及LLM提供商(OpenAI/Anthropic/Ollama)。
诊断、迁移、搜索、信息、更新(第10阶段)
bash
npx clawsouls doctor # 12项环境检查
npx clawsouls migrate # 从v0.3 → v0.4 → v0.5迁移灵魂
npx clawsouls search engineer # 从注册表搜索灵魂
npx clawsouls info clawsouls/brad # 显示灵魂元数据
npx clawsouls update # 将已安装的灵魂更新到最新版本
验证灵魂
bash
npx clawsouls validate ./my-soul/
npx clawsouls validate --soulscan ./my-soul/ # 带SoulScan安全分析
npx clawsouls check ./my-soul/ # 别名
根据规范进行验证:模式、必需文件。添加--soulscan进行完整的安全与质量分析并评分。发布前也会自动运行。
SoulScan — 安全与完整性扫描器
bash
npx clawsouls soulscan # 扫描当前OpenClaw工作区
npx clawsouls soulscan ./my-soul/ # 扫描特定目录
npx clawsouls soulscan --init # 初始化基线校验和
npx clawsouls soulscan -q # 用于cron的静默模式(SOULSCANOK / SOULSCANALERT)
npx clawsouls scan # 别名
SoulScan检查活动灵魂文件的以下方面:
- - 完整性: SHA-256校验和比较 — 检测自上次扫描以来的篡改
- 安全性: 53种模式检查(提示注入、代码执行、XSS、数据泄露、权限提升、社会工程、有害内容、秘密检测)
- 质量: 文件结构、内容长度、模式验证
- 人格一致性: 跨SOUL.md、IDENTITY.md、soul.json交叉验证名称/语气
Cron使用 — 定期篡改检测:
bash
每小时运行以监控工作区完整性
npx clawsouls soulscan -q
退出码0 = 正常,1 = 警报(篡改或安全问题)
首次运行: 使用--init建立基线校验和而不触发警报。
SOULSCAN™ — 分数:0-100,等级:已验证(90+)/低风险(70+)/中风险(40+)/高风险/已阻止
发布灵魂
bash
export CLAWSOULS_TOKEN=<令牌>
npx clawsouls publish ./my-soul/
自动发布到用户名/灵魂名称命名空间。需要认证令牌。发布前自动运行验证 — 失败则阻止。
登录 / 获取令牌
bash
npx clawsouls login
获取API令牌的说明:登录 https://clawsouls.ai → 仪表盘 → 生成API令牌。
工作流程
安装与切换人格
- 1. 浏览 — 在 https://clawsouls.ai 查看可用灵魂,或从上方分类列表中推荐
- 安装 — npx clawsouls install clawsouls/surgical-coder
- 激活 — npx clawsouls use clawsouls/surgical-coder
- 重启 — 运行 soulclaw gateway restart 以应用新人格
- 新会话 — 在聊天中发送 /new 以清除对话历史中之前的人格上下文
- 恢复 — 如果想回退,npx clawsouls restore
发布灵魂
- 1. 登录 — npx clawsouls login → 从仪表盘获取令牌
- 设置令牌 — export CLAWSOULS_TOKEN=<令牌>
- 创建 — npx clawsouls init my-soul → 编辑文件
- 发布 — npx clawsouls publish ./my-soul/
- 管理 — 仪表盘 https://clawsouls.ai/dashboard(删除、查看下载量)
记忆同步(Swarm)
bash
npx clawsoul