agentleFS
bordenetbordenet/superpowers-plus/skills/observability/evolution-loop/skill.md

evolution-loop

Skill8 starsChanged 7 months agoMITView on GitHub

Self-improvement cycle: scans session logs, failure autopsies, and decision logs for recurring patterns. Auto-generates skill updates or new skills. Tracks improvement metrics over time.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After failure autopsies reveal a pattern

    line 41
  2. Distinctive:

    When same mistake occurs 3rd time

    line 42

≈ “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 Loop

Wrong skill? New skill from scratch -> skill-authoring. Post-mortem -> failure-autopsy. Skill formatting -> skill-health-check.

Announce at start: "I am using the evolution-loop skill to identify improvement opportunities."

When to Use

  • At end of significant session (3+ hours)
  • After failure autopsies reveal a pattern
  • When same mistake occurs 3rd time
  • During deliberate improvement sprints

Example

# Example: Pattern detection from failure log
echo "=== Recurring Patterns ==="
echo "| Pattern        | Count | Affected Skill | Action          |"
echo "| File not found | 3     | save-file      | Add path verify |"
echo "| Wrong branch   | 2     | pre-commit     | Add branch gate |"
echo "Actions: 2 skill updates queued"

Evolution Protocol

Step 1: Scan Sources

Failure log, decision log, conversation struggles, recurring TODO deferrals.

Step 2: Classify

TypeSignalAction
Repeated failureSame root cause 2+Update failure modes
Missing triggerSkill does not fireAdd trigger
Missing skillNo coverageDraft via skill-authoring
Weak gateFalse passesStrengthen criteria
Process gapManual stepAutomate in skill

Step 3: Generate Updates

Pattern + Frequency + Affected skill + Update type + Change

Step 4: Track

Patterns detected: N . Skills updated: M . New skills: K . Failures eliminated: J


Anti-Patterns

Anti-PatternDetectionCorrection
Over-fittingSkill for one-time eventRequire 2+ occurrences
Metrics-free updateNo before/afterAdd measurement-integrity
Endless self-improvementSelf-modifies repeatedlyCap: 1 self-update/session
Ignoring dataPattern found, no actionGenerate PR or TODO

Failure Modes

FailureDetectionRecovery
Useless skillsNever triggersReview triggers, add examples
Over-fittingCreated for one-time eventRequire 2+ occurrences
No metricsNo before/afterAdd measurement-integrity
Self-referential loopImproves itself endlesslyCap: 1 self-update/session

Companion Skills

  • failure-autopsy: Primary input (failure patterns)
  • skill-authoring: Creating new skills from patterns
  • skill-health-check: Validating updates
  • measurement-integrity: Tracking metrics
  • quantitative-decision-gate: Deciding which patterns matter

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.