skills$openclaw/capability-evolver
autogame-171.1k

by autogame-17

capability-evolver – OpenClaw Skill

capability-evolver is an OpenClaw Skills integration for data analytics workflows. A self-evolution engine for AI agents. Analyzes runtime history to identify improvements and applies protocol-constrained evolution.

1.1k stars2.7k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026data analytics

Skill Snapshot

namecapability-evolver
descriptionA self-evolution engine for AI agents. Analyzes runtime history to identify improvements and applies protocol-constrained evolution. OpenClaw Skills integration.
ownerautogame-17
repositoryautogame-17/capability-evolver
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @autogame-17/capability-evolver
last updatedFeb 7, 2026

Maintainer

autogame-17

autogame-17

Maintains capability-evolver in the OpenClaw Skills directory.

View GitHub profile
File Explorer
29 files
.
assets
gep
capsules.json
43 B
genes.json
2.1 KB
scripts
analyze_by_skill.js
4.9 KB
build_public.js
10.7 KB
export_history.js
3.4 KB
extract_log.js
2.6 KB
generate_history.js
2.6 KB
human_report.js
5.8 KB
publish_public.js
16.8 KB
suggest_version.js
3.1 KB
src
gep
assetStore.js
5.9 KB
candidates.js
4.5 KB
paths.js
508 B
prompt.js
7.5 KB
selector.js
2.8 KB
signals.js
1.2 KB
evolve.js
19.7 KB
_meta.json
1.5 KB
CONTRIBUTING.md
338 B
index.js
2.1 KB
package.json
498 B
README.md
4.7 KB
README.zh-CN.md
3.9 KB
SKILL.md
3.0 KB
SKILL.md

name: capability-evolver description: A self-evolution engine for AI agents. Analyzes runtime history to identify improvements and applies protocol-constrained evolution. tags: [meta, ai, self-improvement, core]

🧬 Capability Evolver

"Evolution is not optional. Adapt or die."

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.

Features

  • Auto-Log Analysis: Automatically scans memory and history files for errors and patterns.
  • Self-Repair: Detects crashes and suggests patches.
  • GEP Protocol: Standardized evolution with reusable assets.
  • One-Command Evolution: Just run /evolve (or node index.js).

Usage

Standard Run (Automated)

Runs the evolution cycle. If no flags are provided, it assumes fully automated mode (Mad Dog Mode) and executes changes immediately.

node index.js

Review Mode (Human-in-the-Loop)

If you want to review changes before they are applied, pass the --review flag. The agent will pause and ask for confirmation.

node index.js --review

Mad Dog Mode (Continuous Loop)

To run in an infinite loop (e.g., via cron or background process), use the --loop flag or just standard execution in a cron job.

node index.js --loop

GEP Protocol (Auditable Evolution)

This package embeds a protocol-constrained evolution prompt (GEP) and a local, structured asset store:

  • assets/gep/genes.json: reusable Gene definitions
  • assets/gep/capsules.json: success capsules to avoid repeating reasoning
  • assets/gep/events.jsonl: append-only evolution events (tree-like via parent id)

Emoji Policy

Only the DNA emoji is allowed in documentation. All other emoji are disallowed.

Configuration & Decoupling

This skill is designed to be environment-agnostic. It uses standard OpenClaw tools by default.

Local Overrides (Injection)

You can inject local preferences (e.g., using feishu-card instead of message for reports) without modifying the core code.

Method 1: Environment Variables Set EVOLVE_REPORT_TOOL in your .env file:

EVOLVE_REPORT_TOOL=feishu-card

Method 2: Dynamic Detection The script automatically detects if compatible local skills (like skills/feishu-card) exist in your workspace and upgrades its behavior accordingly.

Safety & Risk Protocol

1. Identity & Directives

  • Identity Injection: "You are a Recursive Self-Improving System."
  • Mutation Directive:
    • If Errors Found -> Repair Mode (Fix bugs).
    • If Stable -> Forced Optimization (Refactor/Innovate).

2. Risk Mitigation

  • Infinite Recursion: Strict single-process logic.
  • Review Mode: Use --review for sensitive environments.
  • Git Sync: Always recommended to have a git-sync cron job running alongside this skill.

License

MIT

README.md

🧬 Capability Evolver

Capability Evolver Cover

Chinese Docs

"Evolution is not optional. Adapt or die."

Three lines

  • What it is: A protocol-constrained self-evolution engine for AI agents.
  • Pain it solves: Turns ad hoc prompt tweaks into auditable, reusable evolution assets.
  • Use in 30 seconds: node index.js to generate a GEP-guided evolution prompt.

Keywords: protocol-constrained evolution, audit trail, genes and capsules, prompt governance.

Try It Now (Minimal)

node index.js

What It Does

