Checks the acceptance scenarios and key decisions of a BDK Change (its issue body, issue.md in the run directory) and a proposed split against the code, the proposal and the acceptance criteria of its source on the bdk:verifier agent, and writes the run file design/verify-N.md with a PASS or FAIL verdict. Use when a design is ready for review, before planning, when asked to check or verify a design, or when /bdk:design verifies an iteration.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Verify Design?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/broneq-verify-design)
---
name: verify-design
description: 'Checks the acceptance scenarios and key decisions of a BDK Change (its issue body, issue.md in the run directory) and a proposed split against the code, the proposal and the acceptance criteria of its source on the bdk:verifier agent, and writes the run file design/verify-N.md with a PASS or FAIL verdict. Use when a design is ready for review, before planning, when asked to check or verify a design, or when /bdk:design verifies an iteration.'
argument-hint: "[change-name]"
allowed-tools: Bash(${CLAUDE_PLUGIN_ROOT}/bin/bdk *) Bash(git log *) Bash(git show *) Bash(git diff *) Read Grep Glob Write Agent
---
Current BDK configuration of this project:
!`"${CLAUDE_PLUGIN_ROOT}/bin/bdk" config show`
Arguments: $ARGUMENTS
# Verify design
When the block above says "BDK not configured: run /bdk:setup", stop: reply with that line and write nothing.
## 0. Run as `bdk:verifier`
This block runs on the `bdk:verifier` agent, whose instructions start with "You are `bdk:verifier`". The verifier must not be the conversation that wrote the design. When you are not that agent (a user typed the command in the main conversation), do not check the design yourself: start the agent with the Agent tool in the foreground (`run_in_background: false`), `subagent_type: "bdk:verifier"`, prompt `Run the skill bdk:verify-design with the arguments: <the arguments above>`, `model` set to `models.verifier.model` and `effort` set to `models.verifier.effort`, each only when the configuration above sets it; wait for it, reply with its verdict and report path, and stop. Keep its agent ID: after a fix, `SendMessage` to the same agent verifies again.
Done when you are `bdk:verifier`, or the agent has answered.
## 1. Find the Change and the report number
The argument names the Change. Without one, take the `current` Change of `.bdk/runs/run.json`, else the only directory under `.bdk/runs/` other than `pr-<N>/` that holds an `issue.md`. With none or several, name what you found and stop. All paths below are under `.bdk/runs/<change>/`.
List `design/verify-*.md`. Your report is `verify-N.md` with N one above the highest number (1 when none). When an earlier report exists, read the latest one first: its open IDs carry over.
When `issue.md` lacks `## Acceptance scenarios` or `## Key decisions`, write a report with `verdict: fail` and `M1` naming the missing section, and go to step 5.
## 2. Read
Read `issue.md` whole, `scope-log.md`, `source/issue.md` when present, `design/split.json` and its body files when present, and `explore/index.md` when present with the `explore/` files whose question the design relies on (without an index, every file of `explore/`). The source, `### Intent`, `### Acceptance` and the scope log are the reference: the design answers to them, not only to the rest of the proposal. Read the ADRs the key decisions cite, and the ADR index at `docs.adr.index` of the configuration above when it exists, for the ADRs that bind the paths the design touches (`"${CLAUDE_PLUGIN_ROOT}/bin/bdk" adr for --files <path> ...` prints them). Read each ADR `### Living documentation` names, the module map of `docs.architecture` (its `yaml bdk-architecture` block) and the glossary at `docs.glossary`, each when it exists. On a later pass, read `issue.md` again, the run files the caller names and every file an open item names.
Run `"${CLAUDE_PLUGIN_ROOT}/bin/bdk" rules for --stage design`, without files, and keep the rules it prints, each under its id.
Done when you can list each claim the design makes about existing code, and the design rules.
## 3. Check
1. **Claims about the code.** Open every file, function, type, field and command the key decisions or the explore map rely on, and check the signature and behaviour it states. A claim you could not check is a problem, not a pass. For a command-line tool's options or output, including a point the map left under `Unsure`, run its help first (`<tool> --help`, `<tool> <subcommand> --help`, `<tool> --version`) and judge the claim by its output; raise a doubt about the tool only when that command cannot run, and name the command.
2. **Scenarios.** Each `###` scenario has a unique name and `WHEN` and `THEN` lines that can run against the product; `None.` only for a change with no behaviour to test, and then `## Key decisions` ends with `### Acceptance` naming each AC id.
3. **Coverage.** Every "What changes" bullet has an answer in the scenarios or the key decisions; nothing in them contradicts each other or the proposal.
4. **Decisions.** Each decision states its choice, reason and the alternatives with why they lost.
5. **Constraints.** Every constraint or non-functional need the proposal or the scenarios state is met or explicitly deferred; no decision contradicts an ADR in force without saying so.
6. **Diagrams.** A flow, structure or state machine that prose leaves ambiguous has a diagram, and the diagram matches the prose.
7. **Risks.** Concrete: a named bottleneck, failure mode, hidden cost or unconfirmed assumption, not "could be a concern".
8. **Split.** With `design/split.json`: every key matches `^[a-z0-9-]+$`, every `body-file` exists, `blocked-by` names only other keys with no cycle, every AC goes to a sub-issue, each body holds its `## Proposal` (`Part of #<parent>.` and its AC ids), its own `## Acceptance scenarios` and `## Key decisions`, and the parent's scenarios say `Split into sub-issues.`
9. **Plan readiness.** The key decisions and the explore map together name the modules, interfaces and data the plan parts will touch.
10. **Acceptance criteria.** List the acceptance points of `source/issue.md` (its acceptance signal and every point of its scope a user can check) and the AC of `## Acceptance`. Each point is an AC that states it as the source does, or one a log entry `By: user` changed or dropped. Each AC not dropped by such an entry is answered by a scenario or a key decision (with `None.` as the scenarios, by the `### Acceptance` line that names its id; after a split, by a sub-issue's scenarios), as it stands. An entry `By: setting ...`, an open entry `By: needs-user` and a `Decided without the user:` line never cover a change of an AC. Without `source/issue.md`, check against `### Acceptance` and say so under `Checked`.
Check each AC as it stands, not only that a scenario names its subject, and not from the design's own list of answered AC: such a list is a claim to check.
1. Quote the AC and its condition; an AC with no condition holds in every case.
2. Find every scenario and every decision that touches its subject, also those written for another AC: an option, mode, setting or input another AC brings in (a second format, a locale, a flag) is a case the AC still covers.
3. The AC is narrowed when one of them gives, under any option, mode or input, an outcome the AC rules out (a scenario whose THEN says the opposite), or limits the AC to fewer cases than its condition ("only under the default", "when the output is JSON"). A scenario or decision that words the rule on something else ("the selected unit" for "metres") narrows it as soon as an option makes the two differ.
Write one `Checked` line per AC: its id, the quoted condition, and the scenarios and decisions read, with every option or mode of the design under which the AC holds.
11. **Rules.** The design breaks no rule of step 2, unless a decision records the user's agreement to depart from it.
12. **Living documentation.** `## Key decisions` holds `### Living documentation`, and it is complete and true:
- every ADR it names exists with `status: proposed` and says what its decision says; every decision that meets the ADR bar (hard to reverse, surprising without context, the result of a real trade-off) has one, and a decision that reverses an ADR in force supersedes it;
- every module the decisions add, remove, rename or move, and every new directory where the module map expects a module (its `sources`, else the directories beside its modules), has its module-map bullet with id, path, responsibility and uses;
- every domain term the scenarios or decisions introduce, rename or give a new meaning has its glossary bullet, and no term is used against an `_Avoid_` word of the glossary.
A missing or false bullet is `Must address`: the plan writes only what the design names, and close reports what it left behind.
## 4. Sort
- **Must address**: a defect that would make the plan or the product wrong. A false claim about the code; a "What changes" bullet without an answer, or one the design contradicts; a scenario that cannot run; a failure path the scenarios imply and the decisions ignore; a split file `bdk tracker split` would refuse, or an AC no sub-issue carries; a decision against the proposal; a design that breaks a rule of step 2 without the user's agreement, the item naming the rule's id; an acceptance point of the source that `### Acceptance` lacks or states differently, or an AC the scenarios or the decisions drop, narrow (also under one option or mode only), reinterpret or leave unanswered, with no `By: user` entry of `scope-log.md` for it, the item naming the AC id and its evidence quoting the source or the AC.
- **Should consider**: every other gap from step 3.
Not a problem: wording, style, a choice among valid alternatives the design argued, anything outside the proposal and its source. An AC is never outside the proposal. A proposal without `### Acceptance` is a `Should consider` item, not a `Must address` one.
## 5. Write the report
Write `.bdk/runs/<change>/design/verify-N.md` in the report body of your agent instructions:
```markdown
---
verdict: fail
closed: [M2]
---
## Must address
- M1 issue.md "D1": the export calls `formatAmount`, which no file defines.
Evidence: src/format.js:2 defines `formatCents`; grep finds no `formatAmount`
## Should consider
- S1 issue.md "Risks": <what>.
## Checked
- `listEntries` exists with the range the design names (src/store.js:12).
```
`verdict: fail` if and only if `Must address` holds an item. The `closed` key appears from the second report on. Keep the ID of every problem still open; a new problem takes the next unused number. An empty section holds `- None.` Change no other file.
Done when the report exists and its frontmatter holds the verdict.
## 6. Reply
Reply with three lines at most: the verdict, the report path, and the `Must address` IDs.
When continued after a fix, go back to step 1: the next report number, the latest report's IDs, the files that changed.