Tự tiến hóa bộ nhớ dài hạn MEMORY.md và đóng gói kỹ năng tự động.
Memory
Openclaw Self Learning Skill
Try itPersistent memory and self-improvement for AI agents — writes and refines its own memory files over time.
What it does
Persistent memory and self-improvement for AI agents — writes and refines its own memory files over time.
The skill document
Self-Learning Skill
Gives any AI agent persistent memory and self-improvement. The agent writes and refines its own memory files — capturing failures, extracting patterns, generating fixes, and validating them before committing.
Triggers
Use when:
- Starting a new session with the agent
- After a task fails or produces unexpected output
- When the agent makes the same mistake twice
- Regular review of memory files for stale or incorrect entries
- Improving the agent's performance based on past experience
How It Works
The self-learning loop:
- Capture — After each session or failure, log: what was attempted, what went wrong, system state
- Analyse — Identify the root cause pattern, not just the symptom
- Generate — Create a fix or prevention rule based on the pattern
- Validate — Test the fix before committing it to memory
- Commit — Update the agent's memory files only when validation succeeds
Files Created
~/.openclaw/workspace/memory/failures/— Log of failed tasks with full context~/.openclaw/workspace/memory/lessons/— Generated fixes and prevention rules~/.openclaw/workspace/MEMORY.md— Consolidated memory (auto-updated on commit)
What Gets Captured
- Task failures — What the agent tried, why it failed, what it would do differently
- User corrections — Explicit feedback that changes how the agent approaches tasks
- Error patterns — Repeated mistakes suggesting a systematic fix is needed
- Preference shifts — Changes in user requirements that should update future behaviour
Why File-Based
No external dependencies — just the filesystem. Zero latency, full transparency, human-readable. The agent doesn't just store facts — it stores actionable lessons.
Installation
openclaw skills install https://github.com/TheSolAI/openclaw-self-learning-skill
Related skills
Build a goal-driven self-learning loop for OpenClaw and coding agents. Use when the agent should not only log mistakes, but diagnose capability gaps, maintai...
Self-reflection + Self-criticism + Self-learning + Self-organizing memory. Agent evaluates its own work, catches mistakes, and improves permanently. Use when...
Unified memory platform for Hermes, OpenClaw and AI agents — persistent long-term memory, cross-skill sharing, automated capture, governance rules, optimizat...
Give your OpenClaw agent persistent, cross-session memory via AgentPrizm — recall durable facts, decisions, preferences, lessons, and contacts before acting,...
Use when a user wants cross-session personal context shared by compatible AI agents, or asks to load, save, inspect, archive, recover, clean up, or upgrade l...