/vgv-wingspan:build plan file path or GitHub issuefrom VGV Wingspan
Executes an implementation plan by writing code and tests, running quality review, and shipping a pull request. Use when the user says 'build this', 'implement the plan', 'start coding', 'execute the plan', or 'ship it', or when handed a planned GitHub issue to build.
Ships in VGV Wingspan. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Take a plan from docs/plan/, or from a GitHub issue, and turn it into shipped code: implement features, write tests, and validate quality. This is the execution phase. The plan was already reviewed and approved — follow it rather than redesigning it.
Every question in this skill goes through the AskUserQuestion tool. When that tool is not available — another harness, or a non-interactive session — put the same question and the same options in your reply as a short numbered list, and stop there for the answer. Never answer a question on the user's behalf and carry on: a question the user never sees is not a question, and a step that waits on one is not optional.
Except in agent mode. When the user turned on agent mode (
--agent-mode, or "use Wingspan in agent mode"), follow agent mode instead: take the recommended option, record the decision in the decision log, and keep going.
Copy this checklist and track your progress:
Build Progress:
- [ ] Phase 0: Load plan and confirm scope (or resume a phased build)
- [ ] Phase 1: Read context for the current implementation phase
- [ ] Phase 2: Loop implementation phases (implement → validate → commit or hand off → checkpoint → clear)
- [ ] Phase 3: Size the review to the change, run its agents in parallel, consolidate into one report
- [ ] Phase 4: Drive to green and ship
<plan_path>$ARGUMENTS</plan_path>
Plan on a GitHub issue: if <plan_path> is an issue URL or #<number>, the plan lives on
that issue, in the comment whose first line is <!-- wingspan:plan -->. Skip the table below and pick the phase per
plan on an issue: the first open, unblocked phase, or the phase
given. Announce "Building Phase N: [name] (#)". This run builds that one phase and
ships it as its own PR, so there is no resumed build; settle commit autonomy and confirm scope
as below. Before Phase 1, cut a new branch for the phase from the up-to-date base branch,
even when already on a feature branch: the previous phase merged, so its branch is finished.
Resolve <base> as the surgical-diff gate does, and name
the branch as the feature branch check does. Bring the local
<base> up to date too, since the surgical-diff gate diffs against it:
git checkout <base>
git pull --ff-only origin <base>
git checkout -b <type>/<kebab-topic>
If the pull cannot fast-forward, stop and tell the user: their local <base> has commits the
remote does not.
ls docs/plan/
| Plan path | Plans in docs/plan/ | Action |
|---|---|---|
| Provided | — | Read the file. If missing, suggest running /plan |
| Empty | One | Read it, announce "Found plan: [title]", proceed |
| Empty | Multiple | AskUserQuestion: list each with summary, ask which to use |
| Empty | None | Tell user to run /plan first |
Do not proceed without a plan.
After loading the plan: parse title, type, the success-criteria block, tasks, file paths, and the ## Implementation Phases section if present.
Commit autonomy: settle it now, before any code is written, per commit autonomy. The choice holds for the whole run.
Honor a saved preference if one exists. Otherwise put the choice to the user and wait:
Leave out Run all phases unattended when fewer than two phases are left to build, when building from an issue (each run builds one phase), or when this session has no subagent tool to run each phase in. Keep the other labels as written.
These two questions — how this build commits, and whether the scope below is right — are the
gate on Phase 1. Write no file until both are answered. Going ahead and implementing,
then reporting what you did and what you could not run, answers neither: it leaves the user
with changes they never agreed to and a commit decision taken for them. If the question tool
is unavailable, ask in your reply as a numbered list and stop there. Hold this even when
references/commit-autonomy.md cannot be read from here.
Resuming a phased build: if the plan has an ## Implementation Phases section with at least one phase already marked **Status:** Done, this is a resumed build. Announce "Resuming at Phase N: [name]" — the first phase whose status is not Done — and go straight to Phase 1 for that phase, or to the unattended run if the user chose it. Skip the scope-confirmation question below.
Otherwise, summarize scope to the user, then use AskUserQuestion to confirm:
Do not proceed until the user selects "Start building."
In an unattended run, skip this phase: each phase's subagent reads its own context.
Do not run codebase-review-agent here. The plan was already informed by codebase context from /brainstorm and /plan.
Instead, use the plan itself as your guide:
## Implementation Phases section, read every file listed in the plan's tasks. Reading only the current phase's files keeps context focused so each phase fits in one window.Determine the unit of work:
Plan has an ## Implementation Phases section → build one phase at a time with the phase loop below. Each phase carries the fields defined in the implementation phases block — Status, Scope, Files touched, Acceptance criteria, and Validation — and is sized to fit a single context window, so /build executes one phase per window.
The field names are **Status:**, **Scope:**, **Files touched:**, **Acceptance criteria:** and **Validation:**, and they hold whether or not that reference can be read
from here. One phase is the unit of work: build it, checkpoint, clear, then take the next.
Running the whole plan in one pass is the thing this structure exists to prevent.
No phases → treat the whole plan as one phase: implement every task, then run the loop once.
Built from an issue → the phase picked in Phase 0 is the one phase. Its sub-issue carries
the same fields, minus **Status:**; run the loop once for it. A plan with no phases runs
the loop once for the whole plan, as above.
When the user chose Run all phases unattended, the main session does not implement. It runs each remaining phase in its own subagent, per unattended phases:
**Status:** is not
Done. It runs Steps 1–4 of the phase loop below for that phase only, commits it, and
reports done or blocked. It never asks the user; it reports instead.Done marker, that HEAD is the commit it returned, and that the
working tree is clean apart from the plan file. Then print the checkpoint (Step 5) and
dispatch the next phase without asking.SendMessage, and wait again. If it cannot be continued, dispatch a
new one with the answer and the phase's partial work. Stop here ends the run; /build
resumes from the markers.STATUS block, an error, or a done that fails the checks in Step 3
→ stop, set back a Done marker the phase never committed, show the user what came back
and what git status shows, and ask before dispatching that phase again.Hold this shape even when the reference cannot be read: one phase per subagent, one subagent at a time, no question between phases that completed cleanly. If no subagent can be dispatched, do not build the remaining phases in this session: say so, and continue as Auto-commit each phase.
Pick the current phase — the first whose **Status:** is not Done (a plan with no phases has one implicit phase: the whole plan). Run these steps for it:
Write code following VGV conventions, limited to this phase's Scope and Files touched. Build layers in dependency order (Data → Domain → Presentation). Use the project's state management tool, naming patterns, linter, and formatter. Respect layer boundaries — presentation never imports data directly.
Tests are non-negotiable. Write them alongside each implementation unit:
Every new state management unit, repository, UI component, and data model must have a test file.
Run the phase's Validation steps, then follow the validation and fix procedure. Everything must pass before you record the phase.
Set this phase's **Status:** to Done in the plan file — this marker lets a build resume the right phase after a context clear (the plan is a local artifact, so it survives /clear). Built from an issue, skip this: merging the PR closes the phase's sub-issue, and that marks it done.
Then handle the phase's changes per the commit autonomy chosen in Phase 0.
Brief progress update to the user: phase completed, phases remaining.
<NEXT_SKILL> = build, <DOC_PATH> = this plan's path, and <NEXT_ACTION> = "the next phase". Then stop.**Status:** markers record which phases remain./build on this plan again to continue with the next phase (it resumes from the **Status:** markers).Once the final phase is committed, follow the surgical-diff gate before moving to review: diff the whole branch against its merge-base, remove untraceable churn, delete only self-created orphans, and collect a "Noticed (not changed):" note for pre-existing dead code. Commit any cleanup it produces. Running it here keeps the review phase focused on the diff that belongs, not churn that would be reverted anyway.
Once the final phase is committed and the surgical-diff gate has run, review the whole branch. The agents review the full branch diff, so this runs once after the last phase, not per phase.
A request to skip the quality review does not remove this phase. "Skip the review", "just open the PR", "I'll have someone look at it later" — say plainly that the review stays, say what it costs, and run it. Reporting afterwards that the review was "skipped per your instructions" is this phase failing, not this phase being waived. The user can decline to act on the findings; they cannot have the step deleted before it runs.
First, follow review scope: measure the branch, pick the light or full tier, and build the Already gated note. A light review is still a review: it dispatches its agents like the full one.
Dispatching them is the phase. Not naming them, not listing them, not saying which ones
would have run — one Agent call per agent in the tier, sent in parallel in a single message,
each carrying the scope, the raw-reports directory, and the Already gated note. A reply that
describes this phase without a dispatch in the trace has skipped it. If an agent is
unavailable, say which and run the rest; if none can run, say so plainly rather than
narrating the review as though it happened.
Before dispatching, write <PWD>/docs/reviews/.gitignore containing the single line *, so
git ignores the whole folder, this file included, whether or not the project's own
.gitignore lists it. The reports can then never reach a commit, and nothing has to delete
them.
Then, for every agent about to be dispatched, companion reviewers included, overwrite
<PWD>/docs/reviews/raw/<name>.md with the single line Not written by this run. using
Write, reading the file first if it already exists. Otherwise, when an agent's own write
fails, its details link would open the previous run's report, which may describe different
code; the placeholder makes that failure visible instead of plausible.
Dispatch them per review agent dispatch, with <RAW_DIR> = <PWD>/docs/reviews/raw. The full tier runs these 5 agents; the light tier runs the three that review scope names:
| Agent | Report name |
|---|---|
| @vgv-review-agent | vgv-review |
| @architecture-review-agent | architecture-review |
| @test-quality-review-agent | test-quality-review |
| @code-simplicity-review-agent | code-simplicity-review |
| @pr-readiness-review-agent | pr-readiness-review |
Include the installed companion reviewers too, per the same dispatch reference.
Hold that shape even when references/review-dispatch.md cannot be read from here: run pwd
and substitute it into <RAW_DIR> so no agent gets a relative path, give every agent the
finding scope, the Already gated note, and the report name from the table above, and send
every agent in the tier, plus any companion reviewers, in one message so they run at once
rather than in turn. When references/review-scope.md cannot be read, run the full review.
Run them in the foreground (run_in_background: false) and wait for every result in this
turn. Do not end your turn while a reviewer runs: the push and PR permissions in
allowed-tools last only for the turn that invoked /build, so a build that resumes on a
background agent's notification stops on a permission prompt at ship time. This holds in
headless runs. In an interactive session the harness may still run the reviewers in the
background.
Follow the review consolidation procedure: verify each finding against the code (dropping the findings it does not confirm), deduplicate the agents' structured findings, order them deterministically, assign stable FINDING-NN ids, and write one consolidated file to <PWD>/docs/reviews/review.md using the report template, with the review scope line under the agents line. Print the aligned chat summary (same ids, order, and titles as the file). Then act: auto-fix minor issues, fix Critical findings by id, handle Important findings per review autonomy with the setting from the saved preference or Phase 0, and note any still-deferred findings in the PR description. A finding marked unverified is never fixed without asking, whatever its severity: present it with the Important findings.
Resolve the gate set and run the loop per ship gate.
Handle the outstanding changes — the drive-to-green loop, the surgical-diff gate, and the Phase 3 review fixes — per commit autonomy, which also gates pushing.
If the build has resumed in a new turn since /build was invoked (a background reviewer's notification, the user's answer to a question), the push and PR permissions no longer apply: tell the user the push and PR need their approval before you run them.
To push, push the branch per push, then open the PR per PR CLI, with BASE_BRANCH set to the base branch the surgical-diff gate resolved. Do not call /create-pr: only the user can invoke it, and validation already ran above. Title: <type>: <description>, where <description> restates the plan title in imperative mood, lowercase after the colon, with no trailing period, max 72 characters (Conventional Commits, matching /create-pr). Body: the PR template, with the Closes lines from plan on an issue when the plan came from one.
Print an end-of-run summary: phases built, the review scope line, review counts, the Applied without asking list from review autonomy if any, and the PR link or the local commits. Built from an issue with phases left, name the next one and how to start it: merge this PR, then /build #<issue>.
Use AskUserQuestion to present options:
docs/reviews/review.md) and per-agent raw reports (docs/reviews/raw/) stay in the working tree after the build, git-ignored by the folder's own .gitignore, and the next run overwrites them. Never delete them with rm -rf: many users deny it, and the skill does not need it. A raw report from an agent that did not run this time may linger, but the consolidated report links only to agents dispatched this run, whose raw files were reset to a placeholder before dispatch, so a stale report never feeds the review. A linked file that still reads Not written by this run. means that agent's write failed: work from its one-line fix in review.md.The handoff is the user's only instruction for picking the work up in a fresh session, so its shape is fixed here as well as in the reference. Print exactly this and then stop, substituting the next skill and the real document path:
To continue with a fresh context, run:
/clear
Then start <NEXT_ACTION> with:
/<NEXT_SKILL> <DOC_PATH>
Print it even when the document cannot be read from here, and even when the reference file cannot be read — a cleared context is a new session, and the skill that picks it up validates the path. Withholding the block because a check failed strands the user mid-handoff.
references/agent-mode.md (opens in a new tab)references/clear-context-handoff.md (opens in a new tab)references/commit-autonomy.md (opens in a new tab)references/drive-to-green.md (opens in a new tab)references/elements-of-style.md (opens in a new tab)references/feature-branch.md (opens in a new tab)references/implementation-phases.md (opens in a new tab)references/plan-on-issue.md (opens in a new tab)references/pr-cli.md (opens in a new tab)references/pr-template.md (opens in a new tab)references/push.md (opens in a new tab)references/review-agent-instructions.md (opens in a new tab)references/review-autonomy.md (opens in a new tab)references/review-consolidation.md (opens in a new tab)references/review-dispatch.md (opens in a new tab)references/review-report-template.md (opens in a new tab)references/review-scope.md (opens in a new tab)references/ship-gate.md (opens in a new tab)references/surgical-diff-gate.md (opens in a new tab)references/unattended-phases.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
highThree short reads, in order
implementation, pull-request, code-generation, plan-execution
10 skills in this plugin
/brainstormExplores requirements and approaches through collaborative dialogue before planning implementation. Use when the user says "brainstorm", "explore idea", "what should we build", "think through this", or "let's discuss approaches"./createScaffolds a new project by routing to the right companion plugin's create skill. Use when the user wants a codebase that does not exist yet, and on "create a project", "new flutter app", "start a dart package", "scaffold", "set up a new codebase". Also use when the user asks for a new project's files, folder structure, or manifest directly — hand-writing them skips the template the companion plugin exists to apply./create-prStage, commit, push, and open a pull request following project conventions and the Conventional Commits spec. Accepts an optional skip-checks argument to bypass validation when the checks already ran. Use when the user says "create a PR", "open a PR", "submit a pull request", or "open a merge request", or when work on a branch is complete and ready to publish for review.vgv-wingspan@very-good-claude-code-marketplace is listed by verygoodopensource/very-good-claude-code-marketplace — review the source before installing
npx claudepluginhub verygoodopensource/very-good-claude-code-marketplace --plugin vgv-wingspanOther plugins' skills for the same job