hopyky

Self Reflection

AI 智慧體v1.1.1
作者:hopyky更新於 2026-05-11self-reflection@clawhub_hopyky/self-reflection
記憶增強#Self Improvement

據 AlphaMoat 統計,截至 2026-10,Self Reflection 累計下載 59,823 次、獲 55 個星標,按累計下載量在本次參與排名的 10,914 個 AI 技能中排名第 402 位,在「AI 智慧體」分類(1,632 個)中排名第 90 位。

列表預設按累計下載量排序,也可按星標排序;詳情頁排名按累計下載量計算。

累計下載
6萬
星標
55
全站下載量排名
#402
全站前 4% · 「AI 智慧體」前 6%
平台累計下載星標評論
ClawHub ↗1.9萬45-
SkillHub ↗6萬55—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

開好 OpenClaw 的心跳後,把檢查步驟寫進工作區的 HEARTBEAT.md,到點執行 self-reflection check:返回 ALERT 就先 read 讀回曆史條目,想清楚再 log 記錄新的教訓。每條記錄由標籤、失誤與改法組成,stats 看累計情況,reset 重置計時。閾值、記憶檔案、狀態檔案與讀取條數上限都寫在 ~/.openclaw/self-reflection.json 裡。

資料釋出於 2026-10-27

可以用來做什麼

  • 定期復盤同一個失誤為什麼反覆出現
  • 把改法沉澱成下次能直接照著做的條目

什麼時候用

  • 希望 agent 自己安排復盤節奏時
  • 同類問題需要長期跟蹤改進效果時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

做一次自省,看看最近有哪些失誤值得記錄。
把這次的教訓按標籤記下來,並說清以後怎麼改。

月度資料趨勢

累計下載6萬
1.9萬4.1萬6.3萬2026-03 · 累計下載 2.2萬2026-05 · 累計下載 2.9萬2026-06 · 累計下載 3.1萬2026-07 · 累計下載 3.3萬2026-08 · 累計下載 3.4萬2026-09 · 累計下載 3.8萬2026-10 · 累計下載 6萬26-0326-0926-10
星標55
3948562026-03 · 星標 402026-05 · 星標 462026-06 · 星標 502026-07 · 星標 542026-08 · 星標 542026-09 · 星標 552026-10 · 星標 5526-0326-0926-10

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。 該技能有同名的其他版本,調整前的資料歸屬當前下載量最大的這一個。

月份累計下載環比星標
2026-106萬—55
2026-093.8萬—55
2026-083.4萬+3.8%54
2026-073.3萬+5.5%54
2026-063.1萬+6.3%50
2026-052.9萬—46
2026-032.2萬—40

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

2.6 KB · ClawHub v1.1.1
---
name: self-reflection
description: Continuous self-improvement through structured reflection and memory
version: 1.1.1
metadata: {"openclaw":{"emoji":"🪞","requires":{"bins":["jq","date"]}}}
---

# 🪞 Self-Reflection

A skill for continuous self-improvement. The agent tracks mistakes, lessons learned, and improvements over time through regular heartbeat-triggered reflections.
展開全部(共 100 行)

## Quick Start

```bash
# 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

| Command | Description |
|---------|-------------|
| `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) |
| `stats` | Show reflection statistics |
| `reset` | Reset the timer |

## OpenClaw Integration

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

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

Add to your workspace `HEARTBEAT.md`:

```markdown
## 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`:

```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](https://github.com/hopyky)

## License

MIT

「AI 智慧體」分類下的熱門技能

hopyky 的其他技能

資料月份:2026-10 · 下載/星標數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。