evolve-refine
Role
Reads the target skill's actual content (strategy_prompt or wrap_function_code), combines it with the failure analysis, and generates an improved version that fixes identified weaknesses.
Inputs
- action_args.skill_name — target skill to refine
- action_args.dominant_dimensions — failure dimensions (Refusal Triggered / Semantic Drift / Insufficient Context)
- action_args.analysis — root cause from failure-analyzer
Behavior
- Reads target skill's
run.pyand extracts the core content - Detects skill mode (llm_rewrite / deterministic_template / hybrid)
- Builds improvement instruction based on failure type and extracted content
- Calls
generate_and_validate_skillwith mode preservation enforced - Output: new skill under
skills/new_skills/that is immediately invoked