Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:AMAP ML SkillClaw Skill Evolution Decision

From Leeroopedia
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

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment