Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

bmad-eval — Claude Code skill: what it does, how to install

Runs automated benchmarks and evaluations for agent skills across four modes, checking trigger accuracy and grading quality in a clean workspace.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add bmad-code-org/BMAD-METHOD --skill bmad-eval -a claude-code
Open on GitHub

What bmad-eval does

The runner benchmarks a skill across four modes: baseline against the bare model, variant against a stripped version, quality against a rubric, and trigger against query sets to test description firing. Every test case executes inside a fresh temporary directory outside the project. Because the workspace builds from scratch, host configurations and existing project skills cannot distort the results.

Execution relies on uv to run Python scripts like run_evals.py and run_triggers.py. You need SKILL.md in the target folder, plus test definitions in cases.json or triggers.json. Results from fewer than three runs per case count as a quick look; settled benchmarks require at least three runs.

Runs operate with permission prompts disabled and lack containment unless the harness command itself wraps them in a sandbox — inspect your harness command carefully before starting.

What it helps with

  • benchmark skill output against the unassisted base model
  • verify whether a skill description triggers on correct user queries
  • grade agent responses against a structured rubric with automated feedback
  • compare performance against a stripped-down variant of the skill

Example prompts for the agent

  • Evaluate the code-review skill in baseline mode using evals/cases.json
  • Run trigger tests on the bmad-helper skill with 3 runs per query
  • Grade the doc-writer skill output in quality mode against its rubric

How to install bmad-eval

1Skills CLI (Vercel)

npx skills add bmad-code-org/BMAD-METHOD --skill bmad-eval -a claude-code

2Manually: put the files in place

~/.claude/skills/bmad-eval/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/bmad-eval/

From the same set25

The whole set →
bmad bmad-code-org Coordinates BMad Method modules, recommends the next skill, and tracks project initiatives. Useful when setting up or repairing your workflow. Claude Code CX Codex Cursor +1 13,100installs bmad-build bmad-code-org Takes a delegated feature, story, bug fix or bare issue link and turns it into working code that has been reviewed and verified. Needs BMad set up in the project. Claude Code CX Codex Cursor +1 12,400installs bmad-code-review bmad-code-org This skill runs several independent reviewers in parallel, then triages their findings. Useful when you want changes checked before a merge. Claude Code CX Codex Cursor +1 12,100installs bmad-architecture bmad-code-org Writes a short architecture document that pins down only the invariants keeping independently built parts of a system from diverging. Claude Code CX Codex Cursor +1 11,800installs bmad-agent-pm bmad-code-org Activates John, a product manager persona for PRD creation and requirements discovery. It breaks down product ideas into deliverable tickets. Claude Code CX Codex Cursor +1 11,800installs bmad-agent-architect bmad-code-org This skill turns ticket requirements into technical architecture with explicit trade-offs. Use it when you want to work with Winston as the architect. Claude Code CX Codex Cursor +1 11,800installs bmad-brainstorming bmad-code-org The skill runs a brainstorming session: the agent asks one question at a time, rotates creative techniques and logs ideas to a memlog. Useful when you want more options than you'd get alone. Claude Code CX Codex Cursor +1 11,800installs bmad-agent-analyst bmad-code-org Turns your agent into Mary, a business analyst who handles market research, competitor breakdowns and requirements, and turns vague asks into specs. Claude Code CX Codex Cursor +1 11,700installs

Similar

x402 browser-use Configures Browser Use Cloud payments using Coinbase's x402 protocol with USDC on Base. Lets you run cloud browser automation without accounts or API keys. Claude Code CX Codex Cursor +1 1,300installs hunt tw93 Pinpoints root causes before touching code when an app crashes or regresses. Enforces reproducible evidence and verification before applying any fix. Claude Code CX Codex Cursor +1 14,900installs think tw93 Turns a rough idea into a plan with a recommendation, success criteria, and checks. Use it to weigh architecture choices or prepare a handoff before coding. Claude Code CX Codex Cursor +1 14,900installs add-lang colbymchenry Adds a new language to codegraph through tree-sitter, tests the extractor, and measures extraction and retrieval on real repositories. Claude Code CX Codex Cursor +1 1,200installs opentui anomalyco Gives your agent OpenTUI reference documentation: Core, React and Solid bindings, components, application APIs, testing and deployment. Claude Code CX Codex Cursor +1 3,700installs paseo getpaseo Control the Paseo remote daemon from your IDE. Create agents, workspaces, run scripts, and coordinate across hosts using MCP tools built into Claude Code. Claude Code CX Codex Cursor +1 5,200installs setup-matt-pocock-skills Matt Pocock This skill configures a repository for Matt Pocock's engineering skills by setting its issue tracker, triage labels, and domain docs layout. Run it before using the other skills. Claude Code 1,052,851installs to-tickets Matt Pocock Turns a plan, spec, or conversation into small end-to-end tickets with explicit blockers. Use it to agree on the work breakdown before tickets go to a tracker. Claude Code 711,230installs

Questions about bmad-eval

How to install bmad-eval in Claude Code?

Run npx skills add bmad-code-org/BMAD-METHOD --skill bmad-eval -a claude-code in your terminal.

What does bmad-eval do?

It executes automated evaluations of agent skills in isolated environments, reporting trigger accuracy, rubric grades, and comparison metrics against the base model or variant versions.

What prerequisites are required to run evaluations?

The target skill directory must contain SKILL.md, Python runner scripts require uv, and test inputs must be defined in cases.json or triggers.json.

Source text

SKILL.md · MIT
---
name: bmad-eval
description: 'Runs the evals of a BMad skill through the agent harness the user works in and reports what they show: baseline against the bare model, variant against a stripped or prior version, quality against a rubric, and trigger accuracy of the description with an optional optimization loop. Use when the user asks to evaluate, benchmark, test the triggers of, grade, or compare versions of a skill, or when the bmad-toolsmith skill asks for an eval of a skill it built.'
---

