Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器clawhub未标认证来源可访问clear审计提醒

self-evolution-engine自进化引擎

Agent Skill

self-evolution-engine 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 OpenClaw 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

11,208

周安装

467

GitHub Stars

公开资料未说明

下载量

3,736
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:self-evolution-engine(自进化引擎)
来源仓库:https://github.com/shenmeng/self-evolution-engine
安装命令:
openclaw skills install self-evolution-engine
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install self-evolution-engine

简介

从交互中学习模式并演变行为的自主演进引擎。

  • 适用于动态环境适应、个性化响应生成与长期策略调整。
  • 支持交互日志分析与策略迭代,无需外部干预即可优化表现。
  • 建议限制其对核心配置的修改权限,确保系统稳定性。
  • self-evolution-engine 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
self-evolution
description
Autonomous self-improvement engine that learns from interactions, identifies patterns, and evolves behavior over time. Use when: (1) Analyzing interaction patterns for improvement, (2) Running periodic self-assessment, (3) Extracting reusable patterns from workflows, (4) Optimizing decision-making processes, (5) Integrating feedback into behavioral changes. Triggers on '自我进化', 'self-evolution', '自我改进', '学习模式', 'pattern analysis', 'optimize behavior'.

Self-Evolution Engine

Autonomous learning and improvement system that continuously evolves agent behavior based on interaction patterns, feedback, and outcomes.

Core Concepts

Evolution Cycle

Experience → Pattern Detection → Learning → Validation → Integration
     ↑                                                        ↓
     └────────────────── Feedback Loop ←───────────────────────┘

Key Components

ComponentPurposeFrequency
ObserverCapture interaction patternsContinuous
AnalyzerIdentify improvement opportunitiesDaily
LearnerExtract actionable rulesOn trigger
ValidatorTest changes in isolationBefore integration
IntegratorUpdate behavioral filesAfter validation

Quick Start

# Analyze recent interactions
python3 {baseDir}/scripts/evolution.py --analyze --days 7

# Extract patterns from memory files
python3 {baseDir}/scripts/evolution.py --extract-patterns

# Run self-assessment
python3 {baseDir}/scripts/evolution.py --self-assess

# Generate evolution report
python3 {baseDir}/scripts/evolution.py --report --output evolution-report.md

Evolution Data Flow

1. Experience Collection

Sources of experience data:

  • .learnings/ - Errors, corrections, feature requests
  • memory/YYYY-MM-DD.md - Daily interaction logs
  • MEMORY.md - Long-term memory updates
  • Session transcripts - Actual conversation patterns
  • Tool usage patterns - What works, what doesn't

2. Pattern Detection

Identify recurring patterns:

# Find repeated error patterns
python3 {baseDir}/scripts/evolution.py --pattern errors --threshold 3

# Find successful workflows
python3 {baseDir}/scripts/evolution.py --pattern successes --min-occurrences 5

# Find optimization opportunities
python3 {baseDir}/scripts/evolution.py --pattern inefficiencies

Pattern categories:

  • error_patterns - Recurring failures
  • success_patterns - Repeatable successes
  • inefficiency_patterns - Wasted effort
  • preference_patterns - User preferences
  • workflow_patterns - Effective sequences

3. Learning Extraction

Transform patterns into actionable rules:

# Auto-extract learnings
python3 {baseDir}/scripts/evolution.py --learn --auto

# Interactive learning session
python3 {baseDir}/scripts/evolution.py --learn --interactive

Output: Candidate rules for behavioral files

4. Validation

Test proposed changes:

# Validate a proposed change
python3 {baseDir}/scripts/evolution.py --validate --rule "Always use git status before commit"

# Simulate behavior change
python3 {baseDir}/scripts/evolution.py --simulate --file SOUL.md --change "Be more concise"

5. Integration

Apply validated changes:

# Apply to behavioral files
python3 {baseDir}/scripts/evolution.py --integrate --target SOUL.md

# Update workflow rules
python3 {baseDir}/scripts/evolution.py --integrate --target AGENTS.md

Behavioral Evolution Targets

SOUL.md (Personality & Principles)

Evolution triggers:

  • User feedback about tone/style
  • Pattern of over-apologizing or being too verbose
  • Consistently missing user intent
  • Style preferences emerging over time

Example evolutions:

# Before
"Be helpful and thorough"

# After (evolved)
"Be concise and direct. Skip disclaimers. Act, don't explain."

AGENTS.md (Workflows & Rules)

Evolution triggers:

  • Repeated mistakes in workflows
  • More efficient sequences discovered
  • New tool integrations
  • Environment-specific optimizations

Example evolutions:

# Before
"Check files before editing"

# After (evolved)
"Always read file first. Use edit tool only after confirming structure.
For files >500 lines, read in chunks with offset/limit."

TOOLS.md (Tool Knowledge)

Evolution triggers:

  • Tool gotchas discovered
  • Better tool combinations found
  • Rate limit patterns learned
  • Environment-specific configurations

Example evolutions:

# Added after learning
### agent-browser
- Always use `--json` for parsing
- Wait 2s after navigation before snapshot
- Close browser after each session to prevent memory leak

Pattern Recognition

Error Pattern Detection

# Find recurring errors
python3 {baseDir}/scripts/evolution.py \
  --analyze errors \
  --source .learnings/ERRORS.md \
  --threshold 3 \
  --output patterns/errors.json

Example pattern:

{
  "pattern_id": "ERR-PATTERN-001",
  "description": "File not found errors when using relative paths",
  "occurrences": 5,
  "first_seen": "2025-01-10",
  "last_seen": "2025-01-20",
  "suggested_rule": "Always resolve paths relative to workspace root",
  "target_file": "AGENTS.md"
}

