build-eval
Evaluate skills with a bounded direct Codex review suite or `claude plugin eval`. Use labeled inputs and deterministic grading for output correctness; use a plugin wrapper and with/without-plugin comparisons for discovery and contribution. Use when the user asks to eval or test a skill, asks whether a context file is thin enough, or asks to check the context budget.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 7
- Forks
- 1
01 前言 Front Matter
- name
- build-eval
- description
- Evaluate skills with a bounded direct Codex review suite or `claude plugin eval`. Use labeled inputs and deterministic grading for output correctness; use a plugin wrapper and with/without-plugin comparisons for discovery and contribution. Use when the user asks to eval or test a skill, asks whether a context file is thin enough, or asks to check the context budget.
02 资源文件 13
- 参考文档evals/review/baseline-responses.json514 B
- 参考文档evals/review/baseline.md8.5 KB
- 参考文档evals/review/cases.json5.6 KB
- 参考文档evals/review/README.md7.7 KB
- 脚本evals/review/review_eval_support/account.py5.4 KB
- 脚本evals/review/review_eval_support/config/constants.py3.7 KB
- 脚本evals/review/review_eval_support/execution.py5.6 KB
- 脚本evals/review/review_eval_support/grading.py10.0 KB
- 脚本evals/review/run.py7.7 KB
- 脚本evals/review/test_run.py12.8 KB
- 参考文档reference/build-evaluation.md5.6 KB
- 参考文档reference/context-budget.md3.1 KB
- 参考文档reference/graders-and-commands.md4.4 KB
03 SKILL.md 正文
Build eval
For building an evaluation of an AI workflow, follow the design process.
For a direct Codex output-quality evaluation, use the review suite.
It includes labeled cases, executable witnesses, related-group holdouts, a bounded
codex exec adapter, stored replay, trace capture and deterministic precision/recall
grading. Start with its validation command and two-case smoke. Preserve the distinction
between grader validation, stored replay, a fresh recipe run and a complete workflow run.
Use the plugin process below when measuring skill discovery or with/without-plugin contribution.
To check whether a context file is thin enough, follow the context budget page.
To compare models, follow Measuring model choice: run each pair in its own session and score against spend by cost per finished task.
Contents
- Principle
- Gotchas
- When this applies
- Process
- Files
Principle
claude plugin eval runs plugins only. Wrap the skill in a plugin folder whose layout keeps every
relative link working. Grade behavior only the skill produces. Judge the skill by the delta between
the arm with the plugin and the arm without it.
Gotchas
- A
.claude-plugin/plugin.jsonunder any skills directory turns that folder into a<name>@skills-dirplugin in every session. Build the wrapper outside every skills directory. - The run sandbox gets a throwaway home and config. User settings, hooks, CLAUDE.md, MCP servers,
memory, and other skills are absent. Plugin items carry a prefix, such as
<plugin>:session-advisor. claude plugin eval initwith no arguments is interactive and needs a terminal. From an agent shell, runclaude plugin eval init --bare <case-name>.- A prompt that starts with
/skill-nameloads the skill with noSkilltool call, sotool_used: Skillalways fails on a slash case. - A plain-words case triggers only when the skill allows model invocation. Leave
disable-model-invocationunset in the copied frontmatter. - Write, Edit, SendMessage, and Bash need
--allow-toolson the command line. Bash and PowerShell grants refuse the run on native Windows, which has no sandbox backend. Run those cases under WSL2. - Writes under a loaded
--plugin-dirare denied in dontAsk mode. That skews the with-plugin arm only, so keep every working and output folder outside the plugin root. - A metric built from tool_use attempts reports success even when every write was denied. Read each
run's
permission_denialsand final result before you compare arms. - A score under
--ablation nonesays nothing about what the skill adds. Run the baseline once before you claim the skill helps. - The sandbox disables feature-flag fetching. Flag-gated features such as the built-in
advisor()tool are off, and/advisorreplies "isn't available in this environment". No env var or plugin setting turns them on. Pluginsettings.jsonaccepts onlyagentandsubagentStatusLine. Test such a feature with theclaude -precipe inreference/graders-and-commands.md. --keep-tempon Windows warns that it cannot seal the folder. Delete that folder when done with PowerShellRemove-Item -Recurse -Force -LiteralPath <path>.- A loop the user asks to run until clean runs with no round cap and no retry cap. Use only the limits the user set. Name any other stop condition to the user before the first launch, and report each run it ended as stopped by that condition.
When this applies
Use this skill to measure whether a skill that is not packaged as a plugin triggers and changes behavior. It needs Claude Code 2.1.269 or later. Source doc: https://code.claude.com/docs/en/plugin-evals
Process
When the host exposes a task tool, register one session task per numbered step. Otherwise work the steps in order.
-
Run
claude --versionand confirm 2.1.269 or later. -
Create the wrapper folder outside every skills directory:
<wrapper>/ ├── .claude-plugin/ │ └── plugin.json ├── skills/ │ └── <name>/ ├── agents/ └── <each shared doc, at the path the skill's relative links expect>plugin.jsonholdsname,version, anddescription. -
Copy the skill, every agent it spawns, and every shared doc it links. Copy from a tree at
origin/main, not from a stale worktree. Resolve each relative link in the copied skill against the wrapper root. -
In the wrapper root, run
claude plugin eval init --bare <case-name>once per case. -
Write
evals/<case>/prompt.mdandevals/<case>/graders/*.mdfor each case. Frontmatter keys, grader types, and the case set are inreference/graders-and-commands.md. -
Re-copy the skill from
origin/main, then run the smoke command from the reference file. -
Read each run's
permission_denialsand final result. Fix any denial that the case needs. -
Re-copy the skill, then run the full eval. Read the delta in
aggregate-result.json. -
Delete any
--keep-tempsandbox folder.
Files
SKILL.md. Wrapper layout, gotchas, and process.reference/graders-and-commands.md. Prompt frontmatter, grader types, case set, eval commands, and theclaude -precipe for flag-gated features.reference/context-budget.md. The context budget command and the fix for each finding.
04 同仓库更多 Skills
update
Fast-forwards a local repository's main branch to a remote's main after confirming the repo path and source remote through AskUserQuestion. Use when the user says '/update', 'update main', 'fast-forward main', 'sync main from origin', 'pull latest main into <path>', or 'bring main up to date'.
source-command-sr-loop
Converging cleanup loop: repeat /simplify until clean, then repeat /code-review --fix until clean
skill-builder
Skill lifecycle: classify, scaffold, write via the skill-writer-agent, self-audit, compose sub-skills, polish description triggers, enforce deterministic scripts. Triggers: build a skill, new skill workflow, improve this skill, optimize skill description, skill development lifecycle, skill modularity, skill composition, description trigger catalog, deterministic skill scripts.
session-tidy
Audit, clean, and consolidate session logs in the Obsidian vault. Fixes format drift, resolves orphaned next-steps, updates stale statuses, and generates project rollup summaries. Use when session logs feel cluttered or before starting a new project milestone. Triggers on '/session-tidy', 'tidy sessions', 'clean up session logs', 'session audit'.
session-log
Logs a session report as an HTML page, tracks vault context, extracts decisions, and outputs a /rename command. Use for /session-log, 'journal this session', 'log this work', 'session report', 'summarize/log/record this session', 'save session', 'capture session', or 'document what we did'.
run-claude-dev-env
Build, install, run, and test the claude-dev-env installer. Use when asked to run claude-dev-env, install the Claude Code config into ~/.claude, drive the installer, smoke-test it against a sandbox, or run its test suite.