Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
sundial-org avatar

Self Reflection

  • 1 installs
  • 635 repo stars
  • Updated March 7, 2026
  • sundial-org/awesome-openclaw-skills

Self-Reflection is a skill for AI agents that creates structured feedback loops to improve over time.

About

Self-Reflection is a skill for AI agents that creates structured feedback loops to improve over time. Agents pause regularly (via heartbeat triggers), review their recent performance, and document mistakes and lessons learned. This matters because without memory, agents repeat the same errors—this skill builds institutional knowledge that compounds into better decision-making.

  • Automatic heartbeat-triggered reflection checks every 60 minutes
  • Structured mistake tracking and lesson documentation
  • Builds institutional memory to prevent repeated errors

Self Reflection by the numbers

  • 1 all-time installs (skills.sh)
  • Ranked #14,201 of 16,659 AI & Agent Building skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Jul 27, 2026 (Skillselion catalog sync)
npx skills add https://github.com/sundial-org/awesome-openclaw-skills --skill self-reflection

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1
repo stars635
Security audit3 / 3 scanners passed
Last updatedMarch 7, 2026
Repositorysundial-org/awesome-openclaw-skills

How do I build continuous self-improvement loops into AI agents so they track mistakes, document lessons learned, and avoid repeating errors.?

Build continuous self-improvement loops into AI agents so they track mistakes, document lessons learned, and avoid repeating errors.

Who is it for?

Best when you're working on ai & agent building and need structured help with self reflection.

Skip if: Teams with no ai & agent building needs, or anyone wanting a generic chat assistant without this specific workflow.

When should I use this skill?

When you need to build continuous self-improvement loops into AI agents so they track mistakes, document lessons learned, and avoid repeating errors., or when self-reflection is a skill for ai agents that creates structu

What you get

Structured output aligned to self-reflection: Automatic heartbeat-triggered reflection checks every 60 minutes, Structured mistake tracking and lesson documentation.

Files

SKILL.mdMarkdownGitHub ↗

🪞 Self-Reflection

A skill for continuous self-improvement. The agent tracks mistakes, lessons learned, and improvements over time through regular heartbeat-triggered reflections.

Quick Start

# Check if reflection is needed
self-reflection check

# Log a new reflection
self-reflection log "error-handling" "Forgot timeout on API call" "Always add timeout=30"

# Read recent lessons
self-reflection read

# View statistics
self-reflection stats

How It Works

Heartbeat (60m) → Agent reads HEARTBEAT.md → Runs self-reflection check
                                                      │
                                            ┌─────────┴─────────┐
                                            ▼                   ▼
                                           OK              ALERT
                                            │                   │
                                       Continue            Reflect
                                                               │
                                                     ┌─────────┴─────────┐
                                                     ▼                   ▼
                                                   read               log
                                              (past lessons)     (new insights)

Commands

CommandDescription
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)
statsShow reflection statistics
resetReset the timer

OpenClaw Integration

Enable heartbeat in ~/.openclaw/openclaw.json:

{
  "agents": {
    "defaults": {
      "heartbeat": {
        "every": "60m",
        "activeHours": { "start": "08:00", "end": "22:00" }
      }
    }
  }
}

Add to your workspace HEARTBEAT.md:

## Self-Reflection Check (required)
Run `self-reflection check` at each heartbeat.
If ALERT: read past lessons, reflect, then log insights.

Configuration

Create ~/.openclaw/self-reflection.json:

{
  "threshold_minutes": 60,
  "memory_file": "~/workspace/memory/self-review.md",
  "state_file": "~/.openclaw/self-review-state.json",
  "max_entries_context": 5
}

Author

Created by hopyky

License

MIT

Related skills

FAQ

What does self-reflection do?

Self-Reflection is a skill for AI agents that creates structured feedback loops to improve over time.

When should I use self-reflection?

When you need to build continuous self-improvement loops into AI agents so they track mistakes, document lessons learned, and avoid repeating errors., or when self-reflection is a skill for ai agents that creates structured feedback loops to improve over time.

What are the main capabilities?

Automatic heartbeat-triggered reflection checks every 60 minutes; Structured mistake tracking and lesson documentation; Builds institutional memory to prevent repeated errors.

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.

AI & Agent Buildingagentsautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.