1.2 KiB
1.2 KiB
Phase 14: Skill Sharpener
Purpose: Meta-review that evaluates execution results and generates improvements.
TS Module: src/tier3-compounding/skill-sharpener.ts
What It Does
After each skill execution, the sharpener:
- Checks execution success — did all steps pass?
- Evaluates quality score — is it above 0.5, 0.8?
- Analyzes duration trends — is this run slower than average?
- Reviews improvement suggestions — what did the execution self-report?
- Runs full evolution analysis — what structural changes are needed?
Review Score
Score = 50 (base) + qualityScore * 30 - failurePenalty + changeBonus
- Score < 30: no actionable improvements
- Score 30-70: minor improvements available
- Score > 70: significant improvements recommended
Quality Gate
Improvements are only applied if:
- Review score >= 30
- At least one suggested change exists
- The change is not a duplicate of an existing rule
Usage
fable-agent skills sharpen
Key Rules
- Run sharpen after every 3 skill executions
- The sharpener never modifies skills directly — it generates diffs
- Applied changes bump the skill version automatically
- Review history is persisted in
~/.fable-agent/reviews/