Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

plugin-evals

БесплатноБез исполняемых скриптовНе проверен

Build and run an eval suite for a plugin — realistic prompts, graders, repeated runs, and a no-plugin baseline — and gate changes on the scores. Use when the…

Sivan757от Sivan757★ 23 звезды на GitHub

Об этом скилле

Plugin Evals

Measure what a plugin reliably does. A case is a realistic prompt plus one or more graders — pass/fail checks on the final reply, the transcript, tool calls, or created files. Runs are repeated and averaged, and every case also runs without the plugin so the scores show the plugin's contribution, not the model's baseline ability.

Suite layout

The suite lives under evals/ in the plugin root. One directory per case; nest cases under a plain directory to group them.

<plugin>/
├── plugin.json
├── skills/...
└── evals/
    ├── <case>/
    │   ├── prompt.md          # the prompt sent to the agent, plus run limits
    │   ├── case.yaml          # optional: workspace fixtures, history, extra dirs
    │   ├── graders/
    │   │   ├── criteria.md    # one grader per file
    │   │   └── skill-fired.md
    │   └── <fixtures, scripts referenced by case.yaml>
    ├── mocks/                 # optional: scripted MCP tool answers
    └── results/               # written by each run; add to .gitignore

Only prompt.md or case.yaml is required for a case to exist. Cases start from an empty working directory, so put everything the task needs in the prompt, in case.yaml fixtures, or in a fixture directory added via context.add_dirs.

Step 1 — Design the cases

Interview the user with ask_user_question:

  1. Which skill, command, agent or MCP server the suite tests.
  2. What a good result looks like, concretely — the artifact, its shape, the tool that must have run.
  3. What should NOT trigger the plugin (negative cases: a near-miss request the skill should leave alone).
  4. Whether the task needs workspace fixtures (a git repo, sample files) or an early conversation to continue.

Write the prompt the way a user would type it, phrased naturally — not naming the skill. A prompt that names the skill measures obedience, not triggering.

prompt.md frontmatter fields:

Field Default Purpose
name directory name Case name; report keys and --case filters use it
description — For humans; unused at run time
tags [] Filter with --tag
runs 3 Runs per arm, 1–50
model default The agent under test's model
max_turns 10 Turn cap; hitting it is recorded as a run error
timeout_seconds 300 Wall-clock cap per run
allowed_tools [] Tools the case may use, e.g. [Read, Glob, Grep, Skill]
env {} Extra environment variables, keys must match EVAL_[A-Z0-9_]*

case.yaml (needs schema_version: "1.1" and name) adds the fields only it carries: context.scaffold_script (a bash script in the case directory that seeds the workspace before the agent starts), context.history_file (a .jsonl transcript to continue; the prompt becomes the next user turn), context.add_dirs (read-only fixture directories), and execution.prompt when the whole case lives in YAML.

Step 2 — Write the graders

One grader per file under graders/. Frontmatter sets type plus options; optional weight (relative weight in the run score) and arm (with-only excludes it from scoring in the baseline arm).

Type Options Passes when
regex pattern, flags, match, target JavaScript regex found in the target; match: not_contains requires absence, match: "count:N" requires exactly N
tool_used tool, input_match, min, max Calls to tool whose JSON input matches input_match land between min (1) and max (∞); min: 0, max: 0 asserts the tool was never called
tool_order before, after Both tools ran and the first before call precedes the first after call
file_exists path, exists A file created during the run matches the glob (or none does with exists: false)
llm criteria, focus A judge model votes PASS on the rubric at least 2 of 3 votes
baseline baseline_file, criteria The judge finds the run at least as good as a reference .jsonl transcript

regex and llm accept target/focus: last_message (default), trace (whole session as JSON lines), files (created paths), { source: file, path: <path> } (a file's content — grade generated artifacts with this, never with files), or mock_calls.

The skill-triggered check, for a skill named your-skill:

---
type: tool_used
tool: Skill
input_match: '"skill"\s*:\s*"(?:[\w-]+:)?your-skill"'
---

Graders that give a stable signal

  • Grade long outputs (generated files) with regex over { source: file, path }; keep llm graders for short outputs with concrete PASS and FAIL conditions.
  • Give every case one grader about the outcome and one about how the result was produced (tool_used or tool_order). Together they say whether the answer is right and whether the plugin produced it.
  • If the tool_used: Skill grader passes but Δ is negative, suspect the judge: rerun with a stronger judge model
Полный SKILL.md на GitHub

Установить plugin-evals в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл plugin-evals?

Build and run an eval suite for a plugin — realistic prompts, graders, repeated runs, and a no-plugin baseline — and gate changes on the scores. Use when the user asks to "test my plugin", "write evals", "benchmark a plugin", "measure whether a skill triggers", or before shipping plugin changes.

Как установить скилл plugin-evals?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл plugin-evals запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить plugin-evals с