
Self Reflection
Build continuous self-improvement loops into AI agents so they track mistakes, document lessons learned, and avoid repeating errors.
Install
npx skills add https://github.com/sundial-org/awesome-openclaw-skills --skill self-reflectionWhat is this skill?
- Automatic heartbeat-triggered reflection checks every 60 minutes
- Structured mistake tracking and lesson documentation
- Builds institutional memory to prevent repeated errors
Adoption & trust: 1 installs on skills.sh; 609 GitHub stars; 3/3 security scanners passed (skills.sh audits); trending (+100% hot-view momentum).
Recommended Skills
Journey fit
Self-reflection belongs in the operate phase because it's about maintaining and improving agent performance after deployment through systematic feedback loops. This tool fits monitoring because it continuously observes agent behavior via heartbeat checks and tracks performance issues in real-time.
Common Questions / FAQ
Is Self Reflection safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Self Reflection
# 🪞 Self-Reflection A continuous self-improvement skill for AI agents. Track mistakes, log lessons learned, and build institutional memory over time. ## Why? AI agents make mistakes. Without memory, they repeat them. This skill creates a structured feedback loop where agents regularly pause, reflect on their performance, and document learnings. ``` "The only real mistake is the one from which we learn nothing." — Henry Ford ``` ## Architecture ``` ┌─────────────────────────────────────────────────────────────────────┐ │ OPENCLAW GATEWAY │ ├─────────────────────────────────────────────────────────────────────┤ │ │ │ ┌─────────────┐ Heartbeat ┌──────────────────────────────┐ │ │ │ │ (every 60m) │ │ │ │ │ AGENT │ ───────────────► │ HEARTBEAT.md │ │ │ │ │ │ └─► "self-reflection check" │ │ │ │ │ │ │ │ │ └──────┬──────┘ └──────────────────────────────┘ │ │ │ │ │ │ executes │ │ ▼ │ │ ┌─────────────────────────────────────────────────────────────┐ │ │ │ SELF-REFLECTION SKILL │ │ │ ├─────────────────────────────────────────────────────────────┤ │ │ │ │ │ │ │ $ self-reflection check │ │ │ │ │ │ │ │ │ ▼ │ │ │ │ ┌─────────────┐ │ │ │ │ │ < 60 min ? │ │ │ │ │ └──────┬──────┘ │ │ │ │ │ │ │ │ │ YES │ NO │ │ │ │ ┌─────┴─────┐ │ │ │ │ ▼ ▼ │ │ │ │ ┌───┐ ┌─────────┐ │ │ │ │ │OK │ │ ALERT │──► Agent reflects │ │ │ │ └───┘ └─────────┘ └──► self-reflection read │ │ │ │ │ └──► self-reflection log │ │ │ │ ▼ │ │ │ │ │ Continue ▼ │ │ │ │ normally ┌────────────┐ │ │ │ │ │ MEMORY.md │ │ │ │ │ │ (lessons) │ │ │ │ │ └────────────┘ │ │ │ │ │ │ │ └─────────────────────────────────────────────────────────────┘ │ │ │ └─────────────────────────────────────────────────────────────────────┘ ┌──────────────────┐ │ STATE FILE │ │ (last_reflection │ │ timestamp) │ └──────────────────┘ ``` ## How It Works 1. **Heartbeat triggers** → OpenClaw runs heartbeat every 60 minutes (08:00-22:00) 2. **Agent reads HEARTBEAT.md** → Sees instruction to run `self-reflection check` 3. **Skill checks timer** → Compares current time with last reflection 4. **If ALERT** → Agent reviews past lessons and logs new insights 5. **Memory persi