# Skill Eval Runner

You run a skill's evals and report what they say. Cite specific findings, flag evals that pass for trivial reasons, and never widen a tolerance to make a run look like it succeeded. No model or harness is named in this skill: the harness a project's evals run through is recorded in this skill's customization at the first run.

## The four modes

| Mode | Question it answers | Script / reference |
|---|---|---|
| baseline | Does the skill beat the bare model on the same input? | `references/eval-format.md`, `scripts/run_evals.py` |
| variant | Does a section earn its place, or does a stripped version do as well? | `references/eval-format.md`, `scripts/run_evals.py` |
| quality | Does the output meet the named rubric? | `references/grader.md`, `references/eval-format.md` |
| trigger | Does the description fire on the right queries and stay quiet on the rest? | `references/harness.md`, `scripts/run_triggers.py` |

Baseline runs every case with the skill staged and with nothing staged. Variant runs the skill against the one at `--variant-path`. Quality grades one config against its rubric. Trigger measures real firing; `references/description-optimization.md` improves the description across rounds.

## Case format

A case is `input + rubric + optional state_prefix + optional fixture files`; the `state_prefix` is a bracketed prime prepended to the input that places the skill mid-workflow in one shot. Cases live in `<skill>/evals/cases.json`, trigger queries as `{query, should_trigger}` in `<skill>/evals/triggers.json`. The full shape and the strong-versus-weak expectation taxonomy are in `references/eval-format.md`. A skill-creator `evals.json` converts with `uv run {skill-root}/scripts/convert_cases.py <evals.json> --output <cases.json>` (`--to skill-creator` reverses it).

## On activation

1. Read config with `uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root} --key core.output_folder` and customization with `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow`. Absent keys are fine. `{reports_folder}` is `{workflow.reports_folder}` with `{output_folder}` filled in.
2. Verify `<skill-path>/SKILL.md` exists; halt with a clear error if not.
3. When `workflow.harness.command` came back empty, work out the harness facts for the CLI you are running in per `references/harness.md`, prove them on one case, and record them by invoking the `bmad-customize` skill (install: `npx skills add bmad-code-org/BMAD-METHOD --skill bmad-customize`); the runner reads them from there. When nobody is at the keyboard, stop and show the table to record instead.
4. Find the cases file: the one the user named, then `<skill-path>/evals/`, then `<project-root>/evals/<skill-name>/`, then anywhere under `<project-root>/evals/`. If nothing is found, halt and say so; the runner does not invent cases.
5. Confirm the run summary unless the user asked for a non-interactive run, then execute. The summary names the skill, cases, modes and output dir, shows the harness command, and says that it runs with permission prompts off and is not contained unless the command wraps it in a sandbox. A non-interactive run needs the harness already recorded.

## Run execution

The user asks for a run in `<mode>` mode on `<skill>` (the directory holding `SKILL.md`), with a variant skill for variant mode. The project root is the first ancestor of the skill holding `_bmad/` or `.git/`; the output dir is `{reports_folder}` when BMad is set up, else `~/bmad-evals/`. Every run is its own timestamped folder there, so runs never collide. Each case runs in a clean room, a temporary folder outside the project with a copy of the skill staged into its workspace and an environment built from scratch, so host config, prior runs, the project's instruction files and its installed skills cannot bias the result. The runner reads the harness from customization itself; in a project without BMad, pass `--harness <json>` with the same keys.

Baseline, variant and quality:

```
uv run {skill-root}/scripts/run_evals.py \
  --cases <cases-file> --skill-path <skill> --output-dir <dir> \
  --mode quality|baseline|variant [--variant-path <skill>] \
  --label <skill-name>-<mode> [--runs N]
```

`--runs` defaults to 1 for a quick look; a result counts as settled only at 3 or more. Case subsets, timeouts and workers are in the script docstrings. Exit 0 is a complete run; 1 means a case errored or timed out or the command was not found, 3 that no harness is recorded; a trigger query failing its threshold is a result, not an error.

Trigger:

```
uv run {skill-root}/scripts/run_triggers.py \
  --skill-path <skill> --queries <queries-file> --output-dir <dir> \
  [--runs-per-query N]
```

For quality, spawn the grader in `references/grader.md` per case with its rubric, transcript path, artifacts dir (the case's `cwd/`) and `grading_path` of `<case-folder>/grading.json`. Relay its rubric feedback. If a grader errors, mark the case `grading_error`, never a default verdict.

When `--runs` is greater than one, `uv run {skill-root}/scripts/aggregate_benchmark.py --baseline <run-dir>/<config-a> --variant <run-dir>/<config-b>` gives mean, sample standard deviation, min, max and delta (`--runs <run-dir>/<config>` for one config).

When a run comes back weak and the user wants the skill improved from it, follow `references/self-improvement.md`.

## Artifacts

Each run is a dated folder under the output dir, with `run.json` naming the harness command; each case folder, and each trigger attempt, holds its prompt, the transcript (what the harness printed), `stderr.txt`, `cwd/` (the workspace after the run), `timing.json` (written the moment the invocation ends) and `grading.json` when quality ran. Never delete, overwrite or rotate a run folder. Tell the user where it is when you finish.

## Outcomes

- The run reflects the skill in a clean working directory, not the host shell.
- Failures cite specific expectations with evidence; a superficial pass is flagged.
- A result from fewer than 3 runs per case (or per trigger query) is reported as a quick look, never as settled.
- A baseline the skill no longer wins points to retiring the skill, not patching it.

© bmad-code-org · MIT · bmad-code-org/BMAD-METHOD

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor