executing-plans
Skill9 starsChanged 7 months agoMITView on GitHub
Execute a pre-written implementation plan step by step. Parses tasks from a plan file (output of /writing-plans), runs each task with verification, uses subagents for independent tasks, commits after each sub-task, and handles failures with fix loops. Use after /writing-plans has produced a plan.
- Installs packages
189 other projects use a version of this.
Adopted by
Most recently taken up by
- DemonDamon/AgenticXtheir own version, first seen Nov 9, 2026
- PabloBuilder/AgenticAxelortheir own version, first seen Nov 8, 2026
- roundpilot/superpowers-antigravitytheir own version, first seen Nov 8, 2026
- REPOZY/superpowers-optimizedtheir own version, first seen Nov 8, 2026
- lingyired/status-triotheir own version, first seen Nov 8, 2026
- BrightGold70/skillstheir own version, first seen Nov 8, 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 20 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
allanninalSkillcairo-vulnerability-scanner
Scans Cairo/StarkNet smart contracts for 6 critical vulnerabilities including felt252 arithmetic overflow, L1-L2 messaging issues, address conversion problems, and signature replay. Use when auditing StarkNet projects. (project, gitignored)
Also in 4 projects that use this
farslabSkillaws-agentic-ai
AWS Bedrock AgentCore comprehensive expert for deploying and managing AI agents at scale. Use when working with any AgentCore service including Gateway, Runtime, Memory, Identity, Code Interpreter, Browser, Observability, Agent Registry, or Evaluations. Covers agent deployment, MCP tool integration, credential management, agent discovery, governance workflows, and automated quality assessment. Essential when user mentions AgentCore, agent runtime, agent registry, agent evaluation, MCP gateway, deploy agent, register MCP server, discover agents, evaluate agent quality, agent credentials, or wants to build, deploy, catalog, or monitor AI agents on AWS.
Also in 3 projects that use this
- +3 more from Leodorareluctant259
- +1 more from allanninal
Other versions189 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 189
- obra/superpowers★ 314ksame name
- jnMetaCode/superpowers-zh★ 8.4ksame name
- openai/plugins★ 7.8ksame name
- farm-fe/farm★ 5.6ksame name
- lingyired/status-trio★ 1.8ksame name
- GanyuanRan/Aegis★ 1.4ksame name
- pcvelz/superpowers★ 1.3ksame name
- DemonDamon/AgenticX★ 1ksame name
- coco-research/coco★ 797same name
- koaning/wigglystuff★ 455same name
179 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 repository44 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- anthropic-multi-agent-research-system-skillSkill
- apply-selectionsSkill
- bootstrap-dogfood-projectSkill
- brainstormSkill
- branch-choiceSkill
- cc-adoption-scoutSkill
- claude-guardianSkill
- continueSkill
- end-sessionSkill
- five-advisorsSkill
- get-work-doneSkill
- git-branch-lifecycleSkill
- githubSkill
- grill-meSkill
- hook-transcript-fixture-testSkill
- instagramSkill
- linkedinSkill
- modern-data-pipeline-diagramSkill
- pattern-qualitySkill
- platform-event-live-probeSkill
- plugin-lifecycleSkill
- promote-to-coreSkill
- prompt-auto-enhanceSkill
- provision-reportSkill
- redditSkill
- review-new-claude-featuresSkill
- save-sessionSkill
- scan-discovery-reportSkill
- scan-repoSkill
- scan-urlSkill
- self-improveSkill
- skill-evaluatorSkill
- skill-masterSkill
- ssot-workflow-auditSkill
- start-sessionSkill
- synthesize-hubSkill
- synthesize-projectSkill
- twitter-xSkill
- verify-effect-at-destinationSkill
- workflow-doc-reviewerSkill
- writing-plansSkill
- writing-skillsSkill
- youtube-transcriptSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
52 rules. 0 are common, 49 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 178 edited versions we read keep these.
49
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 44
Verify what can be known before parsing the plan.
- Distinctive: line 46
Run git --version and git status — confirm git is installed and the cwd is inside a repo (needed for the rollback hash, checkpoints, and …
- Distinctive: line 51
If anything is missing, report ALL missing items in ONE consolidated list and ask the user to fix them now.
- Distinctive: line 107
If validation fails, report the issues and wait for user correction before proceeding.
- Distinctive: line 131
Wait for user approval before executing.
- Distinctive: line 137
Before starting task execution:
- Distinctive: line 145
If there are uncommitted changes, ask the user to commit or stash them first.
- Distinctive: line 156
Create an in-memory progress tracker (do NOT write a separate tracking file):
- Very specific: line 167
If the plan includes a project-level verification command (e.g., npm install, pip install -r requirements.txt, or a build command), run it …
- Distinctive: line 198
When a task's verification command fails, enter a structured fix loop.
- Very specific: line 225
If the failure is complex (e.g., multiple cascading errors, unclear root cause), delegate to the /fix-loop skill:
- Distinctive: line 235
If a task fails all 3 fix attempts:
- Distinctive: line 254
Wait for user input before proceeding.
- Distinctive: line 258
If the user chooses to roll back a failed task:
- Distinctive: line 275
When loading a plan, check for already-completed tasks:
- Very specific: line 288
If --from {N} is specified or detected from prior progress:
- Distinctive: line 291
Verify the codebase is in a consistent state by running the verification commands of the last completed task
- Distinctive: line 292
If the last completed task's verification fails, warn the user — the codebase may have changed since the plan was last executed
- Distinctive: line 297
After each task completes successfully, update the plan file to mark the task as done:
- Distinctive: line 302
Only update the plan file if the plan was loaded from a file path (not inline text).
- Distinctive: line 308
After all tasks are executed (or execution is halted), produce a structured summary.
- Distinctive: line 317
If the user requests changes to the plan during execution:
- Distinctive: line 325
Do NOT apply modifications to tasks that are already completed — those changes would require reverting and re-executing.
- Distinctive: line 333
Run a broader test suite at each phase boundary, not just task-level verification
- Distinctive: line 341
Wait for the user to confirm completion
- Distinctive: line 342
Run the verification command to validate
- Distinctive: line 343
If verification fails, ask the user to retry the manual step
- Distinctive: line 347
If two tasks in the same wave modify the same file (detected during parallelization safety checks):
- Distinctive: line 351
After both pass, commit together
- Distinctive: line 355
If the verification command exits with code 0 but produces warnings:
- Distinctive: line 358
Ask whether to treat warnings as failures or continue
- Distinctive: line 359
If continuing, log the warnings in the commit message
- Distinctive: line 365
Always load and validate the plan before executing any task (Step 1)
- Distinctive: line 366
Always wait for user approval of the execution order before starting
- Distinctive: line 367
Always run the verification command for every task — no exceptions
- Distinctive: line 368
Always commit after each successfully verified task (or wave of tasks)
- Distinctive: line 369
Always record the rollback hash before starting execution
- Distinctive: line 370
Always update the plan file checkboxes after each completed task (when loaded from file)
- Distinctive: line 371
Always try a different approach on each fix attempt — never repeat the same fix
- Distinctive: line 372
Always report progress after each task completes
- Distinctive: line 373
Always check git status before starting — refuse to start with uncommitted changes
- Distinctive: line 374
Always present the completion summary at the end, regardless of success or failure
- Distinctive: line 378
MUST NOT skip verification for any task — every task must be verified before marking complete
- Distinctive: line 379
MUST NOT continue to dependent tasks when a predecessor fails — skip them and report clearly
- Distinctive: line 380
MUST NOT use git add -A or git add .
- Distinctive: line 381
MUST NOT modify the plan's task descriptions during execution — execute what was planned
- Distinctive: line 382
MUST NOT exceed 3 fix attempts per task — escalate to the user after 3 failures
- Distinctive: line 383
MUST NOT parallelize tasks that share files — always run those sequentially
- Distinctive: line 384
MUST NOT run the entire plan without user approval of the execution order first
- Distinctive: line 385
MUST NOT create additional tracking files — use the plan file itself and git history for state
- Distinctive: line 386
MUST NOT silently skip failed tasks — always report failures and wait for user direction
- Distinctive: line 387
MUST NOT start execution if the plan has tasks without verification commands — require them first
“Common” is measured: kept by at least 6 in 10 of the 178 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 — Step-by-Step Plan Execution
Execute a pre-written implementation plan, task by task, with verification and progress tracking.
Plan: $ARGUMENTS
Prerequisites
- Tools/CLIs:
git(checkpoint, rollback, per-task commits). Task-level tools (e.g.npm,pytest) are declared inside the plan's ownVerify:/setup commands and are verified when each task runs — not duplicated here. - Files: the plan itself, supplied via
$ARGUMENTS— either a file path (must exist and be readable) or inline plan text (must be non-empty). - User inputs & decisions: approval of the computed execution order (Step 1.3), the escalation choice after 3 failed fix attempts (Step 4.3), disposition of verification warnings (Step 7.5), and confirmation of any manual/credential-setup tasks the plan itself specifies (Step 7.3). These depend on the parsed plan's content and live results, so they happen inline during the run rather than being collectible at invocation — STEP 0 verifies only what CAN be known up front.
STEP 0: Preflight
Verify what can be known before parsing the plan; collect nothing that depends on plan content.
- Run
git --versionandgit status— confirm git is installed and the cwd is inside a repo (needed for the rollback hash, checkpoints, and per-task commits). - Confirm the plan input is present: a file path in
$ARGUMENTSexists and is readable, OR inline plan text was actually provided (non-empty).
If anything is missing, report ALL missing items in ONE consolidated list and ask the user to fix them now. If unresolvable (e.g., not in a git repo and none can be initialized), HARD-STOP with the complete list rather than starting Step 1.
STEP 1: Load and Validate the Plan
Accept the plan from one of:
- File path — Read the plan from a markdown file (e.g.,
docs/plans/feature-plan.md) - Inline text — Parse plan content provided directly in the arguments
1.1 Parse Plan Structure
Extract from the plan:
| Element | Required | Source |
| Task list | Yes | Checkboxes (- [ ]) or numbered items (### Task N:) |
| Task titles | Yes | Heading or first line of each task |
| File paths | Yes | Files: section within each task |
| Verification commands | Yes | Verify: or code blocks marked as bash within each task |
| Dependencies | Yes | Depends on: field or dependency graph section |
| Code snippets | No | Code: section within each task |
| Time estimates | No | Time: field within each task |
Supported plan formats:
# Format A: Checkbox style (default /writing-plans output)
- [ ] **Task 1:** Create user model
- Files: `src/models/user.py`
- Verify: `pytest tests/test_user.py -v`
- Time: ~3 min
- Depends on: None
# Format B: Heading style
### Task 1: Create user model
**Files:**
- `src/models/user.py` (create)
**Verify:**
```bash
pytest tests/test_user.py -vDepends on: None
### 1.2 Validate Plan Integrity
Before executing, verify:
1. **All tasks have verification commands** — Reject tasks without a verify step. Ask the user to add one before proceeding.
2. **File paths are valid** — For modifications, confirm the file exists. For creations, confirm the parent directory exists.
3. **Dependencies are acyclic** — Check that no circular dependencies exist between tasks.
4. **No tasks are already checked off** — Identify and skip tasks marked `- [x]` (already completed in a prior session).
If validation fails, report the issues and wait for user correction before proceeding.
### 1.3 Build Execution Order
From the dependency graph, compute:
1. **Execution waves** — Group tasks into waves where all tasks in a wave can run in parallel (no mutual dependencies, all predecessors completed).
2. **Critical path** — Identify the longest sequential chain to estimate minimum total time.
3. **Total task count** — Count remaining unchecked tasks.
Present the execution order for confirmation:
Execution Order: Wave 1: Task 1, Task 2 (parallel — no dependencies) Wave 2: Task 3 (depends on Task 1) Wave 3: Task 4, Task 5 (parallel — both depend on Task 3) Wave 4: Task 6 (depends on Task 4 and Task 5)
Critical path: Task 1 → Task 3 → Task 4 → Task 6 Estimated time: ~18 min Tasks to execute: 6 of 6
Wait for user approval before executing.
---
## STEP 2: Pre-Execution Setup
Before starting task execution:
### 2.1 Git Checkpoint
```bash
git status- If there are uncommitted changes, ask the user to commit or stash them first.
- Record the current commit hash as the rollback point:
git rev-parse HEADSave this as $ROLLBACK_HASH for use in failure recovery.
2.2 Initialize Progress Tracker
Create an in-memory progress tracker (do NOT write a separate tracking file):
Progress: 0 / {total_tasks} tasks
Status: STARTING
Current wave: 1
Elapsed: 0 min2.3 Verify Build Environment
If the plan includes a project-level verification command (e.g., npm install, pip install -r requirements.txt, or a build command), run it first to ensure the environment is ready. If no setup command is specified, skip this step.
STEP 3: Execute Tasks
Process tasks wave by wave. Within each wave, determine whether tasks can be parallelized.
--teammode (optional, parallel file edits). When a wave's tasks edit disjoint file sets, the wave MAY run as a real agent team instead of flat subagents — but ONLY under the partition + worktree-isolation + zero-collision discipline canonically documented indevelopment-loopSTEP 4-TEAM (partition by disjoint ownership → each editing teammate in its own git worktree → lead waits → a read-only verifier teammate checks each builder → assert NO file written by 2+ teammates). Self-gates onCLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1; a wave with shared-file or dependency-coupled tasks stays on the flat path (best-practice §C). Requires the same anti-fake-team + zero-collision hard gates before accepting the wave's output.
--teamis BINDING when explicitly set: with the flag passed ANDCLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1on a disjoint-partition wave, you MUST spawn REAL teammate sessions (each worktree-isolated) and confirm the anti-fake-team gate (config.jsonmembers> 1 + teammate-attributed events) + zero-collision; you MUST NOT fall back to flat subagents or pause to ask — the flag IS the instruction. Flat applies ONLY when--teamis absent, the env var is unset, or the wave is genuinely shared-file/dependency-coupled (not parallelizable).Spawn-first (no deliberation): spawning the wave's teammates is your FIRST action — do NOT spend turns planning or ground-truthing the team mechanism before spawning. Spawn the worktree-isolated teammates immediately, let them build their partitions, then verify the anti-fake-team + zero-collision gates AFTER.
Read: references/execute-tasks.md for detailed step 3: execute tasks reference material.
STEP 4: Handle Failures
When a task's verification command fails, enter a structured fix loop.
4.1 Fix Loop (Max 3 Attempts)
For each attempt:
- Analyze the failure output — Parse error messages, identify failing assertions, locate error line numbers
- Identify root cause — Determine whether the issue is in:
- The implementation just applied (most common)
- A dependency from a previous task (check recent commits)
- The verification command itself (wrong path, missing fixture)
- The plan's instructions (incorrect or incomplete specification)
- Apply a targeted fix — Make the minimum change to address the root cause
- Re-run verification — Execute the same verify command
Fix attempt {attempt}/3 for Task {N}:
Error: {error_summary}
Root cause: {analysis}
Fix: {description_of_fix}
Result: {PASS|FAIL}Each attempt MUST try a different approach. If the same fix is applied twice, it will fail twice.
4.2 Delegation to Fix Loop Skill
If the failure is complex (e.g., multiple cascading errors, unclear root cause), delegate to the /fix-loop skill:
Skill("fix-loop", args="failure_output: {error_output} retest_command: {verify_command} max_iterations: 3")Retry budget: Each of the 3 fix attempts (Step 4.1) may delegate to /fix-loop with max_iterations: 3. This means the total maximum attempts per task is 9 (3 attempts × 3 fix-loop iterations each). The /fix-loop skill's default of 5 iterations is overridden to 3 when called from /executing-plans to keep the total bounded. If all 9 attempts fail, escalate per Step 4.3.
4.3 Escalation After 3 Failures
If a task fails all 3 fix attempts:
- Do NOT continue to the next task if it depends on this one — dependent tasks will also fail
- Check if independent tasks remain — if so, skip the failed task and continue with independent tasks
- Report the failure clearly:
TASK FAILED: Task {N} — {task_title}
Attempts: 3/3 exhausted
Last error: {error_output}
Files modified: {files} (changes preserved in working tree)
Options:
1. Fix manually and resume: /executing-plans --resume {plan_file} --from {N}
2. Skip this task and continue with independent tasks
3. Roll back this task: git revert HEAD
4. Abort execution entirelyWait for user input before proceeding.
4.4 Rollback a Failed Task
If the user chooses to roll back a failed task:
git diff HEAD -- {files_from_failed_task}
git checkout HEAD -- {files_from_failed_task}This reverts only the files from the failed task without affecting successfully completed tasks.
STEP 5: Resume Support
The skill supports resuming a partially completed plan.
5.1 Detect Prior Progress
When loading a plan, check for already-completed tasks:
- Checkbox markers — Tasks marked
- [x]in the plan file are already done - Git history — Search recent commits for
plan-exec:messages matching task titles:
git log --oneline --grep="plan-exec:" -20- File state — Verify that files from "completed" tasks actually contain the expected changes
5.2 Resume from a Specific Task
If --from {N} is specified or detected from prior progress:
- Skip tasks 1 through N-1 (already completed)
- Verify the codebase is in a consistent state by running the verification commands of the last completed task
- If the last completed task's verification fails, warn the user — the codebase may have changed since the plan was last executed
- Begin execution from task N
5.3 Update Plan File on Disk
After each task completes successfully, update the plan file to mark the task as done:
- Change
- [ ]to- [x]for the completed task - This allows the
/continueskill to detect progress if the session ends mid-plan
Only update the plan file if the plan was loaded from a file path (not inline text).
STEP 6: Completion Summary
After all tasks are executed (or execution is halted), produce a structured summary.
Read: references/completion-summary.md for detailed step 6: completion summary reference material.
STEP 7: Edge Cases and Special Handling
7.1 Plan Modifications Mid-Execution
If the user requests changes to the plan during execution:
- Pause execution after the current task completes
- Accept the modification (add task, remove task, reorder, change verification)
- Recalculate the dependency graph and execution order
- Present the updated execution order for approval
- Resume execution
Do NOT apply modifications to tasks that are already completed — those changes would require reverting and re-executing.
7.2 Large Plans (More Than 15 Tasks)
For plans with more than 15 tasks:
- Present execution in phases — group tasks into logical milestones (e.g., "Data Layer," "API Layer," "Tests")
- Pause between phases for user review
- Run a broader test suite at each phase boundary, not just task-level verification
7.3 Tasks That Require User Input
Some tasks may require manual steps (e.g., "Configure environment variables," "Set up external service credentials"). When detected:
- Announce the manual task clearly
- Provide exact instructions from the plan
- Wait for the user to confirm completion
- Run the verification command to validate
- If verification fails, ask the user to retry the manual step
7.4 Conflicting File Changes
If two tasks in the same wave modify the same file (detected during parallelization safety checks):
- Force sequential execution for those specific tasks
- Apply the first task's changes, verify, then apply the second task's changes
- After both pass, commit together
7.5 Verification Command Produces Warnings
If the verification command exits with code 0 but produces warnings:
- Report the warnings to the user
- Ask whether to treat warnings as failures or continue
- If continuing, log the warnings in the commit message
MUST DO
- Always load and validate the plan before executing any task (Step 1)
- Always wait for user approval of the execution order before starting
- Always run the verification command for every task — no exceptions
- Always commit after each successfully verified task (or wave of tasks)
- Always record the rollback hash before starting execution
- Always update the plan file checkboxes after each completed task (when loaded from file)
- Always try a different approach on each fix attempt — never repeat the same fix
- Always report progress after each task completes
- Always check git status before starting — refuse to start with uncommitted changes
- Always present the completion summary at the end, regardless of success or failure
MUST NOT DO
- MUST NOT skip verification for any task — every task must be verified before marking complete
- MUST NOT continue to dependent tasks when a predecessor fails — skip them and report clearly
- MUST NOT use
git add -Aorgit add .— always add specific files by path - MUST NOT modify the plan's task descriptions during execution — execute what was planned
- MUST NOT exceed 3 fix attempts per task — escalate to the user after 3 failures
- MUST NOT parallelize tasks that share files — always run those sequentially
- MUST NOT run the entire plan without user approval of the execution order first
- MUST NOT create additional tracking files — use the plan file itself and git history for state
- MUST NOT silently skip failed tasks — always report failures and wait for user direction
- MUST NOT start execution if the plan has tasks without verification commands — require them first
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.

