/herdrpowers:executing-plansfrom herdrpowers
Executes an approved plan inline within the current session, running tasks sequentially with TDD per task and a single final branch review gate.
Ships in herdrpowers. 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; scripts run unread.
Placeholder resolution: <KEY> placeholders in this file (such as <BASE_BRANCH>) resolve from the Herdrpowers Configuration section of the repository's CLAUDE.md / AGENTS.md. If that section is missing, initialize it with the pack's init workflow (/herdrpowers:init on Claude Code plugin installs; commands/init.md otherwise).
Execute the plan yourself, task by task, in this session: no implementer pane per task, no reviewer per task. One whole-branch review gate at the end, through its resolved profile/mode route.
Why inline: Separate delegated tasks and reviews each rebuild context. Eligible inline execution uses one implementing session plus the final gate. What it gives up is a fresh session per task and a second pair of eyes per task. This skill keeps what those two things bought, by other means: the brief is the spec, the ledger is your memory, TDD is the per-task gate, and the final review checks the branch. Its independence depends on its route; permitted profile self-review is reported honestly.
Without a selected profile, inline overrides work routes, never the review gate. Every task,
test, and fix in this plan runs here, whatever complex-coding,
simple-coding, test-authoring, review-fixes, or chores resolve to in
the merged configuration (.herdrpowers/config.yaml over
orchestration/roles.yaml) — that is what inline means. The final review
still resolves from assignments.final-branch-review.
With a selected profile, preserve its resolved modes. Read
orchestration and its profiles contract
before choosing inline execution. Use this skill for work resolved to the
owner session; only the active owner may choose optional subagents there.
Required delegate routes run through pane-driven-development instead:
separate targets use reset-backed workers, while owner targets require fresh
subagents, including a solo coder. Missing panes or subagent capability cannot
turn mandatory delegation into inline work. No worker may re-delegate.
Even when implementation runs inline in the owner session, rulings and
final-review adjudication still follow the resolved decision-making assignment
(decision-maker).
Core principle: The plan already did the thinking. Execute it exactly, prove each step with a test you watched fail and then pass, and leave a record that survives your own forgetting.
Narration: between tool calls, narrate at most one short line — the ledger and the tool results carry the record.
Continuous execution: Do not pause to check in with your human partner between tasks. Inline execution exists to spend less, not to ask "should I continue?" after every task. Execute all tasks from the plan without stopping.
Rulings, not stalls. Conflicts, ambiguities, plan defects — resolve them
through the resolved decision-making assignment (decision-maker).
The spec is the binding authority, the plan is its argument, and the
decision-maker settles what neither answers (your judgment directly in
mode: orchestrator, or a self-contained read-only decision brief per
decision-maker-brief.md
in mode: delegate). Record every decision in the ledger as
Ruling: <what was decided> — <why> — <what it costs if wrong>, and keep
going. Deviating from the plan without a ledgered ruling is a decision made
in secret.
The four general stops are: an irreversible or destructive operation; a security-sensitive action; a side effect outside this worktree that norms say you ask about first (a merge, a push to a shared branch, a publish); and a plan so broken that every path forward is a guess. For those, stop and ask. A profile-owner mismatch also requires the reception unused-versus-relay answer before handoff or startup; a ruling cannot waive it.
A ruling never rewrites the run's terms. It resolves what the spec and
the plan left open — it does not re-enable a gate the repository disabled,
disable one it enabled, widen delegation.pane_scope, or touch
.herdrpowers/config.yaml. Those are the user's declaration, resolved once
at start.
HERDR_ENV is unset, or no
idle agent pane exists inside delegation.pane_scope. This legacy
no-profile fallback does not override selected-profile delegation.A fully specified plan makes inline execution transcription plus testing. Explain the per-task review it gives up and how the final gate will run under the resolved profile/mode; do not promise an independent reviewer for a permitted self-review route.
Prefer pane-driven-development when your human partner wants a review gate on every task, or when the plan is long enough that its later tasks would run on a compacted context. Inline execution over a long plan still works — the ledger is what makes it recoverable — but the last tasks get the least of you.
Inside a workflow (/execute, /full_cycle, and the rest, degrading to
inline), run Setup and the Task Loop here, then return to the workflow: its
documentation, verification, and final-review steps follow in its own
order. When its final-review step comes, run it as this skill's Final
Review describes, and put Finish's lists in the workflow's final report.
digraph process {
rankdir=TB;
subgraph cluster_per_task {
label="Per Task";
"task-start: brief + BASE; read the brief" [shape=box];
"Work the steps in order: TDD, run every verification, read every output" [shape=box];
"Step output matches plan's Expected?" [shape=diamond];
"Plan wrong? Rule and ledger. Code wrong? systematic-debugging" [shape=box];
"Commit as the plan's commit steps say" [shape=box];
"Completion contract met?" [shape=diamond];
"task-done: run tests, ledger the result; mark todo complete" [shape=box];
}
"Setup: worktree, workspace + ledger, read plan + spec, pre-flight scan" [shape=box];
"More tasks remain?" [shape=diamond];
"Final whole-branch review (final-branch-review gate)" [shape=box];
"Re-grade, then: Critical/Important → ONE fix pass, each fix RED→GREEN + green suite; Minor → ledger" [shape=box];
"Final review clean: delete this plan's workspace" [shape=box];
"Use finishing-a-development-branch" [shape=box style=filled fillcolor=lightgreen];
"Setup: worktree, workspace + ledger, read plan + spec, pre-flight scan" -> "task-start: brief + BASE; read the brief";
"task-start: brief + BASE; read the brief" -> "Work the steps in order: TDD, run every verification, read every output";
"Work the steps in order: TDD, run every verification, read every output" -> "Step output matches plan's Expected?";
"Step output matches plan's Expected?" -> "Plan wrong? Rule and ledger. Code wrong? systematic-debugging" [label="no"];
"Plan wrong? Rule and ledger. Code wrong? systematic-debugging" -> "Work the steps in order: TDD, run every verification, read every output";
"Step output matches plan's Expected?" -> "Commit as the plan's commit steps say" [label="yes, last step"];
"Commit as the plan's commit steps say" -> "Completion contract met?";
"Completion contract met?" -> "Work the steps in order: TDD, run every verification, read every output" [label="no - finish the task"];
"Completion contract met?" -> "task-done: run tests, ledger the result; mark todo complete" [label="yes"];
"task-done: run tests, ledger the result; mark todo complete" -> "More tasks remain?";
"More tasks remain?" -> "task-start: brief + BASE; read the brief" [label="yes"];
"More tasks remain?" -> "Final whole-branch review (final-branch-review gate)" [label="no"];
"Final whole-branch review (final-branch-review gate)" -> "Re-grade, then: Critical/Important → ONE fix pass, each fix RED→GREEN + green suite; Minor → ledger";
"Re-grade, then: Critical/Important → ONE fix pass, each fix RED→GREEN + green suite; Minor → ledger" -> "Final review clean: delete this plan's workspace";
"Final review clean: delete this plan's workspace" -> "Use finishing-a-development-branch";
}
Ensure the work happens in an isolated workspace: use using-git-worktrees
to create one or verify the existing one. Never start implementation on
<BASE_BRANCH> (or main/master) without your human partner's explicit
consent.
Conversation memory does not survive compaction. An inline executor that loses its place re-implements tasks whose commits already exist — the same failure as an orchestrator re-delegating them, paid for in your own context. Track progress in a ledger file, not only in todos. Harness todos are a live view; the ledger is the record.
The workspace and ledger are shared with pane-driven-development — same directory, same format — so a plan can change executors mid-flight and the new one resumes from the same ledger.
bash ../pane-driven-development/scripts/pdd-workspace PLAN_FILE by its absolute path, from the working tree you're executing in — it
prints the plan's git-ignored directory (under
<repo-root>/.herdrpowers/pdd/), home to every artifact for THIS plan:
ledger, briefs, review packages. Another plan's directory is never yours
to read or write.<workspace>/progress.md. If its first
line names your plan file, tasks with a Task <N>: complete line are
DONE — do not redo them; resume at the first task without one. Their
commits exist in git even when your context no longer remembers making
them: after compaction, trust the ledger and git log over your own
recollection. A ledger whose first line names a different plan file is
another plan's progress: leave it and start your own, fresh.# PDD ledger — plan: <plan file path>.git clean -fdx will destroy the workspace (it's git-ignored scratch);
if that happens, recover from git log.Read the plan once, note its context and Global Constraints, and create a todo per task. If the plan names a Spec, read that too: the spec is the authority the plan argues from, and conflicts inside the plan resolve against it. A plan with no reachable spec gets a ledger note saying so — rulings made without one are provisional. If a codegraph plugin/tool is available, validate the plan's named files, symbols, and likely impact surface with it; otherwise use ordinary repo search and file reads.
REQUIRED SUB-SKILL: load test-driven-development now, before Task 1. It governs every step of every task below; a plan whose steps already say "write the failing test first" does not exempt you from reading it.
Before Task 1, scan the plan for conflicts between tasks. The plan's
Interfaces blocks tell you where to look: for every task that consumes
what an earlier task produces, one ledger row — the two tasks, what one
produces against what the other consumes, and what you found. Tasks that
share nothing get no row; a plan whose tasks share nothing gets the single
line Pre-flight: no shared interfaces. Route each conflict a row
surfaces through decision-making (decision-maker) with the spec as the
binding authority, record the ruling beside its row, and start Task 1. Each
task's own text is checked when you read its brief, not here.
Everything you print, and every tool result, stays resident in your context for the rest of the session. Redirect long test output to a file in the workspace and read its tail; read a brief, not the whole plan.
bash scripts/task-start PLAN_FILE N by its absolute path, from the working tree you're executing in. It prints the
brief path and BASE (the commit the task's range is cut from) in one
call. Read the brief for every task, including ones you remember from
setup: what you remember is a summary, the brief has the exact values,
signatures, and test cases.Every tool call is a turn that re-reads your whole context. Bookkeeping rides along with work — a ledger append in the same call as the commit, never in a call of its own.
The plan's steps are already in RED-GREEN order; follow them in that order under test-driven-development, loaded at setup. A test step's code is written first and run first. Watching it fail is a step, not a formality — a test that passes before the implementation exists is a finding about the test.
Every step that runs a command has an Expected: line. Run the command,
read its output, and compare. Three outcomes:
decision-making (decision-maker) for the
smallest change that satisfies the spec, ledger it as
Task <N>: Ruling: <finding> — <what was decided and why>, and
continue. The ruling is carried, not remembered: later tasks that touch
the same interface read it from the ledger.Commit as the plan's commit steps say. A task that spans several commits
is fine; BASE is what the review range is cut from, never HEAD~1.
Before a task's ledger line, all of the following are true, with evidence in this session — not inferred from the diff looking right:
task-done is that run, and
it writes the command and result into the ledger line.Expected: line in the brief was compared against real output.Ruling: line in the ledger.REQUIRED SUB-SKILL: verification-before-completion governs the claim. If any item is missing, the task is not complete: finish it.
Run this skill's bash scripts/task-done PLAN_FILE N BASE -- <test command>
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
tests, keeps the full output in the workspace, prints the tail, and — only
if they pass — appends the completion line to the ledger:
Task <N>: complete (commits <base7>..<head7>, tests: <command> → <result>)
A failing run records nothing; the task is not complete. When it records, mark the todo complete and take the next task.
After every task is complete, read
references/final-review.md and follow it. It
covers the resolved final-branch-review gate, its single TDD-verified fix
pass, and the finish record.
Read the finish instructions before deleting the plan workspace, even when the final review is disabled. Every ruling and deferred minor must reach the final report.
| Excuse | Reality |
|---|---|
| "I remember what Task N says" | You remember a summary. The brief has the exact values. Read it. |
| "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. |
| "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. |
| "The plan is wrong here, I'll just do the right thing" | Route the deviation through decision-making (decision-maker) and ledger the ruling. Unledgered or unilateral deviation is a decision made in secret. |
| "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. |
| "Let me check in before the next task" | Keep executing between tasks. Respect the four general stops and required profile-owner reception question; routine check-ins do not pause the loop. |
| "I read my own diff carefully; the final reviewer is redundant" | The enabled final gate still runs through its resolved route. Profile owner-session self-review uses the full review contract and is reported as self-review. |
| "Tests should pass, the change was trivial" | "Should" is not evidence. The contract requires the command and its output. |
| "Panes are slow and expensive, I'll skip the final review too" | Inline does not disable the final gate or change its mode. A mandatory subagent that cannot spawn is an unavailable review, never a passed one. |
| "The reviewer said Minor, so it's Minor" | The label graded the spec's silence. The decision-maker re-grades what the person gets before the gate. |
| "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. |
| "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 human partner did not ask for. Ledger them; they decide. |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
plan-execution, inline-execution, task-execution, tdd-workflow
npx claudepluginhub transparent-pegasus/herdrpowers --plugin herdrpowers16 skills in this plugin
/brainstormingYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation)./finishing-a-development-branchUse when implementation is complete, all tests pass, and the user needs to decide how to integrate the work - presents the integration candidates (merge locally, push and open a PR, push only, keep) and executes only the chosen one; never merges on its own/herdrUse when the user explicitly requests Herdr pane, tab, workspace, or agent operations from an existing Herdr session./orchestrationUse when handling a task received directly from the user in Herdr, including repositories with profiles, model/effort constraints, or custom role assignments. Does not apply to delegated workers or an explicit request to execute without orchestration./pane-driven-developmentUse when executing implementation plans with independent tasks and per-task review gates/receiving-code-reviewUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationOther plugins' skills for the same job