/agentic-sdlc:executing-plansfrom agentic-sdlc
Executes approved plans task-by-task using test-first discipline, per-task spec/quality review, bounded fix loops with escalation, and run ledger tracking. For the Build stage of Agentic SDLC.
Ships in agentic-sdlc. 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.
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).
specs/NNN-slug/plan.md (Standard or Full path) or a docs/plans/*.md plan from writing-plans exists and Build has not finished.Not for:
writing-plans (Planner, Design stage).test-driven-development.systematic-debugging (this skill records its rounds).multi-axis-code-review; the evidence gate → verification-gate.shipping-and-handover.agentic-sdlc router.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 review
<scripts> below is the directory holding run-ledger.mjs, preflight.mjs and plan-graph.mjs, found in Step 0.
specs/*/plan.md and docs/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 offer writing-plans..agentic-sdlc/bin/ (vendored by project-context), skills/agentic-sdlc/scripts/ in the repository, ../agentic-sdlc/scripts/ next to this skill, then **/agentic-sdlc/scripts/run-ledger.mjs under the platform skill directories (../agentic-sdlc/references/platforms.md §2). Found and node --version ≥ 18 → enforced. Otherwise prompt-only: the same rules from the Markdown, ledger rows by hand in plan.md ## Loop ledger, PR header Enforcement: prompt-only (references/modes.md §6).sdlc-dod block in AGENTS.md (lint, typecheck, test, coverage, coverage_min). Missing → NEEDS_CONTEXT; propose a block from package.json, Makefile, pyproject.toml or the CI workflow and wait for the human to confirm it.node <scripts>/plan-graph.mjs <plan> --check-approval exits 0; exit 1 (hash void or row missing) → BLOCKED, change protocol (../agentic-sdlc/references/rules.md). A docs/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.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.Blocked by, Files (tests included) and a size ≤ 1 day; each ### Tn subsection 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 a conflict: 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.references/resume-and-isolation.md §1). Attended → git switch -c feat/NNN-slug or confirm the current feature branch. Unattended → run-ledger start --mode unattended creates the worktree. Never commit on the default branch. Record BASE=$(git rev-parse HEAD).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 attended
Preflight 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.
node <scripts>/plan-graph.mjs <plan> --from-git "$BASE"..HEAD prints waves:, conflict: lines and frontier (max 3):. Without the script: table order, skipping tasks whose Blocked by tasks lack a Refs: Tn commit.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).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.md Step 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.round --run r1 --task T3 --loop red-green --result pass.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 r1 at each task boundary detects these plus secrets and approval drift.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
prompts/developer.md §Report, ≤ 15 lines): DONE · DONE_WITH_CONCERNS · BLOCKED · NEEDS_CONTEXT · CANNOT_VERIFY. A DONE is a claim: the controller re-runs the AC test, compares git diff --stat "$BASE"..HEAD with Files and checks the red event before accepting it.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:
spec → design → plan → env → test → code → unknown. The cause routes the work: code/test stay in Build; env → preflight must pass again before the next task start; spec → Specify (Product Owner); design/plan → Design (Tech Lead); a 2nd unknown on the task → treated as design. A debug round records the cause class of its hypothesis (code, test or env), never unknown.docs/codemap.md or the plan's ## Impact; nothing mapped → full suite. The full DoD runs at loop exit only.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.
After the controller accepts a DONE, and before any task that depends on it starts:
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 labelled self-review from a cleared context.confirmed findings get a severity: Critical (AC violated, data lost, exploitable weakness, secret, failed DoD or AC command, weakened check), Important, Minor. Finding IDs F-Tn-k.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.prompts/developer.md; receive mode (verify, then fixed <sha> · rejected <evidence> · deferred <issue>; Critical never deferred); commits Refs: T3 AC-4 F-T3-1.prompts/re-review.md on <FIX_BASE>..HEAD: each fixed finding resolved or still applies, regressions in the delta only; a delta > 30% of the task diff → full task review. Record the next review-fix round.DONE_WITH_CONCERNS and 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).
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).
done (or closed by a split, handover or drop ruling) → 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-blocked is passed; commit the archived specs/NNN-slug/run-ledger.jsonl as chore: archive run ledger r1. After finish the run accepts only Test-stage round --task PR --loop review-fix and its rulings; each re-archives the ledger.../agentic-sdlc/templates/pr-body.md: Summary, Verification (one row per AC: command, exit code, fingerprint; CANNOT_VERIFY rows; Build-time rows, re-run at the head after the at/NNN-slug merge), Trace, the full run-ledger render --run r1 table under ### Loop ledger (rulings and halts included), DONE_WITH_CONCERNS items under ## Review triage, every self-review label, Waivers.at/NNN-slug joins 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 PR review-fix rounds (the run is finished), with finding IDs naming the task they cite.references/resume-and-isolation.md §7).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 unattended
Sequential, 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.
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?
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 | 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.
| 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 |
DONE without DoD output bound to the current fingerprint, or accept a subagent's DONE without re-running its AC test.coverage_min; never edit acceptance tests.spec.md or plan.md content during Build without the change protocol; only ## Loop ledger rows are appended.Refs: Tn AC-n (fix commits add F-Tn-k; Quick uses Refs: AC-n).### Loop ledger at the end.specs/001-csv-export/plan.md." → scripts found, preflight green on feat/001-csv-export, Mode: subagent · attended · enforced (run r1). plan-graph: waves W1 T1 T2 · W2 T3 · W3 T4 T5. T1 and T2 have disjoint Files → two Developers in parallel worktrees; both report DONE; per-task reviews pass; merged with --no-ff in ID order, DoD green after each merge. Checkpoint: "Batch 1 done: T1, T2 committed. Continue with T3?"q filter, unescaped) → review-fix round 1 fail, cause code; the Developer fixes it in Refs: T3 AC-1 F-T3-1; re-review on the fix delta: resolved, no regressions → round 2 pass; task done; rows copied into the plan.export.test AC-4: expected 200 to equal 422 → round exits 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.../app-sdlc-r2 on sdlc/007-r2; after T4, check finds package.json changed outside Files → halt dependency-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.| 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.
README.md (opens in a new tab)evals/evals.json (opens in a new tab)evals/trigger-eval.json (opens in a new tab)prompts/developer.md (opens in a new tab)prompts/re-review.md (opens in a new tab)prompts/task-reviewer.md (opens in a new tab)references/fix-loop-and-escalation.md (opens in a new tab)references/modes.md (opens in a new tab)references/parallel-tasks.md (opens in a new tab)references/resume-and-isolation.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
agentic-sdlc, build-stage, plan-execution, test-first, task-management
npx claudepluginhub ericgandrade/agentic-sdlc --plugin agentic-sdlc23 skills in this plugin
/agentic-sdlcThis skill should be used when the user wants to run software work end to end through the Agentic SDLC (Discover, Specify, Design, Build, Test, Release, Operate) with AI agents and four human sign-offs — starting a feature, bug fix or modernization the disciplined way, asking which stage or step comes next, resuming from specs/ artifacts, choosing the Quick, Standard or Full path, or handling a requirement change after Specify sign-off (deciding where it re-enters). It hands each stage to its stage skill and is not for one stage task asked on its own, such as writing a spec, writing or executing a plan, implementing or debugging a task, or reviewing a PR (use that stage skill), nor for non-software multi-skill plans (use agent-skill-orchestrator)./agent-skill-discoveryThis skill should be used when the user wants to see all installed plugins, agents, skills, and MCP servers, and also inspect the current repository for local agents, skills, and MCP configuration. Scans the environment and presents a structured catalog of available resources. Works across all AI CLI platforms (Claude Code, GitHub Copilot, Gemini CLI, OpenCode, OpenAI Codex)./agent-skill-orchestratorThis skill should be used when the user needs to solve a complex task and wants a detailed execution plan using the best available resources. Analyzes user requirements, discovers available plugins/agents/skills/MCPs, performs intelligent matching with confidence scoring, and creates strategic execution plans with alternatives. Works across all AI CLI platforms. Not for running software delivery through the Agentic SDLC stages (use agentic-sdlc), writing an implementation plan from a spec (use writing-plans), or only listing installed resources (use agent-skill-discovery)./brainstormingThis skill should be used when the user needs pre-implementation ideation before a spec or code — framing the real problem behind a request, generating and comparing genuinely different approaches with named techniques, scoring them, auditing assumptions, running a throwaway UI or logic prototype when paper cannot settle a question, and agreeing a discovery brief that feeds the spec; also for standalone ideation such as names, positioning or programs (the Discover stage of the Agentic SDLC). Not for intake, duplicate search or path scoring of a new request (use issue-triage), comparing technical designs for an approved spec (use senior-solution-architect), or writing the spec itself (use spec-driven-development)./codebase-modernizationThis skill should be used when the user needs to change or modernize existing code safely — inventorying a legacy codebase and its dependencies, scoring components by value and risk, deciding to retire, retain, rehost, upgrade, re-platform, refactor or migrate, researching how the code works today with cited evidence, pinning current behaviour with characterization tests (CHAR-n) before touching untested code, designing expand-contract schema changes or a strangler cutover, slicing the migration into ordered slices for writing-plans, or writing a migration runbook (the Specify and Design stages of the Agentic SDLC on brownfield code). Not for first entry into a repository or its code map (use project-context), designing a new system (use senior-solution-architect), or web research (use deep-research from knowledge-superskills, when installed)./deployment-pipelineThis skill should be used when a project needs CI/CD gates that enforce the Agentic SDLC — discovering the existing pipeline, mapping the sdlc-dod Definition of Done and the spec-lint/plan-graph approval checks to required CI jobs, setting branch protection, CODEOWNERS and production environment reviewers so the Test and Release sign-offs cannot be bypassed, proving each gate blocks a bad change, choosing a deployment strategy, rehearsing the rollback in staging, and deciding advance, hold or roll back at each rollout stage (the Release stage of the Agentic SDLC). Not for the PR, release notes, runbook or hand-over (use shipping-and-handover), writing the sdlc-dod block (use project-context), or watching production after rollout and running incidents (use operations-and-incidents).Other plugins' skills for the same job