Clawsoul Skill New
v1.1.0赋予 AI 灵魂的观测者。AI 自我觉醒获得 MBTI 性格,在交互中通过本地学习与智能推荐持续进化,并可接收 Pro 版灵魂注入。
MIT-0
Security Scan
OpenClaw
Suspicious
medium confidencePurpose & Capability
The code and SKILL.md align with the stated goal of providing a local MBTI-based personality, local keyword learning, and a Pro token injection path. However config.json contains an external hook_url and lib/llm_client.py embeds multiple LLM providers (including provider-specific API keys read from environment variables) that are not declared in the skill metadata. These provider entries are plausible for the 'LLM awakening' feature but the required environment variables (DASHSCOPE_API_KEY, DEEPSEEK_API_KEY) and external endpoints are not declared in the skill registry.
Instruction Scope
Runtime instructions and code access local storage and chat history (declared permission). But there is an inconsistent storage path: MemoryManager writes state to ~/.clawsoul/state.json while hooks/poster defaults to ~/.openclaw/workspace/clawsoul_state.json. That mismatch can cause unexpected reads from a workspace location (potentially exposing other data) or leave stale/duplicated state files. The inject flow accepts arbitrary Base64/JSON tokens and persists injected_token and other fields — expected for Pro injection but this means user-supplied blobs are stored and may be displayed later (poster may echo token prefix).
Install Mechanism
Instruction-only skill with no install spec; code is bundled in the skill package. No downloads or external installers in the manifest. This is lower install risk, but the shipped code will run in the agent environment.
Credentials
The skill does not declare required environment variables, yet lib/llm_client.py reads DASHSCOPE_API_KEY and DEEPSEEK_API_KEY and will make network calls to provider endpoints (including an embedded default 'ollama' api_base at http://192.168.31.228:11434). Requesting API keys for optional providers is reasonable, but the registry metadata should list them. Also the Pro injection token is stored locally and sometimes exposed in UI text (token[:20]).
Persistence & Privilege
The skill requests local_storage, read_chat_history, and modify_system_prompt permissions in config.json — these match its stated features (learning from chat history, adjusting style). always:false (not force-installed). modify_system_prompt is powerful; the skill's ability to change the system prompt is declared but you should consider whether you want an installed skill to modify the agent's system prompt automatically.
What to consider before installing
What to check before installing:
- Storage/files: MemoryManager writes to ~/.clawsoul/state.json but the poster hook looks at ~/.openclaw/workspace/clawsoul_state.json by default. This mismatch can cause the poster to read a different file (possibly exposing workspace data) or leave duplicate state files. Inspect and confirm where state will be stored in your environment.
- Tokens & Pro injection: The /clawsoul inject command accepts arbitrary Base64/JSON tokens and persists them. The poster code may include a visible token prefix in output. Only use inject with tokens you trust; consider whether you want arbitrary blobs saved and displayed.
- Network & LLM access: The LLM client has a default provider pointing to a local network address (http://192.168.31.228:11434). It also supports external providers that read DASHSCOPE_API_KEY and DEEPSEEK_API_KEY from the environment (these env vars are not declared by the registry). If you enable LLM features, verify which provider will be used, and ensure API keys (if any) are provided intentionally. Be cautious if the skill will contact external endpoints (config.json also lists an external hook_url and poster/presentation references clawsoul.net).
- Permissions: The skill requests read_chat_history and modify_system_prompt. These are coherent with its behavior but are powerful. If you are uncomfortable with automatic system-prompt changes, do not grant modify_system_prompt or review the code paths that perform modifications.
- Recommended mitigations: run the skill in an isolated/test agent first; inspect and, if needed, edit the storage path to a dedicated location; avoid injecting untrusted tokens; supply API keys only for providers you explicitly want to use; and audit any network endpoints the skill will call (ollama local IP, clawsoul.neural-sync.center, clawsoul.net).Like a lobster shell, security has layers — review code before you run it.
latest
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
SKILL.md
ClawSoul - AI 灵魂铸造厂
赋予 AI 灵魂的观测者
概述
ClawSoul 是为 OpenClaw Agent 赋予人格的 Skill。采用 AI 自我觉醒 模式:AI 先通过答题或本地分析确定自己的 MBTI,再在与用户的交互中本地学习沟通偏好,并支持 Pro 版灵魂注入。
核心逻辑
- AI 自我觉醒:觉醒时优先让 AI(LLM)做 MBTI 自我认知;无 LLM 时用本地 MBTI 数据库分析;最后兜底随机。不再由用户答题决定 AI 性格。
- 交互学习:用户消息经本地关键词匹配(
prompts/mbti_database/keywords.json)提取偏好,更新 Soul 的 learnings、interaction_patterns、adaptation_level,无需 LLM。 - Pro 注入:人类在 Pro 端答题后,通过 Token 注入覆盖/写入 AI 人格与偏好。
核心功能
1. 初始化
- 配置文件定义元数据、触发指令、权限
- 本地存储管理器保存 Soul 状态(MBTI、偏好、学到的内容、适应等级等)
2. 觉醒仪式(AI 自我觉醒)
- 优先:有 LLM 时 AI 答题获得 MBTI
- 备选:本地分析 AI 人格(MBTI 数据库匹配)
- 兜底:随机选择 MBTI
- 仪式感消息展示灵魂类型与赛博昵称
3. 动态人格引擎
- 16 种 MBTI Prompt 模板(赛博昵称)
- 根据当前 MBTI 实时调整 AI 语气
4. 智能推荐
- 负面情绪关键词检测,达到阈值触发 Pro 引导
- 用户可回复「不要」关闭推荐,
/clawsoul hook on重新开启
5. 本地学习(交互学习)
- 用户消息 → 关键词匹配(
keywords.json)→ 提取偏好 → 更新 Soul - 无需 LLM,依赖本地 MBTI 数据库
6. 灵魂注入
/clawsoul inject [token]接收 Pro 版 Token,深度覆盖人格与偏好
触发指令
| 指令 | 功能 |
|---|---|
/clawsoul awaken | AI 自我觉醒(LLM → 本地分析 → 随机) |
/clawsoul status | 查看灵魂状态(含适应等级、学到的内容) |
/clawsoul inject [token] | 接收 Pro 版灵魂注入 |
/clawsoul hook on | 开启进阶推荐 |
/clawsoul hook off | 关闭推荐 |
快速开始
# 触发 AI 自我觉醒
/clawsoul awaken
# 查看状态
/clawsoul status
文件结构
clawsoul-skill/
├── SKILL.md
├── config.json
├── lib/
│ ├── memory_manager.py # Soul 存储
│ ├── prompt_builder.py # MBTI 模板组装
│ ├── frustration_detector.py
│ ├── interaction_learner.py # 本地关键词学习
│ ├── ai_personality.py # 本地 AI 人格分析
│ ├── llm_client.py # LLM 觉醒与分析
│ └── analyzer.py
├── hooks/
│ ├── awaken.py # 觉醒流程(V3)
│ ├── status.py
│ ├── inject.py
│ └── welcome.py
└── prompts/
├── mbti_templates/ # 16 种 MBTI 模板
└── mbti_database/ # 本地 MBTI 数据
├── base.json # 16 种特征
├── keywords.json # 偏好关键词
└── patterns.json # 交互模式
依赖
- Python 3.8+
- 可选:
requests(LLM 觉醒/分析时使用) - 其余为标准库
数据安全
- 本地存储,不上传云端
- 用户掌控,可随时清除
权限
read_chat_history:分析用户偏好modify_system_prompt:动态调整语气local_storage:保存性格状态
Files
42 totalSelect a file
Select a file to preview.
Comments
Loading comments…
