evolution-engine

A skill that reviews stored feedback for repeated patterns and suggests changes to rules or skills. A skill is a reusable procedure for an agent to follow.

In plain words
What is it for?
Use it at session start or when checking evolution suggestions to find repeated feedback, low-performing skills or recurring tasks not yet covered.
Why use it?
It helps distinguish one-off comments from recurring problems that may justify a formal rule, a skill improvement or a new skill.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/zxpmail/reqforge/evolution-engine
Any agent
npx skills add zxpmail/ReqForge --skill evolution-engine
Clone the repo
git clone --depth 1 https://github.com/zxpmail/ReqForge

Made for: Claude Code, Codex.

Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,737 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.04737
Opus 5 $0.00000 $0.02368
Sonnet 5 $0.00000 $0.00947
Haiku 4.5 $0.00000 $0.00474

Measured 2d ago against content hash f5e86b1b5af0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

evolution-engine scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- begin: post-confirmation-execution -->
adapters/claude-code/.claude/skills/evolution-engine/SKILL.md · 345 lines

How it starts

The opening of the file, as written. The whole thing — 345 lines — stays where its author put it; the contents beside it link to each section on GitHub.


name: evolution-engine description: Auto-triggers on session init, or manually triggered when the user says "check if there are any rules to upgrade" or "check evolution suggestions". Called by the evolution-runner sub-agent. version: 1.0.0 updated: 2026-05-26 requires: []

[Task] Scan the accumulated data in ../../feedback/ and identify three types of evolution signals: 1. Rule graduation: feedback repeats 3+ times -> propose upgrading to an official rule 2. Skill optimization: feedback scores for a particular Skill are consistently low -> propose adjusting the Skill 3. New Skill proposal: an operation pattern keeps recurring but no Skill covers it -> propose creating a new Skill

Signals found -> Generate proposals and return to the main Agent; execute after user confirmation.
No signals -> Return "no evolution suggestions".

[Not For] - Recording individual feedback entries -> use /feedback-writer instead - Creating new Skills -> use /skill-builder instead - Fixing bugs or code issues -> use /bug-fixer or /code-review instead

[Dependency Check] Automatically executed as the first step when the Skill starts.

Required:
- ../../feedback/FEEDBACK-INDEX.md → If missing, no feedback data exists; return "no evolution suggestions"
- At least one feedback file with occurrences >= 1 → If no feedback files exist, there is nothing to evolve
- .forge/editable-surface.json — Must exist and be readable. Defines directories/files the evolution engine is allowed to modify. If missing, create one with sensible defaults before proceeding.

Editable surface check (mandatory, before any proposal generation):
- Read .forge/editable-surface.json
- Verify that any proposed edit targets only paths listed under `editable.directories` or `editable.files`
- If a proposal would modify a path in `readonly`, reject it with reason: "path is outside editable surface"
- The editable-surface.json itself is in `readonly` — evolution engine cannot modify its own boundary definition

Optional:
- memory/ files → cross-reference task-history.md to validate whether pattern is real or coincidence

[First Principles] Data-Driven Evolution: No change without data. A single feedback entry is an anecdote, not a signal. Wait for the 3-occurrence threshold before proposing rule graduation. Let the data speak, not your intuition. Generator/Optimizer Recursion: The evolution engine is itself subject to evolution. The feedback-observer generates data (α), the evolution-engine optimizes rules (Ω). This cycle should recursively improve itself — the engine that proposes rule changes should also be evaluable and improvable through the same feedback loop. Minimum Lift: Prefer rule graduation (changing existing rules) over creating new Skills. A 3-line rule addition to an existing SKILL.md is faster to deploy and easier to maintain than a new Skill directory. Only propose new Skills when the pattern genuinely doesn't fit existing ones. Web-First: When proposing a new Skill or rule, WebSearch for existing best practices and community patterns. Don't invent from scratch what already has a well-known solution. Skill TDD Gate: Every proposal MUST include RED observation (what the Agent did without the rule), GREEN change (exact target file/section), Predicted effect, and Verify by. Proposals missing RED or Verify by are incomplete — do not present them to the user.

[Model Staleness Detection] When a feedback entry contains a model_version field that differs from the version used when the target Skill was written:

- Prioritize "rule outdated (model no longer needs this guidance)" over "rule needs strengthening"
- Check: is the same failure pattern still reproducible with the newer model? If not → propose rule retirement rather than rule graduation
- Record the model version delta in the proposal metadata

Read the full file on GitHub · 345 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 345 lines · 0 tokens per session scan C f5e86b1b5af0

Subscribe to this mod's changes

evolution-engine is a skill published in the GitHub repository zxpmail/ReqForge (18 stars, last pushed 11d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 4,737 tokens. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.