Module: Clacky::Agent::SkillAutoCreator
- Included in:
- Clacky::Agent
- Defined in:
- lib/clacky/agent/skill_auto_creator.rb
Overview
Scenario 1: Auto-create new skills from complex task patterns.
After completing a complex task (high iteration count, no existing skill used), inject a system prompt asking the LLM to analyze if the workflow is reusable and worth capturing as a new skill.
If the LLM determines it’s valuable, it can invoke skill-creator in “quick mode” to generate a new skill automatically.
Constant Summary collapse
- DEFAULT_AUTO_CREATE_THRESHOLD =
Default minimum iterations to consider auto-creating a skill
12
Instance Method Summary collapse
-
#maybe_create_skill_from_task ⇒ Object
Check if we should prompt the LLM to consider creating a new skill Called from SkillEvolution#run_skill_evolution_hooks.
Instance Method Details
#maybe_create_skill_from_task ⇒ Object
Check if we should prompt the LLM to consider creating a new skill Called from SkillEvolution#run_skill_evolution_hooks
19 20 21 22 23 |
# File 'lib/clacky/agent/skill_auto_creator.rb', line 19 def maybe_create_skill_from_task return unless should_auto_create_skill? inject_skill_creation_prompt end |