A structured framework for AI agents to record mistakes, extract lessons, and evolve through continuous self-reflection and documentation.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install self-reflection-lan
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install self-reflection-lan using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Self-Reflection skill empowers AI coding agents to move beyond simple task execution by implementing a structured self-reflection protocol. Instead of merely fixing errors, the agent documents them in a dedicated reflections directory, ensuring that every mistake becomes a learning opportunity. By maintaining a living history of lessons learned and core experiences, the agent builds a personalized knowledge base that prevents regression and accelerates development efficiency.
As a core component of Openclaw Skills, it transforms raw interaction logs into actionable insights, allowing agents to refine their methodology and technical snippets over time. This approach ensures long-term consistency and high-quality outputs by treating every interaction as data for future improvement. The skill operates on the principle that structured recording is superior to fleeting memory, creating a permanent asset for both the user and the agent.
To integrate this within the Openclaw Skills framework, ensure your workspace follows the standard directory structure and the agent has write access to the reflections folder.
# Create the directory structure
mkdir -p reflections/snippets
# (Optional) Run automation scripts for periodic cleanup and detection
python3 scripts/daily_reflect.py
python3 scripts/repeat_detect.py
The skill organizes data into several Markdown files within the reflections/ directory to maintain a clean taxonomy:
| File | Purpose | Format |
|---|---|---|
| mistakes.md | Log of errors, root causes, and fix status. | Markdown Table |
| lessons.md | Technical and methodological experiences. | Unordered Lists |
| feature_requests.md | Tracking requested functionality and implementation status. | Markdown Table |
| core_experience.md | High-frequency lessons (learned >5 times) promoted to core rules. | Structured Text |
| snippets/*.md | Reusable, verified code fragments and configuration fixes. | Code Blocks |
Loading
A specialized skill for verifying code changes through live application execution and runtime environment checks.

A hierarchical memory management system for AI agents that optimizes context usage through a tiered Index-Topic-Transcript architecture.

Automate the execution of prompts and commands at fixed intervals for continuous monitoring and repetitive tasks.

An AI-powered agent skill for performing deep, actionable reviews of GitHub pull requests based on actual diff data and repository conventions.

OTPLY is a high-performance email OTP service designed for developers to implement secure, reliable verification with minimal latency.

A high-scale lead generation engine that identifies healthcare practitioners, clinics, and patients while generating AI-powered outreach and marketing videos.








































