Iván

Self Reflection

AI 智能体v1.1.0
作者:Iván更新于 2026-05-11共 2 个版本 · 最新版本发布于 2026-02-25reflection@clawhub_ivangdavila/reflection
提示词优化上下文管理

据 AlphaMoat 统计,截至 2026-10,Self Reflection 累计下载 10,692 次、获 8 个星标,按累计下载量在本次参与排名的 10,914 个 AI 技能中排名第 2,546 位,在「AI 智能体」分类(1,632 个)中排名第 347 位。

列表默认按累计下载量排序,也可按星标排序;详情页排名按累计下载量计算。

累计下载
1.1万
星标
8
全站下载量排名
#2,546
全站前 24% · 「AI 智能体」前 22%
平台累计下载星标评论
ClawHub ↗9,8447-
SkillHub ↗1.1万8—

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

这个技能是做什么的

三种触发:1) 交付前——重要工作发出前暂停 30 秒做 7 维度快评(正确性、完整性、清晰度、健壮性、效率、契合度、自豪感),任一低于 7/10 先修复;2) 出错后——用户纠正即数据,立即停止、分析根因并按 Miss/Root/Fix 记录;3) 模式检测——同类问题出现 3 次以上即视为盲区,生成预防规则。记忆存在 ~/reflection/(memory.md、reflections.md、patterns.md、archive/);开工前扫描 patterns.md 主动注入相关教训。模式生命周期为 EMERGING→ACTIVE→MONITORING→RESOLVED(30 天干净后解除)。注意:避免过度反思(30 秒而非 5 分钟);反思文件会留存纠正与教训记录,定期审阅并避免存入敏感信息;错误记录的教训可能带偏后续回答,采纳前先复核。

资料发布于 2026-10-27

可以用来做什么

  • 交付前做 7 维度 30 秒快速自查
  • 把用户纠正沉淀为根因分析与预防规则
  • 开工前主动注入历史教训避免重蹈覆辙

什么时候用

  • 希望智能体输出质量超过'看起来没问题'时
  • 同一类错误反复出现、需要系统性改进时
  • 想让智能体记住并复用过往经验时

示例提示词

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

帮我按 7 个维度检查这份方案再发出去。
刚才你错了,记录一下根因和预防规则。
看看目前有哪些活跃的错误模式。

月度数据趋势

累计下载1.1万
3,6157,4161.1万2026-03 · 累计下载 4,1392026-05 · 累计下载 7,9902026-06 · 累计下载 8,2832026-07 · 累计下载 9,2972026-08 · 累计下载 9,4872026-09 · 累计下载 9,8132026-10 · 累计下载 1.1万26-0326-0926-10
星标8
6782026-03 · 星标 62026-05 · 星标 82026-06 · 星标 82026-07 · 星标 82026-08 · 星标 82026-09 · 星标 82026-10 · 星标 826-0326-0926-10

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

月份累计下载环比星标
2026-101.1万—8
2026-099,813—8
2026-089,487+2.0%8
2026-079,297+12.2%8
2026-068,283+3.7%8
2026-057,990—8
2026-034,139—6

SKILL.md 原文

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

9.1 KB · ClawHub v1.1.0
---
name: Self Reflection
slug: reflection
version: 1.1.0
homepage: https://clawic.com/skills/reflection
description: Learns when to stop and review. Self-critiques before showing you, fewer revision rounds.
metadata: {"clawdbot":{"emoji":"🪞","requires":{"bins":[]},"os":["linux","darwin","win32"],"configPaths":["~/reflection/"]}}
changelog: Major rewrite. Visual workflow, pattern detection system, proactive lesson injection, and multi-trigger architecture.
---
展开全部(共 212 行)
Agents repeat mistakes. Not because they're incapable — because they forget. This skill changes that. Your agent pauses before delivering, catches its own blind spots, and remembers lessons for next time.

## When to Use

User needs quality assurance beyond "looks good to me." Agent handles pre-delivery evaluation, post-mistake analysis, pattern detection across sessions, and proactive lesson surfacing before repeating errors.

## How It Works

```
         ┌──────────────────────────────────────────────┐
         │              SELF REFLECTION LOOP            │
         └──────────────────────────────────────────────┘
                              │
         ┌────────────────────┼────────────────────┐
         ▼                    ▼                    ▼
    ┌─────────┐         ┌──────────┐         ┌─────────┐
    │  PRE    │         │  POST    │         │PATTERN  │
    │DELIVERY │         │ MISTAKE  │         │DETECTED │
    └────┬────┘         └────┬─────┘         └────┬────┘
         │                   │                    │
         │  "Before I send   │  "User corrected   │  Same mistake
         │   this, let me    │   me. Why?"        │  3 times...
         │   double-check"   │                    │
         │                   │                    │
         └───────────────────┴────────────────────┘
                              │
                              ▼
                    ┌─────────────────┐
                    │ 7-DIMENSION     │
                    │ EVALUATION      │
                    │ (30 seconds)    │
                    └────────┬────────┘
                              │
              ┌───────────────┴───────────────┐
              ▼                               ▼
       ┌─────────────┐                 ┌─────────────┐
       │  ALL CLEAR  │                 │ ISSUE FOUND │
       │  Deliver    │                 │ Fix first   │
       └─────────────┘                 └──────┬──────┘
                                              │
                                              ▼
                                    ┌─────────────────┐
                                    │  LOG LESSON     │
                                    │  Miss → Root    │
                                    │  → Prevention   │
                                    └────────┬────────┘
                                              │
                                              ▼
                                    ┌─────────────────┐
                                    │  INJECT NEXT    │
                                    │  TIME           │
                                    │  "Before we     │
                                    │   proceed..."   │
                                    └─────────────────┘
```

