executing-plans
Skill109 starsChanged 7 months agoMITView on GitHub
This skill should be used when an approved plan (specs/NNN-slug/plan.md or docs/plans/*.md) must be executed or an interrupted Build run resumed — test-first tasks via fresh Developer subagents or inline, per-task spec-then-quality review, bounded fix loops with escalation rulings, a run ledger copied into the PR, preflight, worktree isolation, file-disjoint parallel tasks and unattended runs (the Build stage of the Agentic SDLC). Not for one test-first task on its own (use test-driven-development), writing the plan (use writing-plans), or a failure whose cause is unknown (use systematic-debugging).
190 other projects use a version of this.
Adopted by
Most recently taken up by
- gromov0737/skillstheir own version, first seen Nov 29, 2026
- hybridlabor-api/aostheir own version, first seen Nov 29, 2026
- autohandai/community-skillstheir own version, first seen Nov 29, 2026
- MorningStar0709/trae-agent-enhancementstheir own version, first seen Nov 29, 2026
- harshadmadaye/OPMtheir own version, first seen Nov 29, 2026
- theexperiencecompany/gaiatheir own version, first seen Nov 26, 2026
Used with
Projects with it also use chinese-code-review, chinese-commit-conventions and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Leodorareluctant259Skillchinese-code-review
中文代码审查规范——在保持专业严谨的同时,用符合国内团队文化的方式给出有效反馈
Also in 8 projects that use this
Leodorareluctant259Skillchinese-commit-conventions
中文 Git 提交规范 — 适配国内团队的 commit message 规范和 changelog 自动化
Also in 8 projects that use this
obraSkilldiagnosing-superpowers
Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.
Also in 21 projects that use this
AtilaMedeirosSkilldatadog-automation
Automate Datadog tasks via Rube MCP (Composio): query metrics, search logs, manage monitors/dashboards, create events and downtimes. Always search tools first for current schemas.
Also in 4 projects that use this
xfstudioSkillupstash-qstash
Upstash QStash expert for serverless message queues, scheduled jobs, and reliable HTTP-based task delivery without managing infrastructure. Use when: qstash, upstash queue, serverless cron, scheduled http, message queue serverless.
Also in 4 projects that use this
allanninalSkillalgorand-vulnerability-scanner
Scans Algorand smart contracts for 11 common vulnerabilities including rekeying attacks, unchecked transaction fees, missing field validations, and access control issues. Use when auditing Algorand projects (TEAL/PyTeal). (project, gitignored)
Also in 4 projects that use this
- +3 more from Leodorareluctant259
Other versions190 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 190
- obra/superpowers★ 314ksame name
- mdiri-ai/SoduWork★ 9.1ksame name
- jnMetaCode/superpowers-zh★ 8.6ksame name
- openai/plugins★ 8.4ksame name
- farm-fe/farm★ 5.6ksame name
- lingyired/status-trio★ 2ksame name
- GanyuanRan/Aegis★ 1.5ksame name
- pcvelz/superpowers★ 1.3ksame name
- DemonDamon/AgenticX★ 1.3ksame name
- koaning/wigglystuff★ 510same name
180 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository27 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/agentic-sdlc/references/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/graphify.mdcCursor rule
- agentic-sdlcSkill
- agent-skill-discoverySkill
- agent-skill-orchestratorSkill
- brainstormingSkill
- codebase-modernizationSkill
- deployment-pipelineSkill
- grill-meSkill
- issue-triageSkill
- multi-axis-code-reviewSkill
- operations-and-incidentsSkill
- project-contextSkill
- retrospectiveSkill
- security-hardeningSkill
- senior-solution-architectSkill
- shipping-and-handoverSkill
- skill-creatorSkill
- spec-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- test-strategySkill
- verification-gateSkill
- writing-plansSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 5 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 180 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 105
After the controller accepts a DONE, and before any task that depends on it starts:
- Very specific: line 109
Only confirmed findings get a severity: Critical (AC violated, data lost, exploitable weakness, secret, failed DoD or AC command, weakened …
- Very specific: line 131
Every task done (or closed by a split, handover or drop ruling) → run the full DoD once more on the final tree.
- Distinctive: line 186
NEVER: write production code before a failing test for it has run and its output is recorded.
- Distinctive: line 188
NEVER: start a task that depends on a task whose per-task review has not passed.
- Distinctive: line 189
NEVER: run a loop past its bound or repeat an approach the ledger records for that loop.
- Distinctive: line 192
NEVER: run tasks in parallel unless their Files are pairwise disjoint and the run is subagent, attended and enforced.
- Very specific: line 194
ALWAYS: commit with Refs: Tn AC-n (fix commits add F-Tn-k.
- Distinctive: line 196
ALWAYS: stop at an attended checkpoint and wait for an explicit continue.
“Common” is measured: kept by at least 6 in 10 of the 180 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Executing Plans
Purpose
Agentic SDLC · Build stage. Used by the Developer agent (../agentic-sdlc/agents/developer.md) for each task, by the Scrum Master (the router, ../agentic-sdlc/agents/scrum-master.md) as the controller that dispatches, routes failures and holds checkpoints, and by the Reviewer role (../agentic-sdlc/agents/reviewer.md) for the per-task review before a dependent task starts.
Execute an approved plan task by task and finish with a pull request whose every claim is backed by fresh output. Each task runs test-first, passes a two-part review (spec compliance, then quality) in a context that did not write it, and commits with Refs: Tn AC-n. Every failed round goes into the run ledger; every loop stops at a numeric bound and escalates to a named human role; no task is done without its Definition of Done (DoD) output. The ledger rows end up in the plan and the PR.
Contracts applied (never contradicted, cited by path): ../agentic-sdlc/references/tdd.md (per-task cycle), ../agentic-sdlc/references/loops.md (loop catalogue, routing, breakers B1–B6, rulings, ledger), ../agentic-sdlc/references/verification.md (evidence), ../agentic-sdlc/references/review.md (severities, receive mode, re-review), ../agentic-sdlc/references/phase-boundaries.md (context isolation), ../agentic-sdlc/references/autonomous.md (unattended runs), ../agentic-sdlc/references/rules.md and ../agentic-sdlc/references/governance.md (change protocol, authority, waivers).
When to Use
- An approved
specs/NNN-slug/plan.md(Standard or Full path) or adocs/plans/*.mdplan fromwriting-plansexists and Build has not finished. - A Build run stopped (session end, compaction, halt, escalation) and must resume from its ledger.
- The human asks to "run unattended" on an approved plan, or to run the plan with subagents or in parallel.
- The router hands over a Quick item for implementation (one cycle, no plan: §Quick path).
Not for:
- Writing or changing the plan →
writing-plans(Planner, Design stage). - The test-first discipline of one change in isolation →
test-driven-development. - Root-causing a failure after B1 →
systematic-debugging(this skill records its rounds). - The multi-lens PR review in the Test stage →
multi-axis-code-review; the evidence gate →verification-gate. - Release notes, runbook, hand-over →
shipping-and-handover. - Choosing the stage or path → the
agentic-sdlcrouter.
Progress Tracking
Show the gauge before each batch and at every checkpoint, with the task count from the plan:
[████░░░░░░░░░░░░░░░░] 20% — Step 1: Plan reviewed, preflight green · Mode: subagent · attended · enforced (run r1)
[████████░░░░░░░░░░░░] 40% — Step 4: Batch 1 · T1, T2 · 2/5 tasks done · 1 review round failed, fixed
[████████████░░░░░░░░] 60% — Step 4: Batch 2 · T3 · 3/5 done
[████████████████░░░░] 80% — Step 6: Final DoD and PR body
[████████████████████] 100% — Step 6: PR ready for human reviewWorkflow
<scripts> below is the directory holding run-ledger.mjs, preflight.mjs and plan-graph.mjs, found in Step 0.
Step 0 — Discovery
- Plan. The path the human named; otherwise glob
specs/*/plan.mdanddocs/plans/*.md, keep those whose tasks are not all committed (git log --format=%B | grep "Refs: T"), ask which one when more than one remains. None →NEEDS_CONTEXT: ask for the path or offerwriting-plans. - Scripts. Look in this order:
.agentic-sdlc/bin/(vendored byproject-context),skills/agentic-sdlc/scripts/in the repository,../agentic-sdlc/scripts/next to this skill, then**/agentic-sdlc/scripts/run-ledger.mjsunder the platform skill directories (../agentic-sdlc/references/platforms.md§2). Found andnode --version≥ 18 → enforced. Otherwise prompt-only: the same rules from the Markdown, ledger rows by hand inplan.md## Loop ledger, PR headerEnforcement: prompt-only(references/modes.md§6). - DoD. The fenced
sdlc-dodblock inAGENTS.md(lint,typecheck,test,coverage,coverage_min). Missing →NEEDS_CONTEXT; propose a block frompackage.json,Makefile,pyproject.tomlor the CI workflow and wait for the human to confirm it. - Approvals. Method plan:
node <scripts>/plan-graph.mjs <plan> --check-approvalexits 0; exit 1 (hash void or row missing) →BLOCKED, change protocol (../agentic-sdlc/references/rules.md). Adocs/plans/plan without approvals → ask once "Approve this plan for execution? (yes/no)" and record the exact words in the run report; no explicit yes → stop. - Mode. Three independent choices (
references/modes.md§1, §2, §5, §7; §3 inline, §4 unattended, §6 prompt-only when chosen): dispatch subagent (platform can start fresh agents) or inline; attention attended (default) or unattended (the human said "run unattended", entry checks in Step 7); enforcement from item 2. Parallel tasks need subagent + attended + enforced (references/parallel-tasks.md). Print the choice as one line.
Step 1 — Review the plan, isolate, start the run
- Read the plan critically before any code. Every task row has an ID, ≥ 1 AC that exists in the spec,
Blocked by, Files (tests included) and a size ≤ 1 day; each### Tnsubsection names its interface signature. A missing signature, an empty Files list, an AC the spec lacks, or two tasks in one wave editing the same file without aconflict:line from plan-graph → list them as one numbered list and wait. Never repair the plan silently: a plan edit voids the Design sign-off. - Isolate (
references/resume-and-isolation.md§1). Attended →git switch -c feat/NNN-slugor confirm the current feature branch. Unattended →run-ledger start --mode unattendedcreates the worktree. Never commit on the default branch. RecordBASE=$(git rev-parse HEAD). - Start the ledger and preflight (enforced):
node <scripts>/run-ledger.mjs start --run r1 --plan specs/001-csv-export/plan.md --mode attended --base "$BASE"
node <scripts>/preflight.mjs --run r1 --plan specs/001-csv-export/plan.md --mode attendedPreflight checks Node, a clean tree, a non-default branch, isolation, the DoD tools, approvals, the ledger and a green baseline DoD. Exit 1 → fix the named check or report BLOCKED with it; task --state started is refused until a preflight passes. A red baseline is never "fixed" by the first task: report it and wait. Acceptance tests stay on at/NNN-slug during Build; never merge that branch during Build: it joins the feature branch only after the Test-stage green run.
- Order.
node <scripts>/plan-graph.mjs <plan> --from-git "$BASE"..HEADprintswaves:,conflict:lines andfrontier (max 3):. Without the script: table order, skipping tasks whoseBlocked bytasks lack aRefs: Tncommit.
Step 2 — Run one task (the Developer)
Subagent mode: dispatch a fresh Developer with prompts/developer.md filled for the task (row, subsection, AC text, Files, DoD block, BASE, run ID; a docs task goes to the Tech Writer with the same brief). Inline mode: run the same brief here after re-reading the task row and run-ledger status --run r1. The cycle follows ../agentic-sdlc/references/tdd.md:
run-ledger task --run r1 --task T3 --state started(sequential mode: the Developer writes its own events; parallel waves: the controller writes them).- Red. One test named after its AC (
AC-4 more than 50,000 rows returns 422); run it; it fails for the expected reason (an assertion on the behaviour, or a missing module or symbol named in the task signature; never a syntax error, an import typo or a setup crash,../agentic-sdlc/references/tdd.mdStep 1); paste the output.run-ledger red --run r1 --task T3 --test "AC-4 more than 50,000 rows returns 422" --signature "expected 200 to equal 422". A test that passes on its first run proves nothing: rewrite it. A task with no executable behaviour records--no-red "<reason>"at done. - Green. Minimal code; run the test;
round --run r1 --task T3 --loop red-green --result pass. - Refactor with the tests green; mocks only at process boundaries; no abstraction without ≥ 2 call sites.
- Scope guard. A file outside Files → stop,
NEEDS_CONTEXT: file <path> not in Files. > 3 such files, a manifest or lockfile change not in Files, or a path-bound overrun → stop, re-plan, new approval.run-ledger check --run r1at each task boundary detects these plus secrets and approval drift. - Exit. Full DoD block once, on a committed clean tree; record AC evidence (
evidence record --ac AC-n -- <cmd>,../agentic-sdlc/references/verification.md§4). Commit:
feat(export): stream rows with the 50,000-row limit
Refs: T3 AC-1 AC-4- Report with one status (
prompts/developer.md§Report, ≤ 15 lines):DONE·DONE_WITH_CONCERNS·BLOCKED·NEEDS_CONTEXT·CANNOT_VERIFY. ADONEis a claim: the controller re-runs the AC test, comparesgit diff --stat "$BASE"..HEADwith Files and checks the red event before accepting it.
Step 3 — Fix loop: every failure is a round
Load references/fix-loop-and-escalation.md §1–§8, §10 at the first failed round (§9 on the Quick path, §11 without Node). Before each round read the ledger (run-ledger status --run r1): round number per loop, signatures seen, approaches tried. Then:
- Classify the cause in this order:
spec→design→plan→env→test→code→unknown. The cause routes the work:code/teststay in Build;env→ preflight must pass again before the next task start;spec→ Specify (Product Owner);design/plan→ Design (Tech Lead); a 2ndunknownon the task → treated asdesign. A debug round records the cause class of its hypothesis (code,testorenv), neverunknown. - Choose an approach not already tried in this loop (a repeat is refused, exit 1). Fix inside Files.
- Scoped re-check: the failing check plus the tests mapped to each touched file in
docs/codemap.mdor the plan's## Impact; nothing mapped → full suite. The full DoD runs at loop exit only. - Record:
round --run r1 --task T3 --loop build-test --result fail --signature "export.test AC-4: expected 200 to equal 422" --cause code --tried "count rows before opening the stream".
Bounds and breakers (failed rounds per loop per task; exit 3 = stop): ../agentic-sdlc/references/loops.md §1 (red-green 3 → debug loop, automatic; debug 3 refuted hypotheses; build-test 5, lower with budgets.max_rounds; review-fix 3) and §7 (B1–B6, owners and allowed rulings; anti-thrash B2 in §6).
At exit 3, print the five-line escalation brief run-ledger prints, add one line of verifiable evidence, end the turn and wait. Record the human's words: run-ledger ruling --run r1 --task T3 --decision split --by "Architect: M. Silva" --note "count and stream as separate tasks". Allowed rulings per breaker and their effect (split → Planner + new Design sign-off; drop → spec revision; reroute → the stage named by the cause): references/fix-loop-and-escalation.md §5–§7.
Step 4 — Per-task review (spec compliance, then quality)
After the controller accepts a DONE, and before any task that depends on it starts:
- Dispatch a fresh reviewer with
prompts/task-reviewer.md: the diff<BASE>..<HEAD>for the task, the task row, the AC text, Files and the AC test commands. Never the Developer's reasoning. Inline: a pass labelledself-reviewfrom a cleared context. - Pass 1 — spec compliance: each AC has a test asserting its Then clause; the code implements it; nothing is Missing or Misunderstood (Critical) and nothing Extra (Important). Pass 2 — quality: correctness on edge cases, test anti-patterns A1–A14, security on touched code, signature versus plan.
- Only
confirmedfindings get a severity: Critical (AC violated, data lost, exploitable weakness, secret, failed DoD or AC command, weakened check), Important, Minor. Finding IDsF-Tn-k. - Record the round:
round --run r1 --task T3 --loop review-fix --result fail --signature "F-T3-1 filename from q unescaped" --cause code --tried "initial implementation a1b2c3d"(fail = ≥ 1 confirmed Critical open), else--result pass. - Fix round: the same Developer when the platform can continue it, else a fresh one with the fix-round variant of
prompts/developer.md; receive mode (verify, thenfixed <sha>·rejected <evidence>·deferred <issue>; Critical never deferred); commitsRefs: T3 AC-4 F-T3-1. - Re-review with
prompts/re-review.mdon<FIX_BASE>..HEAD: each fixed findingresolvedorstill applies, regressions in the delta only; a delta > 30% of the task diff → full task review. Record the next review-fix round. - PASS with open Important findings → fix inside Files, or close the task
DONE_WITH_CONCERNSand copy each into the PR## Review triage. Minor → deferred list.
Per-task review rounds count on the task; Test-stage review rounds count on PR (the run is finished by then), each with its own review-fix bound of 3 before B4. Finding IDs name the task a PR finding cites.
Then run-ledger task --run r1 --task T3 --state done --commit <sha> (refused without a red event or --no-red, or after a failed last round), and copy the new run-ledger render --run r1 rows into plan.md ## Loop ledger (excluded from the plan hash; rows are appended, never edited).
Step 5 — Batches, parallel tasks and checkpoints
Parallel when eligible (references/parallel-tasks.md §1), otherwise sequential. Eligible means every condition holds: subagent + attended + enforced, ≤ 3 frontier tasks with pairwise disjoint Files (tests, fixtures, manifests and lockfiles included), no interface edge and no wave conflict between them. Each task gets its own worktree from the feature branch tip (git worktree add ../<repo>-001-T4 -b feat/001-csv-export-T4); all Developers are dispatched in one step; the controller is the only ledger writer during the wave. Integration: merge task branches into the feature branch in task-ID order with git merge --no-ff, full DoD after each merge; a conflict or a red DoD stops the wave and the rest runs sequentially. Unattended runs never run tasks in parallel.
Sequential. Take the next frontier task, Steps 2–4, repeat. A batch is ≤ 3 tasks.
Checkpoint (attended). After each batch, or each task when the human asked or the task touches a risk trigger: show the gauge, each task's status line, the last ≤ 20 lines of the DoD output and the new ledger rows; ask Batch 2 done: T3 committed (2 review rounds). Continue with T4, T5? and end the turn. Silence is not a "continue". Feedback that changes a task, Files or an AC is a plan change: change protocol, plan-graph --write, new Design sign-off, then resume.
Context hygiene. Inline at ≥ 70% context or ≥ 2 tasks done in one context → finish the green run, write the ledger rows, Clear or write specs/NNN-slug/handoff.md (../agentic-sdlc/references/phase-boundaries.md).
Step 6 — Finish the branch
- Every task
done(or closed by asplit,handoverordropruling) → run the full DoD once more on the final tree; stale evidence (fingerprint differs) is re-run, never reused. run-ledger finish --run r1→DONE(exit 0) ·BLOCKED(exit 1) ·NEEDS_HUMAN(exit 3); finish is terminal, so with tasks still open and no halt it refuses unless--confirm-blockedis passed; commit the archivedspecs/NNN-slug/run-ledger.jsonlaschore: archive run ledger r1. Afterfinishthe run accepts only Test-stageround --task PR --loop review-fixand its rulings; each re-archives the ledger.- Write the PR body from
../agentic-sdlc/templates/pr-body.md: Summary, Verification (one row per AC: command, exit code, fingerprint;CANNOT_VERIFYrows; Build-time rows, re-run at the head after theat/NNN-slugmerge), Trace, the fullrun-ledger render --run r1table under### Loop ledger(rulings and halts included),DONE_WITH_CONCERNSitems under## Review triage, everyself-reviewlabel, Waivers. - Attended: push the feature branch and open the PR only after the human says so. Never merge into the default branch, deploy or tag.
at/NNN-slugjoins the feature branch in the Test stage, once green (../agentic-sdlc/references/verification.md§2). Hand off to the Test stage (multi-axis-code-review); its findings return in receive mode as--task PRreview-fix rounds (the run is finished), with finding IDs naming the task they cite. - Report: PR link or branch, run result, tasks done, failed rounds per loop, rulings, open concerns. Clean up worktrees only after the rulings and evidence are in the PR (
references/resume-and-isolation.md§7).
Step 7 — Unattended mode
Entry only on the words "run unattended" for a named specs/NNN-slug/plan.md on the Standard or Full path, with valid Specify and Design sign-offs and enforced mode. Anything missing → REFUSED with the missing items named; stay attended. Load ../agentic-sdlc/references/autonomous.md before the first command; its §9 run-driver.mjs runs one fresh session per task.
node <scripts>/run-ledger.mjs start --run r2 --plan specs/007-rate-limit/plan.md --mode unattended
cd ../<repo>-sdlc-r2 && node <scripts>/preflight.mjs --run r2 --plan specs/007-rate-limit/plan.md --mode unattendedSequential, graph order. Per task: check → task started → red → rounds → per-task review → DoD → commit → task done → check. No checkpoints; the run stops at the first halt (run-ledger halt --reason): loop-bound, path-escalation, spec-design-cause, dependency-added, secret-detected, out-of-plan-files (> 3 files; files in the acceptance-tests.md Map count as in-plan), red-baseline, approval-void, budget (§4 of that file) or authority (push, merge, deploy, release, tag, secret access, destructive command). Halt → NEEDS_HUMAN, stop at once, print the brief. Never push. finish writes the run result; the human reviews, pushes and opens the PR.
Step 8 — Resume
Load references/resume-and-isolation.md §3. New session, compaction or resolved halt: run-ledger resume --run r1 (with --ack "<name>: <decision>" after a halt, plus the task ruling for a breaker halt) → preflight --run r1 … → plan-graph --from-git "$BASE"..HEAD to cross-check ledger and trailers → continue at the first task not done. Ledger and git disagree → NEEDS_HUMAN. Without a ledger: done = tasks with a Refs: Tn commit whose AC test passes now; rounds = the plan's Loop ledger rows. Dirty tree after a crash → save a WIP patch under .agentic-sdlc/runs/<id>/, restore, preflight, re-apply (§5 of the reference). Attended: confirm in one line, T1–T3 done, T4 open with 2 failed build-test rounds. Resume at T4?
Quick path
No plan.md: one cycle driven by the issue's acceptance test, inline, attended. Commits carry Refs: AC-n. The run ledger is optional; without it, keep the rows by hand in the PR ### Loop ledger with Task = AC-n. Same bounds and breakers. A risk trigger or a growing scope → stop and ask the router to escalate the path.
Error Handling
| Error | Action |
| Plan not found | List specs/*/plan.md and docs/plans/*.md; ask for the path |
Approval hash void (plan-graph --check-approval exit 1) | BLOCKED; change protocol, new approval row |
| Preflight FAIL | Report the failing check; fix the environment; re-run preflight |
| Subagent silent 30 minutes | BLOCKED: agent lost; keep its worktree; re-dispatch once with "inspect git status first" |
| Script exit 2 (corrupt ledger, bad input) | NEEDS_HUMAN; repair from git history; never hand-edit events |
| Script exit 3 (bound, halt) | Print the brief; end the turn; record the ruling before any further round |
| Merge conflict in a parallel wave | git merge --abort; remaining tasks sequential; cause plan to the Planner |
Close. End with the status.mjs --next output.
Anti-rationalization
| Thought | Reality |
| "Skip the per-task review, the PR review will catch it" | A dependent task built on an unreviewed one multiplies the rework; the per-task gate exists so the PR review finds little |
| "The subagent said DONE, move on" | A report is testimony; re-run the AC test and read the diff stat first |
| "One more round will fix it" | The bound is the count of failed rounds in the ledger, not a feeling; at the bound, escalate |
| "Same error, but this fix is different" | Same normalized signature twice = B2; the approach is not converging |
| "Merge all the task branches, run the DoD once" | One DoD run per merge shows which task broke the build |
| "These tasks barely share a file" | Shared file, manifest or lockfile → same wave forbidden |
| "The plan is slightly wrong; fix it inline" | A plan edit voids the Design sign-off; change protocol first |
"Lower coverage_min this once" | Never lowered; add tests or ask for a waiver |
| "The reviewer is the same session, call it independent" | Inline review is labelled self-review in every place it appears |
Critical Rules
- NEVER write production code before a failing test for it has run and its output is recorded.
- NEVER report a task
DONEwithout DoD output bound to the current fingerprint, or accept a subagent'sDONEwithout re-running its AC test. - NEVER start a task that depends on a task whose per-task review has not passed.
- NEVER run a loop past its bound or repeat an approach the ledger records for that loop; at exit 3, escalate and wait for a recorded ruling.
- NEVER weaken, skip or delete a test, assertion, lint rule, threshold or
coverage_min; never edit acceptance tests. - NEVER edit
spec.mdorplan.mdcontent during Build without the change protocol; only## Loop ledgerrows are appended. - NEVER run tasks in parallel unless their Files are pairwise disjoint and the run is subagent, attended and enforced; never in unattended mode.
- NEVER let a Developer or reviewer start subagents; never build on the default branch; never merge, deploy, tag or read secrets; never push in unattended mode.
- ALWAYS commit with
Refs: Tn AC-n(fix commits addF-Tn-k; Quick usesRefs: AC-n). - ALWAYS copy ledger rows into the plan at each task exit and into the PR
### Loop ledgerat the end. - ALWAYS stop at an attended checkpoint and wait for an explicit continue.
Example Usage
- Attended subagent build. "Execute
specs/001-csv-export/plan.md." → scripts found, preflight green onfeat/001-csv-export,Mode: subagent · attended · enforced (run r1). plan-graph: wavesW1 T1 T2 · W2 T3 · W3 T4 T5. T1 and T2 have disjoint Files → two Developers in parallel worktrees; both reportDONE; per-task reviews pass; merged with--no-ffin ID order, DoD green after each merge. Checkpoint: "Batch 1 done: T1, T2 committed. Continue with T3?" - Review round fails, then passes. T3's reviewer confirms F-T3-1 (Critical: Content-Disposition filename built from the
qfilter, unescaped) → review-fix round 1fail, causecode; the Developer fixes it inRefs: T3 AC-1 F-T3-1; re-review on the fix delta:resolved, no regressions → round 2pass;task done; rows copied into the plan. - Pressure: "skip review, just merge all tasks". → Refuse the shortcut and name the cost: T4 and T5 depend on reviewed work, and merging is the human's step after the Test sign-off. Offer what is allowed: per-batch instead of per-task checkpoints, parallel T4/T5 (disjoint Files), and a single PR at the end. Per-task reviews still run; no merge is performed.
- Anti-thrash. T3's DoD fails twice with
export.test AC-4: expected 200 to equal 422→roundexits 3 with B2 and the brief; the turn ends; the Architect answers "split counting into its own task" →ruling --decision split --by "Architect: M. Silva"→ the Planner splits T3 into T6/T7,plan-graph --write, new Design sign-off, new run r2. - Unattended run and resume. "Run unattended on 007-rate-limit." → approvals valid → worktree
../app-sdlc-r2onsdlc/007-r2; after T4,checkfindspackage.jsonchanged outside Files → haltdependency-added,NEEDS_HUMAN. Next morning the Tech Lead approves the dependency note;resume --run r2 --ack "J. Park: lodash 4.17.21 approved"→ preflight → T5 continues.
References
| File | Load when |
references/modes.md §1, §2, §5, §7 | Step 0 mode choice; §3, §4 or §6 when a run is inline, unattended or prompt-only, or switches mode mid-run |
references/fix-loop-and-escalation.md §1–§8, §10 | The first failed round of a task; every review round; any run-ledger exit 3; writing a brief or recording a ruling |
references/resume-and-isolation.md §1, §2, §7, §8 | Step 1 isolation; cleanup and end of Build; §3–§6 on any resume, compaction or halt, or a dirty tree at preflight |
references/parallel-tasks.md | Two or more frontier tasks in an attended subagent run |
prompts/developer.md | Each task dispatch and each fix round |
prompts/task-reviewer.md | Each per-task review after an accepted DONE |
prompts/re-review.md | Each review round after fixes |
../agentic-sdlc/references/loops.md · tdd.md · review.md · autonomous.md | The contracts; on any doubt about a bound, a status or a severity |
../agentic-sdlc/templates/plan.md · pr-body.md | Reading the Tasks table; writing the Loop ledger and the PR |
Sources: batch execution, fresh-subagent dispatch, two-verdict task review and bounded fix loops adapted from Superpowers executing-plans and subagent-driven-development (MIT, Jesse Vincent); incremental implementation from Addy Osmani's agent-skills (MIT); HALT and resume-by-status from BMad Method dev story (MIT); task-graph frontier and worktrees from Matt Pocock's skills (MIT). Full table in README.md. Text is original.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

