/learn-eval Command
Extends/learn with a quality gate and save-location decision before writing any skill file.
Process
- Review session for extractable patterns
- Identify the most valuable/reusable insight
- Determine save location:
- Global (
~/.claude/skills/learned/): Generic patterns usable across 2+ projects - Project (
.claude/skills/learned/): Project-specific knowledge
- Global (
- Draft the skill file
- Self-evaluate using quality rubric
- Ask user to confirm with scores table
- Save to determined location
Quality Rubric
| Dimension | 1 | 3 | 5 |
|---|---|---|---|
| Specificity | Abstract principles only | Representative example present | Rich examples covering all patterns |
| Actionability | Unclear what to do | Main steps understandable | Immediately actionable, edge cases covered |
| Scope Fit | Too broad or too narrow | Mostly appropriate | Name, trigger, and content perfectly aligned |
| Non-redundancy | Nearly identical to another skill | Some overlap but unique | Completely unique value |
| Coverage | Covers fraction of task | Main cases covered | Main cases, edge cases, and pitfalls covered |
Command Syntax
Evaluation Output
Requirements
- All dimensions must score ≥ 3 before saving
- If any dimension scores 1-2, improve draft and re-score
- User must explicitly confirm before writing
Related
- Commands:
/learn,/skill-create,/evolve