> _"When a workflow works, save it as a reusable skill."_
Inspired by Hermes Agent's core feature: an agent that learns from experience by saving successful workflows as reusable skills.
mkdir -p ~/self-improving
mkdir -p ~/.openclaw/workspace/skills
The log file ~/self-improving/procedural-memory-log.md will be created automatically if missing.
Must meet ALL:
Auto-trigger: If the same workflow succeeds 3+ times, auto-create skill WITHOUT asking (记录到日志即可)。
Otherwise: ask user "我可以把这个 workflow 存为 skill 吗?"
If user confirms → continue. Otherwise → silent skip.
ls ~/.openclaw/workspace/skills/ | grep <keyword>
Record:
**Skill Name**: [verb]-[problem] (kebab-case)
**Trigger**: [when this would be used]
**Problem Solved**: [what issue this solves]
**Steps**: [numbered list]
**Key Insight**: [why this works]
**Limitations**: [when NOT to use]
Create ~/.openclaw/workspace/skills/[skill-name]/SKILL.md:
---
name: [skill-name]
description: "[one-line description of when to use]
---
# [Skill Name]
## What This Solves
[trigger conditions and problem]
## When to Use
- [specific scenario 1]
- [specific scenario 2]
## How To Execute
[Step 1]
[Step 2]
[Step 3...]
## Key Insight
[why this is effective]
## Limitations
[when this won't work]
ls ~/.openclaw/workspace/skills/[skill-name]/SKILL.md
head -20 ~/.openclaw/workspace/skills/[skill-name]/SKILL.md
Recreate if corrupted.
Append to ~/self-improving/procedural-memory-log.md:
## YYYY-MM-DD
### [skill-name]
- **Trigger**: [what triggered this]
- **Problem solved**: [what was solved]
- **Key insight**: [the key learning]
- **Skill file**: `~/.openclaw/workspace/skills/[skill-name]/SKILL.md`
Tell user the skill was created and ask if they want to enable auto-execution:
> "已记住这个 workflow,存为 skill/[skill-name]。是否需要我下次遇到类似情况时自动执行?"
Default behavior: Do NOT auto-execute without user confirmation.
When new conversation context matches a saved skill's trigger:
~/.openclaw/workspace/skills/ and ~/self-improving/)When user says "复盘" or at end of day:
> "今天有什么 workflow 值得我记住吗?"
Scan today's conversation for:
../skill-creator/SKILL.md~/self-improving/memory.md~/self-improving/procedural-memory-log.md共 1 个版本