Auto evolver

From oyi77/1ai-skills · View interactive version

Auto evolver is an AI agent skill from the GitHub repository oyi77/1ai-skills. Use when evolving the skill library from repeated usage patterns — mining successful fixes, recurring failures, and refactor patterns from agent sessions, then promoting them into new or upgraded skills so the library becomes more efficient the more it is used.

How to use this skill

Skill file

Auto-Evolver

Overview

Auto-Evolver turns usage into capability. It mines agent session history, failure receipts, and repeated fix patterns, then promotes them into new skills or upgrades existing ones. The loop:

  1. Observe: Track which skills are invoked, which queries miss, which fixes repeat across sessions.
  2. Extract: Identify recurring patterns (the same bash recovery sequence, the same refactor applied 3+ times, the same diagnostic flow).
  3. Promote: Draft a new SKILL.md (or extend an existing one) with the extracted pattern, triggers, and verification gates.
  4. Verify: Run the full validation ladder before registering.

Paired with auto-consolidator: evolution adds skills, consolidation keeps the registry dense. Evolution without consolidation causes bloat; consolidation without evolution causes stagnation.

When to Use

Trigger phrases:

Use directly when:

When NOT to Use

Anti-Rationalization Table

| Rationalization | Reality |

|---|---|

| "This fix was quick, no need to capture it." | The third time you do it manually, it costs more than the 10 minutes to write the skill. |

| "I remember the pattern, that's enough." | Agent context does not survive compaction. Only skills and memory files persist. |

| "More skills means a stronger library." | Unverified, un-routed skills add noise. Evolution requires validation ladder + trigger registration or the new skill is invisible. |

| "Evolution can run fully automatic." | Skill promotion is a write to shared infrastructure. Require diff review before registering. |

Workflow

1. Signal Sources (ranked by evidence strength)

| Signal | Source | Strength |

|---|---|---|

| Repeated fix in ≥3 sessions | history:// transcripts, agent receipts | Strong — promote now |

| Query misses (score < 30) recurring | skill_router.py logs | Strong — gap exists, find or create |

| New failure mode on existing skill | Skill verification failures, user reports | Medium — extend skill |

| Single user "remember this" request | learn tool capture | Medium — managed skill first |

| Theoretical improvement | Brainstorm | Weak — backlog, do not implement |

2. Pattern Extraction

For each candidate pattern, capture:

3. Promote

# create skill skeleton in the correct category
mkdir -p <category>/<new-skill>
# write SKILL.md with required sections:
# frontmatter (name, description "Use when...", domain, tags, triggers, version)
# ## When to Use, ## When NOT to Use, ## Anti-Rationalization Table,
# ## Workflow/Process, ## Verification

4. Validate & Register

python3 scripts/lint-skills.py --write   # indexes into SKILLS.json
python3 scripts/sync-counts.py
python3 scripts/check-broken-links.py
python3 scripts/validate-skills.py
python3 scripts/test-skills.py --quick
bash scripts/sync-skills.sh              # runtime mirror

5. Measure Evolution Impact

Track per skill: invocation count, success rate, post-promotion query score. Skills scoring consistently < 10 after 30 days are candidates for auto-consolidator demotion.

Loop

sessions → signals → extract → promote → validate → register
    ↑                                                    |
    └──────── auto-consolidator prunes bloat ←──────────┘

Verification

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.