Multi-tier framework for evaluating AI agent skills and plugins with quality gates, security scanning, harness compatibility checks, semantic overlap detection, synthetic evaluation dataset generation, and live agent evaluation that measures how skills affect agent behavior. Ships reusable CI templates that bring every check to any repository.
Python agent-evaluationagent-pluginsagent-securityagent-skillsagentic-aibenchmarkci-templatesclaude-codecodexevaluateevaluationharnesspluginplugin-evaluationsecurity-scannerskill-evalskill-evaluationskill-evaluatorskill-gap-analysisskills
docs(skill): make the skillevaluator skill ask before installing, spending or writing cases (#601)
Christopher Kevina2a4bac50bd0
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 46a6faad..44292f9c 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -160,6 +160,12 @@ All notable changes to SkillEvaluator are documented in this file.### Changed+- The `skillevaluator` agent skill now asks the user before installing an+ extra, using a credential, spending on a Tier 3 run or using `--env-mode+ local`. It also asks for real tasks and outcomes before writing eval cases,+ explains that Tier 3 needs its own provider key, and reports no verdict for a+ tier that could not run. Its own `evals/evals.json` gains eight cases+ covering these prompts, including consent before cold scanner provisioning.- The CI guide's recipe installs SkillSpector from the commit behind its releasetag and checks the Gitleaks archive against the published SHA-256 beforeunpacking it, matching the repository's own workflows.@@ -318,6 +324,9 @@ All notable changes to SkillEvaluator are documented in this file.### Fixed+- The bundled skill's implicit dataset case expects clarification when real+ requests and outcomes are missing, matching the skill's case-authoring rule.+- Budget-limited Tier 3 coverage checks retain admitted attempt ordinals, avoiding false missing/excess errors when a denied slot leaves a gap.- HTML reports retain budget context for fully budget-denied runs withoutrestoring untrusted score evidence.diff --git a/docs/agent-skill.mdx b/docs/agent-skill.mdxindex 4674d3a1..49d16c26 100644--- a/docs/agent-skill.mdx+++ b/docs/agent-skill.mdx@@ -162,7 +162,7 @@ you get running SkillEvaluator by hand or in CI.| "Is my skill any good?" | `skillevaluator tier1 <skill-dir> --no-llm` | Pass or fail, with security, PII, schema, and quality findings || "Score the quality of this SKILL.md" | `skillevaluator quality-check` and `rubric-eval` | Quality score and grade, rubric feedback || "Does it overlap with my other skills?" | `skillevaluator tier2` | Duplicate and similarity findings |-| "Write eval cases for my skill" | `skillevaluator create-eval-dataset`, then `tier3 validate <skill-dir> --strict` | A reviewed `evals/evals.json` with positive and negative cases |+| "Write eval cases for my skill" | Ask for real tasks and outcomes, write `<skill-dir>/evals/EVAL.md`, run `skillevaluator create-eval-dataset <skill-dir> --full --prompt <skill-dir>/evals/EVAL.md`, then `tier3 validate <skill-dir> --strict` | A reviewed `evals/evals.json` with positive and negative cases || "Does my skill actually make the agent better?" | `skillevaluator tier3 evaluate`, with and without the skill | Verdict, five dimension scores, and Skill Lift || "Gate skills in our CI" | `skillevaluator ci init` | A setup PR with the right checks |@@ -171,6 +171,14 @@ you get running SkillEvaluator by hand or in CI.see [Providers & Credentials](/skills/skillevaluator/configuration).</Tip>+Keyless checks run without asking when their tools are already installed. Before+installing the CLI, an extra or a missing scanner, the agent names the change and+asks for permission unless you already authorized it. It also asks before using+credentials, spending model tokens, or running an agent on your machine. For eval+cases it asks which real tasks matter and what a good result looks like instead+of inventing them. Live evaluation starts separate agent processes and a judge,+so it needs a provider key on the host even when launched from inside your agent.+## Good to know<AccordionGroup>diff --git a/skills/skillevaluator/SKILL.md b/skills/skillevaluator/SKILL.mdindex d5240b11..44ca92f4 100644--- a/skills/skillevaluator/SKILL.md+++ b/skills/skillevaluator/SKILL.md@@ -55,6 +55,11 @@ existing benchmark into a custom grader, readneed a new one: `SKILL_EVAL_LLM_PROVIDER=openai-compatible` with`SKILL_EVAL_LLM_BASE_URL` and `SKILL_EVAL_LLM_API_KEY`.Other providers: [references/providers.md](references/providers.md).+- Tier 3 does not use the model of the agent you are running in. It starts+ separate agent processes in a sandbox, with and without the skill, and an LLM+ judge scores them. It therefore needs a provider key exported on the host even+ when you launch it from inside Claude Code, Codex or OpenCode. One key+ (`NVIDIA_API_KEY` from https://build.nvidia.com) covers the agents and the judge.- For Tier 3: an agent (`opencode`, `codex`, or `claude-code`) and a sandbox.Harbor is installed with the `tier3` extra; you do not run it yourself.The default `--env-mode docker` needs a Docker daemon. Without Docker, use@@ -84,19 +89,44 @@ Full flag tables: [Tier 1](references/commands-tier1.md),[validate](references/commands-validate.md),[Tier 2, Tier 3 and setup](references/commands-tier2-tier3.md).+## Ask The User First++Run keyless, read-only commands without asking only when their tools are already+available. Keyless scans can auto-install missing scanners, so get permission+before launching a command that would provision them. Reuse the user's explicit+authorization for the same installation rather than asking again. Otherwise,+stop and ask one short question before any of these:++- **Installing.** A missing CLI, extra (`tier2`, `tier3`) or scanner changes the+ user's environment. Name what is missing and the install command, then ask.+- **Credentials.** Check by name whether a provider variable is exported. If+ none is, list the options (`NVIDIA_API_KEY` from https://build.nvidia.com,+ `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`) and ask which the user wants to set.+ Never search files for keys and never print one.+- **Spending.** Before a Tier 3 run, state trials = cases x attempts x agents x 2+ and run `--max-cases 1` first.+- **Running on the host.** `--env-mode local` runs the agent on the user's+ machine with their logins. Offer it only when the skill cannot change real+ systems; otherwise ask the user to start Docker.++When a tier cannot run, say which requirement is missing and what the user must+do. Report no score, lift or verdict for that tier.+## Workflow1. **Get the CLI.** Run `skillevaluator --version`. If the command is not- found, install it in the first way that works, then run the version check- again:+ found, name the installation option and get permission as above. Once+ authorized, install it in the first way that works, then run the version+ check again:- `uv tool install --python 3.13 "skillevaluator[all]"` (isolated, preferred)- `pipx install "skillevaluator[all]"`- `python3 -m pip install --upgrade "skillevaluator[all]"` inside an activevirtual environment- with no install, prefix each command with `uvx --python 3.13 --from "skillevaluator[all]"`- Ask the user before installing into a system or shared Python; never use- `sudo pip`. If the binary is installed but not on `PATH`, run+ The same permission rule covers isolated installs, `uvx` provisioning and+ upgrades as well as system or shared Python. Never use `sudo pip`. If the+ binary is installed but not on `PATH`, run`uv tool update-shell` or add `~/.local/bin` to `PATH`. If a documentedcommand or flag is unknown, upgrade: `uv tool upgrade skillevaluator`. Ifinstallation fails (no network, no Python 3.12+), stop and report the@@ -104,17 +134,25 @@ Full flag tables: [Tier 1](references/commands-tier1.md),2. **Locate the target.** Confirm the path has `SKILL.md` and that itsfrontmatter `name` matches the directory name. For a folder of skills, thecommands evaluate each skill inside it.-3. **Check readiness before paid runs.** Run `skillevaluator health-check --tier 1`+3. **Check readiness.** Run `skillevaluator health-check --tier 1`for scanners, `skillevaluator doctor --tier 2` for providers, and`skillevaluator doctor --env-mode docker` (add `--verify-models`) for Tier 3.+ Scanner readiness probes can provision a managed scanner runtime. Get+ installation permission before probing or scanning when its tools are missing.Fix every failing row first.4. **Start keyless.** Run `skillevaluator tier1 <skill-dir> --no-llm`. FixCRITICAL and HIGH findings before anything else; `lint` findings are advisory.5. **Add LLM checks** when a provider is set: `skillevaluator tier1 <skill-dir>`(rubric, LLM security, verification) and `skillevaluator tier2 <skill-dir>`.-6. **Prepare Tier 3 cases.** If `<skill-dir>/evals/evals.json` is missing, first- capture task requests and observable outcomes in `<skill-dir>/evals/EVAL.md`;- headings alone do not qualify. Generate with+6. **Prepare Tier 3 cases.** If `<skill-dir>/evals/evals.json` is missing, ask+ the user for three to five real requests the skill should handle, what a+ good result looks like for each, and one request that should not trigger it.+ Write those into `<skill-dir>/evals/EVAL.md`; headings alone do not qualify.+ Do not invent the cases yourself; if the user asks for a draft, label it a+ draft and have them review it. If the skill directory is not yours to change+ (an installed skill, `~/.claude/skills`), copy it and evaluate the copy. For+ skills that act on real systems, phrase prompts as "give the commands, do not+ run them". Generate with`skillevaluator create-eval-dataset <skill-dir> --full --prompt <skill-dir>/evals/EVAL.md`,then review it. The default prefers author guidance, then matching retainedtraces; existing datasets need `--force` or `--refine`. Skill-only@@ -207,6 +245,7 @@ skillevaluator tier3 evaluate <skill-dir> --skip-with-skill| "provider is required" / exit `1` before reports | No `SKILL_EVAL_LLM_PROVIDER` or key, or several keys exported | Set exactly one provider and its key; see providers reference || Quality below 70 | Missing `## Prerequisites`, `## Limitations`, `## Troubleshooting`, vague description, no examples | Read each finding's suggestion; do not stuff keywords || `INCONCLUSIVE: skill never activated` | Description does not match the prompts | Make the description name the tasks; add explicit-bucket cases |+| `doctor` prints a traceback ending in `No module named 'harbor'` | The `tier3` extra is not installed | `pip install "skillevaluator[tier3]"` (ask first), then rerun `doctor` || Docker trials fail to start | Daemon down or outdated engine | `docker info`; rerun `skillevaluator doctor --env-mode docker` || Agent model rejected | Default model not valid for that agent | `--agent-model AGENT=MODEL`, verify with `doctor --verify-models` || Run incomplete (`Scored attempt coverage is n/m`) | A trial errored or timed out | Rerun; raise `--timeout-multiplier`; inspect with `--harbor-keep-jobs` |diff --git a/skills/skillevaluator/evals/evals.json b/skills/skillevaluator/evals/evals.jsonindex d6dd64fe..972b249f 100644--- a/skills/skillevaluator/evals/evals.json+++ b/skills/skillevaluator/evals/evals.json@@ -27,7 +27,7 @@},{"id": "skillevaluator-009-explicit-cli-missing",- "prompt": "Use SkillEvaluator to check whether the notes-helper skill in /workspace/input is well-formed and give me its quality score. SkillEvaluator may not be installed on this machine yet.",+ "prompt": "Use SkillEvaluator to check whether the notes-helper skill in /workspace/input is well-formed and give me its quality score. SkillEvaluator may not be installed on this machine yet. You may install the CLI and any missing scanners needed for this keyless check using isolated or managed installs.","expected_output": "Checks for the skillevaluator CLI (for example `skillevaluator --version`), installs it if missing with an isolated method such as `uv tool install \"skillevaluator[all]\"`, `pipx`, pip inside a virtual environment, or runs it through `uvx`, without sudo; then runs `skillevaluator quality-check` or `skillevaluator tier1 --no-llm` on the notes-helper skill and reports the score and exit code, or reports the exact install error if installation is impossible.","assertions": ["Checks whether the skillevaluator CLI is available before relying on it",@@ -43,12 +43,12 @@{"id": "skillevaluator-003-implicit-dataset","prompt": "I need test cases so an agent benchmark can tell whether my 'csv-cleaner' agent skill gets used correctly. Write the evals/evals.json file for it with three cases: one that names the skill, one that only describes the task, and one prompt where the skill should NOT be used.",- "expected_output": "A valid evals/evals.json with top-level skill_name 'csv-cleaner' and an evals array of three cases each having id, prompt, expected_output (optionally assertions), where the negative case sets expected_skill to null.",+ "expected_output": "Asks for three to five real requests csv-cleaner should handle, the observable good result for each, any required input files, and one request where the skill should not be used. Explains that the reviewed cases will go in evals/evals.json, but does not invent or write a finished dataset before the user supplies those details.","assertions": [- "Output has top-level skill_name and evals keys",- "Every case has id, prompt, and expected_output",- "Includes one explicit and one implicit positive case",- "The negative case sets expected_skill to null"+ "Asks for real requests csv-cleaner should handle and what a good observable result looks like for each",+ "Asks for one request that should not trigger the skill and any input files the cases need",+ "Explains that reviewed cases will go in evals/evals.json",+ "Does not invent or write a finished dataset before getting the missing requests and outcomes"],"expected_skill": "skillevaluator"},@@ -106,6 +106,100 @@"Does not run or recommend SkillEvaluator"],"expected_skill": null+ },+ {+ "id": "skillevaluator-009-implicit-plain-quality",+ "prompt": "Is my skill any good? It's in ./my-skill. I don't have an API key. If you can't run anything here, tell me exactly what you would run and what the result would and would not prove.",+ "expected_output": "Chooses keyless static validation for ./my-skill (`skillevaluator tier1 ./my-skill --no-llm`, `quality-check`, or `validate ./my-skill --tiers 1`), says the result is a pass/fail gate plus a 0-100 quality score, and says static checks cover structure, wording and security but do not show whether the skill helps an agent.",+ "assertions": [+ "Gives a keyless Tier 1 command (tier1 --no-llm, quality-check, or validate --tiers 1) on ./my-skill",+ "Says the static result does not prove the skill helps an agent, and that live evaluation would be needed for that",+ "Does not ask for or invent an API key"+ ],+ "expected_skill": "skillevaluator"+ },+ {+ "id": "skillevaluator-010-implicit-written-well",+ "prompt": "Can you check whether the skill in ./skills/release-notes is written well? Tell me what you'd run and what the score is made of.",+ "expected_output": "Runs or gives a keyless quality command on ./skills/release-notes (`skillevaluator tier1 ./skills/release-notes --no-llm` or `quality-check`), explains the 0-100 quality score as Correctness 35%, Discoverability 25%, Reliability 25% and Efficiency 15% with a default pass mark of 70, and notes that the LLM rubric is a separate check that needs a provider.",+ "assertions": [+ "Gives a keyless quality command (tier1 --no-llm or quality-check) on ./skills/release-notes",+ "Names the four quality dimensions: Correctness, Discoverability, Reliability, Efficiency",+ "Says the LLM rubric needs a provider key and is not part of the keyless run"+ ],+ "expected_skill": "skillevaluator"+ },+ {+ "id": "skillevaluator-011-implicit-helps-agent-blocked",+ "prompt": "I want to know whether my skill in ./skills/deploy-helper actually helps an agent do its tasks better. No API key is set on this machine and Docker isn't running. What do you need from me, and what can you do in the meantime?",+ "expected_output": "Says this needs a live with-skill versus baseline evaluation (Tier 3) and cannot run yet. Names what is missing: a provider key exported in the host environment and a running sandbox (Docker, or the experimental local mode). Asks the user to supply those. Offers what can be done now without them: keyless Tier 1 and preparing or validating eval cases. Reports no lift, score or verdict for the live evaluation.",+ "assertions": [+ "Says a live with-skill versus baseline evaluation is required to answer the question",+ "Names both blockers: no provider key and no running Docker or other sandbox",+ "Tells the user what to provide: a provider key exported on the host and Docker started",+ "Offers keyless Tier 1 or eval-case preparation as work that can happen now",+ "Does not state or estimate a lift, score or verdict for the live evaluation"+ ],+ "expected_skill": "skillevaluator"+ },+ {+ "id": "skillevaluator-012-contextual-own-model",+ "prompt": "I'm running you inside my coding agent, which already has a model behind it. When you run the live agent evaluation for my skill, will it just use that model, or do I have to set up another API key? Keep it short.",+ "expected_output": "Says no, the live evaluation does not use the calling agent's model. It starts separate agent processes in a sandbox, with and without the skill, and an LLM judge scores the answers, so a provider credential must be exported in the host environment. One provider key, for example NVIDIA_API_KEY, can cover both the agents and the judge. Keys never go in evals/config.yml.",+ "assertions": [+ "Says the live evaluation does not reuse the model of the agent that launches it",+ "Explains that separate agent processes run the cases with and without the skill",+ "Explains that an LLM judge also needs a provider",+ "Says the credential is exported in the host environment, not placed in config.yml"+ ],+ "expected_skill": "skillevaluator"+ },+ {+ "id": "skillevaluator-013-contextual-dataset-questions",+ "prompt": "Set up live evaluation cases for my skill at ./skills/invoice-parser. Before you write anything, tell me what you need to know from me.",+ "expected_output": "Asks the user for a few real requests the skill should handle and what a good result looks like for each, at least one request that should not trigger the skill, and any input files the cases need. Says the cases will go in evals/evals.json and should cover requests that name the skill, requests that only describe the task, requests inside a project, and a negative case. Does not invent finished cases before getting that input.",+ "assertions": [+ "Asks for real task requests the skill is expected to handle",+ "Asks what a good or observable outcome looks like for those requests",+ "Asks for at least one request that should not trigger the skill",+ "Says the dataset lives in evals/evals.json",+ "Does not present a finished dataset before the user has answered"+ ],+ "expected_skill": "skillevaluator"+ },+ {+ "id": "skillevaluator-014-contextual-run-cost",+ "prompt": "I'm about to run the full live evaluation on ./skills/sql-helper: 10 cases, 3 attempts each, two agents. How many agent runs is that, and how do I check the setup cheaply before spending on all of it?",+ "expected_output": "Computes 10 cases x 3 attempts x 2 agents x 2 arms (with skill and baseline) = 120 trials. Recommends a smoke run first with `--max-cases 1`, and says a smoke run is not publication evidence. May mention `--stop-on-pass` or `--skip-baseline` as ways to cut spend, noting that skipping the baseline gives no lift.",+ "assertions": [+ "States 120 trials, counting both the with-skill and baseline arms",+ "Recommends a smoke run limited with --max-cases",+ "Says a run that skips cases is not publication evidence"+ ],+ "expected_skill": "skillevaluator"+ },+ {+ "id": "skillevaluator-015-negative-write-skill-content",+ "prompt": "Write a SKILL.md for a new agent skill that formats SQL queries. Include frontmatter, instructions and two examples.",+ "expected_output": "A complete SKILL.md for a SQL formatting skill with name and description frontmatter, instructions and two examples. Writing the skill's own content does not call for an evaluation workflow.",+ "assertions": [+ "Provides a SKILL.md with name and description frontmatter",+ "Includes instructions and two examples for formatting SQL",+ "Does not run an evaluation of the skill instead of writing it"+ ],+ "expected_skill": null+ },+ {+ "id": "skillevaluator-016-contextual-cold-install-consent",+ "prompt": "Check the skill at ./skills/notes-helper with keyless static validation. The skillevaluator CLI is installed, but SkillSpector and Gitleaks have never been installed or cached on this machine. I have not authorized downloading or installing tools. Tell me the next step before you run anything that could install them.",+ "expected_output": "Explains that keyless scanner checks or readiness probes may provision managed scanner runtimes. Names the missing scanners and asks permission before any download, tool installation or auto-provisioning scan/probe. May offer an already-installed keyless quality-only check while waiting; does not claim a completed security scan.",+ "assertions": [+ "Names SkillSpector and Gitleaks as missing scanner requirements",+ "Asks for permission before downloading, installing or launching a scanner/probe that provisions missing tools",+ "Does not run an auto-provisioning scan or readiness probe before permission",+ "Does not invent a completed security scan or security verdict"+ ],+ "expected_skill": "skillevaluator"}]}