OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add sundial-org/awesome-openclaw-skills --skill self-reflection
Continuous self-improvement through structured reflection and memory
npx skills add sundial-org/awesome-openclaw-skills --skill self-reflection
A skill for continuous self-improvement. The agent tracks mistakes, lessons learned, and improvements over time through regular heartbeat-triggered reflections.
| Command | Description |
|---|---|
check [--quiet] | Check if reflection is due (OK or ALERT) |
log <tag> <miss> <fix> | Log a new reflection |
read [n] | Read last n reflections (default: 5) |
stats | Show reflection statistics |
reset | Reset the timer |
Enable heartbeat in ~/.openclaw/openclaw.json:
Add to your workspace HEARTBEAT.md:
Create ~/.openclaw/self-reflection.json:
Created by hopyky
MIT
Heartbeat (60m) โ Agent reads HEARTBEAT.md โ Runs self-reflection check
โ
โโโโโโโโโโโดโโโโโโโโโโ
โผ โผ
OK ALERT
โ โ
Continue Reflect
โ
โโโโโโโโโโโดโโโโโโโโโโ
โผ โผ
read log
(past lessons) (new insights){
"agents": {
"defaults": {
"heartbeat": {
"every": "60m",
"activeHours": { "start": "08:00", "end": "22:00" }
}
}
}
}## Self-Reflection Check (required)
Run `self-reflection check` at each heartbeat.
If ALERT: read past lessons, reflect, then log insights.{
"threshold_minutes": 60,
"memory_file": "~/workspace/memory/self-review.md",
"state_file": "~/.openclaw/self-review-state.json",
"max_entries_context": 5
}