/adev:evalfrom adev
Runs a graduated evaluation harness scoring implementation quality across four layers: deterministic, architectural, LLM-as-Judge, and human-in-the-loop. Complements validation with nuanced quality assessment.
Ships in adev. 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.
Score implementation quality across four evaluation layers, producing a graduated quality score (0-100) rather than a single binary pass/fail. Complements /adev:validate with nuanced quality assessment.
Layer 3 is the exception to "graduated": its judged output is a table of per-criterion binary verdicts, aggregated into points only so the total stays comparable across runs. See Layer 3 for why.
Announce at start: "I'm using the adev:eval skill to run the evaluation harness."
--spec <path>: evaluate the implementation of a specific spec (required)--layer <N>: run only a specific layer (1-4)--configure: interactive setup of eval configuration--rubric <path>: use a custom rubric for Layer 3, overriding the default. The file must carry the same top-level keys as the default rubric (see Layer 3).--no-infra: skip infrastructure preflight checks (user-only — the agent must never set this flag).context-index/ must be initialized./adev:validate should have passed (eval builds on top of validation, not replaces it)..context-index/samples/ should have relevant golden samples..context-index/evals/config.yaml (generated by --configure).After verifying prerequisites, check whether the spec declares infra_requirements. If so, run the infrastructure preflight before proceeding to evaluation layers.
Layer-aware skip: If --layer 1 or --layer 2 is specified, skip the preflight step (no code execution against external systems in those layers).
--no-infra resolution: Read --no-infra flag from arguments. If not passed, check ADEV_NO_INFRA env var (only exact value 1 activates bypass). Read once at skill entry, convert to options.noInfra. The agent must never set --no-infra or ADEV_NO_INFRA autonomously — if preflight fails, report the failure and wait for user direction.
Plan path resolution: Glob for a .plan.md sibling adjacent to the spec (same directory, same base name). If absent, omit --plan.
Invocation: Run the preflight via the CLI:
adev preflight run --spec <specPath> [--plan <planPath>] [--timeout 10] [--no-infra]
Stdout is a single JSON object — the preflight report (the same shape runPreflight() returns). Exit codes: 0 on PASS or skipped, 2 on FAIL, 1 on argument errors.
If the report has passed === false (exit 2), display the formatted report and block:
Infrastructure Preflight: FAILED
<formatted report output>
Execution blocked. Options:
1. Fix the issues above and retry
2. Re-run with --no-infra to bypass (user decision only)
If report.passed === true and report.skipped === true, emit: "Infrastructure preflight skipped (--no-infra)."
If report.passed === true and report.skipped === false, proceed silently.
If lib/infra-preflight.mjs fails to import, block with: "Infrastructure preflight library could not be loaded: . Fix the library before proceeding."
Load Skill Extensions: Load any skill extension instructions before proceeding:
adev skill-ext load --skill eval
If the output is not __NONE__, incorporate it as additional standing instructions that apply to this skill's entire execution. Frame it as: "The following skill extension instructions apply to this invocation (source: installed domain extensions and/or project-level overrides)." If the output is __NONE__, continue normally.
Run all quality gates from governance/gates.yaml (or constitution fallback). This mirrors /adev:validate Check 1 but records detailed scores:
This layer is the floor. If Layer 1 scores 0, the total score cannot exceed 25 regardless of other layers.
Compare the implementation against golden samples and constitutional patterns:
Pattern consistency (0-10): For each file touched, check if it follows the pattern established by the matching golden sample. Measure: naming conventions, file structure, import organization, error handling style. Score based on deviation count.
Boundary compliance (0-5): Run governance/boundaries.yaml patterns. Score based on violations (0 = full score, each violation deducts 1 point).
Complexity metrics (0-5): Check file sizes, function lengths, nesting depth against constitution thresholds. Score based on compliance.
Test quality (0-5): Assess test files: do they test behavior (not implementation details)? Do they cover error cases? Are assertions meaningful? Score by checklist.
Layer 3 produces binary verdicts per criterion, not scores. Every criterion resolves to exactly one of MET, NOT_MET, or UNKNOWN, each backed by one sentence of evidence citing file:line.
Why binary and not a 0-5 scale. Asking a judge model for a number is the documented anti-pattern: position, verbosity and self-enhancement biases dominate numeric scales (Zheng 2023 MT-Bench; Ye 2024; Shi 2024), and judge panels amplify shared bias rather than cancelling it (Chen 2025). Anthropic's Agent SDK guidance likewise ranks verification rules-based > visual > LLM-judge, calling LLM-judge "generally not a very robust method." The consequences for this layer:
UNKNOWN is a first-class verdict. A judge that cannot tell must say so rather than guess. Absence of evidence is UNKNOWN, never NOT_MET.required_elements and is decided by reading the diff, with no judge involved at all.Resolve the rubric once, in this order:
--rubric <path> if passed — a user-supplied path is passed through to the scoring verb unchanged.rubric: in .context-index/evals/config.yaml. The literal value default selects the shipped rubric.When the shipped default is selected (cases 2 and 3), pass the literal token default as the
rubric argument and let the scoring verb resolve it against the plugin root.
The skill must never expand it to an <ADEV_ROOT>-relative path first: a resolved path arrives as an ordinary path
argument, is contained against the project root, and is refused in every real install where the
plugin lives outside the project — the keyword branch is never entered.
The shipped default rubric is <ADEV_ROOT>/skills/eval/references/default-rubric.yaml — that is what the
default keyword resolves to, not a value to type on the command line. It carries these top-level keys, which any custom rubric must also provide: rubric_id, version, layer, verdict_values, required_elements, quality_dimensions, layer3_max_points, required_element_points, judged_criterion_points, unknown_policy, not_applicable_policy, insufficient_evidence_threshold_percent.
If the resolved rubric file is missing or lacks any required top-level key, block with: "Layer 3 rubric could not be resolved: . Pass a valid --rubric <path> or restore the default rubric."
Work through the rubric's required_elements by reading the diff directly. Each entry names its source (the artifact the check reads) and its met_when (the mechanical condition). Record MET, NOT_MET, or NOT_APPLICABLE per its not_applicable_when note. These elements never resolve to UNKNOWN — a deterministic check either applies and answers, or does not apply. Do not dispatch a subagent for these — if a check needs judgement to decide, it does not belong here.
For each entry in the rubric's quality_dimensions, dispatch a separate reviewer subagent (reasoning tier — resolve it once with adev model-tier resolve --tier reasoning; when it prints nothing, echo its stderr advisory once and omit model). Dispatch them in parallel with Agent({description, prompt, model, run_in_background: false}) and nothing else, passing the resolved value as model, issuing the calls in a single message so they still run concurrently. Prepend ultrathink as the first word of each subagent prompt to activate extended thinking.
Always pass run_in_background: false on every Agent({...}) dispatch in this skill. The harness backgrounds Agent dispatches by default: the call returns immediately with a task ID and the caller is only re-invoked by a completion notification. That notification path is reliable only at the top level of a session — inside a nested subagent context it does not re-invoke the caller, so a backgrounded dispatch stalls the pipeline (field-observed as steps that auto-background and never return a result).
Never end your turn to wait for a dispatched subagent. A synchronous dispatch (run_in_background: false) returns its final result directly in the tool call — there is nothing to wait for. If a dispatch ever returns a task ID instead of a result, that is a bug in the dispatch (the rule above was violated, or the harness backgrounded it anyway): fix the dispatch and re-run it synchronously. Do not end the turn hoping a completion notification will resume you — in a nested subagent context it will not. If this skill is itself running as a dispatched subagent (e.g., a build pipeline step), your own caller is waiting on a result contract — for build pipeline steps this is the STEP_RESULT format defined in skills/build/SKILL.md. Ending your turn without that result to report is a protocol violation, not a valid pause point.
Give each judge only:
criterion, reference, met_when, not_met_when, and unknown_when fieldsVERDICT: MET, VERDICT: NOT_MET, or VERDICT: UNKNOWN, followed by one sentence of evidence citing file:line. Return UNKNOWN when the diff or the reference does not contain enough evidence to decide. Absence of information is never NOT_MET."Never tell a judge the verdicts of other criteria or the running total — a judge that sees prior verdicts anchors on them.
Layer 3's judged output is the verdict table; Steps 1 and 2 already produced every entry it
needs. Assemble the verdict set — one entry per declared id, each carrying id, value (the
resolved verdict), and evidence — and write it to a JSON file (for example
.context-index/evals/<spec-slug>-verdicts.json).
The verdict file uses the lowercase form of each verdict, not the uppercase form Steps 1 and 2
recorded on the page. Map MET → met, NOT_MET → not_met, UNKNOWN → unknown,
NOT_APPLICABLE → not_applicable before writing each entry's value — the engine's verdict
enums are lowercase only, and an uppercase value makes adev eval score reject the whole set with
SCORE_INVALID_VERDICT on the first entry it reads. An entry resolving met or not_met must
carry non-empty evidence or the engine rejects the set with SCORE_EMPTY_EVIDENCE; unknown and
not_applicable may carry empty evidence, since absence of evidence is expressible only as
unknown.
Then score it:
adev eval score --rubric default --input <verdict file path>
default is the keyword form for the shipped rubric, resolved by the verb against the plugin root.
If the run was invoked with a user-supplied rubric path, substitute that path here unchanged.
The verb prints the verdict table together with an aggregate line, always both — the numeric aggregate exists for trend tracking only and is never reported without its verdict table. Report what it returns.
Descriptive reference — what the verb computes, not an instruction to compute it yourself:
`adev eval score` (lib/evals/score.mjs `scoreRubric`) tallies each half independently against its
own point budget (required_element_points for the deterministic half, judged_criterion_points for
the judged half), excluding not_applicable from the deterministic denominator and unknown from the
judged denominator. A half with nothing declared, or nothing left after that exclusion, resolves to
a status instead of a number (see below). When both halves resolve to a number, the total blends
them: deterministic plus judged, rounded once, capped at layer3_max_points.
Half-level status, not whole-layer discard. Each half is scored independently and can resolve to a status instead of a number:
INSUFFICIENT_EVIDENCE when every quality_dimensions verdict is
UNKNOWN — regardless of the rubric's threshold, including at threshold: 100 — because a
half where nothing was answered has no denominator to divide by. It also reports
INSUFFICIENT_EVIDENCE when the UNKNOWN share exceeds insufficient_evidence_threshold_percent
(default 40) while at least one criterion was answered. It reports NOT_SCORED when the rubric
declares no quality_dimensions at all.NOT_SCORED when the rubric declares no required_elements,
or when every declared element resolved NOT_APPLICABLE. Otherwise it reports its points and
maximum unchanged — deterministic evidence does not go stale just because the judged half could
not decide.judged_criterion_points or required_element_points) — never by the full
layer3_max_points, since the other half may still be fully numeric.Surface items that require human judgment. This layer does not auto-score but presents a checklist:
Present the checklist to the user. User marks each item as: PASS (5 points), ACCEPTABLE (3 points), NEEDS_WORK (0 points).
Total quality score = Layer 1 + Layer 2 + Layer 3 + Layer 4 (0-100)
When Layer 3's deterministic or judged half cannot contribute — reporting NOT_SCORED or INSUFFICIENT_EVIDENCE — that half contributes 0 and the attainable maximum drops by that half's own point budget (required_element_points or judged_criterion_points), never by all of Layer 3's layer3_max_points. When Layer 4 is skipped, the whole layer contributes 0 and the attainable maximum drops by 25, exactly as before. The report states the reduced attainable maximum alongside the total (for example, 70/85 attainable when only Layer 3's judged half — judged_criterion_points 15 — is out and Layer 4 ran). Grade against the attainable maximum: normalise the total to a percent of attainable points, then read the table below as percentages. A raw 70/75 is 93%, an A — not the C its raw points would suggest.
| Score | Grade | Interpretation |
|---|---|---|
| 90-100 | A | Excellent. Exemplary implementation. |
| 75-89 | B | Good. Minor improvements possible. |
| 60-74 | C | Acceptable. Notable gaps in quality. |
| 40-59 | D | Below standard. Significant issues. |
| 0-39 | F | Failing. Major rework needed. |
Persona adaptation: The report written to disk always uses the full format below. The chat summary presented to the user should follow the active persona's output rules.
Write to .context-index/evals/<spec-slug>-eval.md:
# Evaluation Report: <Spec Title>
> **Date:** YYYY-MM-DD
> **Spec:** <path>
> **Overall Score:** N/100 (Grade: A-F)
## Layer 1: Deterministic Checks — N/25
- Tests: PASS/FAIL
- Lint: PASS/FAIL
- Typecheck: PASS/FAIL
## Layer 2: Architectural Conformance — N/25
- Pattern consistency: N/10
- Boundary compliance: N/5
- Complexity metrics: N/5
- Test quality: N/5
## Layer 3: Reference-Anchored Judgement — N/25 (or half-level status)
> Rubric: <rubric_id> v<version> — <resolved path>
> Verdicts: N met, N not met, N unknown, N not applicable
### Deterministic elements — N/10 (or NOT_SCORED)
- <element id>: MET/NOT_MET/NOT_APPLICABLE — <evidence, file:line>
### Judged criteria — N/15 (or INSUFFICIENT_EVIDENCE/NOT_SCORED)
- <criterion id>: MET/NOT_MET/UNKNOWN — <evidence, file:line>
## Layer 4: HITL Checkpoints — N/25
- Business logic: PASS/ACCEPTABLE/NEEDS_WORK
- UX review: PASS/ACCEPTABLE/NEEDS_WORK/SKIPPED
- Security review: PASS/ACCEPTABLE/NEEDS_WORK/SKIPPED
- Performance: PASS/ACCEPTABLE/NEEDS_WORK/SKIPPED
## Trend
<comparison to previous evals for this module, if any>
--configure)Interactive setup that creates .context-index/evals/config.yaml:
# Eval harness configuration
layers:
deterministic: true # Layer 1 always on
architectural: true # Layer 2
llm_judge: true # Layer 3 (binary verdicts, aggregated for trend only)
hitl: false # Layer 4 (opt-in)
thresholds:
minimum_score: 60 # Below this triggers a warning
exemplary_score: 90 # Above this flags as golden sample candidate
rubric: default # `default` resolves to <ADEV_ROOT>/skills/eval/references/default-rubric.yaml
# Or a path to a custom rubric with the same top-level keys
/adev:validate is the prerequisite (pass/fail gate). /adev:eval adds graduated scoring on top./adev:retro reads eval scores for quality trend analysis across sprints/adev:sample candidates can be identified from A-grade evaluations/adev:hygiene can include eval score trends in its drift reportWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub agentic-development/adev-plugin --plugin adev31 skills in this plugin
/assessadev:assessAssess codebase readiness for agentic development. Scans the codebase using static file inspection and outputs maturity scores across 8 structural dimensions (raw mode) or 11 dimensions (adev mode). Use when you want to evaluate how well-suited a codebase is for AI-assisted development, identify improvement areas, or track progress over time./brainstormadev:brainstormExplore a feature idea interactively and produce a Feature Charter. Validates against constitution and existing charters. Use before building any new feature or module, when the user mentions a new capability, or says 'let us build X'./Other plugins' skills for the same job