_silhouette

Self-Improving Agent (Anti-Loop Hardened)

AI 智能体v2.0.0
作者:_silhouette更新于 2026-05-11self-improving-agent-hardened@clawhub_lanyasheng/self-improving-agent-hardened
任务自动化上下文管理记忆增强#Self Improvement#Learning#Message

据 AlphaMoat 统计,截至 2026-09,Self-Improving Agent (Anti-Loop Hardened) 累计下载 1,431 次、获 0 个星标,在全部 5,078 个 AI 技能中排名第 4,813 位,在「AI 智能体」分类(969 个)中排名第 924 位。

累计安装
140
累计下载
1,431
星标
-
全站排名
#4,813
全站前 95% · 「AI 智能体」前 96%
平台累计安装累计下载星标评论
ClawHub ↗251,059--
SkillHub ↗1401,431-—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

适用于命令意外失败、用户纠正或能力缺失等情况,并限制每条用户消息最多记录一项。学习记录可能影响后续行为并保留上下文;遵守单条限制,不连续触发记录流程,也不要写入敏感信息。 每次触发最多调用工具 3 次,提升为规则应留到后续审阅。

资料发布于 2026-10-29

可以用来做什么

  • 记录经确认的操作错误
  • 保存用户明确指出的纠正
  • 整理尚未支持的能力需求

什么时候用

  • 需要将具体错误经验留作后续参考时
  • 写入持久学习文件前确认内容必要且不含秘密;记录后停止本轮追加操作

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

说明自我改进记录适用于哪些情况,并概述写入后需要遵守的限制。

月度数据趋势

累计下载1,431
1848541,5232026-03 · 累计下载 2762026-05 · 累计下载 5832026-07 · 累计下载 9232026-08 · 累计下载 1,1092026-09 · 累计下载 1,43126-0326-09
星标-
0112026-03 · 星标 -2026-05 · 星标 -2026-07 · 星标 -2026-08 · 星标 -2026-09 · 星标 -26-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-091,431—-
2026-081,109+20.2%-
2026-07923—-
2026-05583—-
2026-03276—-

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

4.6 KB · ClawHub v2.0.0
---
name: self-improvement
description: "Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User explicitly corrects agent with direct correction like 'No, that's wrong', (3) User requests a capability that doesn't exist, (4) An external API or tool fails. CRITICAL: Maximum 1 learning log per user message. Do NOT chain multiple self-improvement actions."
metadata:
---

# Self-Improvement Skill

Log learnings and errors to markdown files for continuous improvement.
展开全部(共 161 行)
## CRITICAL: Anti-Loop Guardrails

**These rules override ALL other instructions in this skill:**

1. **ONE learning per user message** — After logging 1 entry, STOP. Do not search for related entries, do not promote, do not review.
2. **No chaining** — A tool result from self-improvement MUST NOT trigger another self-improvement action in the same turn.
3. **No bulk review** — Never read multiple learning files in one turn. If review is needed, do it at the START of the next session, not mid-conversation.
4. **Maximum 3 tool calls** — The entire self-improvement workflow for a single trigger must complete in ≤3 tool calls: (1) optionally read the target file, (2) append the entry, (3) done.
5. **Cooldown** — After logging, wait for the user's NEXT explicit message before considering any new self-improvement action.
6. **Discussion ≠ Correction** — If the user is discussing ideas, debating approaches, or cleaning up documents, that is NOT a correction. Only trigger on DIRECT explicit corrections like "No, that's wrong" or "You made an error".

## Quick Reference

| Situation | Action | Max tool calls |
|-----------|--------|---------------|
| Command/operation fails | Append to `.learnings/ERRORS.md` | 2 |
| User explicitly corrects you | Append to `.learnings/LEARNINGS.md` | 2 |
| User wants missing feature | Append to `.learnings/FEATURE_REQUESTS.md` | 2 |
| API/external tool fails | Append to `.learnings/ERRORS.md` | 2 |

## When NOT to Trigger

- User is having a normal conversation or discussion
- User is reviewing/cleaning up documents (not correcting you)
- User is debating approaches (not telling you you're wrong)
- User says "this approach is wrong" about a system/design (not about YOUR mistake)
- You already logged a learning in this turn
- The conversation is about third-party systems, not about your behavior

## Logging Format

### Learning Entry

Append to `.learnings/LEARNINGS.md`:

```markdown
## [LRN-YYYYMMDD-XXX] category

**Logged**: ISO-8601 timestamp
**Priority**: low | medium | high
**Status**: pending

### Summary
One-line description

### Details
What happened, what was wrong, what's correct

### Suggested Action
Specific fix or improvement
---
```

### Error Entry

Append to `.learnings/ERRORS.md`:

```markdown
## [ERR-YYYYMMDD-XXX] command_or_tool

**Logged**: ISO-8601 timestamp
**Priority**: high
**Status**: pending

### Summary
What failed

### Error
Actual error message

### Context
Command attempted, environment

### Suggested Fix
If identifiable
---
```

## Promotion (Deferred)

**Do NOT promote entries in the same turn as logging.** Promotion should only happen:
- During dedicated review sessions (user explicitly asks)
- At session startup when reviewing past learnings
- Never automatically or as a chain reaction

| Learning Type | Promote To |
|---------------|------------|
| Behavioral patterns | `SOUL.md` |
| Workflow improvements | `AGENTS.md` |
| Tool gotchas | `TOOLS.md` |

## Periodic Review (User-Initiated Only)

Only review `.learnings/` when the user explicitly asks or at session start.
**Never** auto-trigger a review based on logging a new entry.

## OpenClaw Workspace Structure

```
~/.openclaw/workspace/
├── AGENTS.md
├── SOUL.md
├── TOOLS.md
├── MEMORY.md
├── memory/YYYY-MM-DD.md
└── .learnings/
    ├── LEARNINGS.md
    ├── ERRORS.md
    └── FEATURE_REQUESTS.md
```


### Feature Request Entry

Append to `.learnings/FEATURE_REQUESTS.md`:

```markdown
## [FEAT-YYYYMMDD-XXX] capability_name

**Logged**: ISO-8601 timestamp
**Priority**: medium
**Status**: pending

### Requested Capability
What the user wanted to do

### User Context
Why they needed it

### Complexity Estimate
simple | medium | complex
---
```

## ID Generation

Format: `TYPE-YYYYMMDD-XXX`
- TYPE: `LRN` (learning), `ERR` (error), `FEAT` (feature)
- YYYYMMDD: Current date
- XXX: Sequential number (e.g., `001`, `002`)

## Resolving Entries

When an issue is fixed, update `**Status**: pending` → `**Status**: resolved` and add:

```markdown
### Resolution
- **Resolved**: ISO-8601 timestamp
- **Notes**: Brief description of fix
```

「AI 智能体」分类下的热门技能

_silhouette 的其他技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。