Principle:AMAP ML SkillClaw Skill Evolution Decision
| Knowledge Sources | |
|---|---|
| Domains | Skill_Evolution, LLM_Prompting |
| Last Updated | 2026-10-22 00:00 GMT |
Overview
An LLM-driven decision mechanism that analyzes session evidence and decides whether to improve, optimize, create, or skip skill evolution, producing concrete updated skill content.
Description
The skill evolution decision addresses the problem of determining the right action for a skill given session evidence. The SkillClaw pattern sends the current skill (if any), session evidence (trajectories + summaries), and existing skill names to an LLM. The LLM decides among three actions: `improve_skill` (rewrite content based on evidence), `optimize_description` (refine the description only), or `skip` (no change needed). For the no-skill group, `create_skill` proposes an entirely new skill. When two versions of a skill conflict, `execute_merge` combines them. The LLM returns structured JSON that is parsed into a skill dict with name, description, category, and content.
Usage
Use this principle when designing systems that need:
- LLM-driven content evolution decisions
- Multi-action selection (improve, optimize, create, skip)
- Evidence-grounded skill rewriting
- Conflict resolution via skill merging
Theoretical Basis
The decision is an LLM classification + generation task:
# Abstract algorithm (NOT real implementation)
async def evolve_skill(llm, skill_name, sessions, current_skill):
evidence = build_evidence_block(sessions) # trajectory + summary per session
prompt = f"Current skill: {current_skill}\nEvidence: {evidence}\nAction?"
response = await llm.chat(prompt)
decision = parse_json(response) # {action, skill: {name, desc, content}}
if decision.action == "skip":
return None
return decision.skill