Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,17 @@ 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.

- "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.

Expand Down
298 changes: 176 additions & 122 deletions docs/agent-skill.mdx
Original file line number Diff line number Diff line change
@@ -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<br/>to evaluate a skill"] --> skill["SkillEvaluator skill<br/>picks tier and commands"]
skill --> cli["skillevaluator CLI<br/>runs Tier 1, 2 or 3"]
cli --> answer["Verdict, scores<br/>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.

<CardGroup cols={3}>
<Card title="Right check, first time" icon="route">
Routes "is it safe", "will it trigger", and "does it help" to the matching tier and command.
</Card>
<Card title="Honest results" icon="scale-balanced">
Reads verdicts, exit codes, and INCOMPLETE runs correctly. No scores invented from partial runs.
</Card>
<Card title="Fixes, not just scores" icon="wrench">
Turns findings and `what_to_fix.json` into concrete edits to your `SKILL.md` and eval cases.
</Card>
</CardGroup>
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

<Steps>

### Install the CLI

```bash
pip install --upgrade skillevaluator # Tier 1 and 2
pip install --upgrade "skillevaluator[all]" # adds Tier 3 live evaluation
```
### Add the skill with npx

See [Installation](/skills/skillevaluator/installation) for extras and Python versions.

### 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:

<Tabs>
<Tab title="Codex">
```bash
cp -r SkillEvaluator/skills/skillevaluator .agents/skills/ # this repository
cp -r SkillEvaluator/skills/skillevaluator ~/.codex/skills/ # every repository
```
</Tab>
<Tab title="Claude Code">
```bash
cp -r SkillEvaluator/skills/skillevaluator .claude/skills/ # this repository
cp -r SkillEvaluator/skills/skillevaluator ~/.claude/skills/ # every repository
```
</Tab>
<Tab title="OpenCode">
```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`.
</Tab>
<Tab title="OpenClaw">
<Tab title="Codex">
```bash
cp -r SkillEvaluator/skills/skillevaluator ~/.openclaw/skills/ # every workspace
npx skills add NVIDIA/SkillEvaluator -a codex -y
```
</Tab>
<Tab title="Other agents">
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`.
</Tab>
</Tabs>

### Set a provider key for LLM checks
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
npx skills list
```

<Accordion title="Don't have npx?">
`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
```

<Tabs>
<Tab title="Claude Code">
```bash
cp -r SkillEvaluator/skills/skillevaluator .claude/skills/ # this repository
cp -r SkillEvaluator/skills/skillevaluator ~/.claude/skills/ # every repository
```
</Tab>
<Tab title="Codex">
```bash
cp -r SkillEvaluator/skills/skillevaluator .agents/skills/ # this repository
cp -r SkillEvaluator/skills/skillevaluator ~/.codex/skills/ # every repository
```
</Tab>
<Tab title="OpenCode">
```bash
cp -r SkillEvaluator/skills/skillevaluator .opencode/skills/ # this repository
cp -r SkillEvaluator/skills/skillevaluator ~/.config/opencode/skills/ # every repository
```
</Tab>
<Tab title="OpenClaw">
```bash
cp -r SkillEvaluator/skills/skillevaluator ~/.openclaw/skills/ # every workspace
```
</Tab>
<Tab title="Other agents">
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`.
</Tab>
</Tabs>
</Accordion>

### Install the CLI

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:
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
export SKILL_EVAL_LLM_PROVIDER=nv_build
export NVIDIA_API_KEY=...
pip install --upgrade skillevaluator
```

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.
`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

Ask your agent to check a skill. It uses the CLI you installed in the previous
step.

</Steps>

## Call it

Once the skill is installed, your agent can use it in two ways.

<CardGroup cols={2}>
<Card title="Just ask" icon="comment">
Ask in plain language. The agent sees the skill in its list and loads it by itself.
</Card>
<Card title="Call it by name" icon="at">
Name the skill in your request. In Claude Code, typing `/skillevaluator` does the same.
</Card>
</CardGroup>

```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
```

<Tip>
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.
</Tip>

## 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.

<Frame caption="An example session. The command and its numbers come from a real run on a small sample skill; your agent's wording will differ.">
<img src="./assets/agent-skill-example.svg" alt="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" />
</Frame>

## How it works

<Frame>
<img src="./assets/agent-skill-flow.svg" alt="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" />
</Frame>

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 <skill-dir> --no-llm` | Pass or fail with security, PII, schema, and quality findings |
| "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" | Write task requests and outcomes in `<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 |
| "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 <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 |

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.

<Warning>
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.
</Warning>
<Tip>
The first row needs no key. The rubric, Tier 2, and Tier 3 need one provider key;
see [Providers & Credentials](/skills/skillevaluator/configuration).
</Tip>

## What runs where
## Good to know

<AccordionGroup>
<Accordion title="Tier 1 and Tier 2: on your machine">
Static checks, quality, security, PII, and deduplication run locally through the CLI.
No Docker and no Harbor. LLM-assisted checks need a provider key.
<Accordion title="Which checks need an API 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.
</Accordion>
<Accordion title="What does a live evaluation look 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
```

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.
</Accordion>
<Accordion title="Tier 3: in a sandbox">
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).
<Accordion title="Why the agent never grades itself">
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.
</Accordion>
<Accordion title="Incomplete 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.
<Accordion title="What runs where?">
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.
</Accordion>
</AccordionGroup>

Expand Down
Loading
Loading