skill-forge-eval
Skill177 starsChanged 9 months agoMITView on GitHub
Run evaluation pipelines on Claude Code skills to test triggering accuracy, workflow correctness, and output quality. Spawns executor, grader, comparator, and analyzer sub-agents for parallel evaluation. Generates eval_metadata.json, grading.json, and feedback reports. Use when user says "eval skill", "test skill", "run evals", "evaluate skill", "skill evals", "test skill quality", "run skill tests", or "skill evaluation".
In this repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- skill-forgeSkill
- skill-forge-benchmarkSkill
- skill-forge-buildSkill
- skill-forge-convertSkill
- skill-forge-evolveSkill
- skill-forge-planSkill
- skill-forge-publishSkill
- skill-forge-reviewSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 5 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Run structured evaluations against Claude Code skills to verify triggering, correctness, and quality using a multi-agent pipeline.
- Distinctive: line 52
If no eval set exists, generate one:
- Very specific: line 53
Read the skill's SKILL.md description and instructions
- Very specific: line 54
Run python scripts/generate_eval_set.py <skill-path> to produce a starter set
- Distinctive: line 60
Create the eval workspace outside the skill directory to avoid confusing eval artifacts with skill files.
- Very specific: line 218
Executor timeout: If a run exceeds 5 minutes, terminate and mark as "timed_out": true in timing.json
- Very specific: line 219
Executor failure: If a run crashes, save the error to error.txt in the run directory and continue with remaining evals
- Very specific: line 220
Grading failure: If grading cannot determine pass/fail, mark assertion as "passed": null with evidence explaining why
- Very specific: line 221
Missing files: If timing.json or grading.json is missing after a run, flag the eval as incomplete in the report
- Distinctive: line 222
Partial completion: Always aggregate and report whatever results are available — do not block on one failed eval
- Distinctive: line 226
Before marking an eval run as complete:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill Evaluation Pipeline
Run structured evaluations against Claude Code skills to verify triggering, correctness, and quality using a multi-agent pipeline.
Process
Step 1: Define Eval Set
Accept eval definitions from:
- Path to eval set JSON:
evals/evals.jsonor user-specified file - Inline prompts: User provides eval queries directly
- Auto-generated: Generate from skill description (see Step 1b)
Eval set JSON schema:
{
"skill_name": "my-skill",
"skill_path": "./my-skill",
"evals": [
{
"eval_id": 0,
"eval_name": "descriptive-name",
"prompt": "The user's task prompt",
"input_files": [],
"assertions": [
{
"name": "output-has-score",
"check": "Output contains a numeric score between 0-100",
"weight": 1.0
}
],
"should_trigger": true
}
]
}Step 1b: Auto-Generate Eval Set
If no eval set exists, generate one:
- Read the skill's SKILL.md description and instructions
- Run
python scripts/generate_eval_set.py <skill-path>to produce a starter set - Present the generated set to the user for review and editing
- User approves or modifies before proceeding
Step 2: Set Up Workspace
Create the eval workspace outside the skill directory to avoid confusing eval artifacts with skill files. Use a sibling directory or a dedicated location:
eval-workspace/
iteration-1/
eval-0/
eval_metadata.json # Assertions and config for this eval
with_skill/
outputs/ # Skill execution outputs
timing.json # Token count + duration
grading.json # Assertion results + evidence
baseline/
outputs/
timing.json
grading.json
eval-1/
eval_metadata.json
with_skill/
outputs/
timing.json
grading.json
baseline/
outputs/
timing.json
grading.json
benchmark.json # Aggregated metrics
benchmark.md # Human-readable reportFor each eval directory, create eval_metadata.json from the eval set entry:
{
"eval_id": 0,
"eval_name": "descriptive-name",
"prompt": "The user's task prompt",
"assertions": [...],
"should_trigger": true
}Step 3: Execute Eval Runs
For each eval in the set, spawn two parallel runs:
With-skill run (delegate to agents/skill-forge-executor.md):
Execute this task:
- Skill path: <path-to-skill>
- Task: <eval prompt>
- Input files: <eval files if any, or "none">
- Save outputs to: <workspace>/iteration-<N>/eval-<ID>/with_skill/outputs/
- Outputs to save: <what the assertions check>Baseline run (delegate to agents/skill-forge-executor.md):
- For new skills: run without the skill loaded
- For improved skills: run with the previous version (snapshot it first)
Save timing data to timing.json in each run directory:
{
"total_tokens": 84852,
"duration_ms": 23332,
"total_duration_seconds": 23.3
}Step 4: Grade Results
Delegate to agents/skill-forge-grader.md for each completed run:
- Grade against assertions defined in eval_metadata.json
- Save results to
grading.jsonper run:
{
"eval_id": 0,
"run_type": "with_skill",
"assertions": [
{
"name": "output-has-score",
"passed": true,
"evidence": "Found score: 87/100 on line 14"
}
],
"pass_rate": 1.0
}Step 5: Aggregate and Analyze
- Run
python scripts/aggregate_benchmark.py <workspace>/iteration-<N> --skill-name <name> - This produces
benchmark.jsonandbenchmark.mdwith:- Pass rate per eval (with_skill vs baseline)
- Average time and token usage
- Improvement ratio (with_skill / baseline)
- Delegate to
agents/skill-forge-analyzer.mdto:- Surface patterns that aggregate stats might hide
- Identify consistently failing assertion types
- Flag regressions from previous iterations
Step 6: Present Results
Generate a summary report:
# Eval Report: [skill-name] — Iteration [N]
## Overall
| Metric | With Skill | Baseline | Delta |
|--------|-----------|----------|-------|
| Pass Rate | X% | Y% | +Z% |
| Avg Time | Xs | Ys | -Zs |
| Avg Tokens | X | Y | -Z |
## Per-Eval Results
| Eval | With Skill | Baseline | Status |
|------|-----------|----------|--------|
| eval-0 | PASS | FAIL | Improved |
| eval-1 | PASS | PASS | Maintained |
## Patterns & Insights
[From analyzer agent]
## Recommendations
[Specific improvements based on failures]Step 7: Collect Feedback
Save user feedback to feedback.json:
{
"reviews": [
{
"run_id": "eval-0-with_skill",
"feedback": "the chart is missing axis labels",
"timestamp": "2026-03-06T12:00:00Z"
}
],
"status": "complete"
}Pass feedback to /skill-forge evolve for the next iteration.
Advanced: Blind Comparison
For rigorous A/B testing between skill versions:
- Delegate to
agents/skill-forge-comparator.md - Pass two directories:
eval-<ID>/with_skill/outputs/andeval-<ID>/baseline/outputs/ - Comparator assigns random labels (Version A / Version B) so it cannot know which is new
- Rates each output on assertion criteria from
eval_metadata.json - Returns preference scores without knowing which is "new" vs "old"
Error Handling
- Executor timeout: If a run exceeds 5 minutes, terminate and mark as
"timed_out": truein timing.json - Executor failure: If a run crashes, save the error to
error.txtin the run directory and continue with remaining evals - Grading failure: If grading cannot determine pass/fail, mark assertion as
"passed": nullwith evidence explaining why - Missing files: If timing.json or grading.json is missing after a run, flag the eval as incomplete in the report
- Partial completion: Always aggregate and report whatever results are available — do not block on one failed eval
Quality Gates
Before marking an eval run as complete:
- All evals executed (with_skill + baseline)
- Timing data captured for every run
- All assertions graded with evidence
- Benchmark aggregated with pass rate, time, tokens
- Analyzer patterns documented
- Results presented to user
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

