bmad-eval
它能做什么
这个技能让 AI 智能体测试 BMad 技能的效果。适合技能作者,他们需要证据证明技能确实有用,并能在正确的请求下被触发。
适用场景
- ✓当你想知道某个技能在同一任务上是否优于普通模型的时候。
- ✓当你想比较某个技能的两个版本,看哪些部分有帮助的时候。
- ✓当你想检查某个技能的描述是否在正确的请求上被触发的时候。
技能链接
https://github.com/bmad-code-org/BMAD-METHOD/blob/main/skills/bmad-eval/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我的摘要技能运行评估,并告诉我在相同输入下它是否优于普通模型。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会分别用该技能和不用该技能运行每个测试用例,然后根据评分标准为结果打分。它还可以衡量技能描述正确触发的频率。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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
- Read config with
uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root} --key core.output_folderand customization withuv 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. - Verify
<skill-path>/SKILL.mdexists; halt with a clear error if not. - When
workflow.harness.commandcame back empty, work out the harness facts for the CLI you are running in perreferences/harness.md, prove them on one case, and record them by invoking thebmad-customizeskill (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. - 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. - 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 m
常见问题
什么是基线?
基线是在不添加该技能的情况下运行相同的测试用例,这样你就能看出技能是否真的有帮助。
它可以改进技能的描述吗?
可以。它有一个可选的优化循环,会在多轮中对描述进行改进。
什么是评分标准?
评分标准是一组有名称的条目,每个输出都要依据这些条目打分。
详情
作者的原始描述
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.
热度
- GitHub 星标
- 55k
- 排名
- #3351
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
bmad-advanced-elicitation
55k帮你的智能体通过批判性方法推动草稿深入思考,并提出一个修改方案,由你选择接受或拒绝。
bmad-agent-analyst
55k让你的智能体扮演 Mary,一位商业分析师,负责市场调研、竞争分析,并把模糊的需求整理成清晰的需求。
bmad-agent-architect
55k让你的智能体扮演 Winston,一位系统架构师,把需求转化为实用的技术设计,并解释其中的取舍。
bmad-agent-dev
55k让你的智能体扮演 Amelia,一位资深软件工程师,按照测试优先的步骤实现已批准的用户故事,并逐项检查验收标准。