agentleFS
danmestasdanmestas/wardrobe/skills/evolution-engine/SKILL.md

evolution-engine

Skill4 starsChanged 7 months agoMITView on GitHub

Use when the user wants to "analyze sessions", "find patterns in my agent history", "evolve config", "/evolve", "what's been frustrating you", or asks for automated suggestions for improving skills/configs based on session transcripts. Triggers on requests to surface recurring friction, propose allowlist additions, find stale memory, or generate diff-shaped recommendations against existing skills, settings, and memory files.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Default --since 7d run: under $0.05 (one Haiku call per detected cluster, capped at 30).

    line 54

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

evolution-engine

Library + wrapper for the Evolution category: read recent session history, detect recurring friction patterns, propose unified diffs against existing skills, configs, and memory.

What it does

  • Reuses the evolution-engine library (formerly published as meta-scout):
    • 12 behavioral/structural signal detectors (edit-thrashing, error-loop, correction-heavy, repeated-instructions, negative-drift, etc.)
    • Struggle-then-success arc detection
    • Skill-catalog dedup
  • Adds two agent-skills-specific detectors:
    • Recurring permission prompts → diff appending to .claude/settings.json permissions.allow[]
    • Stale memory references → diff deleting dead file/branch refs from memory
  • Renders unified diffs against existing files. Does NOT auto-apply. Human reviews and runs git apply or hand-edits.

The split: meta-scout-style detection finds what's wrong; evolution-engine proposes how to fix existing config to prevent it.

Usage

suit-build evolve runs via the repo's npm script:

npm run evolve -- --since 7d --project agent-skills    # default: detect + propose
npm run evolve -- --since 14d --no-llm                 # deterministic only (skip Haiku calls)
npm run evolve -- --include-arcs                       # include arc-driven proposals
npm run evolve -- --dry-run                            # detect but don't write report

Or run the underlying detector CLI directly:

npx evolution-engine patterns --json     # 12 signals as JSON
npx evolution-engine automation --json   # struggle-then-success arcs as JSON

Cost

Default --since 7d run: under $0.05 (one Haiku call per detected cluster, capped at 30). --no-llm is fully deterministic.

The 12 signals and arc detection are deterministic — no LLM cost.

Output

A markdown report at ~/.claude/evolution-reports/<project>/<YYYY-MM-DD>.md:

  • Summary table (pattern, count, severity, top fix)
  • Findings ordered by severity (high → low), each with evidence quotes and a unified diff against the target file
  • Reports stay local-only; redaction filter strips secrets and sensitive paths before render

See also

  • Spec: docs/superpowers/specs/2026-04-27-evolution-skill-design.md (local)
  • Taxonomy: TAXONOMY.md (Evolution category — the closed-loop self-modification primitive)
  • Library: github.com/danmestas/meta-scout (renaming to evolution-engine — separate repo PR)
  • Implementation plan: forthcoming via writing-plans

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.