Receber por email
← Voltar para o catálogo

verify-plan

Verify implementation plans before execution using a 4-agent pipeline. Use when you have a written plan (from /bdk:create-plan or manual) and want to check if it will actually work before writing code.

0estrelas
Atualizado há 5 meses

Ver no GitHub ↗ Licença: MIT

Como adicionar

/plugin marketplace add broneq/bdk

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/verify-plan/svg)](https://www.skillteca.com.br/skills/verify-plan)

Alerta por categoria

Receba novas skills de Escrita e Conteúdo toda segunda

1 email curto, só com as skills novas de Escrita e Conteúdo. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

Verify Plan

Relies on BDK foundation (STARTUP_INSTRUCTIONS.md) for project context and MCP tool preference.

Verify plans against real code before execution.

Invocation

/bdk:verify-plan docs/plans/2026-03-17-some-plan.md

$ARGUMENTS = plan file path. Read file first.

Decision Flow

digraph verify_plan {
    rankdir=TB
    node [shape=box, style="rounded,filled", fillcolor="#f0f0f0"]

    start [label="Read plan file", shape=ellipse, fillcolor="#d4edda"]
    parse [label="Extract:\n- Problem context\n- Files to change\n- Proposed code\n- Success criteria"]
    explorer [label="Stage 1: EXPLORER\nGather signatures, types,\nmodels, ALL callers of\nmodified symbols"]
    parallel_start [label="", shape=point, width=0.1]
    sim_a [label="Stage 2A: PLAN PROVER\nDry-run plan steps,\ninvent edge cases"]
    sim_b [label="Stage 2B: REGRESSION HUNTER\nTrace OTHER flows\nthrough changed code"]
    parallel_end [label="", shape=point, width=0.1]
    reviewer [label="Stage 3: CODE REVIEWER\nReview proposed code\nvs patterns"]
    verdict [label="Assemble VERDICT REPORT"]
    pass_check [label="PASS?", shape=diamond]
    done [label="Save report\nDone", shape=ellipse, fillcolor="#d4edda"]
    iter_check [label="Iteration < 3?", shape=diamond]
    rethink [label="Plan needs rethink.\nSuggest /bdk:brainstorming", shape=ellipse]

    start -> parse
    parse -> explorer
    explorer -> parallel_start
    parallel_start -> sim_a
    parallel_start -> sim_b
    sim_a -> parallel_end
    sim_b -> parallel_end
    parallel_end -> reviewer
    reviewer -> verdict
    verdict -> pass_check
    pass_check -> done [label="YES"]
    pass_check -> iter_check [label="NO"]
    iter_check -> explorer [label="YES\n(full re-run)"]
    iter_check -> rethink [label="NO (3 failures)"]
}

Pipeline Execution

Stage 1: Explorer

Launch explorer agent, thoroughness "very thorough":

Analyze the following implementation plan for verification.

PLAN:
<full plan content>

YOUR TASK:
1. For each file in "Files to change", get symbols overview
2. For each function/method the plan modifies, read its FULL current signature and body
3. For each model/class the plan references, read its fields and types
4. For ALL modified symbols, find every caller
5. List all flows that use the modified code paths

Focus on: current function signatures, parameter types, return types, model fields,
class hierarchies, callers, and downstream consumers.

Stage 2A & 2B: Run in Parallel

Launch TWO step-simulator agents simultaneously using prompts in references/agent-prompts.md.

  • Stage 2A — "Plan Prover" prompt, substitute {plan_content} and {exploration_report}
  • Stage 2B — "Regression Hunter" prompt, substitute {plan_content} and {exploration_report}
If verification loops (iteration 2/3), re-engage the same simulators via SendMessage(to: "<agentId>", ...) with only the deltas — they already hold the plan and exploration report. See STARTUP "Continuing a Spawned Agent".

Stage 3: Code Reviewer

Launch code-reviewer agent on proposed code snippets with both simulator reports as context.

Verdict Assembly

Merge all reports using structure in references/verdict-template.md. Save to .bdk/verify-plan/<plan-name>-verification.md.

Loop Logic

  1. PASS → save report, done
  2. FAIL + iteration < 3: show remaining issues, ask to re-verify
  3. FAIL + iteration >= 3: suggest /bdk:brainstorming

Iteration Summary Format

## Iteration N/3 Summary

| Check            | Iter 1 | Iter 2 | Delta           |
|------------------|--------|--------|-----------------|
| Plan Proof       | 3 FAIL | 1 FAIL | Improved        |
| Regression Check | 1 WARN | 0 WARN | Fixed           |
| Code Review      | 0 FAIL | 0 FAIL | Clean           |
| **Overall**      | **FAIL**| **FAIL**| **4 → 1 issues** |
Compartilhar X LinkedIn