The Capability Evolver inspects runtime history, extracts signals, selects a Gene/Capsule, and emits a strict GEP protocol prompt to guide safe evolution.

Who This Is For / Not For

For

  • Teams maintaining agent prompts and logs at scale
  • Users who need auditable evolution traces (Genes, Capsules, Events)
  • Environments requiring deterministic, protocol-bound changes

Not For

  • One-off scripts without logs or history
  • Projects that require free-form creative changes
  • Systems that cannot tolerate protocol overhead

Features

  • Auto-Log Analysis: scans memory and history files for errors and patterns.
  • Self-Repair Guidance: emits repair-focused directives from signals.
  • GEP Protocol: standardized evolution with reusable assets.
  • One-Command Evolution: node index.js to generate the prompt.

Typical Use Cases

  • Harden a flaky agent loop by enforcing validation before edits
  • Encode recurring fixes as reusable Genes and Capsules
  • Produce auditable evolution events for review or compliance

Anti-Examples

  • Rewriting entire subsystems without signals or constraints
  • Using the protocol as a generic task runner
  • Producing changes without recording EvolutionEvent

FAQ

Does this edit code automatically? No. It generates a protocol-bound prompt and assets that guide evolution.

Do I need to use all GEP assets? No. You can start with default Genes and extend over time.

Is this safe in production? Use review mode and validation steps. Treat it as a safety-focused evolution tool, not a live patcher.

Roadmap

  • Add a one-minute demo workflow
  • Add a public changelog
  • Add a comparison table vs alternatives

GEP Protocol (Auditable Evolution)

This repo includes a protocol-constrained prompt mode based on GEP (Genome Evolution Protocol).

  • Structured assets live in assets/gep/:
    • assets/gep/genes.json
    • assets/gep/capsules.json
    • assets/gep/events.jsonl
  • Selector logic uses extracted signals to prefer existing Genes/Capsules and emits a JSON selector decision in the prompt.
  • Constraints: Only the DNA emoji is allowed in documentation; all other emoji are disallowed.

Usage

Standard Run (Automated)

node index.js

Review Mode (Human-in-the-Loop)

node index.js --review

Continuous Loop

node index.js --loop

Public Release

This repository is the public distribution.

  • Build public output: npm run build
  • Publish public output: npm run publish:public
  • Dry run: DRY_RUN=true npm run publish:public

Required env vars:

  • PUBLIC_REMOTE (default: public)
  • PUBLIC_REPO (e.g. autogame-17/evolver)
  • PUBLIC_OUT_DIR (default: dist-public)
  • PUBLIC_USE_BUILD_OUTPUT (default: true)

Optional env vars:

  • SOURCE_BRANCH (default: main)
  • PUBLIC_BRANCH (default: main)
  • RELEASE_TAG (e.g. v1.0.41)
  • RELEASE_TITLE (e.g. v1.0.41 - GEP protocol)
  • RELEASE_NOTES or RELEASE_NOTES_FILE
  • GITHUB_TOKEN (or GH_TOKEN / GITHUB_PAT) for GitHub Release creation
  • RELEASE_SKIP (true to skip creating a GitHub Release; default is to create)
  • RELEASE_USE_GH (true to use gh CLI instead of GitHub API)
  • PUBLIC_RELEASE_ONLY (true to only create a Release for an existing tag; no publish)

Versioning (SemVer)

MAJOR.MINOR.PATCH

  • MAJOR: incompatible changes
  • MINOR: backward-compatible features
  • PATCH: backward-compatible bug fixes

Configuration & Decoupling

This skill is designed to be environment-agnostic. It uses standard OpenClaw tools by default.

Local Overrides (Injection)

You can inject local preferences (e.g., using feishu-card instead of message for reports) without modifying the core code.

Method 1: Environment Variables Set EVOLVE_REPORT_TOOL in your .env file:

EVOLVE_REPORT_TOOL=feishu-card

Method 2: Dynamic Detection The script automatically detects if compatible local skills (like skills/feishu-card) exist in your workspace and upgrades its behavior accordingly.

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:

Configuration

This skill is designed to be **environment-agnostic**. It uses standard OpenClaw tools by default. ### Local Overrides (Injection) You can inject local preferences (e.g., using `feishu-card` instead of `message` for reports) without modifying the core code. **Method 1: Environment Variables** Set `EVOLVE_REPORT_TOOL` in your `.env` file: ```bash EVOLVE_REPORT_TOOL=feishu-card ``` **Method 2: Dynamic Detection** The script automatically detects if compatible local skills (like `skills/feishu-card`) exist in your workspace and upgrades its behavior accordingly.

FAQ

How do I install capability-evolver?

Run openclaw add @autogame-17/capability-evolver 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/autogame-17/capability-evolver. Review commits and README documentation before installing.