/dev10x-coding:verify-acc-dodfrom dev10x-coding
Verifies definition-of-done and acceptance criteria before closing a task list. Runs automated checks, applies project overrides, and prompts for manual items to ensure shippability.
Ships in dev10x-coding. 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.
Announce: "Verifying acceptance criteria for this work session."
This skill follows references/task-orchestration.md patterns
(Tier: Minimal).
REQUIRED: Create a task at invocation. Execute at startup:
TaskCreate(subject="Verify acceptance criteria", activeForm="Verifying acceptance criteria")Mark completed when done.
There is a single verification behaviour, on every project:
| Automated checks | Manual checks | Completion gate |
|---|---|---|
| Run, auto-pass/fail | Converted to prompt (Claude evaluates) | Merge-gated (GH-729) |
This skill takes no friction-level input and keeps no per-level
table — the key was retired for this layer by GH-1172. Which
checks run, how a manual item is decided, and which completion
option is recommended are the same everywhere. A playbook step cannot
dial this layer up or down.
resolve_gate (ADR-0016)Two separate decisions. Neither overrides the other, and collapsing them is a defect:
mcp__plugin_dev10x_cli__resolve_gate(gate="completion_signoff") and
read effect — ask presents the widget, auto-advance takes the
recommendation without interrupting, skip records it silently.So an auto-advance still advances to the recommendation computed
here, and a Go back recommendation stays Go back whether it is
shown as a widget or taken automatically. The resolver never turns a
failing run into a passing one.
The skill accepts an optional work_type argument. If not
provided, infer from session context:
| Context | Work type |
|---|---|
| Ticket with implementation | feature |
| Sentry/bug ticket | bugfix |
| PR with review comments | pr-continuation |
| No ticket, no PR | local-only |
| Sentry/Slack only, no fix planned | investigation |
| Fanout (multi-item) | fanout |
Load criteria from two sources and merge them:
Read executable checks from:
${CLAUDE_PLUGIN_ROOT}/skills/verify-acc-dod/references/defaults.yaml
Extract defaults[work_type].checks — an array of check objects.
See references/criteria-resolution.md
for the full procedure:
work_type
(local-only / investigation), union defaults.feature.checks
into the list, deduped by name. Union, never replacement; never
downgrade a work_type that already carries PR checks.~/.config/Dev10x/dod-acceptance-criteria.yaml — the only location
read since 0.112.0 (GH-1771). Never read or write the retired
~/.claude/memory/Dev10x/ copy.Resolve both inputs from the DURABLE gate policy — global
~/.config/Dev10x/friction.yaml (first matching projects[] entry),
falling back to legacy .claude/Dev10x/config.yaml. Do NOT read the
retired ephemeral .claude/Dev10x/session.yaml, which no longer
carries durable prefs (ADR-0018, GH-854 F3).
4a. Review posture — supervisor_review (ADR-0022 D-2, superseding
ADR-0019's human_review). Read it via
mcp__plugin_dev10x_cli__supervisor_review_status(); absent or
malformed reads as required. Do NOT read the durable file directly —
the tool owns the precedence. When it is none, drop every check
declaring requires_human_review: true and report each as
skipped (supervisor_review: none).
Which checks those are is declared in the data, not here — see the
requires_human_review field in
references/defaults.yaml (today: the
unresolved-threads and review-requested/re-review pairs), so a project
override can adjust the set without editing this skill.
With them out of scope, a green run honestly recommends Work complete /
Monitor instead of papering over a failing thread check (GH-736). When
supervisor_review is required, those checks run — an open thread is
a real failing blocking check and the recommendation is Go back.
This replaces the ephemeral review-deferred write, which targeted the
retired session.yaml and so was never read back in a configured repo.
There is no per-session deferral: the posture is a durable project fact.
4b. Active modes. Resolve active_modes from the same durable
prefs. For each check with a modes: field, if any active mode has
skip: true, remove the check and report it as "skipped (mode:
)". solo-maintainer skips only the review-request check
(thread resolution is still expected). review-deferred is
deprecated in favour of supervisor_review — its skip clauses
are still honored for back-compat when a playbook or legacy
active_modes names it, but nothing writes it anymore. See
references/active-modes.md.
work_typework_type is PR-less (local-only/investigation), union in
defaults.feature.checks (dedupe by name); never downgrade a
PR-carrying work_typework_type: apply remove → replace → addwork_type has no entry in defaults: use empty checks list
and warnsupervisor_review: none drops every
requires_human_review check) and then by active modesBefore running each check command, resolve placeholders:
| Placeholder | Source |
|---|---|
{pr_number} | Current PR number (from mcp__plugin_dev10x_cli__pr_detect(arg="") → PR_NUMBER, or session context) |
{repo} | Current repo (from gh repo view --json nameWithOwner -q .nameWithOwner or session context) |
{base_branch} | PR base branch from mcp__plugin_dev10x_cli__detect_base_branch (develop→main fallback) — never hardcode develop (GH-854 F2) |
If no PR exists (e.g., local-only), skip checks that reference
{pr_number} and mark them as "skipped (no PR)".
For each check in the merged list:
skip_when_merged: true and the PR is merged — read the
state once via mcp__plugin_dev10x_cli__pr_get(number=…); when
state is MERGED, do not run the check.
Report it as "skipped (PR merged)" — out of scope, NOT passed, and
not counted toward the pass total.
A merged PR clears its review requests and may never re-run CI, so
these checks could otherwise never settle (GH-1665 F2/F4).check: manual — treat it as a prompt check and evaluate
its prompt contextually (see Manual Checks below)check: prompt — evaluate the prompt contextually
from the current session (code state, conversation history,
tool outputs). Report pass/fail with a brief rationale.
Use this for criteria that require judgment but not user
interaction (e.g., "Does the PR description contain a Job
Story?").| Field | Evaluation |
|---|---|
expect | Trim command output; pass if exactly equals the value |
expect_contains | Pass if output contains the substring |
expect_not_contains | Pass if output does NOT contain the substring |
expect_gt | Parse output as number; pass if > value |
If none of the expect fields match the output, the check fails. Capture the actual output for the failure report.
Every check: manual item is converted to a prompt check. Claude
evaluates it from session context (code state, conversation history,
tool outputs) and reports pass/fail with a brief rationale. There is
no per-item AskUserQuestion: a manual item is a judgement call, and
the judgement is made the same way on every project.
manual stays in the schema as the authoring form for a
judgement-shaped criterion — project overrides written against it keep
working, and the conversion happens at run time. A converted check
that Claude cannot decide from context fails; it does not pass by
default, and it does not escalate to a prompt.
Present results as a pass/fail table:
Acceptance criteria (feature):
Checks:
✅ Working copy clean
✅ CI passing
✅ PR not draft
✅ No fixup commits
❌ Review requested — actual: "0" (expected > 0)
⏭️ Slack posted (skipped — no PR)
✅ Findings documented — release notes list both fixes (judged)
5/6 checks passed.
Mark a judged (prompt, or manual converted to prompt) check with
its rationale so the reader can tell a judgement from a command
result.
Show the actual command output on failure so the user can diagnose without re-running.
When Step 1b added checks, name them so the reduced-coverage risk is visible rather than silent:
+ 5 checks added by live-state re-inference (open PR #42 present;
caller work_type was 'local-only'): CI passing, PR not draft,
No fixup commits, No unresolved review threads, Review requested
Completion is reserved for the merged state — "shippable / handed off" is not terminal. Before resolving the gate, determine the PR state and feed it in as a gate input:
mcp__plugin_dev10x_cli__pr_detect(arg=""). An error / no-PR
response means PR-less (e.g. investigation / local-only).mcp__plugin_dev10x_cli__verify_pr_state (or the PR's mergedAt
field) — merged vs open.This merge signal is a gate input, not a pass/fail check. Do NOT add it to the automated checks list: an unmerged-but-otherwise-green PR is the normal awaiting-review state, and a failing "PR merged" check would auto-route to "Go back" forever (you cannot merge without review). Instead it selects the recommended option below.
The three-way recommendation is encoded once in
dev10x.core.domain.session_rules.completion_gate_recommendation() — this
skill's prose and work-on's Plan Completion Gate defer to it rather
than re-deriving the matrix:
| PR state | Blocking checks | Recommended | On auto-advance |
|---|---|---|---|
| Merged / no PR | pass | Work complete | auto-complete |
| Open, awaiting review | pass | Monitor for review (→ dev10x-coding:gh-pr-monitor, ~5 min) | auto-start monitor (background) |
| Any | fail / pending | Go back | Go back |
"Blocking checks" are the automated/manual criteria above (CI, draft state, unresolved threads, clean tree). The merge signal is excluded.
Resolve the recommendation from PR merge state + blocking-check results (see the table above). Never offer or auto-select "Work complete" while an associated PR is open/unmerged.
Then ask the resolver how to PRESENT it — this skill never decides
that for itself. Call
mcp__plugin_dev10x_cli__resolve_gate(gate="completion_signoff") and
branch on effect.
effect: askREQUIRED: Call AskUserQuestion (do NOT use plain text). The
resolved recommendation is always the first, Recommended option:
Recommendation Work complete (merged or PR-less, all checks pass):
Recommendation Monitor for review (open PR, otherwise green):
dev10x-coding:gh-pr-monitor to background-watch the PR every
~5 min and surface review comments / ready-to-mergeRecommendation Go back (a blocking check failed):
effect: auto-advance (GH-851 F4, GH-729)Skip AskUserQuestion and take the same recommendation without
interruption. Print the resolver's record line so the choice stays
visible:
Skill(dev10x-coding:gh-pr-monitor) in the background and keep the
session open. The residual terminal task becomes "Monitor PR
# for review / merge" — do NOT auto-complete.Skill(dev10x-coding:git-groom)
directly, then re-run this skill. Squashing fixups is the known next
action, not a decision, so a hand-off that leaves fixup! commits
on the branch is never an option here (GH-1656)effect: skipRecord the recommendation and continue without prompting. A Go
back recommendation is still reported to the parent orchestrator —
skip suppresses the prompt, never the verdict.
No "non-blocking" exception category exists, under any effect. Every check in pending or fail state resolves to "Go back". An open PR is not a failed check — it routes to monitor, never to auto-complete.
If the user picks "Override" (reachable only under ask), ask whether
to persist:
REQUIRED: Call AskUserQuestion (do NOT use plain text).
Options:
persist: truepersist: falseUpdate the global YAML file at
~/.config/Dev10x/dod-acceptance-criteria.yaml accordingly.
Create the file if absent. Add the override under the current
repo's key using add/remove/replace semantics.
Writes always target ~/.config/Dev10x/ — never the legacy
memory path. Writing back to the retired location is the
re-creation loop GH-925 E1 described: dev10x config migrate folds
the legacy file forward, and the next skill run recreates it.
A green run of this skill is a precondition for closing the
session — it is not the supervisor sign-off itself. The terminal
"Verify acceptance criteria" task is closed only when the supervisor
explicitly chooses "Work complete" (or runs dev10x-tasks:session-wrap-up).
"Checks pass" ≠ "supervisor confirmed session done": a draft/open PR
with a pending human review can satisfy every automated check while the
session is still live. The Decision Gate makes this concrete (GH-729):
while the PR is open/unmerged, the recommended action is Monitor for
review (→ dev10x-coding:gh-pr-monitor), never "Work complete".
The empty-task-list guard (hooks/scripts/task-guard.py, GH-149)
enforces this: it refuses a TaskUpdate that marks the terminal
Verify-AC task — or the last remaining open task — completed/deleted
in a dev10x-coding:work-on session. When the supervisor has confirmed
completion, close the task with the deliberate marker so the guard
allows it:
TaskUpdate(taskId=<verify-ac-id>, status="completed",
metadata={"supervisor_confirmed": true})
Under auto-advance, "all checks pass → auto-complete" still routes
through this marker — auto-completion is not a licence to empty the
list without the explicit sign-off step.
Post-completion re-open. If new supervisor instructions arrive after Verify-AC was closed, create a fresh "Verify acceptance criteria" task before starting the new work, so the task list never sits empty mid-session.
dev10x-coding:work-on → ... → dev10x-coding:verify-acc-dod (last step)
dev10x-coding:fanout → ... → dev10x-coding:verify-acc-dod (last step)
Callers pass the work type and let this skill handle criteria resolution, state checking, and user confirmation.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub dev10x-guru/dev10x-claude --plugin dev10x-coding40 skills in this plugin
/ci-reviewdev10x-coding:ci-reviewUse when a change to a Claude CI review prompt, args file, reviewer agent or CLI pin needs checking before it merges — so you read what the CI code review and PR hygiene check would post on a real PR, with nothing reaching GitHub unless you choose, after reading the report, to share it as one marked replica comment. TRIGGER when: "what would the CI review say", replaying the Claude CI review locally, verifying a review prompt or model change on a PR. DO NOT TRIGGER when: self-reviewing a branch with no PR (use dev10x-coding:review), or reviewing someone's PR and posting (use dev10x-coding:gh-pr-review).
/fanoutdev10x-coding:fanoutProcess multiple independent work items as a worktree-isolated swarm — each item runs the full dev10x-coding:work-on lifecycle inside its own background Agent with isolation="worktree" (under Herdr, its own Herdr workspace and agent). Honors dependencies, minimizes conflicts, auto-advances by default. TRIGGER when: 2+ independent work items need parallel processing (PRs, issues, tickets). DO NOT TRIGGER when: single task or sequential dependency chain (use dev10x-coding:work-on); already running as a swarm child (see recursive-fanout guard).