1
---
2
name: evaluation-methodology
3
description: "PluginEval quality methodology, covering dimensions, rubrics, and scoring formulas. Use this skill when understanding how plugin quality is measured, when interpreting a low score on a specific dimension, when deciding how to improve a skill's triggering accuracy or orchestration fitness, when setting score thresholds for your marketplace, or when explaining quality badges to external partners like Neon."
4
---
5
6
# Evaluation methodology
7
8
PluginEval scores a skill or a plugin from 0 to 100 by combining up to three layers. The static
9
layer is a lint. It's fast and deterministic, and it's useful for checking structure. The LLM
10
judge and Monte Carlo layers are experimental, not validated against human labels, so treat their
11
numbers as rough signals. For the trace-based eval program, see `evals/README.md` at the
12
repository root.
13
14
The judge rubric anchors are in [references/rubrics.md](references/rubrics.md). Fixes for each
15
anti-pattern and tips for each dimension are in
16
[references/improving-scores.md](references/improving-scores.md).
17
18
## Evaluation depths
19
20
| Depth | Layers | Confidence label |
21
|---|---|---|
22
| `quick` | static | Estimated |
23
| `standard` (default for `score`) | static and judge | Assessed |
24
| `deep` (used by `certify`) | static, judge, and Monte Carlo with 50 runs | Certified |
25
| `thorough` | static, judge, and Monte Carlo with 100 runs | Certified+ |
26
27
The label names the depth that ran, not a check against human judgment. A plugin directory gets
28
the static layer only, whatever depth you ask for.
29
30
## Static layer (lint)
31
32
The static layer reads SKILL.md and makes no model calls. It computes seven sub-scores, and the
33
first six feed composite dimensions:
34
35
- `frontmatter_quality` (feeds `triggering_accuracy`)
36
- `orchestration_wiring` (feeds `orchestration_fitness`)
37
- `progressive_disclosure`, `structural_completeness`, `token_efficiency`, `ecosystem_coherence`
38
- `harness_portability`
39
40
`harness_portability` maps to no dimension, so it doesn't change a skill's composite score. It
41
does carry 6% of the static layer's own score. A plugin's score is built from that layer score,
42
so portability findings can lower a plugin's score a little. Its findings are not counted as
43
anti-patterns.
44
45
The static layer flags six anti-patterns: `OVER_CONSTRAINED`, `EMPTY_DESCRIPTION`,
46
`MISSING_TRIGGER`, `BLOATED_SKILL`, `ORPHAN_REFERENCE`, and `DEAD_CROSS_REF`. Each flag cuts the
47
score by 5%, down to a floor of 50%:
48
49
```text
50
penalty = max(0.5, 1.0 - 0.05 * anti_pattern_count)
51
```
52
53
The report prints a severity for each flag, but the penalty counts flags and ignores severity.
54
55
## LLM judge layer (experimental)
56
57
The judge layer makes four model calls and returns four holistic scores from 0 to 1:
58
59
- `triggering_accuracy`: Haiku reads the description and writes 10 test prompts, 5 that should
60
trigger and 5 that should not. It predicts the outcome for each prompt and reports its own F1.
61
Nothing checks those predictions against real triggering.
62
- `orchestration_fitness` and `scope_calibration`: Sonnet rates the skill on a five-point rubric.
63
- `output_quality`: Sonnet imagines three tasks and rates the output it expects.
64
65
The three Sonnet calls see only the first 3,000 characters of SKILL.md. Only one judge runs,
66
because nothing reads the `judges` setting.
67
68
## Monte Carlo layer (experimental)
69
70
Haiku writes 15 prompts that should trigger the skill, and the layer repeats them to reach 50
71
runs (100 at `thorough`). Each run sends the SKILL.md text and one prompt to the model, and the
72
layer records four measures:
73
74
- Activation rate is the share of runs with any non-empty reply, so it shows whether the model
75
answered, not whether the skill should have fired.
76
- Output quality is reply length divided by 500, capped at 1.0.
77
- Failure rate is the share of runs that errored.
78
- Token efficiency is `1 - median_tokens / 8000`.
79
80
Every prompt is one that should trigger, so the layer never checks that the skill stays out of
81
unrelated requests. The layer's JSON includes Wilson, bootstrap, and Clopper-Pearson intervals
82
for its own measures. The composite `ci_lower` and `ci_upper` fields are always null.
83
84
## Composite score
85
86
First, for each dimension, the engine blends the layer scores that exist, and it renormalizes
87
the blend weights over those layers. Second, it sums the weighted dimension scores, and it
88
renormalizes the dimension weights over the dimensions that have a score. Third, it multiplies
89
the sum by 100 and by the anti-pattern penalty.
90
91
| Dimension | Weight | Static | Judge | Monte Carlo |
92
|---|---|---|---|---|
93
| `triggering_accuracy` | 0.25 | 0.15 | 0.25 | 0.60 |
94
| `orchestration_fitness` | 0.20 | 0.10 | 0.70 | none |
95
| `output_quality` | 0.15 | none | 0.40 | 0.60 |
96
| `scope_calibration` | 0.12 | none | 0.55 | none |
97
| `progressive_disclosure` | 0.10 | 0.80 | none | none |
98
| `token_efficiency` | 0.06 | 0.40 | none | 0.50 |
99
| `robustness` | 0.05 | none | none | 0.80 |
100
| `structural_completeness` | 0.03 | 0.90 | none | none |
101
| `code_template_quality` | 0.02 | none | none | none |
102
| `ecosystem_coherence` | 0.02 | 0.85 | none | none |
103
104
A cell reads "none" when its layer produces no score for the dimension, even where
105
`LAYER_BLENDS` lists a weight. No layer produces `code_template_quality`, so it's always
106
unmeasured. For a plugin directory, the composite is the static layer's mean score across the
107
plugin's skills and agents, times 100, times the penalty for the plugin's anti-pattern count.
108
109
## Badges and grades
110
111
Badges come from the composite score alone. Platinum needs at least 90, Gold at least 80, Silver
112
at least 70, and Bronze at least 60. `Badge.from_scores` accepts an Elo rating, but no command
113
computes one. Plugin-level badges, including the ones in the weekly CI report, come from the
114
static layer alone. Skill-level badges at `standard` depth or deeper also include the
115
experimental layers.
116
117
Each measured dimension gets a letter grade on the 0 to 100 scale, from A+ at 97 down to D- at
118
60, and F below 60.
119
120
## Usage
121
122
```bash
123
plugin-eval score ./path/to/skill --depth quick # static lint only
124
plugin-eval score ./path/to/skill # static and judge
125
plugin-eval certify ./path/to/skill # deep depth
126
plugin-eval compare ./skill-a ./skill-b # quick depth by default
127
plugin-eval score ./path/to/skill --depth quick --output json --threshold 70
128
```
129
130
At `standard` depth or deeper, `score`, `certify`, and `compare` print a note on stderr that the
131
judge and Monte Carlo layers are experimental. For a plugin directory, the CLI prints a warning
132
that only the static layer runs instead. With `--threshold`, the command exits with code 1 when the
133
composite is below the value. `plugin-eval init` writes a corpus index, but no other command
134
reads it.
135
136
## Examples
137
138
An abridged example of the JSON output follows. Scripts can read `composite.score` from it:
139
140
```json
141
{
142
"layers": [{"layer": "static", "score": 0.75, "sub_scores": {}, "anti_patterns": []}],
143
"composite": {"score": 76.9, "ci_lower": null, "ci_upper": null, "badge": "silver",
144
"confidence_label": "Estimated", "dimensions": []},
145
"elo": null
146
}
147
```
148
149
## Troubleshooting
150
151
- When a score drops after you add content, check `layers[0].anti_patterns` in the JSON.
152
- If `triggering_accuracy` is low at quick depth, add a trigger phrase such as "Use this skill
153
when" to the description, followed by several comma-separated contexts.
154
- Judge scores change between runs, because the model writes new test prompts and tasks each
155
time. Use the static layer for comparisons you want to repeat.
156
- If stderr says the judge could not measure some dimensions, install the LLM extra with
157
`uv sync --extra llm`.
158
159
## Related
160
161
The `eval-judge` agent scores the four judge dimensions inside Claude Code, and the
162
`eval-orchestrator` agent runs the CLI and merges the results.
163