From polis
Use to execute an approved plan, task by task, via isolated subagents with fresh context. Activates on /polis:exec. Keeps the orchestrator under 40% by delegating heavy work; enforces TDD per task, atomic commits, and a two-phase (compliance + quality) review after each task. Auto-pauses when context hits WARNING.
How this skill is triggered — by the user, by Claude, or both
Slash command
/polis:executing-plansThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Execution is where the architecture earns its keep. The orchestrator does not
Execution is where the architecture earns its keep. The orchestrator does not write the code — it dispatches each task to a subagent with a fresh window, reviews what comes back, and keeps a clean state. Heavy lifting happens where there's room for it; the orchestrator stays a lean coordinator.
For each task in the approved plan, in dependency order:
Dispatch to a subagent. Hand it the minimum it needs: the relevant spec section, the task definition (incl. its test), and just enough surrounding context to act. Not the whole project, not the chat history. (See skills/subagent-dispatch for how to package this.)
Subagent does TDD. RED → GREEN → REFACTOR, non-negotiable (see skills/tdd). It writes the failing test first, confirms it fails for the right reason, writes the minimal code to pass, refactors if needed, keeps the suite green.
Two-phase review of what the subagent returns:
Atomic commit. One task, one commit, with a standardized message that
references the task ID — e.g. [polis] T4: add session-expiry guard.
Reversible and traceable.
Record, don't accumulate. Capture the outcome in STATE.md (task done, commit hash, any decision made). Do not pull the subagent's full transcript back into the orchestrator — that's how the window fills.
/polis:pause-work). Do not start the next
task in a degraded orchestrator. Resume with fresh context.Tasks with no dependency between them can run as a wave of parallel subagents. Only parallelize genuinely independent tasks — if two tasks touch the same file or one's output feeds the other, they're sequential. After a wave returns, review each result and resolve any integration seams before the next wave.
Halt and consult the user if:
When a task breaks in a way that isn't a quick correct fix — a test won't go green, behavior surprises you — switch into systematic debugging (skills/debugging) rather than guessing at patches. And never mark a task done on a subagent's say-so: verify the green independently (skills/verification-before-completion).
Execution is mechanical because the thinking was front-loaded into discuss, spec, and plan. When execution stops being mechanical, that's a signal an earlier phase has a gap — go back, don't push through.
npx claudepluginhub ilry-polis/polis --plugin polisGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.