From e5fff66a4f21534869c5baebe2b4885e3c3427e5 Mon Sep 17 00:00:00 2001 From: Christopher Kevin Date: Sun, 15 Nov 2026 03:50:38 -0800 Subject: [PATCH 1/2] docs(agent-guide): start the agent guide with the npx install and an example session Signed-off-by: Christopher Kevin --- CHANGELOG.md | 5 + docs/agent-skill.mdx | 300 ++++++++++++++++------------ docs/assets/agent-skill-example.svg | 72 +++++++ docs/assets/agent-skill-flow.svg | 63 ++++++ 4 files changed, 317 insertions(+), 123 deletions(-) create mode 100644 docs/assets/agent-skill-example.svg create mode 100644 docs/assets/agent-skill-flow.svg diff --git a/CHANGELOG.md b/CHANGELOG.md index c0198f838..ebb1de8f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -224,6 +224,11 @@ All notable changes to SkillEvaluator are documented in this file. ### Documentation +- "Evaluate Skills from Your Agent" is shorter and visual: a how-it-works diagram, + install steps that start with `npx skills add NVIDIA/SkillEvaluator` (with Claude + Code and Codex examples), the two ways to call the skill (just ask, or by name) + and an example session. Installing the CLI yourself, provider keys, live + evaluation and sandbox notes moved into collapsed sections. - The starter walkthrough identifies the PASS message as the success summary; the runner's final line gives the report and editable-starter directory. diff --git a/docs/agent-skill.mdx b/docs/agent-skill.mdx index b11676a63..ccce160eb 100644 --- a/docs/agent-skill.mdx +++ b/docs/agent-skill.mdx @@ -1,172 +1,226 @@ --- title: "Evaluate Skills from Your Agent" -description: "Install the SkillEvaluator agent skill in Codex, Claude Code, OpenCode, OpenClaw, or any skill-aware agent, then evaluate skills by asking in plain language." +description: "Add the SkillEvaluator skill to Claude Code, Codex, or any skill-aware agent, then ask it in plain language to check a skill." --- -Give your coding agent SkillEvaluator expertise. Install one skill folder, then -ask: *"Is my skill any good?"* The agent picks the right tier, runs the CLI, -reads the report, and tells you what to fix. - -No commands to memorize. No flags to look up. The skill ships in the public -repository and stays in sync with the CLI through a test on every change. - -## How it works - -```mermaid -flowchart LR - ask["You ask your agent
to evaluate a skill"] --> skill["SkillEvaluator skill
picks tier and commands"] - skill --> cli["skillevaluator CLI
runs Tier 1, 2 or 3"] - cli --> answer["Verdict, scores
and next steps"] - classDef step fill:#f3f9e8,stroke:#76b900,color:#1f2b16,stroke-width:2px - class ask,skill,cli,answer step -``` - -The skill teaches the agent how to operate SkillEvaluator. The scores still come -from the CLI, its isolated sandboxes, and its independent judge, so results match -what you get running SkillEvaluator by hand or in CI. - - - - Routes "is it safe", "will it trigger", and "does it help" to the matching tier and command. - - - Reads verdicts, exit codes, and INCOMPLETE runs correctly. No scores invented from partial runs. - - - Turns findings and `what_to_fix.json` into concrete edits to your `SKILL.md` and eval cases. - - +Add one skill to your coding agent, then ask: *"Is my skill any good?"* The agent +picks the right check, runs the `skillevaluator` CLI, reads the report, and tells +you what to fix. No commands or flags to remember. ## Install -### Install the CLI - -```bash -pip install --upgrade skillevaluator # Tier 1 and 2 -pip install --upgrade "skillevaluator[all]" # adds Tier 3 live evaluation -``` - -See [Installation](/skills/skillevaluator/installation) for extras and Python versions. +### Add the skill with npx -### Add the skill to your agent +You do this once, in your project. Run the command and pick your agents when it asks: ```bash -git clone --depth 1 https://github.com/NVIDIA/SkillEvaluator.git +npx skills add NVIDIA/SkillEvaluator ``` -Copy or symlink `SkillEvaluator/skills/skillevaluator` into your agent's skills directory: +To add it for one agent only, name the agent: - - ```bash - cp -r SkillEvaluator/skills/skillevaluator .agents/skills/ # this repository - cp -r SkillEvaluator/skills/skillevaluator ~/.codex/skills/ # every repository - ``` - ```bash - cp -r SkillEvaluator/skills/skillevaluator .claude/skills/ # this repository - cp -r SkillEvaluator/skills/skillevaluator ~/.claude/skills/ # every repository - ``` - - - ```bash - cp -r SkillEvaluator/skills/skillevaluator .opencode/skills/ # this repository - cp -r SkillEvaluator/skills/skillevaluator ~/.config/opencode/skills/ # every repository + npx skills add NVIDIA/SkillEvaluator -a claude-code -y ``` + + The skill lands in `.claude/skills/skillevaluator`. - + ```bash - cp -r SkillEvaluator/skills/skillevaluator ~/.openclaw/skills/ # every workspace + npx skills add NVIDIA/SkillEvaluator -a codex -y ``` - - - Any agent that reads [Agent Skills](https://agentskills.io/) folders works. Copy the folder - into its skills directory, for example `.cursor/skills`, `.gemini/skills`, or - `.config/goose/skills`. + + The skill lands in `.agents/skills/skillevaluator`. -### Set a provider key for LLM checks - -Static Tier 1 checks need no key. The rubric, Tier 2, and Tier 3 need one provider, -set in the shell where the agent runs: +Either way, it adds the [skill folder](https://github.com/NVIDIA/SkillEvaluator/tree/main/skills/skillevaluator) +to your project. To confirm it is there: ```bash -export SKILL_EVAL_LLM_PROVIDER=nv_build -export NVIDIA_API_KEY=... +npx skills list ``` -OpenAI, Anthropic, and any OpenAI-compatible gateway also work; see -[Providers & Credentials](/skills/skillevaluator/configuration). Keys stay in your environment; the -skill tells the agent never to print or store them. + + `npx` comes with Node.js. [Install Node.js](https://nodejs.org/en/download), then + run the command above. + + Or skip npx: clone the repository and copy `skills/skillevaluator` yourself. + + ```bash + git clone --depth 1 https://github.com/NVIDIA/SkillEvaluator.git + ``` + + + + ```bash + cp -r SkillEvaluator/skills/skillevaluator .claude/skills/ # this repository + cp -r SkillEvaluator/skills/skillevaluator ~/.claude/skills/ # every repository + ``` + + + ```bash + cp -r SkillEvaluator/skills/skillevaluator .agents/skills/ # this repository + cp -r SkillEvaluator/skills/skillevaluator ~/.codex/skills/ # every repository + ``` + + + ```bash + cp -r SkillEvaluator/skills/skillevaluator .opencode/skills/ # this repository + cp -r SkillEvaluator/skills/skillevaluator ~/.config/opencode/skills/ # every repository + ``` + + + ```bash + cp -r SkillEvaluator/skills/skillevaluator ~/.openclaw/skills/ # every workspace + ``` + + + Any agent that reads [Agent Skills](https://agentskills.io/) folders works. Copy the folder + into its skills directory, for example `.cursor/skills`, `.gemini/skills`, or + `.config/goose/skills`. + + + + +### Start a new agent session + +Agents load skills when a session starts, so open a new one in the same project. + +### Ask + +That is all the setup. The checks run in the `skillevaluator` CLI. If it is not +installed yet, your agent installs it the first time you ask; it may check with +you first. + + Install it before you ask, and the agent uses yours: + + ```bash + pip install --upgrade skillevaluator + ``` + + `uv tool install skillevaluator` works too. See + [Installation](/skills/skillevaluator/installation) for the extras that add + Tier 2 and Tier 3. + + +## Call it + +Once the skill is installed, your agent can use it in two ways. + + + + Ask in plain language. The agent sees the skill in its list and loads it by itself. + + + Name the skill in your request. In Claude Code, typing `/skillevaluator` does the same. + + + +```text title="Just ask" +Is my skill any good? It's in ./my-skill +``` + +```text title="Call it by name" +Use the skillevaluator skill to check ./my-skill +``` + - Start a new agent session after installing so the agent discovers the skill. + If you have many skills installed, or another one with a similar name, call it by + name so the agent picks the right one. -## Ask in plain language +## See it work + +One question in, one answer out. The agent runs the check for you and needs +no API key. + + + You ask if your skill is any good. The agent uses the skillevaluator skill, runs skillevaluator tier1 ./my-skill --no-llm, which passes 11 of 11 checks with quality 76.5 out of 100, then lists three fixes + + +## How it works + + + You ask your agent in plain language, the SkillEvaluator skill picks the check, the CLI runs it on your machine, and you get a verdict, scores and what to fix + + +The scores come from the CLI, not from the agent's opinion. They match what +you get running SkillEvaluator by hand or in CI. + +## What you can ask | You ask | The agent runs | You get | | --- | --- | --- | -| "Check my skill before I publish it, no API keys" | `skillevaluator tier1 --no-llm` | Pass or fail with security, PII, schema, and quality findings | +| "Is my skill any good?" | `skillevaluator tier1 --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" | Write task requests and outcomes in `/evals/EVAL.md`, run `skillevaluator create-eval-dataset --full --prompt /evals/EVAL.md`, then `tier3 validate --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 | -| "Explain this benchmark report" | Reads `result.json`, `tier3-benchmark.md`, `what_to_fix.json` | Plain-language verdict and prioritized fixes | -| "Gate skills in our CI" | `skillevaluator ci init` | A workflow with the right exit-code gates | - -## What a live evaluation looks like - -For "does my skill help", the agent runs the same tasks twice in isolated -sandboxes, once without your skill and once with it, and an independent judge -scores both. - -```text -Tier 3 Evaluation: PASS -Agent: codex Attempts scored: 32/32 - - Baseline With skill Lift -Overall 82.5% 94.4% +11.9 -Security 87.5% 100.0% +12.5 -Correctness 91.3% 98.8% +7.5 -Effectiveness 68.6% 95.3% +26.7 -``` +| "Write eval cases for my skill" | `skillevaluator create-eval-dataset`, then `tier3 validate --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 | -This is the SkillEvaluator skill evaluated by SkillEvaluator. Its own eval cases -ship in [`skills/skillevaluator/evals/`](https://github.com/NVIDIA/SkillEvaluator/tree/main/skills/skillevaluator/evals). -The run above used an earlier version of case 001 that also asserted the agent -read the skill's `SKILL.md`, which the baseline cannot do; that assertion has -since been removed. - - - Asking one agent to answer with and without a skill and grade itself is not an - evaluation. Once it has read the skill, the baseline is contaminated, and the - same model is judging its own work. The skill always routes "does it help" to - real Tier 3 runs. - + + The first row needs no key. The rubric, Tier 2, and Tier 3 need one provider key; + see [Providers & Credentials](/skills/skillevaluator/configuration). + -## What runs where +## Good to know - - Static checks, quality, security, PII, and deduplication run locally through the CLI. - No Docker and no Harbor. LLM-assisted checks need a provider key. + + Static Tier 1 checks need no key. The rubric, Tier 2, and Tier 3 need one provider, + set in the shell where the agent runs: + + ```bash + export SKILL_EVAL_LLM_PROVIDER=nv_build + export NVIDIA_API_KEY=... + ``` + + OpenAI, Anthropic, and any OpenAI-compatible gateway also work. Keys stay in your + environment; the skill tells the agent never to print or store them. + + + For "does my skill help", the agent runs the same tasks twice in isolated sandboxes, + once without your skill and once with it, and an independent judge scores both. + + ```text + Tier 3 Evaluation: PASS + Agent: codex Attempts scored: 32/32 + + Baseline With skill Lift + Overall 82.5% 94.4% +11.9 + Security 87.5% 100.0% +12.5 + Correctness 91.3% 98.8% +7.5 + Effectiveness 68.6% 95.3% +26.7 + ``` + + This is the SkillEvaluator skill evaluated by SkillEvaluator. Its own eval cases + ship in [`skills/skillevaluator/evals/`](https://github.com/NVIDIA/SkillEvaluator/tree/main/skills/skillevaluator/evals). + The run above used an earlier version of case 001 that also asserted the agent + read the skill's `SKILL.md`, which the baseline cannot do; that assertion has + since been removed. - - Docker is the default backend; SkillEvaluator drives Harbor for you. For trusted skills, - `--env-mode local` runs the agent on the host under Bubblewrap (Linux) or Seatbelt (macOS). - See [Agents & Sandboxes](/skills/skillevaluator/agents-and-sandboxes). + + Asking one agent to answer with and without a skill and grade itself is not an + evaluation. Once it has read the skill, the baseline is contaminated, and the + same model is judging its own work. The skill always routes "does it help" to + real Tier 3 runs. - - If an attempt errors or times out, the run is INCOMPLETE and no final score or lift is - reported. The skill tells the agent to say so, find the cause, and rerun, not to average - the partial results. + + Tier 1 and Tier 2 run on your machine through the CLI, with no Docker. Tier 3 runs + in a sandbox: Docker by default, or `--env-mode local` for trusted skills. See + [Agents & Sandboxes](/skills/skillevaluator/agents-and-sandboxes). + + If an attempt errors or times out, the run is INCOMPLETE and no final score is + reported. The skill tells the agent to say so, find the cause, and rerun, not to + average partial results. diff --git a/docs/assets/agent-skill-example.svg b/docs/assets/agent-skill-example.svg new file mode 100644 index 000000000..fae832b62 --- /dev/null +++ b/docs/assets/agent-skill-example.svg @@ -0,0 +1,72 @@ + + +Example: asking an agent to evaluate a skill +You ask whether your skill is any good. The agent uses the SkillEvaluator skill, runs skillevaluator tier1 ./my-skill --no-llm, which passes 11 of 11 checks with a quality score of 76.5 out of 100, and then lists three fixes. + + + + + + +your agent + +YOU + +Is my skill any good? It’s in ./my-skill +AGENT + + +Using the +skillevaluator +skill + +$ +skillevaluator tier1 ./my-skill --no-llm + +checks + +schema + +security + +pii + +license + +quality + +harness +result +11 of 11 checks passed +quality +C 76.5 / 100 + + +PASS +Passed required checks · exit 0 + + +Yes, it passes. All 11 checks are green and the security scans are clean. +Quality is 76.5 / 100 (C). Three fixes will raise it: + +1 +Add an “Available Scripts” table to SKILL.md + +2 +Add a version to the frontmatter + +3 +Say when to use the skill at the start of its description + + + +No API key + + + +Runs on your machine + + + +Same scores as CI + diff --git a/docs/assets/agent-skill-flow.svg b/docs/assets/agent-skill-flow.svg new file mode 100644 index 000000000..c852895bf --- /dev/null +++ b/docs/assets/agent-skill-flow.svg @@ -0,0 +1,63 @@ + + + How the SkillEvaluator agent skill works + You ask your agent in plain language, the SkillEvaluator skill picks the check, the skillevaluator CLI runs it on your machine, and you get a verdict, scores and what to fix. + + + + + + + + + + + FROM YOUR AGENT + Ask once. The skill does the rest. + + + + + 1 + You ask + In plain language + + “Is my skill any good?” + + + + + + + 2 + The skill decides + Tier 1, 2 or 3 + + Picks the command + and the right flags + + + + + + + 3 + The CLI runs it + On your machine + + skillevaluator tier1 + ./my-skill --no-llm + + + + + + + 4 + You get the answer + From real evidence + + Verdict, scores and + what to fix first + + From 0e7927d74e8e956c5fe37984ff591bb269dab392 Mon Sep 17 00:00:00 2001 From: Christopher Kevin Date: Mon, 16 Nov 2026 00:58:09 -0800 Subject: [PATCH 2/2] fix(docs): require CLI installation before first agent check Signed-off-by: Christopher Kevin --- CHANGELOG.md | 3 +++ docs/agent-skill.mdx | 30 +++++++++++++++--------------- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 04edbffe3..c274f4e15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -228,6 +228,9 @@ All notable changes to SkillEvaluator are documented in this file. ### Documentation +- The agent skill guide explicitly installs the CLI before the first check, + so its setup flow also works with skill versions that do not bootstrap it. + - The CI guide's `jq` quality gate fails when a report has no quality score (it passed before) and checks every skill's report in a folder run. diff --git a/docs/agent-skill.mdx b/docs/agent-skill.mdx index ccce160eb..4674d3a1f 100644 --- a/docs/agent-skill.mdx +++ b/docs/agent-skill.mdx @@ -87,30 +87,30 @@ npx skills list +### Install the CLI + +The skill folder contains instructions for your agent; the checks run in the +`skillevaluator` CLI. Install it before you ask the agent to run a check: + +```bash +pip install --upgrade skillevaluator +``` + +`uv tool install skillevaluator` works too. See +[Installation](/skills/skillevaluator/installation) for Python requirements and +the extras that add Tier 2 and Tier 3. + ### Start a new agent session Agents load skills when a session starts, so open a new one in the same project. ### Ask -That is all the setup. The checks run in the `skillevaluator` CLI. If it is not -installed yet, your agent installs it the first time you ask; it may check with -you first. +Ask your agent to check a skill. It uses the CLI you installed in the previous +step. - - Install it before you ask, and the agent uses yours: - - ```bash - pip install --upgrade skillevaluator - ``` - - `uv tool install skillevaluator` works too. See - [Installation](/skills/skillevaluator/installation) for the extras that add - Tier 2 and Tier 3. - - ## Call it Once the skill is installed, your agent can use it in two ways.