controlflow-plan
Use when a repository task needs a high-quality ControlFlow plan before coding — small, medium, or large scope, cross-file edits, risky migrations,…
Use after /controlflow-claude-code:controlflow-plan produces a plan, before implementation. Runs adversarial pre-execution verification inline in the main context (zero subagents): structural audit, assumption/mirage detection, and executability cold-start simulation. Emits
$ npx -y skills add Smithbox-ai/ControlFlow --skill controlflow-verify --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/controlflow-verifyContext preview
The summary Claude sees to decide when to auto-load this skill.
Use after /controlflow-claude-code:controlflow-plan produces a plan, before implementation. Runs adversarial pre-execution verification inline in the main context (zero subagents): structural audit, assumption/mirage detection, and executability cold-start simulation. Emits
name: controlflow-verify description: "Use after /controlflow-claude-code:controlflow-plan produces a plan, before implementation. Runs adversarial pre-execution verification inline in the main context (zero subagents): structural audit, assumption/mirage detection, and executability cold-start simulation. Emits APPROVED / NEEDS_REVISION / REJECTED with evidence."
Verify a plan before execution. Runs entirely inline in the main conversation context — no plugin subagents are spawned. Because inline review lacks the isolation of a fresh subagent context, this skill is adversarial by construction: it tries to refute the plan and defaults to a flagged finding when uncertain. The goal is to catch mirages and unexecutable plans cheaply, without the token cost of spawning verifier subagents.
Invoke this skill via `/controlflow-claude-code:controlflow-verify`.
The plan artifact path (default `plans/<task-slug>-plan.md`). Read it from disk; do not work from a chat-embedded copy.
| Tier | Phases to run | |------|---------------| | TRIVIAL | skip | | SMALL | phase 1 | | MEDIUM | phases 1–2 | | LARGE | phases 1–3 |
Any unresolved HIGH-impact semantic risk → run all three regardless of tier.
Confirm the artifact conforms to `schemas/planner.plan.schema.json` and `plans/templates/plan-document-template.md`:
1. YAML header present; `Status` is one of `READY_FOR_EXECUTION`, `ABSTAIN`, `REPLAN_REQUIRED`; `Agent: Planner`; `Schema Version: 1.2.0`; `Confidence` is numeric. 2. All 10 sections present in order; 5 lifecycle sections present and ordered for SMALL+. 3. Section 7 has exactly seven risk categories, each once. 4. Every phase declares one `executor_agent` from the schema enum; quality gates use only the five standard values. 5. Acceptance criteria include at least one measurable observable outcome per phase. 6. LARGE tier includes `flowchart TD` + `sequenceDiagram`; each ≤30 lines.
Structural failure → `NEEDS_REVISION` immediately.
Try to refute the plan's factual claims:
1. Every referenced file/path/symbol is real — open or grep for it. A referenced file that does not exist is a mirage and a blocker. 2. Every assumption is bounded in scope, not a hidden scope decision. 3. Dependencies and version constraints are pinned or explicitly flagged. 4. No "should be safe" hand-waving on concurrency or shared mutable state — ownership and ordering are explicit. 5. Data-volume concerns documented where applicable (bulk ops, pagination).
See [references/mirage-patterns.md](references/mirage-patterns.md) for the full mirage taxonomy (P1–P10 presence mirages, A11–A17 absence mirages) and [references/verify-phases.md](references/verify-phases.md) for the detailed phase checklists.
Simulate a fresh executor starting Phase 1 with only the plan in hand:
1. Can Phase 1 execute without asking the user a question? If yes → fine; if no → flag the ambiguity as a Phase 1 blocker. 2. Are verification commands concrete enough to run as-is (no guessing)? 3. Does each destructive or migration-heavy phase have rollback/recovery guidance? HIGH blast radius → require `human_approved_if_required`; MEDIUM → `safety_clear`. 4. Is the inter-phase contract deliverable format explicit, and does the downstream phase know how to validate it?
Score each applicable checklist item `confirmed` / `uncertain` / `refuted`.
confidence = confirmed_count / total_items_with_any_actionable_question
**NEEDS_REVISION** (list each finding with the exact section reference; re-audit after fix).
the user for direction; do not start coding).
Write a compact verdict to `plans/artifacts/<task-slug>/verify-verdict.md` for auditability. Present the verdict and the findings that justify it to the user before implementation.
the tier requires.
A multi-agent orchestration system for VS Code Copilot, plus maintained Codex, Claude, and Cursor plugins.
Repo: Smithbox-ai/ControlFlow
Use when a repository task needs a high-quality ControlFlow plan before coding — small, medium, or large scope, cross-file edits, risky migrations,…
Use after implementation to review a diff or completed phase. A thin ControlFlow layer over Claude Code's native /code-review: adds plan-vs-implementation…