--- name: skillevaluator description: Run and interpret SkillEvaluator for agent skills. Use for any skill benchmark or eval - validating or scoring a SKILL.md, writing evals.json test cases or evals config, explaining benchmark reports, verdicts and exit codes, or gating skills in CI. license: Apache-2.0 compatibility: Requires Python 3.12-3.14 and the skillevaluator CLI; live evaluation also needs Docker (or another backend) and an LLM provider key. metadata: author: Christopher Kevin version: "1.0.1" domain: [evaluation, ai-ml] tags: [skills, evaluation, benchmarking, ci, security] --- # SkillEvaluator Run the SkillEvaluator CLI on agent skills and report what the evidence shows: Tier 1 validation (static, security, quality), Tier 2 deduplication, and Tier 3 live agent evaluation that compares runs with and without the skill. ## Purpose Give an agent one reliable procedure for evaluating skills with SkillEvaluator: pick the right tier, check readiness, run it, and report scores, findings and exit codes truthfully. ## When To Use Use this skill when the user wants to: - check whether a skill is well-formed, safe, and good enough to publish - get a quality score, rubric score, security or PII scan for a skill - find repeated guidance inside a skill or overlap across a skill collection - measure whether a skill actually helps an agent (Skill Lift, pass@k) - write or fix `/evals/evals.json`, `/evals/config.yml`, custom graders, or Harbor tasks - read a SkillEvaluator report, verdict, or exit code - add SkillEvaluator checks to GitHub Actions or GitLab CI Do not use it to write the target skill's domain content, to review ordinary application code, or to evaluate an LLM without a skill. For converting an existing benchmark into a custom grader, read [references/custom-graders.md](references/custom-graders.md). ## Prerequisites - A target directory containing `SKILL.md` (or a folder of skills, `.mdc` rules, or a plugin manifest). - The CLI on Python 3.12-3.14. If it is missing, ask before installing it (Workflow step 1). Extras include `llm` for rubric scoring and `security` for Python dependency auditing, plus `tier2`, `tier3`, `all`, and `dashboard`. From a source checkout use `uv run --python 3.13 --extra all skillevaluator ...`. - No key for keyless commands (`quality-check`, `security-scan`, `pii-scan`, `lint-scripts`, `tier1 PATH --no-llm`, `validate PATH --tiers 1`). - A provider for LLM stages, Tier 2 and Tier 3. Simplest: `export SKILL_EVAL_LLM_PROVIDER=nv_build` and `export NVIDIA_API_KEY=...`. A key for a company or self-hosted gateway works too, so the user does not need 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. With `nv_build` in `--env-mode docker` or `local`, one key (`NVIDIA_API_KEY` from https://build.nvidia.com) covers the agents and the judge; other backends and native Claude or GPT agent models need that vendor's key ([references/providers.md](references/providers.md)). - 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 `--env-mode local` (experimental): it runs the agent CLI already installed on the host under Bubblewrap (Linux) or Seatbelt (macOS); trusted skills only. Never print, echo, or commit API keys; keep them in the host environment. ## Choose The Command | User goal | Command | Needs | | --- | --- | --- | | Fast keyless quality score | `skillevaluator quality-check ` | nothing | | Full static gate for one skill | `skillevaluator tier1 --no-llm` | scanners (downloaded if missing; ask first) | | Static gate plus LLM rubric and security review | `skillevaluator tier1 ` | provider | | LLM rubric only | `skillevaluator rubric-eval ` | provider, `llm` extra | | Security / PII scan only | `skillevaluator security-scan `, `skillevaluator pii-scan ` | SkillSpector for `security-scan` (downloaded if missing; ask first) | | Repeated content inside one skill | `skillevaluator tier2 ` | chat and embedding providers | | Overlap across a collection | `skillevaluator similarity-check --type skill` | embeddings | | Does the skill help an agent? | `skillevaluator tier3 ` | provider, agent, Docker | | Same, without Docker | `skillevaluator tier3 evaluate -a opencode --env-mode local` | provider, agent CLI on host | | Everything, with one exit code | `skillevaluator validate ` | all of the above | | CI-safe keyless gate | `skillevaluator validate --profile default --tiers 1 -r json,markdown,sarif -o reports` | scanners | | CI test report (JUnit XML) | add `junit` to `-r`, for example `-r json,sarif,junit` | same as the gate | | GitHub Actions annotations | add `github` to `-r`, for example `-r cli,github` | same as the gate | | Set up repo CI | `skillevaluator ci init` | GitHub checkout | 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 Keyless, read-only commands need no permission when their tools are already available. Keyless scans and `health-check --tier 1` download 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 and model spend.** 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. If one is, name the provider and, unless the user asked for that run, ask before the first command that calls it (`tier1` without `--no-llm`, `rubric-eval`, `tier2`, `create-eval-dataset`, Tier 3). If several keys are exported, ask which provider to use and set `SKILL_EVAL_LLM_PROVIDER`. Never search files for keys and never print one. - **Spending.** Before a Tier 3 run, state trials = cases x attempts x agents x 2 (fewer with `--skip-baseline` or `--skip-with-skill`), each also scored by judge calls. Propose a `--max-cases 1` smoke run first, ask again before the full run, and pass `--max-attempts-total N` when the user sets a limit. - **Running on the host.** `--env-mode local` runs the agent CLI installed on the host under Bubblewrap (Linux) or the weaker Seatbelt (macOS), with network access on by default. It does not use the user's CLI logins: each trial gets a private home directory and only the provider key exported on the host. Offer it only for skills the user trusts; 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. ## Workflow 1. **Get the CLI.** Run `skillevaluator --version`. If the command is not 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 --python python3.13 "skillevaluator[all]"` - `python3 -m pip install --upgrade "skillevaluator[all]"` inside an active virtual environment whose Python is 3.12-3.14 (on an older Python, pip installs the empty placeholder release 0.0.0a0 without a `skillevaluator` command) - with no install, prefix each command with `uvx --python 3.13 --from "skillevaluator[all]"` The same permission rule covers isolated installs, `uvx` provisioning, upgrades and `uv tool update-shell` (it edits shell startup files), as well as system or shared Python. Install packages without elevated privileges. If the binary is installed but not on `PATH`, add `~/.local/bin` to `PATH` for this session, or ask before running `uv tool update-shell`. If a documented command or flag is unknown, upgrade with the installer that was used (`uv tool upgrade skillevaluator`, `pipx upgrade skillevaluator`, or pip `--upgrade`). If installation fails (no network, no Python 3.12+), stop and report the exact error and the install command instead of guessing results. 2. **Locate the target.** Confirm the path has `SKILL.md` and that its frontmatter `name` matches the directory name. For a folder of skills, the commands evaluate each skill inside it. 3. **Check readiness.** Before running direct Tier 1, run `skillevaluator health-check --tier 1 --checks security,code-integrity,dependency` to include pip-audit. Omit `dependency` when the selected scan leaves it out. Run `skillevaluator doctor --tier 2` for providers and `skillevaluator doctor --env-mode docker` (add `--verify-models`) for Tier 3. The readiness probe and keyless scans download pinned SkillSpector and Gitleaks when they are missing. Get installation permission before probing or scanning when those tools are missing. Fix failed checks required for the selected run. The readiness probe reports missing Semgrep as a failure. Local validation skips missing Semgrep by default. Set `SKILLEVALUATOR_REQUIRE_SEMGREP=1` to require it. 4. **Start keyless.** Run `skillevaluator tier1 --no-llm`. Fix CRITICAL and HIGH findings before anything else; `lint` findings are advisory. 5. **Add LLM checks** when a provider is set and the user agreed to model spend: `skillevaluator tier1 ` (rubric, LLM security, verification) and `skillevaluator tier2 `. 6. **Prepare Tier 3 cases.** If `/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, one request that should not trigger it, and any input files those requests use. Record their answers in `/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. `tier3 ` and `validate ` generate one starter case when none exists, so run them only after the user's cases are in place. If the user has not agreed to adding `evals/` to the skill (for example, a skill installed from a registry or bundled with a plugin), copy the whole directory to `/skills//`, keeping its directory name equal to the frontmatter `name`, and evaluate the copy. For skills that act on real systems, keep cases runnable with fixtures or sidecars (`evals/files/`, `evals/environment/`); only when that is impossible, and with the user's agreement, phrase a prompt as "give the commands, do not run them", knowing that Tier 3 then scores the advice, not the execution. Generate with `skillevaluator create-eval-dataset --full --prompt /evals/EVAL.md`, then review it. The default prefers author guidance, then matching retained traces; existing datasets need `--force` or `--refine`. Skill-only generation requires explicit opt-in with `--grounding skill`. Review: positive cases (explicit, implicit, contextual) and at least one negative case with `"expected_skill": null`. Required shape: top-level `skill_name` and an `evals` array; each case has `id`, `prompt`, `expected_output`, and `expected_skill` (optional `assertions`, `files`). Validate with `skillevaluator tier3 validate --strict`. Format: [references/tier3-datasets.md](references/tier3-datasets.md); generation and refinement: [references/tier3-dataset-generation.md](references/tier3-dataset-generation.md); run policy and scoring: [references/tier3-running.md](references/tier3-running.md). 7. **Run live evaluation.** `skillevaluator tier3 ` (or `skillevaluator tier3 evaluate -a opencode --env-mode docker --n-attempts 3`). Use `--max-cases 1` for a cheap smoke run first; such runs are never publication evidence. 8. **Read the results** (see below), open `skillevaluator view `, and for follow-up questions run `skillevaluator tier3 feedback `. 9. **Iterate.** Change the skill, rerun the same command with the same cases, agent and model, and compare. Treat a single run's lift as directional. ## Read The Results Exit codes: `0` success, `1` a gate failed, evidence is `INCOMPLETE`, or the run could not complete, `2` usage error (bad flag or missing path; fix the command, not the skill). - **Quality** (0-100): Correctness 35%, Discoverability 25%, Reliability 25%, Efficiency 15%. Grades A>=90, B>=80, C>=70. Passing needs `--min-score` (default 70) and no HIGH/CRITICAL quality finding. - **The gate and the score are separate results.** `tier1` exits `1` when any check fails, for example a HIGH security finding, even if the quality grade is A or B. Report both, and never call a skill passing from its grade alone. - **Rubric** (0-100): nine criteria scored 0-10; passing needs the weighted score >= `--min-score` and every criterion >= 7. - **Tier 2**: HIGH or CRITICAL duplicate findings exit `1` in `tier2 PATH`. - **Tier 3**: five dimensions (Security, Correctness, Discoverability, Effectiveness, Efficiency), each PASS >= 0.50, NEUTRAL 0.40-0.50, FAIL < 0.40. Verdict PASS needs every dimension >= 0.50 for at least one agent. Skill Lift = with-skill overall - baseline overall; PASS >= +0.05. `INCONCLUSIVE: skill never activated` means no positive trial loaded the skill; fix the description or prompts, not the scores. `tier3 PATH` exits `0` on a `FAIL` verdict; only an incomplete run exits `1`. - **Missing scores are `NO SCORE` or `None`, never 0.** Do not average them in. - **Publication**: require `publication_status == "pass"` in the JSON report, not just `overall_passed`. A keyless Tier 1 run that passes still ends with `Publication eligibility: Incomplete`, because Tier 2 and Tier 3 did not run. Tell the user this is expected and is not a failure. Report anatomy and JSON fields: [references/reports-and-ci.md](references/reports-and-ci.md). ## Examples ```bash # Keyless first look skillevaluator quality-check -r cli -r json -o # Static gate for a whole collection, complete report even on failures skillevaluator validate --profile default --tiers 1 -c -r json,markdown -o reports # LLM-backed Tier 1 and Tier 2, dedup advisory skillevaluator validate --tiers 1,2 --llm --no-block-on-dedup # Live A/B evaluation with two agents, retaining trajectories for debugging skillevaluator tier3 evaluate -a opencode,codex --n-attempts 3 --harbor-keep-jobs # Baseline only, to calibrate cases before the skill exists skillevaluator tier3 evaluate --skip-with-skill ``` ## Limitations - Tier 1 and the quality score are static: they check structure and wording, not whether the skill works. Only Tier 3 observes agent behavior. - LLM judges (rubric, Tier 3 correctness/effectiveness) vary between runs and models; compare runs only with the same model, cases, and attempts. - Tier 3 costs model tokens and sandbox time per case x attempt x agent x 2 arms; a generated starter case gives limited coverage. - `validate --tiers` always includes Tier 1; `--tiers 2` or `--tiers 3` alone is rejected. Use `tier2 PATH` or `tier3 PATH` to run a tier on its own. - Agent credentials come only from the host environment; `/evals/config.yml` `runtime_env` rejects provider keys. ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | `skillevaluator: command not found` | CLI not installed or not on `PATH` | Workflow step 1: install with `uv tool install`, `pipx`, or `pip` in a virtual environment, or use `uvx` | | Exit `2` | Unknown flag, bad value, or missing path | Check `skillevaluator --help`; prefix paths named like commands with `./` | | Check shows `INCOMPLETE` | A required scanner is missing or a scan failed | Use the scanner readiness command in Workflow step 3. Include `dependency` when auditing dependencies. Ask before installing a missing tool. Add the `security` extra for `pip-audit` when dependency auditing is enabled. | | "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` says `Tier 3 dependencies are not installed` (0.9.0 and older: a traceback ending in `No module named 'harbor'`) | The `tier3` extra is not installed | Ask first, then reinstall with the extra the way the CLI was installed (`uv tool install --python 3.13 --reinstall "skillevaluator[all]"`, `pipx install --force --python python3.13 "skillevaluator[all]"`, or pip in the same virtual environment), 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` | More cases: [references/troubleshooting.md](references/troubleshooting.md). ## Final Response Report to the user: - the exact commands run and their exit codes - scores and verdicts per tier, quoting the report values (not estimates) - the top findings to fix, each with its file and suggested change - report paths (`/...`, `/evals/results//report.html`) - what was not run (skipped tiers, missing keys, `--max-cases` smoke runs) and therefore not proven