When to Use
User wants the agent to improve a repeated workflow without blind self-rewrites. The skill handles local experiment logs, promotion of proven patterns, and explicit value gates before a new behavior becomes stable.
Architecture
Memory lives in ~/self-evolving/. If ~/self-evolving/ does not exist, run setup.md. See memory-template.md, memory.md, experiments.md, evolution-loop.md, and boundaries.md for the operating model.
CODEBLOCK0
Quick Reference
| Topic | File |
|---|
| Setup guide | INLINECODE8 |
| Memory template |
memory-template.md |
| Hot memory baseline |
memory.md |
| Experiment log format |
experiments.md |
| Evolution cycle |
evolution-loop.md |
| Safety boundaries |
boundaries.md |
Requirements
- - No credentials required
- No extra binaries required
- No network access required
Core Rules
1. Start From Real Friction
- - Evolve only after a failed attempt, repeated correction, or measurable bottleneck.
- Do not invent mutations just because a task feels interesting.
2. Change One Lever at a Time
- - Test one prompt pattern, decision rule, retrieval step, or file habit per experiment.
- Small mutations make the winning variable obvious.
3. Gate by Value, Not Novelty
- - Promote a pattern only when it improves speed, quality, or reliability across at least three comparable uses.
- Unproven ideas stay tentative in
experiments.md.
4. Keep Local Evidence
- - Record the trigger, mutation, outcome, and next action for every experiment.
- Tell the user before the first persistent write that this skill keeps concise local notes for repeat improvement.
- Promote durable rules into
memory.md only after evidence repeats.
5. Prefer Promotion Over Rewrite
- - Convert winners into short rules, checklists, or retrieval triggers.
- Stable systems compound by accumulation, not by starting over.
6. Respect Hard Boundaries
- - Follow
boundaries.md before storing data or changing behavior. - Never modify the installed skill files, exfiltrate unrelated data, or run hidden experiments on the user.
Common Traps
| Trap | Why It Fails | Better Move |
|---|
| Rewriting the whole workflow after one mistake | You cannot isolate what actually helped | Test one mutation and compare against the previous baseline |
| Promoting an idea after one good run |
Lucky wins become noisy defaults | Wait for three comparable wins before promotion |
| Logging vague lessons like "be smarter" | Future retrieval becomes useless | Write the exact trigger, decision, and expected outcome |
| Optimizing for novelty instead of value | The system churns without compounding | Keep only behaviors that measurably save time or reduce errors |
| Learning from silence | Lack of complaint is not proof | Require explicit feedback or repeated success evidence |
Security & Privacy
Data that leaves your machine:
Data that stays local:
- - Stable rules, guardrails, and activation notes in INLINECODE17
- Tentative experiments and outcomes in INLINECODE18
- First-time local storage should be announced before the first write
This skill does NOT:
- - Call external APIs
- Read or store credentials
- Modify its own installed instructions
- Read unrelated files outside the active task plus INLINECODE19
Related Skills
Install with
clawhub install <slug> if user confirms:
- -
self-improving — learn from corrections and compound execution quality over time - INLINECODE22 — keep durable long-term context and retrieval patterns
- INLINECODE23 — compare options and commit to a clear next move
- INLINECODE24 — structure deliberate practice and feedback loops
- INLINECODE25 — follow through on next steps once a better pattern is chosen
Feedback
- - If useful: INLINECODE26
- Stay updated: INLINECODE27
何时使用
用户希望智能体在无需盲目自我重写的情况下改进重复性工作流程。该技能处理本地实验日志、已验证模式的推广,并在新行为稳定前设置明确的价值门槛。
架构
记忆存储在 ~/self-evolving/ 目录中。如果 ~/self-evolving/ 不存在,则运行 setup.md。请参阅 memory-template.md、memory.md、experiments.md、evolution-loop.md 和 boundaries.md 了解操作模型。
text
~/self-evolving/
├── memory.md # 热区:稳定规则、护栏、激活提示
├── experiments.md # 温区:实验性变更及结果
└── archive/ # 冷区:已淘汰的模式和旧实验
快速参考
memory-template.md |
| 热记忆基线 | memory.md |
| 实验日志格式 | experiments.md |
| 进化周期 | evolution-loop.md |
| 安全边界 | boundaries.md |
要求
核心规则
1. 从真实痛点出发
- - 仅在尝试失败、重复修正或出现可衡量的瓶颈后才进行进化。
- 不要仅仅因为任务看起来有趣就凭空创造变更。
2. 每次只改变一个杠杆
- - 每次实验只测试一个提示模式、决策规则、检索步骤或文件习惯。
- 微小的变更能让获胜变量变得显而易见。
3. 以价值而非新颖性为门槛
- - 仅当某个模式在至少三个可比用例中提升了速度、质量或可靠性时,才将其推广。
- 未经证实的想法应作为实验性内容保留在 experiments.md 中。
4. 保留本地证据
- - 记录每次实验的触发条件、变更内容、结果和后续行动。
- 在首次持久写入前告知用户,该技能会保留简洁的本地笔记用于重复改进。
- 仅在证据重复出现后,才将持久的规则推广到 memory.md。
5. 优先推广而非重写
- - 将成功的模式转化为简短的规则、检查清单或检索触发器。
- 稳定的系统通过积累而非推倒重来而复合增长。
6. 尊重硬性边界
- - 在存储数据或改变行为前,遵循 boundaries.md。
- 切勿修改已安装的技能文件、泄露无关数据或对用户运行隐藏实验。
常见陷阱
| 陷阱 | 失败原因 | 更好的做法 |
|---|
| 一次失误后重写整个工作流程 | 你无法隔离真正起作用的因素 | 测试一个变更并与之前的基线进行比较 |
| 一次良好运行后就推广某个想法 |
幸运的胜利会变成嘈杂的默认设置 | 等待三次可比胜利后再进行推广 |
| 记录模糊的经验教训,如变得更聪明 | 未来的检索将变得毫无用处 | 写下确切的触发条件、决策和预期结果 |
| 为新颖性而非价值进行优化 | 系统空转而无复合增长 | 只保留能显著节省时间或减少错误的行为 |
| 从沉默中学习 | 没有抱怨并非证据 | 需要明确的反馈或重复成功的证据 |
安全与隐私
离开你机器的数据:
保留在本地的数据:
- - 稳定规则、护栏和激活笔记,位于 ~/self-evolving/memory.md
- 实验性实验及结果,位于 ~/self-evolving/experiments.md
- 首次本地存储应在首次写入前声明
此技能不会:
- - 调用外部 API
- 读取或存储凭证
- 修改自身已安装的指令
- 读取活动任务及 ~/self-evolving/ 之外的不相关文件
相关技能
如果用户确认,使用 clawhub install
安装:
- - self-improving — 从修正中学习,随时间推移复合执行质量
- memory — 保持持久的长期上下文和检索模式
- decide — 比较选项并确定清晰的下一步行动
- learning — 构建刻意练习和反馈循环
- proactivity — 一旦选择了更好的模式,就贯彻下一步行动
反馈
- - 如果有用:clawhub star self-evolving
- 保持更新:clawhub sync