Executing plans

From ROCm/rocm-systems · View interactive version

Executing plans is an AI agent skill from the GitHub repository ROCm/rocm-systems. Use when a written implementation plan exists at ${TMPDIR:-/tmp}/amdsmi-agent-plans/ and you need to execute it task-by-task in the current session with verification at each step.

How to use this skill

Skill file

Executing Plans — amd-smi

Load the plan, review it critically, execute every task in order, verify at every step, report when done.

Announce at start: "I'm using the executing-plans skill to implement this plan."

If subagent dispatch is available and the plan has 3+ independent tasks, prefer the amdsmi-development agent's subagent-driven mode — it isolates per-task context and gives higher-quality output. Use this skill when subagents aren't available or the plan is small enough to run inline.

Process

Step 1: Load and Review the Plan

  1. Read the plan file in full
  2. Read the linked spec
  3. Identify any gaps, contradictions, or unclear instructions
  4. If concerns exist → raise them with the user before any code change
  5. If no concerns → create a todo for each task and proceed

Step 2: Workspace Setup

Verify you're in an isolated workspace. If not, invoke amdsmi-using-git-worktrees before touching code.

Step 3: Execute Each Task

For each task in the plan:

  1. Mark the task in-progress in the todo list
  2. Follow each step in the order written — do not skip verification steps
  3. Run the exact commands specified; compare output to "Expected"
  4. Commit at the step the plan says to commit (don't batch commits across tasks)
  5. Mark the task completed

After every task: invoke verification-before-completion before marking the task done. Compilation success is not verification.

Step 4: Final Verification

After all tasks complete:

Step 5: Finish the Branch

Invoke the amdsmi-restructure-commits skill — the "Finishing" section handles merge/PR/discard options.

When to Stop and Ask

STOP immediately when:

Ask the user. Don't guess. Don't improvise.

When to Revisit Earlier Steps

Return to Step 1 (re-review) if:

Do NOT batch-edit later tasks to compensate for an earlier task's gaps — fix the plan, then re-execute.

Red Flags

| Symptom | Action |

|---------|--------|

| Skipping a verification step "to save time" | Stop. Verification steps are mandatory. |

| Editing files outside the plan's "Files" list | Stop. Ask whether the plan needs updating. |

| Batching multiple tasks into one commit | Stop. Commit per the plan. |

| "The test failure looks unrelated" | Run systematic-debugging. Don't dismiss. |

| Starting on develop/main without a feature branch | Stop. Create a branch (or worktree) first. |

Required Companion Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.