evaluate-skill
Path to a JSON file containing test cases (array of { input, expectedOutcome })
Evaluate Skill
Orchestrate a cross-tier evaluation of an AI skill to determine its clarity and robustness.
Procedure
-
Load inputs
- Read the skill file at
{{ skill-path }} - Read the test cases file at
{{ test-cases-path }} - Validate that test cases is a JSON array of objects with
inputandexpectedOutcomefields
- Read the skill file at
-
Set up evaluation matrix
- Model tiers to test:
opus,sonnet,haiku - For each tier, for each test case: plan one blind test run
- Model tiers to test:
-
Execute blind tests (highest tier first)
- For each model tier (opus → sonnet → haiku):
- For each test case:
- Spawn a test-subject agent at the current tier
- Provide it ONLY the skill content and the test case
input - Do NOT provide the
expectedOutcometo the test subject - Collect the test subject's output
- For each test case:
- For each model tier (opus → sonnet → haiku):
-
Evaluate results
- For each test run, compare the test subject's output against the
expectedOutcome - Determine pass/fail using semantic similarity (the output need not be identical, but must achieve the same goal)
- Record: tier, test case index, pass/fail, output summary
- For each test run, compare the test subject's output against the
-
Generate refinement report
- Identify the lowest tier where all test cases pass ("clarity floor")
- For each failure, analyze WHY the lower-tier agent failed:
- Ambiguous instructions?
- Missing context or assumptions?
- Overly complex multi-step reasoning?
- Implicit knowledge requirements?
- Produce specific, actionable recommendations to improve the skill
- Format as a structured report with sections: Summary, Per-Tier Results, Failure Analysis, Recommendations
-
Output the report to the user