/adev:validatefrom adev
Runs post-implementation validation against specs, constitution, charters, ADRs, quality gates, governance boundaries, and transition gates. Produces a structured PASS/FAIL report with file references for failures.
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.
Run post-implementation validation against specs, constitution, charters, ADRs, quality gates, governance boundaries, and transition gates. Produces a structured report with PASS/FAIL per check and specific file references for every failure.
Load Skill Extensions: Load any skill extension instructions before proceeding:
adev skill-ext load --skill validate
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.
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.
--spec <path>: validate against a specific Live Spec (required)--plan <path>: cross-reference the implementation plan (optional, improves traceability)--fix: attempt to auto-fix minor issues (lint errors, formatting) before reporting--no-infra: skip infrastructure preflight checks (user-only — the agent must never set this flag)--tier <full|quick|lite>: rigor tier (graduated-rigor-tiers spec). full (default) runs the whole check set; quick runs Check 1 (quality gates, fail-fast) plus a single synthesized spec+constitution compliance check, and skips the remaining checks; lite runs exactly as quick and prints --tier lite runs as quick here once. Overrides any routing/risk-policy signal. Invalid value → INVALID_TIER.Before starting, verify:
.context-index/ must be present with constitution.md and manifest.yaml.Before any validation work, gate on the prior step via the lifecycle log, then emit the step-started event:
adev gate require --skill validate --spec <spec-path>
adev report --type step --spec <spec-path> --step validate --status started
In strict mode (default — resolved from manifest.yaml's lifecycle.gate_mode), adev gate require exits 2 if the implement step did not complete with a passing verdict — the skill stops and the operator is told which prior step is missing. In advisory mode, it emits a warning and exits 0. Do NOT catch the failure — surface the helper's stderr unchanged. Path-containment is enforced by the helper (INVALID_PROJECT_ROOT / INVALID_SPEC_PATH); skill prose MUST NOT pre-validate paths.
Emit a matching exit event in the new "Step Z: Emit lifecycle completion" section after the validation report is written. The exit event carries the aggregate verdict (PASS / PASS_WITH_NOTES / FAIL) computed from the consolidated check results.
An aggregate FAIL verdict is not this section's business — a validation run that completed and concluded FAIL exits through the Step Z --status completed --verdict FAIL line. This section covers the case where validation aborts before it can compute any aggregate at all.
Whenever the skill stops after the --status started event above without reaching Step Z, emit the terminal event before surfacing the error to the operator:
adev report --type step --spec <spec-path> --step validate --status failed --verdict FAIL
--verdict FAIL is required, not decorative. The projection's aggregation pass in lib/lifecycle-state.mjs only treats a step terminal as explicit when it carries a string verdict; a step_failed emitted without one is overwritten by the verdict synthesized from whatever validator_report events already landed, so a run that aborted after two passing checks would project as {verdict: PASS, status: completed} — a dead run indistinguishable from a clean one.
Abort paths in this skill that MUST emit it:
| Step | Abort |
|---|---|
| Preflight | adev preflight run reports report.passed === false — execution is blocked pending operator direction. The agent must never set --no-infra or ADEV_NO_INFRA autonomously to get past it. |
| Preflight | lib/infra-preflight.mjs fails to import. |
| Step 0 | loadValidateConfig throws MISSING_VALIDATE_CONFIG — no checks dispatch and no report is written. |
| Step 0 | Any other loadValidateConfig loader error (INVALID_CHECK_ID, DETERMINISTIC_PROJECT, unresolvable prompt URI, profile resolution failure, after cycle) — "abort on any loader error". |
The Prerequisites block (missing .context-index/, missing spec, missing implementation files) runs before the --status started event and therefore strands nothing — do not emit for those.
Known gap (not this skill's to fix): adev report --type step accepts no --error flag, so the abort's error code cannot be carried on the event even though the step_failed schema has an error field. Name the code in operator-facing output; widening the CLI surface is a follow-up.
Right after Step 0a, on every validate run and under either tier, run:
adev implement lite-report --spec <spec-path> --json
{count, task_ids, since, capped} for the latest implement run. Keep count, task_ids and capped. When count > 0, the report carries the advisory implemented without per-task review: <count> (<task_ids>) and those tasks' commits join the spec-compliance scope (Check 2). When count is 0 there is no advisory and the scope is unchanged. When capped is non-empty, the report also carries one reviewer under the lite cap: <n> (<capped>), with <n> the number of ids in capped: those tasks had one synthesized reviewer where a sensitive-path or boundary floor would otherwise have run both stages. It does not change the scope.implemented without per-task review: unknown (lite-report failed: <stderr>), and the spec-compliance scope widens to every commit whose Spec: trailer names this spec. This is not an abort, so Step 0a-fail's event is not emitted.The advisory is emitted whenever count is non-zero or the call failed, including when Check 1 fails fast and when Check 2 is disabled. Validation is never skipped for lite tasks, and validate's own tier is unchanged by them.
Right after Step 0b, run:
adev model-tier audit --spec <spec-path> --json
It prints {specs, recorded, mismatches, unrecorded} for every implementer and reviewer dispatch recorded on this spec's lifecycle log. When mismatches is non-empty, the report header carries dispatches off their model tier: <n> and lists each one's codes (MODEL_NOT_PASSED, MODEL_MISMATCH, MODEL_REPORTED_MISMATCH), subject, tier, expected model and passed model. When any unrecorded count is non-zero, it also carries dispatches with no recorded model: <plan_task> implementer, <review_round> review-round, <reviewer_report> spec-review. A run that records nothing proves nothing about its models. Both lines are advisories: they never change a check's verdict or the aggregate verdict. A non-zero exit is reported as dispatch-model audit failed: <stderr> and validation continues.
Applies only at a multi-repo workspace root.
Conditional loading: Read
<ADEV_ROOT>/skills/validate/references/workspace-mode.mdfor the full instructions. Do not act on this section from the summary above.
After verifying prerequisites, check whether the spec declares infra_requirements. If so, run the infrastructure preflight before proceeding to validation checks.
--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.
Invocation: Run the preflight via the CLI:
adev preflight run --spec <specPath> [--plan <planPath>] [--timeout N] [--no-infra]
Where <specPath> is the --spec argument and <planPath> is the --plan argument (omit --plan when not provided). Stdout is a single JSON object — the preflight report. Exit codes: 0 on PASS or skipped, 2 on FAIL, 1 on argument errors.
If report.passed === false, display the formatted report and block:
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 lib/infra-preflight.mjs fails to import, block with: "Infrastructure preflight library could not be loaded: . Fix the library before proceeding."
Resolves the check registry and each entry prompt URI before any check runs.
Conditional loading: Read
<ADEV_ROOT>/skills/validate/references/step-0-load-check-registry.mdfor the full instructions. Do not act on this section from the summary above.
Ordering, parallelism, and fail-fast rules across the whole check set.
Conditional loading: Read
<ADEV_ROOT>/skills/validate/references/execution-strategy.mdfor the full instructions. Do not act on this section from the summary above.
Source of truth for per-check prompts: As of
validate-config-single-source.spec.md, the substantive prompt body for each subagent-review / deterministic-check / observational check lives inskills/validate/checks/<id>.md, referenced from the registry via theplugin:validate/checks/<id>.mdURI. The sections below describe each check's purpose, orchestration semantics, and execution guards. The dispatch loop reads the prompt from the registry entry'sresolvedPromptPath, not from the prose in this file. When the two diverge, the externalized file wins.
Runs the resolved gate set in tiers and fails fast. Emits exactly one validator_report for the whole check.
Conditional loading: Read
<ADEV_ROOT>/skills/validate/references/checks-orchestration/check-1-quality-gates.mdfor the full instructions. Do not act on this section from the summary above.
Verifies the source manifest matches what the implementation actually touched.
Conditional loading: Read
<ADEV_ROOT>/skills/validate/references/checks-orchestration/check-1.5-source-manifest.mdfor the full instructions. Do not act on this section from the summary above.
Advisory only: warns when code has drifted from the spec since implementation.
Conditional loading: Read
<ADEV_ROOT>/skills/validate/references/checks-orchestration/check-1.6-code-drift.mdfor the full instructions. Do not act on this section from the summary above.
Subagent review of implementation against the spec, including the scope-expansion sub-finding.
Tasks implemented without per-task review. Step 0b's lite-report result sets part of this check's scope, here and in the quick tier's synthesized compliance check. When count > 0, the diff of each commit whose Spec: and Plan-task: trailer match this spec and an id in task_ids goes into the subagent's prompt. The reference below holds the selection rules: the anchored greps, id normalization, the PARTIAL for an unmatched id, and the widened scope when lite-report failed. Validation is never skipped for lite tasks.
Conditional loading: Read
<ADEV_ROOT>/skills/validate/references/checks-orchestration/check-2-spec-compliance.mdfor the full instructions. Do not act on this section from the summary above.
Subagent review against the constitution, under the evidence-citation contract.
Conditional loading: Read
<ADEV_ROOT>/skills/validate/references/checks-orchestration/check-4-constitution.mdfor the full instructions. Do not act on this section from the summary above.
Deterministic CLI read (adev boundaries check --json). SKIPs when the project declares no boundary rules.
Conditional loading: Read
<ADEV_ROOT>/skills/validate/references/checks-orchestration/check-8-boundaries.mdfor the full instructions. Do not act on this section from the summary above.
Deterministic CLI read (adev gate transitions --json). SKIPs with no implement-to-validate transition.
Conditional loading: Read
<ADEV_ROOT>/skills/validate/references/checks-orchestration/check-9-transition-gates.mdfor the full instructions. Do not act on this section from the summary above.
Runs only for UI implementations that clear the trigger guard.
Conditional loading: Read
<ADEV_ROOT>/skills/validate/references/checks-orchestration/check-11-visual-verification.mdfor the full instructions. Do not act on this section from the summary above.
Which lifecycle events each check emits, and their payloads.
Conditional loading: Read
<ADEV_ROOT>/skills/validate/references/per-check-event-emission.mdfor the full instructions. Do not act on this section from the summary above.
The exact structure of the PASS/FAIL report, including the migration-orientation footer. It carries Step 0b's advisory row implemented without per-task review: <count> (<task_ids>) only when count is non-zero, or its unknown form when lite-report failed.
Conditional loading: Read
<ADEV_ROOT>/skills/validate/references/report-format.mdfor the full instructions. Do not act on this section from the summary above.
How per-check outcomes roll up into the single PASS/FAIL verdict.
Conditional loading: Read
<ADEV_ROOT>/skills/validate/references/overall-status.mdfor the full instructions. Do not act on this section from the summary above.
After the validation report has been written to disk (Step 14 / atomic-write commit), emit the matching exit event paired with Step 0a's started emission. The verdict is the aggregate computed from the consolidated check results:
--verdict PASS--verdict PASS_WITH_NOTES--verdict FAILadev report --type step --spec <spec-path> --step validate --status completed --verdict <aggregate> --from-summary
This event is REQUIRED. Without it, the lifecycle log shows lifecycle_step:validate started with no terminal event, and any future skill that gates on validate completion will block permanently.
What to do with the verdict, including the migration-orientation footer.
Conditional loading: Read
<ADEV_ROOT>/skills/validate/references/after-validation.mdfor the full instructions. Do not act on this section from the summary above.
Never:
quick rigor tier is resolved — see Execution Strategy → Resolve Rigor Tier)--fix for lint/formatting)Lifecycle event log:
currentState(projectRoot, specPath) from <ADEV_ROOT>/lib/lifecycle-state.mjs — read the projection. state.steps.validate aggregates this skill's per-check results.requireGate(state, "implement", { mode }) from <ADEV_ROOT>/lib/lifecycle-state.mjs — hard-blocks (or warns) when implementation is not complete.resolveGateMode(loadManifest(projectRoot)) from <ADEV_ROOT>/lib/lifecycle-state.mjs — resolves manifest.lifecycle.gate_mode.reportStep(projectRoot, specPath, { step: "validate", status }) from <ADEV_ROOT>/lib/lifecycle-state.mjs — emits skill entry/exit.reportValidator(projectRoot, specPath, { step, validator, verdict, error, score, duration_ms }) from <ADEV_ROOT>/lib/lifecycle-state.mjs — emits one event per check. Severity is stamped at write time.Rigor tiers:
resolveRigorMode({ skill: "validate", riskLevel, policies, tierOverride, routingEasy }) from <ADEV_ROOT>/lib/governance/rigor-mode.mjs — resolves full | quick (Execution Strategy). Precedence: tier override > routing signal > risk policy (validate_mode) > full.loadRigorPolicies(projectRoot) from <ADEV_ROOT>/lib/governance/rigor-mode.mjs — reads risk-policies.yaml policies map.Manifest:
loadManifest(projectRoot) from <ADEV_ROOT>/lib/manifest.mjs — parses .context-index/manifest.yaml.checks/validate.check-1-quality-gates.md (opens in a new tab)checks/validate.check-1.5-source-manifest.md (opens in a new tab)checks/validate.check-10-platform-drift.md (opens in a new tab)checks/validate.check-11-visual-verification.md (opens in a new tab)checks/validate.check-14-gate-executability.md (opens in a new tab)checks/validate.check-2-spec-compliance.md (opens in a new tab)checks/validate.check-3-charter-consistency.md (opens in a new tab)checks/validate.check-4-constitution.md (opens in a new tab)checks/validate.check-5-adrs.md (opens in a new tab)checks/validate.check-6-cross-cutting.md (opens in a new tab)checks/validate.check-7-specialist-review.md (opens in a new tab)checks/validate.check-8-boundaries.md (opens in a new tab)checks/validate.check-9-transition-gates.md (opens in a new tab)references/after-validation.md (opens in a new tab)references/checks-orchestration/check-1-quality-gates.md (opens in a new tab)references/checks-orchestration/check-1.5-source-manifest.md (opens in a new tab)references/checks-orchestration/check-1.6-code-drift.md (opens in a new tab)references/checks-orchestration/check-11-visual-verification.md (opens in a new tab)references/checks-orchestration/check-2-spec-compliance.md (opens in a new tab)references/checks-orchestration/check-4-constitution.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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