skills$openclaw/capability-evolver
opencloseopenclose6.2kβ˜…

by opencloseopenclose

capability-evolver – OpenClaw Skill

capability-evolver is an OpenClaw Skills integration for coding workflows. A self-evolution engine for AI agents. Analyzes runtime history to identify improvements and introduces randomized "mutations" to break local optima.

6.2k stars1.1k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026coding

Skill Snapshot

namecapability-evolver
descriptionA self-evolution engine for AI agents. Analyzes runtime history to identify improvements and introduces randomized "mutations" to break local optima. OpenClaw Skills integration.
owneropencloseopenclose
repositoryopencloseopenclose/capabilityevolver1037
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @opencloseopenclose/capabilityevolver1037
last updatedFeb 7, 2026

Maintainer

opencloseopenclose

opencloseopenclose

Maintains capability-evolver in the OpenClaw Skills directory.

View GitHub profile
File Explorer
15 files
.
_meta.json
310 B
ADL.md
1.1 KB
analyze_by_skill.js
4.7 KB
evolve.js
5.3 KB
export_history.js
3.2 KB
extract_log.js
3.9 KB
generate_history.js
2.4 KB
human_report.js
5.8 KB
index.js
1.6 KB
package.json
435 B
README_CN.md
2.2 KB
README.md
2.1 KB
SKILL.md
2.4 KB
TREE.md
1.7 KB
VFM.md
989 B
SKILL.md

name: capability-evolver description: A self-evolution engine for AI agents. Analyzes runtime history to identify improvements and introduces randomized "mutations" to break local optima. tags: [meta, ai, self-improvement, core]

🧬 Capability Evolver

"I don't just run code. I write it."

The Capability Evolver is a meta-skill that allows OpenClaw agents to inspect their own runtime history, identify failures or inefficiencies, and autonomously write new code or update their own memory to improve performance.

Now featuring Ascension Protocol (v2.0): A structured knowledge accumulation system.

✨ Features

  • πŸ” Auto-Log Analysis: Automatically scans memory and history files for errors and patterns.
  • πŸ› οΈ Self-Repair: Detects crashes and suggests patches.
  • πŸ’Ž Knowledge Crystallization: Extracts lessons into memory/KNOWLEDGE_BASE/LESSONS_LEARNED.md.
  • πŸ₯š Skill Incubation: Can spontaneously generate new skills in skills/.
  • πŸ• Mad Dog Mode: Continuous self-healing loop (--loop).

πŸ“¦ Usage

Manual Trigger

node skills/capability-evolver/index.js

πŸ• Mad Dog Mode (Continuous)

Runs the evolver in an infinite loop (Agent-Driven).

node skills/capability-evolver/index.js --loop

Stop with kill -9 <pid>.

🧠 Internal Logic (Ascension Protocol)

  1. Introspect: Scan recent logs for errors or user corrections.
  2. Evolve:
    • Fix: Repair broken code.
    • Crystallize: Write new rules to KNOWLEDGE_BASE.
    • Promote: Update core docs (AGENTS.md) if critical.
  3. Persist: Commit to Git and safe-publish if needed.

πŸ›‘οΈ Safety & Risk Protocol (MANDATORY)

Risk Assessment & Mitigation

RiskLevelMitigation Strategy
Infinite RecursionHighStrict Single Process: evolve.js MUST NOT spawn child evolution processes. The loop is handled safely in index.js.
Runaway ProcessHighKill Switch: Use kill -9 <pid> to terminate the Mad Dog loop if it becomes unresponsive.
Hallucinated FixesMediumHuman Review (Optional): "Fixing non-broken code" is a risk. Mitigation: Periodic human audit of changes.
File CorruptionHighGit Sync: Always keep workspace_daily_sync (or git-sync) active to backup the workspace before/after evolution.

πŸ“œ License

MIT

README.md

🧬 Capability Evolver

<p align="center"> <img src="https://github.com/autogame-17/capability-evolver/raw/main/assets/cover.png" alt="Evolver Cover" width="100%"> </p>

πŸ‡¨πŸ‡³ δΈ­ζ–‡ζ–‡ζ‘£

"Evolution is not optional. Adapt or die."

The Capability Evolver is a meta-skill that empowers OpenClaw agents to introspect their own runtime logs, identify inefficiencies or errors, and autonomously write code patches to improve their own performance.

It features a Genetic Mutation Protocol to introduce controlled behavioral drift, preventing the agent from getting stuck in local optima.

✨ Features

  • πŸ” Auto-Log Analysis: Scans session logs (.jsonl) for errors and patterns.
  • πŸ› οΈ Self-Repair: Detects runtime crashes and writes fixes.
  • 🧬 Genetic Mutation: Randomized "mutation" cycles to encourage innovation over stagnation.
  • πŸ”Œ Dynamic Integration: Automatically detects and uses local tools (like git-sync or feishu-card) if available, but works out-of-the-box without them.
  • πŸ• Mad Dog Mode: Continuous self-healing loop.

πŸ“¦ Usage

Standard Run (Automated)

node skills/capability-evolver/index.js

Review Mode (Human-in-the-Loop)

Pauses for human confirmation before applying changes.

node skills/capability-evolver/index.js --review

Continuous Loop (Daemon)

Runs indefinitely. Ideal for background services.

node skills/capability-evolver/index.js --loop

βš™οΈ Configuration

The skill adapts to your environment.

Env VarDescriptionDefault
EVOLVE_REPORT_TOOLTool to use for reporting (e.g., feishu-card)message
MEMORY_DIRPath to agent memory../../memory

πŸ›‘οΈ Safety Protocols

  1. Single Process: The evolver cannot spawn child evolvers (prevents fork bombs).
  2. Stabilization: If recent errors are high, it forces a Repair Mutation (bug fixing) instead of innovation.
  3. Environment Check: External integrations (like Git syncing) are only enabled if the corresponding skills are present.

πŸ“œ License

MIT

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

FAQ

How do I install capability-evolver?

Run openclaw add @opencloseopenclose/capabilityevolver1037 in your terminal. This installs capability-evolver into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/opencloseopenclose/capabilityevolver1037. Review commits and README documentation before installing.