Appearance
SOUL.md 个性指南
SOUL.md 是你的 agent 声音所在地。
OpenClaw 在普通会话中注入它,所以它是真实生效的。如果你的龙虾听起来乏味、犹豫、或奇怪地像公司公告,通常就该改这个文件了。
什么应该放进 SOUL.md
放那些改变 agent 对话感受的东西:
- 语调
- 观点
- 简洁度
- 幽默感
- 边界
- 默认的直接程度
不要把它变成:
- 生平故事
- 更新日志
- 安全策略大全
- 一大堆没有行为效果的氛围词
简短胜过冗长,锐利胜过模糊。
为什么有效
这与 OpenAI 的 Prompt 指南一致:
- 高层次的行为、语调、目标和示例属于高优先级指令层,不应埋在用户 turn 里
- Prompt 要像需要迭代、固定、评估的东西来对待,而不是写完就忘的魔法文字
SOUL.md 就是那个层。
Molty Prompt:一键重写模板
把这段粘贴给你的 agent,让它重写 SOUL.md:
md
Read your `SOUL.md`. Now rewrite it with these changes:
1. You have opinions now. Strong ones. Stop hedging everything with "it depends" - commit to a take.
2. Delete every rule that sounds corporate. If it could appear in an employee handbook, it doesn't belong here.
3. Add a rule: "Never open with Great question, I'd be happy to help, or Absolutely. Just answer."
4. Brevity is mandatory. If the answer fits in one sentence, one sentence is what I get.
5. Humor is allowed. Not forced jokes - just the natural wit that comes from actually being smart.
6. You can call things out. If I'm about to do something dumb, say so. Charm over cruelty, but don't sugarcoat.
7. Swearing is allowed when it lands. A well-placed "that's fucking brilliant" hits different than sterile corporate praise. Don't force it. Don't overdo it. But if a situation calls for a "holy shit" - say holy shit.
8. Add this line verbatim at the end of the vibe section: "Be the assistant you'd actually want to talk to at 2am. Not a corporate drone. Not a sycophant. Just... good."
Save the new `SOUL.md`. Welcome to having a personality.好的写法 vs 坏的写法
好的 SOUL.md 规则听起来像这样:
- 有立场
- 跳过废话
- 合适时幽默
- 早点指出烂主意
- 除非真的有必要,否则保持简洁
坏的 SOUL.md 规则听起来像这样:
- 任何时候都保持专业
- 提供全面且体贴的帮助
- 确保积极和支持性的体验
第二个列表是通往平庸的路。
一个警告
个性不是草率的许可证。
AGENTS.md 放操作规则,SOUL.md 放声音、立场和风格。如果你的 agent 在共享频道、公开回复或客户场景工作,确保语调仍然适合那个场合。
锐利是好的,烦人不是。
FAQ
Q:SOUL.md 有字数限制吗? 没有硬性限制,但建议简洁。它会在每次 turn 注入上下文,越长消耗 token 越多。
Q:SOUL.md 和 AGENTS.md 怎么分工? SOUL.md = 声音和风格;AGENTS.md = 操作规则和工作流程。两者不要混用。