Skip to content
Back to skills

Plan

ASecurity

Runs the plan stage of a BDK Change - drafts the plan parts with plan-draft on bdk:planner, checks them with bdk plan check, and verifies them with verify-plan on bdk:verifier, fixing and verifying again until a report passes or policy.budgets.verifier is spent. Stops on an unfinished design or a gap of the design. Resumes from the run files. Use when a Change has its acceptance scenarios and key decisions and needs a plan, when asked to "plan" a Change, or when /bdk:run reaches the plan stage.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 5, 2026
ai-agentsgobash

Security analysis

A100/100

Scanned December 5, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Plan?

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

Security grade badge for Plan
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/broneq-plan/badge)](https://www.skillsdirectory.com/skills/broneq-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: plan
description: 'Runs the plan stage of a BDK Change - drafts the plan parts with plan-draft on bdk:planner, checks them with bdk plan check, and verifies them with verify-plan on bdk:verifier, fixing and verifying again until a report passes or policy.budgets.verifier is spent. Stops on an unfinished design or a gap of the design. Resumes from the run files. Use when a Change has its acceptance scenarios and key decisions and needs a plan, when asked to "plan" a Change, or when /bdk:run reaches the plan stage.'
argument-hint: "[change-name]"
allowed-tools: Bash(${CLAUDE_PLUGIN_ROOT}/bin/bdk *) Read Glob Grep Agent SendMessage ToolSearch
---

Current BDK configuration of this project:

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

Arguments: $ARGUMENTS

# Plan

You compose the plan blocks; you never do a block's work. Do not write, fix or check a plan part yourself, and write no file: the blocks do that. Never commit, create a branch or start the execute stage.

The blocks:

- **plan-draft**: start an agent with the Agent tool in the foreground (`run_in_background: false`), `subagent_type: "bdk:planner"`, prompt `Run the skill bdk:plan-draft with the arguments: <change>`, `model` set to `models.planner.model` and `effort` set to `models.planner.effort`, each only when the configuration above sets it. Start a new planner each time this block runs. It writes the parts `.bdk/runs/<change>/plan/parts/NN.md`, or fixes them when the last report failed, and runs `bdk plan check` itself.
- **check**: run `"${CLAUDE_PLUGIN_ROOT}/bin/bdk" plan check .bdk/runs/<change>/plan/parts --issue .bdk/runs/<change>/issue.md` as the whole Bash command: nothing before or after it, no `cd`, `;`, `&&`, `|` or `echo`. The permission rule allows `bdk` only on its own, so a compound call can be denied and a denied call stops the stage; the exit code comes back in the tool result anyway. It prints the waves, and the problems under `problems:` with exit 1; exit 3 is an environment problem.
- **verify-plan**: start an agent with the Agent tool in the foreground (`run_in_background: false`), `subagent_type: "bdk:verifier"`, prompt `Run the skill bdk:verify-plan for the Change <change>.`, `model` set to `models.verifier.model` and `effort` set to `models.verifier.effort`, each only when the configuration above sets it. It writes the next `.bdk/runs/<change>/plan/verify-N.md` and returns its verdict. Keep the agent ID it returns.

Before each block, tell the user in one line which block runs and which file it writes, e.g. `Drafting the plan: bdk:planner writes .bdk/runs/add-csv-export/plan/parts/`, `Checking the plan: bdk:verifier writes .bdk/runs/add-csv-export/plan/verify-1.md`.

## 1. Check the configuration and the Change

When the block above says `BDK not configured: run /bdk:setup` or that the configuration is invalid, stop: run no block and reply with that line. Otherwise note `policy.budgets.verifier` (3 when absent).

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>/` holding an `issue.md`. With none or several, name what you found, ask which Change to plan, and stop.

The plan needs a finished design. Stop, run no block, and name `/bdk:design <change>` as the stage to run first when:

- `.bdk/runs/<change>/issue.md` is missing, or has no `## Acceptance scenarios` or no `## Key decisions` heading;
- the last design report `.bdk/runs/<change>/design/verify-N.md` (highest N) exists and its frontmatter does not say `verdict: pass`.

A design without any design report was written by hand, or is a sub-issue's (its `design/gate.md` names a `parent`): plan it. When `design/split.json` exists, the Change was split into sub-issues: run no block, and name `/bdk:plan <change>-<key>` for each key of that file.

Done when you hold the Change name and the budget, and the design is finished.

## 2. Find where to start

Glob `.bdk/runs/<change>/plan/parts/*.md` and `.bdk/runs/<change>/plan/verify-*.md`. The last report is `verify-N.md` with the highest N; read its frontmatter. Take the first row that matches:

| # | Files | Start at |
|---|---|---|
| 1 | no part | step 3 |
| 2 | parts, no report | step 4 |
| 3 | the last report says `verdict: fail` | step 5, starting with the fix |
| 4 | the last report says `verdict: pass` | nothing to run: go to step 6 and report the passed plan |

A step whose file exists never runs again. Done when you know the row.

## 3. Draft

Run **plan-draft** with `<change>`. Read its reply:

- It names a gap of the design (a choice that changes what the product does, which the issue's scenarios and key decisions leave open): stop here, before any verification. Quote each gap, and name `/bdk:design <change>` to answer it and `/bdk:plan <change>` to plan again afterwards. A plan without that part would pass verification and miss the behaviour.
- It stops on a configuration or environment problem: pass it on and stop.

Done when the parts exist and no gap is named.

## 4. Check

Run **check**.

- Exit 0: keep its `waves:` lines for the report and go on.
- Exit 1, the first time in this step: run **plan-draft** with `<change>`; it fixes what the check lists. Then check again.
- Exit 1 after that: stop before the verifier. List the problems and say that the limits are `plan.part.*` in the configuration.
- Exit 3: pass the message on and stop.

Done when the check exits 0.

## 5. Verify within the budget

Count the verifier passes you start in this run; at most `policy.budgets.verifier`.

1. When the last report says `verdict: fail` (row 3, or a failed pass of this loop): run **plan-draft** with `<change>`; it fixes the report's `Must address` items. When its reply names a gap of the design, stop as in step 3. Then run step 4 and come back.
2. Verify: the first pass of this run starts the **verify-plan** agent. A later pass continues the same agent with `SendMessage` (load it first with `ToolSearch` query `select:SendMessage` when it is listed only by name): `Verify the plan of <change> again: plan-draft fixed it.` Without the agent's ID or the tool, start a new **verify-plan** agent instead; the report numbers and open IDs come from the files either way.
3. Tell the user the verdict and the report path. When the agent returns no verdict (a command it needs was denied or failed, and it wrote no report), stop: run no further block, and pass its message on.
4. `verdict: pass`: go to step 6. `verdict: fail` with budget left: back to 1. `verdict: fail` with the budget spent: stop, and run no further **plan-draft**. Report the last report's path, its open `Must address` IDs, and that `/bdk:plan <change>` continues with a new budget.

Done when the last report passes, or you stopped on a spent budget.

## 6. Report

Reply in a few lines:

- the part files, from Glob;
- the waves and their number, from the last check (row 4: run **check** once for them);
- the last verdict with its report path, and the verifier passes used of the budget;
- the choices `plan-draft` named as made inside the design's frame;
- after a passing report, the next stage: `/bdk:execute <change>`.

End your turn there; the plan stays uncommitted for review.

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.