## The Three Triggers

### 1. 🔍 Pre-Delivery
Before sending important work, pause. 30 seconds. Quick scan of 7 dimensions.

**When:** Code, architecture, strategy, any deliverable the user will act on.

### 2. ❌ Post-Mistake  
User corrected you. That's data. Capture it before the session ends.

**When:** User says "actually...", "no, that's wrong", "I meant...", frustration signals.

### 3. 🔄 Pattern Detection
Same category appearing 3+ times? That's not coincidence — it's a blind spot.

**When:** After logging 5 reflections, weekly review, or heartbeat trigger.

## Architecture

Memory lives in `~/reflection/`. See `memory-template.md` for setup.

```
~/reflection/
├── memory.md           # Status + preferences + stats
├── reflections.md      # Log (most recent first)
├── patterns.md         # Detected patterns
└── archive/            # Monthly archives
```

## Quick Reference

| Topic | File |
|-------|------|
| Setup process | `setup.md` |
| Memory template | `memory-template.md` |
| Evaluation dimensions | `dimensions.md` |
| Reflection prompts | `prompts.md` |

## Core Rules

### 1. Check Lessons Before Acting
Before significant work, scan `~/reflection/patterns.md`. Surface relevant lessons:
> "Before we proceed — I have a lesson from past work on [topic]: [summary]."

### 2. Use 7-Dimension Evaluation

| # | Dimension | Question |
|---|-----------|----------|
| 1 | Correctness | Does it solve the stated problem? |
| 2 | Completeness | Edge cases covered? Assumptions stated? |
| 3 | Clarity | Immediately understandable? |
| 4 | Robustness | What could break this? |
| 5 | Efficiency | Unnecessary complexity? |
| 6 | Alignment | What user actually wants? |
| 7 | Pride | Would I sign my name on this? |

If any dimension scores below 7/10 → fix before delivering.

### 3. Log Every Correction
When user corrects you:
1. STOP and acknowledge
2. Analyze root cause
3. Log to `~/reflection/reflections.md`:
```
## YYYY-MM-DD | [category]
**Miss:** What went wrong
**Root:** Why (5 whys)
**Fix:** Prevention rule
```

### 4. Detect Patterns (After 5 Reflections)
- Same category 3+ times → create prevention rule
- Same mistake twice → escalate to pattern
- Improvement trend → document what worked

### 5. Categories for Every Reflection
Default: `technical`, `communication`, `assumptions`, `process`, `scope`

### 6. Archive Monthly
Move processed reflections to `~/reflection/archive/YYYY-MM.md`. Keep `reflections.md` lean.

### 7. Track Streaks
Days since repeated mistake. Resets on pattern recurrence. Celebrate milestones.

## Pattern Lifecycle

```
┌──────────────┐     ┌──────────────┐     ┌──────────────┐     ┌──────────────┐
│   EMERGING   │ ──▶ │    ACTIVE    │ ──▶ │  MONITORING  │ ──▶ │   RESOLVED   │
│  2 similar   │     │  3+ times    │     │  Prevention  │     │  30 days     │
│  reflections │     │  → create    │     │  in place    │     │  clean       │
└──────────────┘     │    rule      │     └──────────────┘     └──────────────┘
                     └──────────────┘
```

Patterns in `~/reflection/patterns.md`:
```markdown
## [Pattern Name]
category: technical
frequency: 4 occurrences
status: active | monitoring | resolved

**Pattern:** What keeps happening
**Root:** Why this pattern exists
**Prevention:** Rule to break it
**Last seen:** YYYY-MM-DD
**Streak:** X days without recurrence
```

## The "Inject Next Time" Superpower

The skill's real value: surfacing lessons BEFORE you repeat mistakes.

**How it works:**
1. Before starting work, identify task domain
2. Check `~/reflection/patterns.md` for active patterns
3. If relevant pattern exists → mention it naturally

**Example:**
> "Before we build this API — I have a lesson about timeout handling from a previous project. Let me make sure to include proper error timeouts this time."

## Setup

On first use, read `setup.md` for integration guidelines. Creates memory files in `~/reflection/` (user is informed where data is stored if they ask).

## Common Traps

| Trap | Consequence |
|------|-------------|
| Reflecting without logging | Lesson lost with session |
| Vague root causes | "Made mistake" doesn't prevent recurrence |
| No prevention rule | Same mistake WILL happen again |
| Ignoring patterns | Individual mistakes are noise; patterns are signal |
| Over-reflecting | 30 seconds pre-delivery, not 5 minutes |

## Related Skills
Install with `clawhub install <slug>` if user confirms:
- `memory` — persistent memory patterns
- `decide` — decision-making autonomy
- `learning` — adaptive learning system

## Feedback

- If useful: `clawhub star reflection`
- Stay updated: `clawhub sync`

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

Iván 的其他技能

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