/bmad-toolsmith:bmad-evalfrom bmad-toolsmith
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, trigger accuracy of the description with an optional optimization loop, and a trigger matrix of which installed skill each request loads. Use when the user asks to evaluate, benchmark, test the triggers of, grade, or compare versions of a skill, or to check installed skills for overlapping descriptions, or when the bmad-toolsmith skill asks for an eval of a skill it built.
Ships in bmad-toolsmith. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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.
| Mode | Question it answers | How it runs |
|---|---|---|
| baseline | Does the skill beat the bare model on the same input? | references/eval-format.md |
| variant | Does a section earn its place, or does a stripped or prior version do as well? | references/eval-format.md |
| quality | Does the output meet the named rubric? | references/eval-format.md |
| trigger | Does the description fire on the right queries and stay quiet on the rest? | the trigger command below; references/description-optimization.md to improve the description across rounds |
| matrix | With every skill of an install present, does each request load the skill meant for it? | the matrix command below |
Read the named reference fully when its mode runs. Cases live in cases.json under evals/ at the root of the repository or project holding the skill, in a folder mirroring the skill's path below skills/ (evals/core-tools/bmad-brainstorming/), and trigger queries as {query, should_trigger} in triggers.json beside them, outside the skill so they never ship with it. A suite that spans skills lives in evals/suites/<name>/; its trigger-matrix.json lists {query, expect, also_ok}, where expect is the skill that should load or null for none, and also_ok names skills that may load instead. Writing cases, or converting a skill-creator evals.json, follows references/eval-format.md.
{project-root} is the nearest folder containing _bmad/, from the working directory upward (in a linked git worktree, fall back to walking up from the parent of git rev-parse --path-format=absolute --git-common-dir).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 {skill-path} (the skill under test) and {output_folder} filled in; a matrix run has no skill, so when the value contains {skill-path} it uses {project-root}/.eval-results (~/bmad-evals outside a project), and an explicit custom path is kept.<skill-path>/SKILL.md exists, or for the matrix that at least one SKILL.md sits below each skills folder; halt with a clear error if not.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; the runner reads them from there. When nobody is at the keyboard, stop and show the table to record instead.evals/ in the nearest folder above the skill holding one, mirroring its path below skills/, then <skill-path>/evals/ for a skill built elsewhere, then anywhere under <project-root>/evals/. If nothing is found, halt and say so; the runner does not invent cases. When that folder also holds suites.toml or README.md, read it and follow its runner and grading setup (for example --read-only or tiered grading).The skill under test is the directory holding SKILL.md. The execution root defaults to the first ancestor holding _bmad/ within the active checkout, or the active worktree's .git root when _bmad/ is absent locally (for fixtures and companion skills). When bmad-eval resolves harness configuration, it falls back from there through _bmad/ on the linked main checkout (git rev-parse --path-format=absolute --git-common-dir parent and its ancestors). Pass --output-dir "{reports_folder}" so customized paths apply (a runner called without --output-dir falls back to its built-in .eval-results default, or ~/bmad-evals outside a project); a .eval-results/ folder gets its own .gitignore, so runs never dirty git status, and the staged copy of the skill leaves it out.
Every run is its own timestamped folder there, so runs never collide. Each case runs in a clean room 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.
Runners read the harness from customization themselves; in a project without BMad, pass --harness <json> with the same keys. When the user names other tools or models to run against, pass --harness-name <name> once per name recorded under workflow.harnesses, recording any that is missing per references/harness.md first. Each name gets its own run folder, and the output is keyed by name: report where the harnesses disagree, since a description that routes well in one tool can fail in another.
Trigger:
uv run "{skill-root}/scripts/run_triggers.py" \
--skill-path <skill> --queries <queries-file> --output-dir "{reports_folder}" \
[--runs-per-query N]
Matrix, with the folders that hold the install's skills (the repository's skills/, or the skills folders the user's tool loads):
uv run "{skill-root}/scripts/run_matrix.py" \
--skills <folder> [--skills <folder> ...] --queries <trigger-matrix.json> --output-dir "{reports_folder}" \
[--runs-per-query N]
Report each failing query with the skills that loaded and their rates, then the confusion table: a pair that recurs there is two descriptions claiming the same request. A skill that loads too rarely shows as missed. A fix is a description change, tested by running the matrix again.
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 or matrix query failing its threshold is a result, not an error.
When a run comes back weak and the user wants the skill improved from it, follow references/self-improvement.md.
Each run folder holds run.json naming the harness command and one folder per case or trigger attempt with its prompt, transcript, stderr.txt, cwd/ (the workspace after the run) and timing.json, plus grading.json when quality ran. Never delete, overwrite or rotate a run folder. When you finish, tell the user the exact path of each run folder (for a skill's default, <skill-path>/.eval-results/<run>/) and that .eval-results/ is gitignored.
bmod.toml (opens in a new tab)customize.toml (opens in a new tab)help/eval-best-practices.md (opens in a new tab)help/evals.md (opens in a new tab)references/description-optimization.md (opens in a new tab)references/eval-format.md (opens in a new tab)references/grader.md (opens in a new tab)references/harness.md (opens in a new tab)references/self-improvement.md (opens in a new tab)scripts/aggregate_benchmark.py (opens in a new tab)scripts/convert_cases.py (opens in a new tab)scripts/eval_common.py (opens in a new tab)scripts/frontmatter.py (opens in a new tab)scripts/run_evals.py (opens in a new tab)scripts/run_matrix.py (opens in a new tab)scripts/run_triggers.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub bmad-code-org/bmad-plugins --plugin bmad-toolsmith3 skills in this plugin
/bmad-toolsmithSmithy the Toolsmith builds and maintains BMad skills, agents and modules. Use when the user asks for Smithy or says "build a skill", "make an agent", "make a new kind of document template", "scaffold a skill", "turn my session logs into a skill", "change, fix or extend my skill", "convert this prompt to a skill", "review this skill", "optimize this skill", "cut this skill down", "make this skill BMad compliant", "package a module", "validate my module" or "migrate my old module". Not for running evals (`bmad-eval`), writing a document from a template (`bmad-facilitate`), or overriding an installed skill or editing a template that already exists, such as adding a section (`bmad-customize`)./bmod-toolsmithRequired bmod metadata. Never invoke this skill.Other plugins' skills for the same job