Skill files3 files

scripts/

SKILL.md324 lines
1
---
2
name: executing-plans
3
description: Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
4
---
5
6
# Executing Plans
7
8
Execute the plan yourself, task by task, in this session: no implementer
9
subagent per task, no reviewer per task. One fresh-context review of the
10
whole branch at the end.
11
12
**Why inline:** Subagent-driven development pays for a fresh implementer
13
and a fresh reviewer on every task, each re-reading the codebase from zero.
14
Inline execution pays for one context (yours) plus one reviewer at the end.
15
What it gives up is a fresh context per task and a second pair of eyes per
16
task. This skill keeps what those two things bought, by other means: the
17
brief is the spec, the ledger is your memory, TDD is the per-task gate, and
18
the final reviewer is the second pair of eyes.
19
20
**Core principle:** The plan already did the thinking. Execute it exactly,
21
prove each step with a test you watched fail and then pass, and leave a
22
record that survives your own forgetting.
23
24
**Narration:** between tool calls, narrate at most one short line — the
25
ledger and the tool results carry the record.
26
27
**Continuous execution:** Do not pause to check in with your human partner
28
between tasks. They chose inline execution to spend less, not to answer
29
"should I continue?" after every task. Execute all tasks from the plan
30
without stopping.
31
32
**Rulings, not stalls.** Conflicts, ambiguities, plan defects — decide them.
33
The spec is the binding authority, the plan is its argument, and your
34
judgment settles what neither answers. Record every decision in the ledger
35
as `Ruling: <what you decided> — <why> — <what it costs if wrong>`, and keep
36
going. Deviating from the plan without a ledgered ruling is a decision made
37
in secret.
38
39
Four things stop you, and only these: an irreversible or destructive
40
operation; a security-sensitive action; a side effect outside this worktree
41
that norms say you ask about first (a merge, a push to a shared branch, a
42
publish); and a plan so broken that every path forward is a guess. For
43
those, stop and ask.
44
45
## When to Use
46
47
- You have a plan from superpowers:writing-plans and your human partner
48
chose inline execution at the handoff.
49
- Your harness has no subagent tool (see the per-platform references in
50
`../using-superpowers/references/`). Never fabricate a dispatch; run
51
the plan here.
52
- Tasks are mostly independent — the same precondition as
53
superpowers:subagent-driven-development.
54
55
A fully specified plan makes inline execution transcription plus testing:
56
it runs well on a mid-tier session model, and the one place the most
57
capable model earns its cost is the final review, which this skill
58
dispatches separately. Tell your human partner so when they choose inline.
59
60
Prefer superpowers:subagent-driven-development when your human partner
61
wants a review gate on every task, or when the plan is long enough that
62
its later tasks would run on a compacted context. Inline execution over a
63
long plan still works — the ledger is what makes it recoverable — but the
64
last tasks get the least of you.
65
66
## The Process
67
68
```dot
69
digraph process {
70
rankdir=TB;
71
72
subgraph cluster_per_task {
73
label="Per Task";
74
"task-start: brief + BASE; read the brief" [shape=box];
75
"Work the steps in order: TDD, run every verification, read every output" [shape=box];
76
"Step output matches plan's Expected?" [shape=diamond];
77
"Plan wrong? Rule and ledger. Code wrong? systematic-debugging" [shape=box];
78
"Commit as the plan's commit steps say" [shape=box];
79
"Completion contract met?" [shape=diamond];
80
"task-done: run tests, ledger the result; mark todo complete" [shape=box];
81
}
82
83
"Setup: worktree, workspace + ledger, read plan + spec, pre-flight scan" [shape=box];
84
"More tasks remain?" [shape=diamond];
85
"Final whole-branch review (fresh reviewer if you have one)" [shape=box];
86
"Re-grade, then: Critical/Important → ONE fix pass, each fix RED→GREEN + green suite; Minor → ledger" [shape=box];
87
"Final review clean: delete this plan's workspace" [shape=box];
88
"Use superpowers:finishing-a-development-branch" [shape=box style=filled fillcolor=lightgreen];
89
90
"Setup: worktree, workspace + ledger, read plan + spec, pre-flight scan" -> "task-start: brief + BASE; read the brief";
91
"task-start: brief + BASE; read the brief" -> "Work the steps in order: TDD, run every verification, read every output";
92
"Work the steps in order: TDD, run every verification, read every output" -> "Step output matches plan's Expected?";
93
"Step output matches plan's Expected?" -> "Plan wrong? Rule and ledger. Code wrong? systematic-debugging" [label="no"];
94
"Plan wrong? Rule and ledger. Code wrong? systematic-debugging" -> "Work the steps in order: TDD, run every verification, read every output";
95
"Step output matches plan's Expected?" -> "Commit as the plan's commit steps say" [label="yes, last step"];
96
"Commit as the plan's commit steps say" -> "Completion contract met?";
97
"Completion contract met?" -> "Work the steps in order: TDD, run every verification, read every output" [label="no - finish the task"];
98
"Completion contract met?" -> "task-done: run tests, ledger the result; mark todo complete" [label="yes"];
99
"task-done: run tests, ledger the result; mark todo complete" -> "More tasks remain?";
100
"More tasks remain?" -> "task-start: brief + BASE; read the brief" [label="yes"];
101
"More tasks remain?" -> "Final whole-branch review (fresh reviewer if you have one)" [label="no"];
102
"Final whole-branch review (fresh reviewer if you have one)" -> "Re-grade, then: Critical/Important → ONE fix pass, each fix RED→GREEN + green suite; Minor → ledger";
103
"Re-grade, then: Critical/Important → ONE fix pass, each fix RED→GREEN + green suite; Minor → ledger" -> "Final review clean: delete this plan's workspace";
104
"Final review clean: delete this plan's workspace" -> "Use superpowers:finishing-a-development-branch";
105
}
106
```
107
108
## Setup
109
110
Ensure the work happens in an isolated workspace: use
111
superpowers:using-git-worktrees to create one or verify the existing one.
112
Never start implementation on a main/master branch without your human
113
partner's explicit consent.
114
115
Conversation memory does not survive compaction. An inline executor that
116
loses its place re-implements tasks whose commits already exist — the same
117
failure as a controller re-dispatching them, paid for in your own context.
118
Track progress in a ledger file, not only in todos. Harness todos are a
119
live view; the ledger is the record.
120
121
The workspace and ledger are shared with superpowers:subagent-driven-development
122
— same directory, same format — so a plan can change executors mid-flight
123
and the new one resumes from the same ledger.
124
125
- Each plan owns a workspace: at skill start, run
126
`../subagent-driven-development/scripts/sdd-workspace PLAN_FILE` by its
127
absolute path, from the working tree you're executing in — it
128
prints the plan's git-ignored directory
129
(`<repo-root>/.superpowers/sdd/<plan-basename>/`), home to every
130
artifact for THIS plan: ledger, briefs, review packages. Another plan's
131
directory is never yours to read or write.
132
- Check for this plan's ledger at `<workspace>/progress.md`. If its first
133
line names your plan file, tasks with a `Task <N>: complete` line are
134
DONE — do not redo them; resume at the first task without one. Their
135
commits exist in git even when your context no longer remembers making
136
them: after compaction, trust the ledger and `git log` over your own
137
recollection. A ledger whose first line names a different plan file is
138
another plan's progress: leave it and start your own, fresh.
139
- Create the ledger with its identity as the first line:
140
`# SDD ledger — plan: <plan file path>`.
141
- `git clean -fdx` will destroy the workspace (it's git-ignored scratch);
142
if that happens, recover from `git log`.
143
144
Read the plan once, note its context and Global Constraints, and create a
145
todo per task. If the plan names a Spec, read that too: the spec is the
146
authority the plan argues from, and conflicts inside the plan resolve
147
against it. A plan with no reachable spec gets a ledger note saying so —
148
rulings made without one are provisional.
149
150
**REQUIRED SUB-SKILL:** load superpowers:test-driven-development now,
151
before Task 1. It governs every step of every task below; a plan whose
152
steps already say "write the failing test first" does not exempt you
153
from reading it.
154
155
Before Task 1, scan the plan for conflicts between tasks. The plan's
156
Interfaces blocks tell you where to look: for every task that consumes
157
what an earlier task produces, one ledger row — the two tasks, what one
158
produces against what the other consumes, and what you found. Tasks that
159
share nothing get no row; a plan whose tasks share nothing gets the single
160
line `Pre-flight: no shared interfaces`. Rule on each conflict a row
161
surfaces with the spec as the binding authority, record the ruling beside
162
its row, and start Task 1. Each task's own text is checked when you read
163
its brief, not here.
164
165
## The Task Loop
166
167
Everything you print, and every tool result, stays resident in your
168
context for the rest of the session. Redirect long test output to a file
169
in the workspace and read its tail; read a brief, not the whole plan.
170
171
### 1. Take the task
172
173
- Run this skill's `scripts/task-start PLAN_FILE N` by its absolute path,
174
from the working tree you're executing in. It prints the brief
175
path and BASE (the commit the task's range is cut from) in one call.
176
Read the brief for every task, including ones you remember from setup:
177
what you remember is a summary, the brief has the exact values,
178
signatures, and test cases.
179
- Mark the task's todo in_progress.
180
181
Every tool call is a turn that re-reads your whole context. Bookkeeping
182
rides along with work — a ledger append in the same call as the commit,
183
never in a call of its own.
184
185
### 2. Work the steps
186
187
The plan's steps are already in RED-GREEN order; follow them in that
188
order under superpowers:test-driven-development, loaded at setup. A test
189
step's code is written first and run first. Watching it fail is a step,
190
not a formality — a test that passes before the implementation exists is
191
a finding about the test.
192
193
Every step that runs a command has an `Expected:` line. Run the command,
194
read its output, and compare. Three outcomes:
195
196
- **Matches.** Next step.
197
- **The code is wrong.** Use superpowers:systematic-debugging. Find the
198
cause; never patch the symptom to make the step's output match.
199
- **The plan is wrong** — a step contradicts the spec, an interface from an
200
earlier task doesn't match what this task consumes, a command that
201
cannot work. Rule on the smallest change that satisfies the spec, ledger
202
it as `Task <N>: Ruling: <finding> — <what you decided and why>`, and
203
continue. The ruling is carried, not remembered: later tasks that touch
204
the same interface read it from the ledger.
205
206
Commit as the plan's commit steps say. A task that spans several commits
207
is fine; BASE is what the review range is cut from, never `HEAD~1`.
208
209
### 3. The completion contract
210
211
Before a task's ledger line, all of the following are true, with evidence
212
in this session — not inferred from the diff looking right:
213
214
- Every test the brief names exists and ran in this task, and you read
215
the output.
216
- The final test run for the task passed — `task-done` is that run, and
217
it writes the command and result into the ledger line.
218
- Every `Expected:` line in the brief was compared against real output.
219
- Every deviation from the brief has a `Ruling:` line in the ledger.
220
221
**REQUIRED SUB-SKILL:** superpowers:verification-before-completion governs
222
the claim. If any item is missing, the task is not complete: finish it.
223
224
### 4. Complete the task
225
226
Run this skill's `scripts/task-done PLAN_FILE N BASE -- <test command>`
227
by its absolute path, from the working tree you're executing in, with the test command the brief names for the whole task. It runs the
228
tests, keeps the full output in the workspace, prints the tail, and — only
229
if they pass — appends the completion line to the ledger:
230
231
`Task <N>: complete (commits <base7>..<head7>, tests: <command> → <result>)`
232
233
A failing run records nothing; the task is not complete. When it records,
234
mark the todo complete and take the next task.
235
236
## Final Review
237
238
Run `../subagent-driven-development/scripts/review-package PLAN_FILE MERGE_BASE HEAD`
239
by its absolute path, from the working tree you're executing in (MERGE_BASE = the commit the branch started from, e.g.
240
`git merge-base main HEAD`) and review from the file it prints.
241
242
**With a subagent tool:** dispatch the reviewer on the most capable
243
available model — the whole-branch review is a judgment task — using
244
superpowers:requesting-code-review's
245
[code-reviewer.md](../requesting-code-review/code-reviewer.md), with the
246
package path, the plan and spec paths, the plan's Review Focus section
247
verbatim if it has one (the input classes and failure modes the plan's
248
tests do not exercise — the reviewer checks each deliberately), and a
249
pointer to the ledger's `Ruling:` lines so it can weigh the calls you
250
made. Specify the model
251
explicitly; an omitted model inherits the session's, which may not be the
252
most capable. This is the one fresh context the whole run buys. Do not
253
skip it, and do not replace it with your own read of the diff.
254
255
**Without a subagent tool:** read code-reviewer.md and perform that review
256
yourself against the package, as a separate pass after the last task's
257
ledger line. Write `Final review: self-review (no subagent tool)` to the
258
ledger, and say so in your final message: a self-review by the author is
259
weaker than a fresh reviewer, and your human partner decides whether that
260
is enough before merge.
261
262
Sort the findings before you act on any of them. The reviewer's severity
263
labels are advice; the gate is yours. Its "Declined to judge" list is
264
yours too: every line there is a ruling you make and ledger, exactly like
265
a plan conflict — `Final: Ruling: <behavior the reviewer set aside> —
266
<what a reasonable person using this software gets, and why that stands
267
or why it is now a finding> — <cost if wrong>`. Re-grade first, by effect: the
268
spec is a vision document, and a finding's grade is what a reasonable
269
person using this software gets if it ships, not whether the spec names
270
the input that triggers it — a reviewer who set a finding at Minor
271
because the spec was silent has graded the spec, not the effect. Then:
272
273
- **Critical and Important** enter the fix pass.
274
- **Minor** goes to the ledger as `Final: minor (deferred): <one-liner>`
275
and to your final message under "Deferred minors". Minors never enter
276
the fix pass, and never become rulings — a ruling is a decision about a
277
conflict, not a note that you declined a polish suggestion.
278
279
Fix the Critical and Important findings yourself — you are the
280
implementer here — in ONE pass. Each fix is verified by TDD, not by a
281
second reviewer: write the test that reproduces the finding, watch it
282
fail, make it pass, then run the whole suite. Record each in the ledger as
283
`Final: fixed <finding> — <test name> RED→GREEN, suite <N>/<N>`. A fix
284
without a test that failed first is not verified; a suite that is not
285
green after the pass means the pass is not over. Do not dispatch a
286
re-review: it would re-read a diff whose covering tests already answer
287
"addressed" and whose suite run already answers "broke nothing".
288
289
A finding you decide not to fix is a ruling — `Final: Ruling: <finding> —
290
<why the code stands> — <cost if wrong>` — and reaches your human partner
291
in the rulings list. There is no second fix pass.
292
293
## Finish
294
295
Before you delete anything, collect every ledger line containing
296
`Ruling:` into your final message under "Rulings I made", in the order you
297
made them, each with what it costs if wrong, and every `minor (deferred)`
298
line under "Deferred minors". Both lists are exhaustive. Your final
299
message is the only place the decisions you took on your human partner's
300
behalf — and the findings you chose not to act on — reach them.
301
302
When the final review is clean and its fixes are committed, delete this
303
plan's workspace directory — the git history is the record now. Sibling
304
directories belong to other plans; leave them alone.
305
306
Use superpowers:finishing-a-development-branch.
307
308
## Common Rationalizations
309
310
| Excuse | Reality |
311
|--------|---------|
312
| "I remember what Task N says" | You remember a summary. The brief has the exact values. Read it. |
313
| "The plan's code is right, skip watching the test fail" | A test you never saw fail proves nothing. It is one step. Run it. |
314
| "I'll run the full suite at the end instead of per step" | Per-step runs are how you learn which step broke it. The end-of-task run is the contract, not a substitute. |
315
| "The plan is wrong here, I'll just do the right thing" | Do the right thing and ledger the ruling. Unledgered deviation is a decision made in secret. |
316
| "I'll write the ledger lines after a few tasks" | Compaction does not wait for a convenient moment. One line per task, in the same message as the commit. |
317
| "Let me check in before the next task" | They chose inline to spend less. Progress prompts spend their time instead. Only the four stops stop you. |
318
| "I read my own diff carefully; the final reviewer is redundant" | Same author, same blind spots. The reviewer is the only fresh context this run buys. |
319
| "Tests should pass, the change was trivial" | "Should" is not evidence. The contract requires the command and its output. |
320
| "Subagents are slow and expensive, I'll skip the final review too" | Inline already removed the per-task reviewers. One review of the whole branch is the floor, not the ceiling. |
321
| "The reviewer said Minor, so it's Minor" | The label graded the spec's silence. Grade what the person gets. Re-grade, then gate. |
322
| "The fix is obvious, no need for a failing test first" | The failing test is the only proof the finding was real and is now gone. Without it you have a diff and a hope. |
323
| "I'll fix the minors too while I'm in there" | Every minor you fix is a test, a fix, and a suite run your partner did not ask for. Ledger them; your partner decides. |
324

© Jesse Vincent · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 6,373 prompts

More by @OpenSourceBuffGuy

See all
Website Clone Architect prompt image

Website Clone Architect

Reverse-engineers a website section by section, writes component specs, and hands them to parallel builder agents in git worktrees to rebuild it.

agent-skill, orchestrator, parallel-agents, multi-agent, plan-then-execute, web-development, frontend, codebase-analysis, scaffolding, css, html, nextjs, typescript, git, mcp, claude-code, for-developers, for-designers, long-form, advanced, technical-spec, task-decomposition, structured-output, design-systems, ui-ux, tool-use, checklist, report, vibe-coding

Italian Terrace Cafe Candid Portrait prompt image

Italian Terrace Cafe Candid Portrait

Generates a photorealistic candid shot of a woman in a white corset dress laughing at a sunny hotel terrace cafe, written as detailed JSON.

image-prompt, json-prompt, structured-output, photorealistic, portrait, woman, candid, fashion, cottagecore, natural-light, golden-hour, bokeh, summer, travel, cityscape, mountains, medium-shot, vibrant-colors, for-photographers, nano-banana, fashion-shoot, luxury

Night Street Photo With Leashed Cat prompt image

Night Street Photo With Leashed Cat

Generates a flash-lit night street photo of a blonde woman in a retro track jacket walking a hissing tabby cat on a leash.

image-prompt, json-prompt, nano-banana, structured-output, portrait, woman, animals, pet-portrait, night-scene, street-photography, candid, editorial, fashion, dramatic-lighting, photorealistic, vertical-format, medium-shot, graffiti, for-photographers, for-content-creators

1 view

Reviews

Loading reviews…

Discussion

Loading comments…