evolution-loop
Skill8 starsChanged 17 days 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.
In this repository134 other files it gives its agents.
- AGENTS.mdAGENTS.md
- guidance/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- guidance/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/cli-tools.mdcCursor rule
- .cursor/rules/invariants.mdcCursor rule
- .cursor/rules/javascript.mdcCursor rule
- .cursor/rules/security.mdcCursor rule
- .cursor/rules/shell.mdcCursor rule
- blast-radius-checkSkill
- brainstormingSkill
- branch-flow-gateSkill
- branch-sync-gateSkill
- codebase-reconSkill
- codeowners-drift-auditSkill
- code-review-batterySkill
- cognitive-complexity-refactoringSkill
- debateSkill
- debug-conductorSkill
- dispatching-parallel-agentsSkill
- domain-buildSkill
- evidence-adjudicatorSkill
- executing-plansSkill
- external-cli-auditSkill
- feature-developmentSkill
- field-rename-verificationSkill
- finishing-a-development-branchSkill
- git-branch-conventionsSkill
- gitlab-cliSkill
- hotfix-charterSkill
- implementation-trackerSkill
- incident-revert-reviewSkill
- infra-config-investigatorSkill
- investigation-stateSkill
- kernel-splitSkill
- llm-behavior-investigatorSkill
- llm-skill-reviewSkill
- merge-authorization-gateSkill
- micro-harsh-reviewSkill
- output-verificationSkill
- pre-commit-gateSkill
- progressive-code-review-gateSkill
- progressive-harsh-reviewSkill
- providing-code-reviewSkill
- pr-triage-gateSkill
- push-authorization-gateSkill
- receiving-code-reviewSkill
- reproduction-experiment-investigatorSkill
- requesting-code-reviewSkill
- requirements-validation-pmSkill
- requirements-validationSkill
- scope-tripwireSkill
- session-handoffSkill
- skills-hierarchy-tuningSkill
- sp-bughuntSkill
- state-consistency-investigatorSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- The first 60 shown.
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
- Distinctive: line 41
After failure autopsies reveal a pattern
- Distinctive: line 42
When same mistake occurs 3rd time
≈ “Common” is an estimate: at least 1 in 5 of the 383,637 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.
Files
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
| Type | Signal | Action |
| Repeated failure | Same root cause 2+ | Update failure modes |
| Missing trigger | Skill does not fire | Add trigger |
| Missing skill | No coverage | Draft via skill-authoring |
| Weak gate | False passes | Strengthen criteria |
| Process gap | Manual step | Automate 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-Pattern | Detection | Correction |
| Over-fitting | Skill for one-time event | Require 2+ occurrences |
| Metrics-free update | No before/after | Add measurement-integrity |
| Endless self-improvement | Self-modifies repeatedly | Cap: 1 self-update/session |
| Ignoring data | Pattern found, no action | Generate PR or TODO |
Failure Modes
| Failure | Detection | Recovery |
| Useless skills | Never triggers | Review triggers, add examples |
| Over-fitting | Created for one-time event | Require 2+ occurrences |
| No metrics | No before/after | Add measurement-integrity |
| Self-referential loop | Improves itself endlessly | Cap: 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
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
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.

