Learns when to stop and review. Self-critiques before showing you, fewer revision rounds.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install reflection或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install reflection⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/reflection/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- 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. ---
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.
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.
┌──────────────────────────────────────────────┐
│ 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..." │
└─────────────────┘
Before sending important work, pause. 30 seconds. Quick scan of 7 dimensions.
When: Code, architecture, strategy, any deliverable the user will act on.
User corrected you. That's data. Capture it before the session ends.
When: User says "actually...", "no, that's wrong", "I meant...", frustration signals.
Same category appearing 3+ times? That's not coincidence — it's a blind spot.
When: After logging 5 reflections, weekly review, or heartbeat trigger.
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
| Topic | File | |-------|------| | Setup process | setup.md | | Memory template | memory-template.md | | Evaluation dimensions | dimensions.md | | Reflection prompts | prompts.md |
Before significant work, scan ~/reflection/patterns.md. Surface relevant lessons: > "Before we proceed — I have a lesson from past work on [topic]: [summary]."
| # | 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.
When user corrects you:
~/reflection/reflections.md:## YYYY-MM-DD | [category]
**Miss:** What went wrong
**Root:** Why (5 whys)
**Fix:** Prevention rule
Default: technical, communication, assumptions, process, scope
Move processed reflections to ~/reflection/archive/YYYY-MM.md. Keep reflections.md lean.
Days since repeated mistake. Resets on pattern recurrence. Celebrate milestones.
┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐
│ EMERGING │ ──▶ │ ACTIVE │ ──▶ │ MONITORING │ ──▶ │ RESOLVED │
│ 2 similar │ │ 3+ times │ │ Prevention │ │ 30 days │
│ reflections │ │ → create │ │ in place │ │ clean │
└──────────────┘ │ rule │ └──────────────┘ └──────────────┘
└──────────────┘
Patterns in ~/reflection/patterns.md:
## [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 skill's real value: surfacing lessons BEFORE you repeat mistakes.
How it works:
~/reflection/patterns.md for active patternsExample: > "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."
On first use, read setup.md for integration guidelines. Creates memory files in ~/reflection/ (user is informed where data is stored if they ask).
| 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 |
Install with clawhub install if user confirms:
memory — persistent memory patternsdecide — decision-making autonomylearning — adaptive learning systemclawhub star reflectionclawhub sync安装 Self Reflection 后,可以对 AI 说这些话来触发它
Help me get started with Self Reflection
Explains what Self Reflection does, walks through the setup, and runs a quick demo based on your current project
Use Self Reflection to learns when to stop and review
Invokes Self Reflection with the right parameters and returns the result directly in the conversation
What can I do with Self Reflection in my general tools workflow?
Lists the top use cases for Self Reflection, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/reflection/ 目录(个人级,所有项目可用),或 .claude/skills/reflection/(项目级)。重启 AI 客户端后,用 /reflection 主动调用,或让 AI 根据上下文自动发现并使用。
Self Reflection 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Self Reflection 可免费安装使用。请查阅仓库了解许可证信息。
Learns when to stop and review. Self-critiques before showing you, fewer revision rounds.
Self Reflection 属于「General Tools」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my general tools tasks using Self Reflection
Identifies repetitive steps in your workflow and sets up Self Reflection to handle them automatically