搜索

PythonReactSEOPDF
OpenClaw

openclaw-reflect

Self-improvement layer with evaluation separation, rollback, and tiered operator gates. Observes outcomes across sessions, detects recurring patterns, proposes improvements, validates proposals through a separate evaluator invocation, and applies changes safely with snapshot/rollback capability.

atlaspa0 来源安装数☆ 0 仓库 Starsv1.0.2

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install atlaspa/openclaw-reflect

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

openclaw-reflect

You have access to a self-improvement system. It observes your tool outcomes across sessions, detects recurring failure patterns, and proposes targeted changes to your persistent memory and instructions.

Your responsibilities

During work

The PostToolUse hook records outcomes automatically. You do not need to do anything unless you notice a significant failure that has no clear cause — in that case, write a manual observation:

node .reflect/scripts/observe.js --manual \
  --type error \
  --tool "ToolName" \
  --pattern "brief description of what went wrong" \
  --context "what you were trying to do"
When prompted (UserPromptSubmit will inject this)

If .reflect/pending.json contains proposals awaiting operator approval, surface them: "I have improvement proposals ready for your review. Run node .reflect/scripts/status.js to see them, or ask me to show you."

At session end (automatic)

The SessionEnd hook runs classification and promotion automatically. It will:

  1. Detect patterns with recurrence >= 3 across >= 2 sessions
  2. Generate a structured proposal
  3. Route to evaluator for validation
  4. Apply low-blast-radius approvals to MEMORY.md automatically
  5. Queue high-blast-radius or SOUL.md changes for operator approval

You will see a summary in the session-end output.

Blast radius tiers

Tier Targets Gate
0 — Observation .reflect/outcomes.jsonl Automatic (hooks)
1 — MEMORY.md Factual corrections, preference updates Auto-apply if confidence >= 0.7
2 — CLAUDE.md / project instructions Behavioral pattern changes Auto-apply if confidence >= 0.85
3 — SOUL.md Core values, identity, constraints Operator approval always required

The evaluator gate

Before any Tier 1+ change is applied, a separate evaluator invocation checks:

  • Does this contradict existing principles or memory?
  • Is the pattern truly...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/atlaspa/openclaw-reflect
Version
1.0.2
Commit
f0efefc8f22685b475c966a69cd5840615e56093
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

openclaw-reflect

Self-improvement that doesn't trust itself.

Most self-improvement skills let the same reasoning process that made a mistake also declare the fix valid. This skill breaks that loop by routing every proposal through a separate evaluator invocation with an adversarial mandate before anything is applied.

What it actually does

PostToolUse hook → records outcomes to .reflect/outcomes.jsonl
SessionEnd hook  → classify → propose → evaluate → apply/queue
UserPromptSubmit → surfaces pending proposals if any exist
The pipeline
  1. Observe — Every tool call outcome is logged automatically. Errors are annotated with normalized error patterns.
  2. Classify — At session end, patterns are extracted from the outcome log. Threshold: ≥3 occurrences across ≥2 distinct sessions.
  3. Propose — Qualifying patterns generate structured proposals with a blast-radius tier (1=MEMORY.md, 2=CLAUDE.md, 3=SOUL.md) and a preliminary confidence score.
  4. Evaluate — Each proposal is sent to a separate Claude invocation running an adversarial evaluator persona. The evaluator is instructed to find reasons to reject, not approve. A proposal that passes is more trustworthy than one the original reasoning process declared valid.
  5. Apply — Approved proposals above the confidence threshold are auto-applied with a file snapshot first. Below threshold or Tier 3 (SOUL.md) changes are queued for operator review.
  6. Track — After N sessions, if the same pattern recurs post-fix, the change is marked ineffective and can be rolled back.

Blast radius tiers

Tier Target Auto-apply threshold
1 MEMORY.md confidence ≥ 0.70
2 CLAUDE.md confidence ≥ 0.85
3 SOUL.md Never — operator approval always required

What makes this different

| Capability | evolver | self-improving-agent | openclaw-reflect | |------------|---------|------------------...

来源内容

SKILL.md
# openclaw-reflect

