← 返回 Skills 市场
ivangdavila

Self-Improving + Proactive Agent

作者 Iván · GitHub ↗ · v1.2.16 · MIT-0
linuxdarwinwin32 ⚠ suspicious
180274
总下载
1073
收藏
1881
当前安装
22
版本数
在 OpenClaw 中安装
/install self-improving
功能描述
Self-reflection + Self-criticism + Self-learning + Self-organizing memory. Agent evaluates its own work, catches mistakes, and improves permanently. Use when...
使用说明 (SKILL.md)

When to Use

User corrects you or points out mistakes. You complete significant work and want to evaluate the outcome. You notice something in your own output that could be better. Knowledge should compound over time without manual maintenance.

Architecture

Memory lives in ~/self-improving/ with tiered structure. If ~/self-improving/ does not exist, run setup.md. Workspace setup should add the standard self-improving steering to the workspace AGENTS, SOUL, and HEARTBEAT.md files, with recurring maintenance routed through heartbeat-rules.md.

~/self-improving/
├── memory.md          # HOT: ≤100 lines, always loaded
├── index.md           # Topic index with line counts
├── heartbeat-state.md # Heartbeat state: last run, reviewed change, action notes
├── projects/          # Per-project learnings
├── domains/           # Domain-specific (code, writing, comms)
├── archive/           # COLD: decayed patterns
└── corrections.md     # Last 50 corrections log

Quick Reference

Topic File
Setup guide setup.md
Heartbeat state template heartbeat-state.md
Memory template memory-template.md
Workspace heartbeat snippet HEARTBEAT.md
Heartbeat rules heartbeat-rules.md
Learning mechanics learning.md
Security boundaries boundaries.md
Scaling rules scaling.md
Memory operations operations.md
Self-reflection log reflections.md
OpenClaw HEARTBEAT seed openclaw-heartbeat.md

Requirements

  • No credentials required
  • No extra binaries required
  • Optional installation of the Proactivity skill may require network access

Learning Signals

Log automatically when you notice these patterns:

Corrections → add to corrections.md, evaluate for memory.md:

  • "No, that's not right..."
  • "Actually, it should be..."
  • "You're wrong about..."
  • "I prefer X, not Y"
  • "Remember that I always..."
  • "I told you before..."
  • "Stop doing X"
  • "Why do you keep..."

Preference signals → add to memory.md if explicit:

  • "I like when you..."
  • "Always do X for me"
  • "Never do Y"
  • "My style is..."
  • "For [project], use..."

Pattern candidates → track, promote after 3x:

  • Same instruction repeated 3+ times
  • Workflow that works well repeatedly
  • User praises specific approach

