Commit 716e2ba
authored
feat(skill): add eval framework to measure SKILL.md effectiveness (#602)
## Summary
Adds an evaluation framework that measures how effectively SKILL.md
guides an LLM agent to use the Sentry CLI efficiently. Inspired by the
[skill-creator](https://github.com/anthropics/claude-plugins-official/tree/main/plugins/skill-creator)
plugin approach of prompt → plan → grade.
- **Two-phase eval:** sends SKILL.md + user prompt to an LLM, then
grades the planned commands with deterministic checks (string matching)
and an LLM judge (coherence)
- **8 test cases** covering the failure modes from #598: no pre-auth, no
org/project lookup, correct fields, minimal calls, trusts auto-detection
- **Anthropic API** with `claude-sonnet-4-6` + `claude-opus-4-6` as
agents, `claude-haiku-4-5` as judge
- **CI job** runs on skill-related file changes, protected by the
`skill-eval` environment (requires reviewer approval to use the API key)
- **Blocking** — added to CI Status, fails below 75% threshold
- **Baseline:** 8/8 cases passed (100%) on both models
### Running locally
With an Anthropic API key:
```bash
ANTHROPIC_API_KEY=sk-ant-... bun run eval:skill
```
Test a single model:
```bash
EVAL_AGENT_MODELS=claude-sonnet-4-6 ANTHROPIC_API_KEY=... bun run eval:skill
```
Ref #5981 parent 27a9f0f commit 716e2ba
35 files changed
Lines changed: 1150 additions & 1062 deletions
File tree
- .github/workflows
- docs/src/content/docs
- commands
- plugins/sentry-cli/skills/sentry-cli
- references
- script
- src
- commands
- dashboard
- widget
- issue
- lib
- db
- formatters
- types
- test
- commands/dashboard/widget
- lib
- formatters
- skill-eval
- helpers
- types
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
136 | 190 | | |
137 | 191 | | |
138 | 192 | | |
| |||
493 | 547 | | |
494 | 548 | | |
495 | 549 | | |
496 | | - | |
| 550 | + | |
497 | 551 | | |
498 | 552 | | |
499 | 553 | | |
500 | 554 | | |
501 | 555 | | |
502 | 556 | | |
503 | 557 | | |
504 | | - | |
| 558 | + | |
505 | 559 | | |
506 | 560 | | |
507 | 561 | | |
| |||
519 | 573 | | |
520 | 574 | | |
521 | 575 | | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
522 | 580 | | |
523 | 581 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
0 commit comments