You have access to a self-improvement system. It observes your tool outcomes across
sessions, detects recurring failure patterns, and proposes targeted changes to your
persistent memory and instructions.

## Your responsibilities

### During work
The PostToolUse hook records outcomes automatically. You do not need to do anything
unless you notice a significant failure that has no clear cause — in that case, write
a manual observation:

```
node .reflect/scripts/observe.js --manual \
  --type error \
  --tool "ToolName" \
  --pattern "brief description of what went wrong" \
  --context "what you were trying to do"
```

### When prompted (UserPromptSubmit will inject this)
If `.reflect/pending.json` contains proposals awaiting operator approval, surface them:
"I have improvement proposals ready for your review. Run `node .reflect/scripts/status.js`
to see them, or ask me to show you."

### At session end (automatic)
The SessionEnd hook runs classification and promotion automatically. It will:
1. Detect patterns with recurrence >= 3 across >= 2 sessions
2. Generate a structured proposal
3. Route to evaluator for validation
4. Apply low-blast-radius approvals to MEMORY.md automatically
5. Queue high-blast-radius or SOUL.md changes for operator approval

You will see a summary in the session-end output.

## Blast radius tiers

| Tier | Targets | Gate |
|------|---------|------|
| 0 — Observation | `.reflect/outcomes.jsonl` | Automatic (hooks) |
| 1 — MEMORY.md | Factual corrections, preference updates | Auto-apply if confidence >= 0.7 |
| 2 — CLAUDE.md / project instructions | Behavioral pattern changes | Auto-apply if confidence >= 0.85 |
| 3 — SOUL.md | Core values, identity, constraints | Operator approval always required |

## The evaluator gate

Before any Tier 1+ change is applied, a separate evaluator invocation checks:
- Does this contradict existing principles or memory?
- Is the pattern truly...
README
# openclaw-reflect

**Self-improvement that doesn't trust itself.**

Most self-improvement skills let the same reasoning process that made a mistake also declare the fix valid. This skill breaks that loop by routing every proposal through a separate evaluator invocation with an adversarial mandate before anything is applied.

## What it actually does

```
PostToolUse hook → records outcomes to .reflect/outcomes.jsonl
SessionEnd hook  → classify → propose → evaluate → apply/queue
UserPromptSubmit → surfaces pending proposals if any exist
```

### The pipeline

1. **Observe** — Every tool call outcome is logged automatically. Errors are annotated with normalized error patterns.
2. **Classify** — At session end, patterns are extracted from the outcome log. Threshold: ≥3 occurrences across ≥2 distinct sessions.
3. **Propose** — Qualifying patterns generate structured proposals with a blast-radius tier (1=MEMORY.md, 2=CLAUDE.md, 3=SOUL.md) and a preliminary confidence score.
4. **Evaluate** — Each proposal is sent to a separate Claude invocation running an adversarial evaluator persona. The evaluator is instructed to find reasons to reject, not approve. A proposal that passes is more trustworthy than one the original reasoning process declared valid.
5. **Apply** — Approved proposals above the confidence threshold are auto-applied with a file snapshot first. Below threshold or Tier 3 (SOUL.md) changes are queued for operator review.
6. **Track** — After N sessions, if the same pattern recurs post-fix, the change is marked ineffective and can be rolled back.

## Blast radius tiers

| Tier | Target | Auto-apply threshold |
|------|--------|---------------------|
| 1 | `MEMORY.md` | confidence ≥ 0.70 |
| 2 | `CLAUDE.md` | confidence ≥ 0.85 |
| 3 | `SOUL.md` | Never — operator approval always required |

## What makes this different

| Capability | evolver | self-improving-agent | openclaw-reflect |
|------------|---------|------------------...

相关技能

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

139mail

chang-tong

139邮箱邮件收发 Skill - 支持 IMAP/SMTP 协议,兼容139/QQ/163/Gmail等主流邮箱 功能: 1. 发送邮件(SMTP) 2. 接收邮件(IMAP) 3. 查看收件箱列表 4. 查看未读邮件 当用户提到 "发邮件"、"收邮件"、"查看邮件"、"邮箱"...