Create Skill Test
Scaffold an evaluation spec (eval.yaml) for a skill, agent, or workflow package so it conforms to the Vally schema,
passes skill-validator check and check_eval_quality.py, is powerful enough to return a verdict,
and does not overfit to the skill's own wording.
When to Use
- Creating a new
eval.yamlfor a skill, agent, or workflow package - Adding stimuli to an existing eval
- Sizing an eval so the pass gate can actually be reached
- Setting up or repairing fixture files alongside an eval
- Reviewing whether rubric items and graders risk overfitting
When Not to Use
- Diagnosing a failing or regressed eval — use
improve-skill-quality - Modifying the skill-validator or the evaluation workflows
- Creating or editing
SKILL.mdfiles — usecreate-skill
Inputs
Workflow
Step 1: Prove the eval belongs to the target
Before writing YAML, state what the stimulus proves. A preference stimulus is necessary when the target should improve the answer, action, restraint, or validation result compared with the same model without the target. A non-voting activation contract or no-op guard is necessary when it protects a meaningful invariant, even if correct behavior is baseline-equivalent.
Do not add a stimulus when it measures:
- generic knowledge the base model already has;
- path recall for a skill that only points to reference files;
- output volume rather than correctness;
- a renamed or lightly reworded copy of an existing case; or
- a
disable-model-invocation: truereference skill in isolation.
Map each proposed case to capability, risk, and customer journey tags. Preference cases must add distinct voting value. Activation contracts and no-op guards may share a capability when they protect a separate routing or preservation invariant. If two cases have the same inputs, expected outcome, failure mode, and grader path, keep the stronger one. The five-stimulus floor never justifies padding.
Then locate the target and test directory:
Verify the target exists at plugins/<plugin>/skills/<skill-name>/SKILL.md or
plugins/<plugin>/agents/<agent-name>.agent.md, and read it.
Agent evals use the native SDK agent lane. Vally 0.14 cannot register custom
agents, so agent.* specs do not run through the skill experiment. The
evaluation workflow discovers them separately, runs the target agent through
skill-validator evaluate, and adapts that evidence into the same
schema-versioned result and dashboard pipeline. The distinct-stimulus floor
applies to both skill and agent evals.
Be careful with a skill that sets disable-model-invocation: true. The model cannot invoke it,
so the skill is absent from the model-facing skilled arm and any direct eval compares two identical
arms. Answer-content graders do not create a difference between those arms. The honest coverage for
such skills is dependency-level — through the outcome evals of the skills that load them, and through
the plugin arm. For example, filter-syntax is covered by the filtered-command scenarios in
tests/dotnet-test/run-tests/eval.yaml.
Step 2: Write the spec skeleton
The spec is Vally format. Every eval in this repo uses stimuli: and graders:; scenarios: and
assertions: are a pre-Vally format that no longer loads.
Use
defaults:only.config:is a deprecated alias that the repository gate rejects. Vally warns when the alias appears alone and throws when a spec declares both keys. Replaceconfig:with onedefaults:block and preserve its settings.
Step 3: Size the eval for power before writing content
The gate gives each distinct stimulus one vote. Repeated runs for one stimulus collapse to one majority-direction vote and remain available as reliability evidence.
- Distinct stimuli ≥ 5, else the verdict is
underpowered— never a pass, never a regression. - p ≤ 0.05 on an exact one-sided sign test over discordant (non-tie) stimulus votes. Ties are not discarded; they hold the discordant count down.
At exactly 5 stimuli, one tie is fatal because it leaves 4 discordant votes. At 6 stimuli one tie is survivable; at 7, up to two are. A loss is not. Five is an eligibility floor, not adequate power. For example, 80% power needs 8 discordant votes only for a true 90% conditional win rate; it needs 18 at 80%, 37 at 70%, and 158 at 60%. Size for the effect and tie rate you need to detect.
Use runs for reliability, not task breadth. Vally recommends 3 runs in CI and 5–10 nightly for
pass rate, pass@k, pass^k, and flakiness. Extra runs never clear the five-stimulus floor.
Do not set runs in dotnet-skills.experiment.yaml; experiment overrides overwrite every eval's
own value rather than defaulting it.
Step 4: Write stimuli
- Name describes what is tested, not how.
- Prompt is a natural developer request. Never mention the skill, the agent, or its vocabulary — cued prompts inflate the overfit score and bias the baseline.
- Each stimulus should discriminate a different property of the skill. Five stimuli covering one property give arithmetic, not evidence.
- Give every capability stimulus non-empty
capability,risk, andjourneytags. Use stable lowercase kebab-case values. A useful portfolio crosses distinct rows or columns in that matrix; it does not repeat one journey with cosmetic wording changes. - Give every stimulus a stable, unique
name. Vally pairs comparison trajectories by(stimulus name, trial index); duplicate names make slot identity ambiguous. - Include a boundary / no-op stimulus for any skill that migrates or rewrites code, proving it leaves already-correct input alone.
- Add a dormancy stimulus for each real routing boundary. No-op proves restraint on an on-target, already-correct input; dormancy proves the target stays inactive on an off-target request.
Step 5: Configure the environment
Do not set environment.skills in a skill eval. The experiment declares
vary: /environment/skills and supplies the value itself — [] for the baseline arm and
plugins/<plugin>/skills/<skill> for the skilled arm — so anything the eval declares is replaced,
in every arm. It cannot add a skill to one arm only. environment.skills is meaningful in an
agent.* eval; the native agent lane loads those entries only in the isolated
target run, while the plugin run loads the production plugin's complete skill
surface. Copy the shape from an existing agent eval such as
tests/dotnet-test/agent.test-quality-auditor/eval.yaml rather than reproducing a remembered form —
the specs in this repo are not consistent about how they spell those entries.
Fixture rules — each one has already cost a real result:
- Every referenced fixture must be tracked by git.
.gitignore(e.g.coverage*.xml) has silently swallowed a committed fixture: the eval passed locally and failed at setup in CI. Verify withgit ls-files, not by looking at the working tree. - Every fixture must behave as its stimulus assumes. A fixture meant to be healthy must build; a fixture meant to be broken must fail for the exact reason the stimulus is about, and no other. Judges penalize agents for unrelated "pre-existing build issues" that the fixture author introduced.
- Every fixture must reproduce the bug its stimulus is named for. If it does not, the baseline scores well and the skill has nothing to add.
- Coverage fixtures must be internally consistent. A Cobertura report whose declared
line-rate, summary totals (lines-covered/lines-valid), and<line>elements disagree lets the two arms read different truths, and the loss is the fixture's fault. Update any rubric item or prompt that quotes a figure in the same change. - Do not wire duplicate fixtures to raise
n; rename leftovers add trials without evidence. - A setup command that is expected to fail while still producing its artifact must be guarded
(
|| exit 0), or vally drops the trial. - A cleanup command that strips sources must skip directories containing
SKILL.md— the staged skill lives there, and deleting it aborts only the skilled arm. - Preserve the complete file set. When the prompt limits edits or requires source/test preservation, snapshot or compare every in-scope file, not one representative file. A grader that checks only the main output can miss deletion, truncation, or edits to sibling files.
Step 6: Write graders
Graders are hard pass/fail checks evaluated on every arm.
Rules:
- A grader whose
configis absent or missing its required key parses fine and enforces nothing. The usual cause is an indentation slip during an edit;check_eval_quality.pyblocks it. - Prefer broad patterns that several valid approaches satisfy:
(root cause|primary error|underlying issue). - If the skill mandates an output shape, assert on it. A skill required to emit a decisive
Recommendation:line can silently stop doing so while the eval still passes. - Use
file-not-contains/file-not-existsto prove the agent avoided an incorrect action.
Define the deterministic contract before writing the prompt grader:
- Golden acceptance: materialize the fixture and apply the
golden_patch, if any. The golden workspace and finalgolden_trajectoryresponse must pass every deterministic grader that applies to them. - Mutation rejection: make one realistic defect that the eval exists to catch, such as a missing file, zero discovered tests, an out-of-scope edit, or a changed semantic value. The relevant deterministic grader must fail.
- Complete-state check: cover all files and artifacts named by the request. Do not accept a partial artifact because one positive substring exists.
Use golden_patch for replayable workspace state and golden_trajectory for the expected final
response. A narrated edit, build, or test is not proof: completion claims need a patch or a
run-command grader that replays the evidence.
Step 7: Write rubric items
Rubric items are judged pairwise (baseline vs. skilled). The overfitting judge classifies each item:
- Test outcomes, not methods: "Identified the root cause of the build failure", not "Replayed the
binlog using
dotnet build /flp". - Accept any valid approach.
- Never reference the skill by name, and never reuse
SKILL.mdphrasing. - Never reward using the skill — the harness reports activation separately, so a rubric item that does this measures nothing and inflates the overfit score.
- Do not test knowledge the model already has; it adds no delta.
- Keep each item independently evaluable.
- Do not reward raw volume (test count, report length); judges will compare it when both arms act.
Good:
Overfitted:
Step 8: Add constraints sparingly
expect_tools: [bash]on an advisory question forces a restore or build and converts an answer into a timeout with no quality benefit. Only require tools when the task genuinely needs them.reject_toolsis the right way to keep a read-only stimulus read-only.
Step 9: Add dormancy guards
A dormancy guard proves the skill stays dormant on an off-target request that superficially matches it. Add one per real "when not to use" boundary: wrong input format, out-of-scope request, incompatible project type, wrong framework version, prerequisite absent.
Never combine
expect_activation: falsewithconstraints.reject_skills. That forces the skilled arm to run skill-free, so the harness cannot observe whether the target skill hijacks the request. The comparison remains visible as report-only evidence but does not vote in preference; unexpected isolated activation blocks a pass.expect_activation: falsealone is the repo convention.
Workflow-package scenarios
For a package target, verify agentic-workflows/<package>/aw.yml, then read its
entry workflow, local imports, and bundled agents. The native SDK lane evaluates
their real prompt bodies and installed resources against offline fixtures.
Specify collector outputs, revision/tracking evidence, and service responses as
fixture inputs; propose terminal actions in result.json rather than pretending
to publish through live GitHub or safe-output tools. Assert the structured result
with deterministic graders. Do not place expected answers in agent-readable
fixtures or staged grader scripts; pass expected values through grader argv.
Prompt expressions are rendered from a flat workflow-context.json fixture,
whose keys are exact trimmed expressions and values are strings. Missing context
fails setup. A workflow that correctly chooses noop is still expected-active
decision evidence, not expect_activation: false routing evidence. Include
normal, partial, stale, incompatible, missing-evidence, and multi-module cases
where applicable. Keep compilation, helper execution, and actual consumer
publication tests separate: this lane is labeled workflow-prompt-sdk, not
end-to-end Actions execution.
Guard rubrics verify three things: recognition (why it does not apply), restraint (no workflow, no file changes, no installs), redirection (the correct next step).
Step 10: Validate
For an agent eval, exercise the native lane directly:
CI adapts this result through eng/vally-adapter/adapt-agent-results.mjs,
which applies the same distinct-stimulus sign-test policy used by skill results.
Validation must cover four layers:
- Deterministic structure: run
check_eval_quality.pyand the relevant checker self-tests when the checker changes. - Production parsing and golden replay: run skill evals through the repository's Vally entry
point. For agent evals, run
skill-validator evaluateto prove the native SDK lane accepts the executable scenario fields. That parser does not readgolden_trajectoryorgolden_patch, so validate the references separately: runcheck_eval_quality.py, then materialize the fixture, apply the golden patch, and run every applicable deterministic file and command grader against the golden workspace. Confirm the final golden response passes its output graders. - Normal execution: use the normal worker concurrency and the declared
defaults.timeout. Do not certify an eval only with one worker or a larger ad hoc time budget. If normal concurrency exposes a race or timeout, classify it as reliability evidence. - Cross-family sensitivity: for broad routing or behavior changes, evaluate at least one GPT family and one Claude family executor. Report each result separately. Different executor or judge families do not increase the independent stimulus count.
check_eval_quality.py blocks 22 structural defect classes that can corrupt a result:
missing or untracked fixtures, self-contradicting coverage fixtures, empty grader configs, dormancy
guards with reject_skills, sub-floor stimulus counts, duplicate YAML keys or stimulus names, and
invalid defaults, tags, golden evidence, test commands, or ATIF trajectories. See
eng/eval-quality/README.md for the complete list. Do not add a new eval to
eng/eval-quality/underpowered-allowlist.txt — the gate rejects
allowlist entries that are new relative to the base branch.
For the official run, submit a PR review containing /evaluate so it binds to the reviewed commit.
Validation Checklist
- Directory is
tests/<plugin>/<skill-name>/ortests/<plugin>/agent.<agent-name>/ - Spec uses
stimuli:/graders:and the currentdefaults:settings block - At least 5 preference-eligible distinct stimuli exist; dormancy contracts do not count toward this floor
- Every stimulus is necessary and fits the target; each preference case adds distinct voting value
- Each capability stimulus has stable
capability,risk, andjourneytags and a unique name - Prompts never name the skill, the agent, or its vocabulary
- Every referenced fixture exists and is tracked by
git ls-files - Every fixture behaves as its stimulus assumes — healthy ones build, deliberately broken ones fail only for the stated reason
- Preservation and scope graders cover the complete in-scope file set
- Every grader has its required
configkey - Any output shape the skill mandates has a grader
- Golden evidence passes deterministic graders, and a realistic mutation fails them
- Rubric items are outcome-shaped and never reward using the skill
- Rewrite skills have a no-op case; routing boundaries use
expect_activation: falsealone - The production runner accepts the executable spec and completes under normal concurrency and time limits
- Golden references pass the standalone checker and deterministic replay
- Broad routing or behavior changes have separate GPT-family and Claude-family evidence
-
skill-validator checkandcheck_eval_quality.pypass


