From asi
Provides evolutionary patterns for robust, self-improving skills in agent ecosystems, including fitness metrics, mutation operators, and selection pressures.
npx claudepluginhub plurigrid/asi --plugin asiThis skill uses the workspace's default tool permissions.
Self-improving skill ecosystems via evolutionary pressure.
Defines YAML schema, constraints, directory structure, and robustness patterns for SKILL.md files compatible across Claude Code, Cursor, Codex CLI, and future agents. Use when authoring skills.
Optimizes SKILL.md files for Claude Code by scoring across 8 dimensions (YAML completeness, triggers, structure, clarity, tests), proposing improvements, testing changes, and git-reverting non-improvements.
Evolves SKILL.md files from agent execution traces via three-stage pipeline: trajectory collection, parallel multi-agent patch proposals for error/success analysis, and prevalence-weighted consolidation of overlapping edits.
Share bugs, ideas, or general feedback.
Self-improving skill ecosystems via evolutionary pressure.
Skills that survive across agent generations share:
def compatibility_score(skill_dir):
validators = [
("codex-rs", run_codex_validator),
("claude-code", run_claude_validator),
("skills-ref", run_agentskills_validator),
]
passed = sum(1 for _, v in validators if v(skill_dir))
return passed / len(validators)
Target: 1.0 (passes all validators)
SELECT skill_name,
COUNT(*) as activations,
AVG(success_rate) as effectiveness
FROM skill_usage
GROUP BY skill_name
ORDER BY activations DESC
Skills with low activation → candidates for mutation or extinction.
def token_efficiency(skill):
tokens_used = count_tokens(skill.body)
task_success = measure_task_completion(skill)
return task_success / tokens_used
Smaller skills that accomplish tasks = higher fitness.
# Before (vague)
description: Helps with databases
# After (specific triggers)
description: Design PostgreSQL schemas, write migrations, optimize queries. Use for database design, schema changes, or query performance issues.
# Before: 800 lines
[verbose explanations...]
# After: 200 lines + references/
See [detailed API](references/API.md) for complete documentation.
When a skill drifts from its trit assignment:
# Was ERGODIC (0) but became too generative
metadata:
trit: 0 # Review: should this be +1?
Combine successful patterns from high-fitness skills:
# From pdf skill: structured extraction
# From code-review skill: checklist pattern
# Result: new hybrid skill
High activation + High success → Proliferate
High activation + Low success → Mutate
Low activation + Any success → Specialize or merge
Low activation + Low success → Deprecate
# CI pipeline rejects non-compliant skills
if ! skills-ref validate "$skill"; then
echo "Skill failed validation - blocking merge"
exit 1
fi
Skills that compose well with others spread their patterns:
structured-decomp ⊗ bumpus-narratives ⊗ gay-mcp = 0 ✓
GF(3)-balanced triads have reproductive advantage.
When a skill grows too large, split into subspecies:
database-design/
├── SKILL.md (core patterns)
└── references/
├── postgresql.md
├── mysql.md
└── mongodb.md
# Later evolves into:
database-postgresql/SKILL.md
database-mysql/SKILL.md
database-mongodb/SKILL.md
Remove skills that:
Preserve extinct skills for archaeology:
skills/.archive/
├── deprecated-skill-v1/
│ ├── SKILL.md
│ └── EXTINCTION_NOTES.md
Rapid skill diversification when:
↑ Effectiveness
│
●────●────● Local optima (trap)
/│ │
/ │ ◉ │ Global optimum
/ │ /│\ │
●───●──/ │ \──●
│ ╱ ╲
│ ╱ ╲
●────────●
→
Generality
Avoid local optima via:
struct SkillGenome
name::String
description::String
body::String
metadata::Dict{String,Any}
fitness::Float64
end
function evolve(population::Vector{SkillGenome}, generations::Int)
for _ in 1:generations
# Selection
survivors = select_fittest(population, 0.5)
# Crossover
offspring = crossover(survivors)
# Mutation
mutants = mutate(offspring, rate=0.1)
# Validation filter
population = filter(validate, vcat(survivors, mutants))
end
population
end
skill-specification - Formal SKILL.md schemagodel-machine - Self-improving system theorybisimulation-game - Skill equivalence testingThis skill connects to the K-Dense-AI/claude-scientific-skills ecosystem:
general: 734 citations in bib.duckdbThis skill maps to Cat# = Comod(P) as a bicomodule in the equipment structure:
Trit: 0 (ERGODIC)
Home: Prof
Poly Op: ⊗
Kan Role: Adj
Color: #26D826
The skill participates in triads satisfying:
(-1) + (0) + (+1) ≡ 0 (mod 3)
This ensures compositional coherence in the Cat# equipment structure.