Skip to content
Back to skills

Plan And Execute

ASecurity

General-purpose orchestrator for challenge → plan → stress-test → phased execution. Produces a plan, stress-tests it, then enrolls each phase as an autonomous TODO with deliverables, success criteria, and built-in quality gates. Between phases, runs structured retrospectives that drive improvements into all upcoming TODOs.

  • 8 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 6, 2026
ai-agentsgotestingcode-reviewgit

Works with

  • mcp

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned October 6, 2026

npx -y skills add bordenet/superpowers-plus --skill plan-and-execute --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Plan And Execute?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Plan And Execute
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bordenet-plan-and-execute/badge)](https://www.skillsdirectory.com/skills/bordenet-plan-and-execute)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: plan-and-execute
disable-model-invocation: true
source: superpowers-plus
augment_menu: true
triggers: ["/sp-execute", "plan and execute", "plan-and-execute", "create a plan and execute", "challenge me", "give me a challenge",
           "here's a challenge", "devise a plan", "phased execution", "break into phases",
           "execute in phases", "plan then execute", "structured execution",
           "project plan with phases", "plan with retrospectives", "measure twice cut once",
           "stress-test the plan", "divide into phases", "autonomous phases", "phased TODO",
           "plan phases", "big project", "organize this work", "tackle this problem",
           "let's do this systematically", "multi-phase project"]
anti_triggers: ["quick fix", "small change", "one-line change", "simple task", "minor update", "just implement", "trivial change"]
description: General-purpose orchestrator for challenge → plan → stress-test → phased execution. Produces a plan, stress-tests it, then enrolls each phase as an autonomous TODO with deliverables, success criteria, and built-in quality gates. Between phases, runs structured retrospectives that drive improvements into all upcoming TODOs.
summary: "Use when: tackling any multi-phase challenge that benefits from structured planning, stress-testing, and continuous improvement during execution."
coordination:
  group: productivity
  order: 1
  requires: []
  enables: ["brainstorming", "think-twice", "todo-management", "plan-quality-gates"]
  escalates_to: ["thinking-orchestrator"]
  internal: false
composition:
  consumes: [challenge, problem-statement, goal, project-brief]
  produces: [phased-plan, todo-items, retrospective-notes]
  capabilities: [orchestrates-workflow, sequences-skills, continuous-improvement]
  priority: 5
---

# Plan and Execute

> **Purpose:** Turn any challenge into a stress-tested, phased plan — then execute each phase as an autonomous TODO with built-in quality gates and continuous improvement between phases.
> **Pattern:** This skill ORCHESTRATES existing skills. It does not replace them.

**Announce at start:** "I'm using the **plan-and-execute** skill to orchestrate this work."

## Quick Mode (Simple Features)

For single-phase work with clear scope (bug fix, small feature, config update, single-file edit) — use this lightweight path instead of the full phased procedure below.

> **Note:** This skill's anti_triggers suppress it for "small change", "quick fix", etc. Quick Mode is for cases where you're already inside plan-and-execute (triggered by a broader planning phrase) and scope turns out to be simple — OR where you load this skill explicitly for its Quick Mode path.

1. State the goal in one sentence
2. List files to create or modify
3. Execute the work
4. Run `use-skill unified-commit-gate` before committing
5. Verify the deliverables match the stated goal

**When MCP `add_tasks` is available, use it directly for task tracking — do NOT also load `todo-management`.**

**Auto-escalate to the full procedure below if any of these appear during execution:**
- 3+ subtasks emerge that weren't visible at the start
- External dependency or blocked work discovered
- Scope changes from the user mid-work
- Work spans multiple repos, services, or teams

If any auto-escalate signal fires, continue reading the full skill below.

## When to Use / Not Use

**Use:** Multi-phase challenge (code, process, research, docs, design) where planning before execution reduces risk.
**Skip:** Single-step tasks (just do them). Pure bug fixes → `investigation-state`. Plan already enrolled in TODO.md → `todo-management` to resume.
**Use `feature-development` instead** when the work is a code feature needing requirements validation or a design debate (≥3 options).

---

## The Workflow

```
Phase A: CHALLENGE INTAKE → Phase B: PLAN → Phase C: STRESS-TEST →
Phase D: PHASE ENROLLMENT → Phase E: EXECUTE (retro → improve → do → review)
```

---

### Phase A: Challenge Intake

1. Receive the challenge from the user
2. Clarify scope, constraints, and success criteria
   - Ask clarifying questions one at a time (like `brainstorming`)
   - OR accept an autonomous mandate — either mode works
3. Restate the challenge back to confirm understanding
4. **Exit gate:** User confirms the challenge statement is accurate

---

### Phase B: Devise the Plan

1. Produce a plan that addresses the challenge
   - Interactive co-development OR autonomous drafting — match user's mode
2. Structure the plan as ordered phases with dependency relationships
3. Each phase must state: purpose, deliverables, and exit criteria
4. Apply `plan-quality-gates`: no fabricated timelines, dependency ordering, verifiable exit criteria
5. **Exit gate:** Plan exists with phases, dependencies, and exit criteria

---

### Phase C: Stress-Test the Plan

**This phase is critical. Plans almost always have significant problems that surface here.**

Apply whichever combination of these tools makes sense to pressure-test the plan:

1. **Brainstorming** — Are there better approaches we haven't considered? Alternative phasing? Missing phases?
2. **Think-twice** — Dispatch a fresh sub-agent with zero context to review the plan. What did we miss?
3. **Harsh review** — Red-team the plan by answering these questions:
   - What's the weakest phase?
   - What dependency is wrong or missing?
   - What will fail first?
   - What assumption is untested?
   - What edge case breaks the whole plan?

Run **minimum 2 rounds** of stress-testing. Fix issues found, then re-review.

**If stress-testing reveals the plan is fundamentally broken** (the approach itself is wrong, not just needs tweaks — e.g., wrong decomposition, missing a critical phase, flawed sequencing), return to Phase B and replan. State clearly: "The plan needs to be reworked, not refined."

4. **Exit gate:** Plan has survived stress-testing. All issues that would change execution are resolved. User approves the final plan.

---

### Phase D: Phase Enrollment

1. **Name the project** — ask user for a project tag or generate one (kebab-case). Example: `#plan-auth-redesign`
2. **Enroll each phase as an autonomous TODO** via `todo-crud.sh`. "Autonomous" means: a fresh agent with no conversation history could pick up this TODO and execute it successfully. Each TODO must include:
   - **Purpose:** WHY this phase exists
   - **Trinity:** WHY / WHAT / HOW (with file paths, commands, concrete references — not vague gestures)
   - **Deliverables:** Concrete outputs (files, states, artifacts)
   - **Success Criteria:** Binary done/not-done, verifiable by command or inspection
   - **Quality Gate:** "Run progressive harsh review on deliverables before marking complete"
   - **Handoff State:** What the next phase needs to know (branch, last commit, partial work, gotchas)
3. Tag all TODOs with `#plan-<project-name>`
4. Order by dependency (not calendar)
5. Mirror to MCP task list via `add_tasks` with parent/child structure
6. **Exit gate:** All phases enrolled in TODO.md with full context. User confirms.

---

### Phase E: Execute (The Loop)

For each phase TODO, in order:

#### Step 1: Pre-Phase Retrospective

**Skip for the first phase.** For all subsequent phases:

Load `references/retrospective-template.md` and complete:

1. **What went well** in the last phase (keep doing)
2. **What didn't go well** (stop or change)
3. **What did progressive harsh review surface** that we didn't anticipate?
4. **Process improvement** — one concrete change to how we work
5. **Quality improvement** — one concrete change to what we check

**Persistence:** Summarize the retro's key findings (what changed, why) as a completion note via `todo-crud.sh complete --note "Retro: [1-3 sentence summary of findings and changes made to upcoming TODOs]"`. The full retro is in conversation context; the note captures enough for cross-session resumption.

#### Step 2: Improve Upcoming TODOs

Review EVERY remaining TODO in the `#plan-<project>` list:

1. Apply learnings from the retrospective
2. Drive **at minimum 2 substantive improvements across all remaining TODOs** (not 2 per TODO — distribute where they add real value). If a TODO genuinely needs no changes, state why and move on. Forced improvements become filler.
   - Sharpen success criteria based on what we learned
   - Add guards against failure modes we discovered
   - Improve the HOW based on what worked/didn't
   - Strengthen the quality gate based on harsh review findings
3. **Rewrite affected TODOs** via `todo-crud.sh` with improvements
4. **Harsh-review rewritten TODOs** before finalizing (are the improvements real? do they conflict with other phases?)

**Scaling note:** For projects with many remaining phases, focus improvement effort on the next 2-3 phases (highest impact). Scan later phases for applicability but don't force changes into distant phases that may themselves change.

#### Step 3: Execute the Phase

1. Re-read the TODO (it may have been improved by a prior retro)
2. Execute the work described in the TODO
3. **Before any `git commit` during this phase:** invoke `superpowers:unified-commit-gate` (all applicable gates). Do not skip because the plan is mid-flight.
4. Harsh-review all deliverables (same red-team questions as Phase C, applied to outputs not plans)
5. Verify success criteria are met
6. Mark TODO complete via `todo-crud.sh` with completion notes

**If the phase fails** (deliverables don't meet criteria, blockers surface, harsh review finds critical issues): document what went wrong in the TODO note, run a retrospective immediately, and decide whether to retry the phase or trigger mid-execution replanning.

#### Step 4: Post-Phase Verification

1. Confirm deliverables exist and meet success criteria
2. Confirm handoff state is documented for the next phase
3. **Before pushing the branch** (once per push, not per phase): invoke `superpowers:unified-commit-gate` via `/sp-push`. A valid `.code-review-cleared` sentinel must exist for HEAD; if missing, run `code-review-battery` first.
4. **Exit gate:** TODO marked complete, deliverables verified, handoff state captured

---

## Phase Skip Prevention

**You MUST NOT skip phases.** The stress-test phase (C) is where most value is created.

| Temptation | Why It Fails |
|-----------|-------------|
| "The plan is obvious" | Obvious plans have unexamined assumptions |
| "Stress-testing is overkill" | Plans almost always have significant problems found here |
| "Retrospectives slow us down" | They systematically improve every subsequent phase |
| "The TODOs are fine as-is" | Pre-execution improvement is the whole point |
| "Just one round of review" | Minimum 2 rounds. First round finds surface issues; second finds structural ones |

---

## Mid-Execution Replanning

If a retrospective or harsh review reveals the remaining plan is fundamentally wrong (not just needs tweaking):

1. **State clearly:** "The plan needs replanning from Phase N onward."
2. **Defer remaining TODOs** via `todo-crud.sh defer --reason "Replanning triggered"`
3. **Return to Phase B** (Plan) with the new understanding — the completed phases and their retros are inputs
4. **Re-run Phase C** (Stress-Test) on the revised plan
5. **Re-enroll** via Phase D — new TODOs replace the deferred ones

This is NOT failure — it's the system working as designed. Continuing with a broken plan is the failure.

## Resuming a Project

If a project was started in a previous session:
1. Check TODO.md for `#plan-<project>` items via `todo-crud.sh list`
2. Identify the last completed phase
3. Run a retrospective on the completed phase
4. Improve remaining TODOs
5. Resume execution from the next incomplete phase

## Integration Map

| Phase | Skills Invoked | Purpose |
|-------|---------------|---------|
| Challenge Intake | (conversational) | Clarify scope and constraints |
| Plan | `plan-quality-gates` | Dependency ordering, exit criteria |
| Stress-Test | `brainstorming`, `think-twice`, harsh review (red-team questions) | Pressure-test the plan |
| Enrollment | `todo-management` | Persistent, autonomous TODOs |
| Execute | harsh review on deliverables; `unified-commit-gate` MANDATORY before any commit/push (sentinel required for code changes); final review delegated to execution skill (`requesting-code-review` or `finishing-a-development-branch`) | Quality at every step |
| Replan | (back to Plan + Stress-Test if fundamentally broken) | Course correction |

---

## Failure Modes

| Failure | Fix |
|---------|-----|
| Stress-test phase skipped, plan fails during execution | Phase C is mandatory — minimum 2 review rounds |
| Retrospectives are shallow ("everything was fine") | Template requires concrete findings and changes |
| TODO improvements are cosmetic | "Substantive" means changes that would alter execution, not wording tweaks |
| Harsh review on deliverables is skipped | Quality gate is embedded in every TODO — it's not optional |
| Upcoming TODOs not actually rewritten | Changes must be persisted via todo-crud.sh, not just noted |
| Plan is broken but execution continues | Use mid-execution replanning — defer remaining TODOs, return to Phase B |
| Improvements forced into every TODO as filler | Distribute improvements where they add value; skip with justification |

Files in this skill

  • references/integration-map.md620 B
  • references/planning-council-mode.md10.1 KB
  • references/replanning-and-resuming.md950 B
  • references/retrospective-template.md3.6 KB
  • references/role-mandates.md5 KB
  • references/synthesis-protocol.md5.3 KB
  • skill.md13.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…