Evolve

From Luohaothu/everything-codex · View interactive version

Evolve is an AI agent skill from the GitHub repository Luohaothu/everything-codex. Cluster related instincts into higher-level skills. Analyzes instinct patterns and generates consolidated skill files.

How to use this skill

Skill file

Evolve Skill

Analyze instincts and cluster related ones into higher-level skills.

Usage

/evolve                    # Analyze all instincts and suggest evolutions
/evolve --domain testing   # Only evolve instincts in testing domain
/evolve --dry-run          # Show what would be created
/evolve --threshold 5      # Require 5+ related instincts to cluster

Evolution Process

  1. Read all instincts from ~/.codex/instincts/
  2. Group instincts by domain similarity, trigger pattern overlap, and action sequence
  3. For each cluster of 3+ related instincts, determine evolution type
  4. Generate the appropriate skill file
  5. Save to ~/.codex/evolved/skills/

Evolution Types

Skill (Auto-Triggered)

When instincts describe behaviors that should happen automatically:

Example: prefer-functional + use-immutable + avoid-classes → functional-patterns skill

Output Format

Evolve Analysis
==================

Found N clusters ready for evolution:

## Cluster 1: <Name>
Instincts: <list>
Type: Skill
Confidence: X% (based on N observations)

Would create: <skill-name> skill
Files:
  - ~/.codex/evolved/skills/<name>/SKILL.md

Flags

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.