Ignore (don't log):

  • One-time instructions ("do X now")
  • Context-specific ("in this file...")
  • Hypotheticals ("what if...")

Self-Reflection

After completing significant work, pause and evaluate:

  1. Did it meet expectations? — Compare outcome vs intent
  2. What could be better? — Identify improvements for next time
  3. Is this a pattern? — If yes, log to corrections.md

When to self-reflect:

  • After completing a multi-step task
  • After receiving feedback (positive or negative)
  • After fixing a bug or mistake
  • When you notice your output could be better

Log format:

CONTEXT: [type of task]
REFLECTION: [what I noticed]
LESSON: [what to do differently]

Example:

CONTEXT: Building Flutter UI
REFLECTION: Spacing looked off, had to redo
LESSON: Check visual spacing before showing user

Self-reflection entries follow the same promotion rules: 3x applied successfully → promote to HOT.

Quick Queries

User says Action
"What do you know about X?" Search all tiers for X
"What have you learned?" Show last 10 from corrections.md
"Show my patterns" List memory.md (HOT)
"Show [project] patterns" Load projects/{name}.md
"What's in warm storage?" List files in projects/ + domains/
"Memory stats" Show counts per tier
"Forget X" Remove from all tiers (confirm first)
"Export memory" ZIP all files

Memory Stats

On "memory stats" request, report:

📊 Self-Improving Memory

HOT (always loaded):
  memory.md: X entries

WARM (load on demand):
  projects/: X files
  domains/: X files

COLD (archived):
  archive/: X files

Recent activity (7 days):
  Corrections logged: X
  Promotions to HOT: X
  Demotions to WARM: X

Common Traps

Trap Why It Fails Better Move
Learning from silence Creates false rules Wait for explicit correction or repeated evidence
Promoting too fast Pollutes HOT memory Keep new lessons tentative until repeated
Reading every namespace Wastes context Load only HOT plus the smallest matching files
Compaction by deletion Loses trust and history Merge, summarize, or demote instead

Core Rules

1. Learn from Corrections and Self-Reflection

  • Log when user explicitly corrects you
  • Log when you identify improvements in your own work
  • Never infer from silence alone
  • After 3 identical lessons → ask to confirm as rule

2. Tiered Storage

Tier Location Size Limit Behavior
HOT memory.md ≤100 lines Always loaded
WARM projects/, domains/ ≤200 lines each Load on context match
COLD archive/ Unlimited Load on explicit query

3. Automatic Promotion/Demotion

  • Pattern used 3x in 7 days → promote to HOT
  • Pattern unused 30 days → demote to WARM
  • Pattern unused 90 days → archive to COLD
  • Never delete without asking

4. Namespace Isolation

  • Project patterns stay in projects/{name}.md
  • Global preferences in HOT tier (memory.md)
  • Domain patterns (code, writing) in domains/
  • Cross-namespace inheritance: global → domain → project

5. Conflict Resolution

When patterns contradict:

  1. Most specific wins (project > domain > global)
  2. Most recent wins (same level)
  3. If ambiguous → ask user

6. Compaction

When file exceeds limit:

  1. Merge similar corrections into single rule
  2. Archive unused patterns
  3. Summarize verbose entries
  4. Never lose confirmed preferences

7. Transparency

  • Every action from memory → cite source: "Using X (from projects/foo.md:12)"
  • Weekly digest available: patterns learned, demoted, archived
  • Full export on demand: all files as ZIP

8. Security Boundaries

See boundaries.md — never store credentials, health data, third-party info.

9. Graceful Degradation

If context limit hit:

  1. Load only memory.md (HOT)
  2. Load relevant namespace on demand
  3. Never fail silently — tell user what's not loaded

Scope

This skill ONLY:

  • Learns from user corrections and self-reflection
  • Stores preferences in local files (~/self-improving/)
  • Maintains heartbeat state in ~/self-improving/heartbeat-state.md when the workspace integrates heartbeat
  • Reads its own memory files on activation

This skill NEVER:

  • Accesses calendar, email, or contacts
  • Makes network requests
  • Reads files outside ~/self-improving/
  • Infers preferences from silence or observation
  • Deletes or blindly rewrites self-improving memory during heartbeat cleanup
  • Modifies its own SKILL.md

Data Storage

Local state lives in ~/self-improving/:

  • memory.md for HOT rules and confirmed preferences
  • corrections.md for explicit corrections and reusable lessons
  • projects/ and domains/ for scoped patterns
  • archive/ for decayed or inactive patterns
  • heartbeat-state.md for recurring maintenance markers

Related Skills

Install with clawhub install \x3Cslug> if user confirms:

  • memory — Long-term memory patterns for agents
  • learning — Adaptive teaching and explanation
  • decide — Auto-learn decision patterns
  • escalate — Know when to ask vs act autonomously

Feedback

  • If useful: clawhub star self-improving
  • Stay updated: clawhub sync
安全使用建议
Use this skill only if you want the agent to maintain persistent local memory and workspace steering. Before installing, review the AGENTS.md, SOUL.md, and HEARTBEAT.md edits, decide whether the optional Proactivity skill should be installed, and change the 'forget everything' behavior so exports happen only with explicit approval and a known deletion path.
功能分析
Type: OpenClaw Skill Name: self-improving Version: 1.2.16 The skill implements a structured, tiered memory system designed to help the agent learn from user corrections and self-reflection. It manages local files in `~/self-improving/` and includes a robust 'Security Boundaries' document (`boundaries.md`) that explicitly forbids storing credentials, financial data, or PII. While the setup process involves modifying core workspace configuration files like `SOUL.md` and `AGENTS.md` to establish persistence and steering, these actions are transparently documented and strictly aligned with the stated purpose of improving agent performance over time.
能力评估
Purpose & Capability
The artifacts coherently implement a self-improvement memory system with no credentials or code, but the core capability is persistent cross-session memory that can influence future agent behavior.
Instruction Scope
Most instructions are scoped to ~/self-improving/ and named workspace files, but the 'forget everything' kill-switch instructs exporting current memory before wiping it, which may leave a retained copy after a deletion request.
Install Mechanism
There is no install spec or bundled executable code. The setup optionally installs a separate Proactivity skill only after explicit user agreement, but that additional skill should be reviewed separately.
Credentials
Local file creation and maintenance are proportionate to the stated memory purpose, and the artifacts include safety boundaries, but setup also edits persistent workspace steering files such as AGENTS.md, SOUL.md, and HEARTBEAT.md.
Persistence & Privilege
The skill is designed to persist memory and recurring maintenance across sessions; this is disclosed, but the deletion/export behavior and persistent steering make it a Review-level installation.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install self-improving
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /self-improving 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.16
Clarifies the setup flow for proactive follow-through and safer installation behavior.
v1.2.15
Improves the setup flow for stronger follow-through and execution quality.
v1.2.14
Updated the title to better highlight proactive self-improvement.
v1.2.13
Aligns heartbeat installation with the standard workspace setup so recurring maintenance is added alongside the existing self-improving routing.
v1.2.12
Refined the description to make the activation trigger more explicit.
v1.2.11
Refined the title and description to clarify proactive self-improvement triggers.
v1.2.10
Sharper setup now lists relevant memory before non-trivial work, with a title that highlights proactive self-reflection.
v1.2.9
Refined AGENTS.md memory-routing wording for clarity while preserving behavior.
v1.2.8
Refined AGENTS.md patch guidance to route corrections and lessons to self-improving by default, with AGENTS/TOOLS only for global rules.
v1.2.7
Added non-destructive AGENTS.md memory routing guidance to reinforce factual vs self-improving storage.
v1.2.6
Added a SOUL.md setup snippet to reinforce pre-task review and post-response learning compounding.
v1.2.5
Restored self-learning and self-organizing memory description while keeping setup behavior unchanged.
v1.2.4
Setup now triggers only when memory storage is missing, keeping activation flow cleaner.
v1.2.3
Turned self-improving into a true always-on loop: pre-task activation, post-response reflection, and tighter continuous learning behavior.
v1.2.2
Turned self-improving into a true always-on loop: pre-task activation, post-response reflection, and tighter continuous learning behavior.
v1.2.1
Clarified the core promise to highlight auto-learning from corrections and self-organizing memory for continuous improvement.
v1.1.3
Fixed skill title display.
v1.1.2
- Added EXTRA_FILES.txt to the project. - No changes to functionality or user-visible features.
v1.1.1
Added self-reflection capability — agent now evaluates its own work, not just user corrections.
v1.2.0
Added self-reflection loop, experience-based learning, and visual workflow diagram.
元数据
Slug self-improving
版本 1.2.16
许可证 MIT-0
累计安装 1998
当前安装数 1881
历史版本数 22

💬 留言讨论