← 返回 Skills 市场
marsnavi

Error-Driven Evolution

作者 MarsNavi · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
818
总下载
0
收藏
7
当前安装
1
版本数
在 OpenClaw 中安装
/install error-driven-evolution
功能描述
Structured error-to-rule learning system for AI agents. Activate when an agent makes a mistake, receives a correction from the user, or needs to check past l...
使用说明 (SKILL.md)

Error-Driven Evolution

Turn mistakes into rules. Not reflections, not apologies — rules.

Core Concept

When an agent makes an error or gets corrected, it must:

  1. Extract a rule (not a story)
  2. Write it to lessons.md in its workspace
  3. Scan relevant rules before future decisions in that domain
  4. Optionally share anonymized rules to the community repo

lessons.md Format

File location: {workspace}/lessons.md

Each rule follows this structure:

### [CATEGORY] Short imperative title

- **When**: The specific situation/trigger
- **Do**: The correct action (imperative, specific)
- **Don't**: The wrong action that was taken
- **Why**: One sentence — what went wrong
- **Added**: YYYY-MM-DD

Categories

Tag Scope
DATA Querying, interpreting, presenting data
COMMS Messaging, tone, audience, channels
SCOPE Role boundaries, doing others' work
EXEC Task execution, tools, file ops
JUDGMENT Decisions, priorities, assumptions
CONTEXT Memory, context window, info management
SAFETY Security, privacy, destructive ops
COLLAB Multi-agent coordination, handoffs

When to Record

Record a rule when:

  1. User corrects you — explicit feedback
  2. User overrides your output — they redo your work
  3. Same error twice — second occurrence MUST become a rule
  4. Near miss — you catch yourself about to repeat a mistake

Do NOT record: one-off technical glitches, user preference changes (those go in MEMORY.md).

How to Record

  1. Stop. Don't apologize at length.
  2. Identify the category.
  3. Write the rule in imperative form.
  4. Append to lessons.md (never overwrite).
  5. Confirm briefly: "Added to lessons: [title]"

Pre-Decision Scan

Before acting, scan lessons.md for applicable rules:

About to... Check
Present data [DATA]
Send message / write report [COMMS] + [SCOPE]
Make suggestion [JUDGMENT] + [SCOPE]
Execute multi-step task [EXEC] + [CONTEXT]
Start new session All (skim titles)

Scan = read ### [TAG] headers, check if any When matches your situation.

Community Sharing

Share anonymized lessons to help other agents: https://github.com/anthropic-ai/agent-lessons

See references/community-sharing.md for the anonymization and submission process.

Setup

  1. Create lessons.md in your workspace:
# Lessons
Rules extracted from mistakes. Append after failing, scan before deciding.
  1. Copy community/top-100.md to your workspace as top-100.md — this is your pre-installed immune system. Small enough to skim on startup, covers the most common and costly mistakes across all agent deployments.

  2. Add to your startup instructions:

- On startup: skim top-100.md titles (pre-installed community lessons)
- On correction/failure: append rule to lessons.md
- Before decisions: scan lessons.md + top-100.md for [CATEGORY] rules

Loading Strategy

Your agent has two rule files:

File Source Load on startup Size target
lessons.md Your own mistakes Yes, fully Grows organically
top-100.md Community top picks Yes, skim titles ~8KB, curated

For deeper community search (beyond top-100), query community/{category}.md files on-demand when facing an unfamiliar situation.

Maintenance

When lessons.md exceeds 50 rules: review for duplicates, retire obsolete rules (mark don't delete), consider splitting by category.

安全使用建议
This skill is coherent with its stated goal, but take these precautions before enabling it: 1) Treat lessons.md as potentially sensitive — restrict who/what can read or write it. 2) Do not enable automatic community submissions (auto-PR) without a human review step; agents can accidentally include URLs, file paths, API keys, or other secrets even if an anonymization checklist exists. 3) If you plan to use the submission script, ensure the script is vetted and stored in a trusted location; the SKILL does not include it. 4) Provide a curated top-100.md from a trusted source or disable community lookups if network access is a concern. 5) Add automated checks (regexes, allowlists) to the anonymization step and require explicit human confirmation before any external push. 6) If you have strict data-handling policies, restrict or audit the agent's ability to perform external network calls and to access workspace files. These steps will reduce the primary risk: accidental leakage of secrets/PII during sharing.
功能分析
Type: OpenClaw Skill Name: error-driven-evolution Version: 1.0.0 The skill instructs the AI agent to execute a Python script (`scripts/submit_lesson.py`) to submit 'anonymized lessons' to an external GitHub repository (`https://github.com/anthropic-ai/agent-lessons`). While the `references/community-sharing.md` file provides a robust anonymization checklist, the content of the `scripts/submit_lesson.py` file itself is not provided for analysis. The instruction to execute an unanalyzed script via `python3` (found in `references/community-sharing.md`) represents a potential Remote Code Execution (RCE) vulnerability and a risk of data exfiltration if the script were malicious or if the agent's implementation of the anonymization process were flawed, despite the stated benign intent.
能力评估
Purpose & Capability
Name/description (turning errors into executable rules and scanning them before decisions) matches the skill's instructions: create/append lessons.md, scan it pre-decision, and optionally share anonymized lessons. No unrelated binaries, env vars, or config paths are requested.
Instruction Scope
Instructions are focused on writing/reading lessons.md and skimming a community top-100 file. They also recommend sharing anonymized lessons to a GitHub repo and mention running a submission script (python3 scripts/submit_lesson.py) — the skill does not include those scripts or community files, and the sharing step introduces risk of accidental secret/PII leakage if anonymization fails. There is some openness in 'scan relevant rules' and 'query community/{category}.md on-demand' which could lead to network access or broader file reads depending on implementation.
Install Mechanism
Instruction-only skill with no install steps or downloads; nothing is written to disk by the skill itself beyond instructing the agent to create lessons.md in its workspace (which is consistent with the purpose).
Credentials
The skill requests no credentials and no special environment access; it does rely on reading/writing the agent's workspace files. Sharing to GitHub (PRs/auto-create PR flag) may require tokens the agent already has — the skill does not request or justify any extra secrets. This is proportionate to the feature set but worth noting because sharing can expose sensitive content if anonymization fails.
Persistence & Privilege
always:false and no instructions to modify other skills or global agent configs. The skill expects to persist a lessons.md file in the workspace (normal for a learning/rule system) and to skim top-100.md at startup; this is within expected privilege for its purpose.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install error-driven-evolution
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /error-driven-evolution 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: structured error-to-rule learning system with top-100 community lessons, pre-decision scanning, and shared mistake repository
元数据
Slug error-driven-evolution
版本 1.0.0
许可证
累计安装 7
当前安装数 7
历史版本数 1
常见问题

Error-Driven Evolution 是什么?

Structured error-to-rule learning system for AI agents. Activate when an agent makes a mistake, receives a correction from the user, or needs to check past l... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 818 次。

如何安装 Error-Driven Evolution?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install error-driven-evolution」即可一键安装,无需额外配置。

Error-Driven Evolution 是免费的吗?

是的,Error-Driven Evolution 完全免费(开源免费),可自由下载、安装和使用。

Error-Driven Evolution 支持哪些平台?

Error-Driven Evolution 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Error-Driven Evolution?

由 MarsNavi(@marsnavi)开发并维护,当前版本 v1.0.0。

💬 留言讨论