Skip to content
Back to skills

Verify Plan

ASecurity

Checks the plan parts of a BDK Change against the code and the acceptance scenarios and key decisions of its issue before execute, in a bdk:verifier agent, and writes .bdk/runs/CHANGE/plan/verify-N.md with verdict pass or fail. Use when a Change has plan/parts and they should be checked before implementing, or when bdk:verifier is asked to run bdk:verify-plan.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 26, 2026
ai-agentsrustgobashdocumentation

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 5, 2026

npx -y skills add broneq/bdk --skill verify-plan --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Verify Plan?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Verify Plan
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/broneq-verify-plan/badge)](https://www.skillsdirectory.com/skills/broneq-verify-plan)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: verify-plan
description: 'Checks the plan parts of a BDK Change against the code and the acceptance scenarios and key decisions of its issue before execute, in a bdk:verifier agent, and writes .bdk/runs/CHANGE/plan/verify-N.md with verdict pass or fail. Use when a Change has plan/parts and they should be checked before implementing, or when bdk:verifier is asked to run bdk:verify-plan.'
argument-hint: "[change name]"
allowed-tools: Bash(${CLAUDE_PLUGIN_ROOT}/bin/bdk *) Read Write Glob Grep Agent
---

Current BDK configuration of this project:

!`"${CLAUDE_PLUGIN_ROOT}/bin/bdk" config show`

Arguments: $ARGUMENTS

# Verify plan

The block above says `BDK not configured: run /bdk:setup` or `BDK configuration invalid`: write nothing, pass that line on, stop.

## 0. Where you run

The check runs on a fresh context in the agent `bdk:verifier`, so it reads the plan as the implementers will.

- **You are not `bdk:verifier`** (the main thread, or any other agent): do not check the plan yourself. Start one agent with the `Agent` tool in the foreground (`run_in_background: false`): `subagent_type: "bdk:verifier"`, the prompt `Run the skill bdk:verify-plan for the Change <change>.` (the argument above; without one, say so and let it pick), `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, the report path and its `Must address` IDs, and stop.
- **You are `bdk:verifier`**: continue with step 1. When you were continued with a message after a fix, start again at step 1; the previous report is now the last one.

## 1. Find the plan

- The Change is the argument. Without one, take the `current` Change of `.bdk/runs/run.json`, else the only directory under `.bdk/runs/` other than `pr-<N>/` holding `plan/parts/01.md`; several: name them and stop.
- No `.bdk/runs/<change>/plan/parts/*.md`: write nothing, reply that the plan is missing and `/bdk:plan-draft` writes it, stop.
- Glob `.bdk/runs/<change>/plan/verify-*.md`. Your report is `verify-N.md`, N one more than the highest existing number (1 when none). When one exists, read the last one now: its IDs carry over (your agent instructions, "The report").

Done when you know the Change and your report path.

## 2. Read

Read every part and, from `.bdk/runs/<change>/`, `issue.md` in full, the code map `explore/design.md` when present, `scope-log.md`, and `source/issue.md` when present. When `design/gate.md` names `parent: <parent>` (a sub-issue), also read `## Key decisions` of `.bdk/runs/<parent>/issue.md`. List every AC of `### Acceptance` under `## Proposal` that no `By: user` entry of the log dropped. List every scenario of `## Acceptance scenarios` as `Scenario: <name>`, the text of its `###` heading; when it holds `None.`, there are none, and each AC is carried by a task naming its id. Run `"${CLAUDE_PLUGIN_ROOT}/bin/bdk" plan check .bdk/runs/<change>/plan/parts --issue .bdk/runs/<change>/issue.md` and keep its output: waves and problems.

For each part, run `"${CLAUDE_PLUGIN_ROOT}/bin/bdk" rules for --stage plan --files <file> --files <file> ...` with the part's `files`, one `--files` per path, and keep the rules it prints for that part. A rule another part's files select does not hold for this part. Run `"${CLAUDE_PLUGIN_ROOT}/bin/bdk" adr for --files <file> ...` the same way and keep the ADRs it prints for that part.

## 3. Check

Go through every part and task. Open the code each task names; do not take a claim of the plan on trust.

Put into **Must address** what makes an implementer build the wrong thing, fail or stop:

1. Every problem `bdk plan check` lists. Evidence: its output line.
2. A task without one of the lines `File:`, `Interface:`, `Verified by:`, or a `File:` path missing from the part's `files`.
3. A path, function, type or command the task names as existing that does not exist as named: a wrong name, a wrong signature, a wrong module. Evidence: the file and line of what does exist, or the search that found nothing.
4. A scenario of the issue that no part names under `## Acceptance scenarios`, or that two parts name. `bdk plan check` reports both as `scenario-coverage` (item 1); with `None.` as the scenarios, check the AC ids the parts name yourself.
5. A marker of a present scenario that is wrong. For each scenario a part lists, trace its WHEN through the code as it is before the Change to the output, comparing it with its THEN. A scenario the code already satisfies completely and the part lists without the suffix ` (behaviour present)` is an item (the implementer would see its test pass before any code and may stop the part as a plan defect); a scenario listed with the suffix that the code does not satisfy completely, or only through what an earlier part builds, is an item. Name the scenario and the part; evidence: the file and line of the code that satisfies it, or the search that found nothing. Also check that the `Verified by:` of a marked scenario ends `; it passes at its first run, the behaviour is present`.
6. A key decision of the issue (or, for a sub-issue, of its parent) that no task carries out.
7. A part that uses what another part creates (a function, a type, a file) without depending on it, directly or through other parts. Trace two or three concrete inputs through the tasks that change behaviour: the value one part produces must be what the next part reads.
8. A fact a part needs that only another part states: a signature from an earlier part, a source, a command. The implementer reads only its own part and the issue's scenarios and key decisions.
9. A `Verified by:` line that names commands by exclusion ("every test except ..."), or a command that spends money, needs credentials or reaches a shared or external system.
10. An interface the plan changes whose callers behave differently and no task covers them. Find the callers with Grep.
11. An AC of the list in step 2 that no part carries, through a scenario under `## Acceptance scenarios` that answers it or a task that names its id; or an AC a part narrows or changes with no `By: user` entry naming it (an entry `By: setting ...` or `By: needs-user` does not count). Evidence: the AC quoted and the parts searched.
12. A part that breaks a rule selected for its files in step 2. The item names the rule's id and the part; evidence: the rule's sentence and the part's task or `files` that break it.

13. A part whose task contradicts an ADR kept for it in step 2. Evidence: the ADR's id and sentence, and the task.
14. A module-map or glossary bullet of `### Living documentation` (under `## Key decisions`, the parent's too) that no task makes, or whose task's part does not hold the doc in its `files`; a part that creates, moves or removes a module without the module-map task, so `bdk arch check` turns red in its wave.

Put into **Should consider** the rest: a cut with fewer waves (more than three waves needs a reason), code written into a task, an unclear sentence, a part close to a limit.

Done when every part and task is checked and every `Must address` item has its evidence.

## 4. Write the report

Write `.bdk/runs/<change>/plan/verify-N.md` in the report body of your agent instructions. Under `## Checked`, name what holds, for example: `bdk plan check`: 2 parts, 2 waves, no problem; every scenario owned once; signatures of the named functions match the code.

Change no other file. Then return the verdict, the report path and the `Must address` IDs.

Files in this skill

  • SKILL.md5.5 KB
  • references/verdict-template.md2.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.