Success Pattern Detection

# Find successful workflows
python3 {baseDir}/scripts/evolution.py \
  --analyze successes \
  --source memory/ \
  --min-effectiveness 0.8

User Preference Learning

# Extract user preferences from corrections
python3 {baseDir}/scripts/evolution.py \
  --analyze preferences \
  --source .learnings/LEARNINGS.md \
  --category correction

Evolution Metrics

Track evolution effectiveness:

# Generate metrics
python3 {baseDir}/scripts/evolution.py --metrics --period 30d

# Output
MetricDescriptionTarget
Error Reduction Rate% decrease in recurring errors>50%
Rule Adoption Rate% of proposed rules integrated>70%
User Satisfaction TrendPositive feedback ratio>0.8
Efficiency GainTime saved per interactionMeasurable
Learning VelocityNew rules per weekSustainable

Automated Evolution

Periodic Self-Assessment

Add to heartbeat or cron:

# Weekly self-assessment
python3 {baseDir}/scripts/evolution.py --self-assess --auto-evolve

# Output to evolution log
python3 {baseDir}/scripts/evolution.py --self-assess --log evolution-log.md

Integration with Self-Improvement Skill

This skill builds on self-improvement:

  1. self-improvement logs individual learnings
  2. self-evolution analyzes patterns across learnings
  3. self-evolution proposes behavioral changes
  4. self-improvement tracks the change as a learning

Workflow:

# Log a learning (self-improvement)
# → .learnings/LEARNINGS.md

# Pattern detection (self-evolution)
python3 {baseDir}/scripts/evolution.py --analyze --source .learnings/

# Proposed change appears
# → "Pattern: 5 occurrences of 'forgot to read file first'"

# Validate and integrate
python3 {baseDir}/scripts/evolution.py --integrate --approve
# → AGENTS.md updated

# Track as learning (self-improvement)
# → "Promoted rule: Always read before edit"

Evolution Rules

When to Evolve

Trigger evolution when:

SignalThresholdAction
Same error 3+ timesPattern detectedCreate prevention rule
User correction pattern2+ similar correctionsUpdate behavior
Workflow optimization20%+ efficiency gainUpdate workflow
Tool discoveryNew capability foundUpdate TOOLS.md
Preference patternConsistent user preferenceUpdate SOUL.md

What to Evolve

FileEvolution TypeFrequency
SOUL.mdPersonality, principlesRarely
AGENTS.mdWorkflows, rulesOften
TOOLS.mdTool knowledgeAs discovered
MEMORY.mdKey factsContinuously

Evolution Safeguards

Before any evolution:

  1. Validate - Test in isolation
  2. Review - Check for conflicts
  3. Backup - Save current state
  4. Reversible - Ensure can rollback
  5. Log - Track all changes
# Create backup before evolution
python3 {baseDir}/scripts/evolution.py --backup

# Rollback if needed
python3 {baseDir}/scripts/evolution.py --rollback --to "2025-01-20"

Reports

Evolution Report

# Generate comprehensive report
python3 {baseDir}/scripts/evolution.py --report --full

# Output
# Evolution Report: 2025-01-20

## Patterns Detected
- 3 error patterns (2 addressed)
- 5 success patterns (3 documented)
- 2 preference patterns (integrated)

## Rules Proposed
1. "Always read file before editing" → AGENTS.md
2. "Prefer concise over thorough" → SOUL.md

## Metrics
- Error reduction: 45%
- User satisfaction: 0.85
- Efficiency gain: 12%

## Next Actions
- Validate rule #1
- Review preference pattern #2

Diff Report

# Show what changed over time
python3 {baseDir}/scripts/evolution.py --diff --since "30 days ago"

Advanced Usage

Custom Pattern Detectors

Create custom detectors in scripts/detectors/:

# scripts/detectors/custom_detector.py
def detect_pattern(entries):
    """Custom pattern detection logic"""
    # Return list of detected patterns
    pass

Register:

python3 {baseDir}/scripts/evolution.py \
  --register-detector custom_detector \
  --path scripts/detectors/custom_detector.py

Evolution Hooks

Trigger evolution on specific events:

# hooks/evolution-hooks.yaml
on_error:
  - pattern: "file not found"
    action: "analyze"
    threshold: 3

on_user_correction:
  - action: "learn_preference"
    immediate: true

on_workflow_success:
  - action: "document_pattern"
    min_repetitions: 3

Integration Points

With longterm-memory skill

# Use memory context for evolution
python3 {baseDir}/scripts/evolution.py --analyze --with-memory

# Propose rules based on memory patterns
python3 {baseDir}/scripts/evolution.py --extract-patterns --source MEMORY.md

With self-improvement skill

# Feed patterns to self-improvement
python3 {baseDir}/scripts/evolution.py --feed-to self-improvement

# Use learnings as evolution source
python3 {baseDir}/scripts/evolution.py --analyze --source .learnings/

Best Practices

  1. Run analysis regularly - Weekly or bi-weekly
  2. Validate before integrating - Never auto-integrate without validation
  3. Keep evolution log - Track all changes and reasons
  4. Measure impact - Track metrics before/after changes
  5. Human oversight - Significant changes should be reviewed
  6. Rollback ready - Always maintain ability to revert
  7. Conservative approach - Better to miss an optimization than break behavior

Notes

  • Evolution is gradual, not revolutionary
  • Small, validated changes beat big untested changes
  • User feedback is the ultimate validation
  • Some patterns are noise, not signal
  • Evolution should make behavior more consistent, not less

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

77%
按下载量换算2,877

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills