bmad-eval
Skill này làm gì
Skill này khiến agent AI kiểm tra mức hiệu quả của một skill BMad. Skill dành cho tác giả skill muốn có bằng chứng cho thấy skill có ích và được kích hoạt đúng yêu cầu.
Khi nào nên dùng
- ✓Khi bạn muốn biết một skill có vượt trội hơn mô hình thuần trong cùng một tác vụ không.
- ✓Khi bạn muốn so sánh hai phiên bản của một skill để xem phần nào thực sự giúp ích.
- ✓Khi bạn muốn kiểm tra mô tả của skill có kích hoạt đúng các yêu cầu hay không.
Liên kết skill
https://github.com/bmad-code-org/BMAD-METHOD/blob/main/skills/bmad-eval/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Chạy các eval cho skill tóm tắt của tôi và cho tôi xem nó có vượt trội hơn mô hình thuần với cùng đầu vào không.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent chạy từng test case có skill và không có skill, rồi chấm kết quả theo một rubric. Nó cũng có thể đo tần suất mô tả của skill kích hoạt đúng.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Baseline là gì?
Baseline chạy cùng các test case có skill và không thêm gì, để bạn thấy skill có giúp ích hay không.
Nó có cải thiện mô tả của skill không?
Có. Nó có một vòng lặp tối ưu hóa tùy chọn, làm việc trên mô tả qua nhiều vòng.
Rubric là gì?
Rubric là một tập tiêu chí có tên, mỗi đầu ra được chấm theo đó.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 55k
- Vị trí xếp hạng
- #3351
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
bmad-advanced-elicitation
55kGiúp agent của bạn cải thiện một bản nháp bằng cách đưa nó qua các phương pháp phê bình và đề xuất một bản sửa, bạn có thể chấp nhận hoặc từ chối.
bmad-agent-analyst
55kGiúp agent của bạn đóng vai Mary, một chuyên viên phân tích kinh doanh làm nghiên cứu thị trường, phân tích cạnh tranh và biến nhu cầu mơ hồ thành yêu cầu rõ ràng.
bmad-agent-architect
55kGiúp agent của bạn đóng vai Winston, một kiến trúc sư hệ thống biến yêu cầu thành thiết kế kỹ thuật thực tế và giải thích các đánh đổi.
bmad-agent-dev
55kGiúp agent của bạn đóng vai Amelia, kỹ sư phần mềm cao cấp, xây dựng user story đã duyệt theo hướng viết test trước và kiểm tra từng tiêu chí.
Skill tương tự
test-driven-development
311kDạy agent của bạn viết kiểm thử thất bại trước, xem nó thất bại, rồi viết đoạn mã ngắn nhất để vượt qua trước khi làm bất kỳ tính năng hay bản sửa nào.
verification-before-completion
311kDạy agent của bạn chạy kiểm tra thực tế và đọc kết quả đầu ra trước khi khẳng định một việc, bản sửa hoặc bản build đã hoàn thành hay vượt qua.
migrate-to-shoehorn
310kThay các ép kiểu rủi ro trong tệp kiểm thử bằng thư viện shoehorn, để các bài kiểm thử dùng dữ liệu một phần vẫn qua được kiểm tra kiểu.