Module: Clacky::Agent::SkillEvolution

Included in:
Clacky::Agent
Defined in:
lib/clacky/agent/skill_evolution.rb

Overview

Unified entry point for skill self-evolution system. Coordinates two scenarios:

1. Auto-create new skills from complex task patterns
2. Reflect on executed skills and suggest improvements

Triggered at the end of Agent#run (post-run hooks), only for main agents.

Instance Method Summary collapse

Instance Method Details

#run_skill_evolution_hooksObject

Main entry point - runs all skill evolution checks Called from Agent#run after the main loop completes



14
15
16
17
18
19
20
21
22
23
# File 'lib/clacky/agent/skill_evolution.rb', line 14

def run_skill_evolution_hooks
  return unless skill_evolution_enabled?
  return if @is_subagent

  # Scenario 2: Reflect on executed skill (if one just ran)
  maybe_reflect_on_skill if @skill_execution_context

  # Scenario 1: Auto-create new skill from complex task
  maybe_create_skill_from_task
end