Iterating plans

From uw-ssec/rse-plugins · View interactive version

Iterating plans is an AI agent skill from the GitHub repository uw-ssec/rse-plugins. Use when an existing implementation plan (`docs/rse/specs/plan-*.md`) needs changes before or during execution. Triggers: update the plan, change the plan, revise the plan, add a phase, split a phase, reorder or drop a phase, revise scope, cut scope, fix success criteria, incorporate experiment resu

How to use this skill

Skill file

Iterating Plans

Revise an existing plan in place with surgical, consistent edits.

Default mode: Collaborative (protocol: ai-research-workflows:using-research-workflows).

Process

  1. Read. If the plan or the change is missing, ask (recent plans:

ls -lt docs/rse/specs/plan-*.md .agents/plan-*.md 2>/dev/null | head -5).

Read the whole plan and any experiment-*.md the change draws on.

  1. **Research only if the change adds technical requirements or alters the

approach:** find real path/file.ext:12-30 anchors; never guess a path.

  1. Propose, keyed to the mode.

this overrides the protocol's step 2 because a plan edit changes what

later agents execute): reply with

Current state (phases), Proposed changes, Sections affected,

then "Does this match?" Don't touch the file until the user says yes.

"don't ask", "just do it", "go ahead"): list the intended edits, then

apply them. Example:

"Applying: insert Phase 2, renumber old Phases 2–3 to 3–4."

Push back on changes that conflict with existing phases.

  1. Edit surgically in place per the Quick Reference, matching the existing

phase format. Never regenerate the plan or reformat untouched sections.

  1. Consistency scan (required) after every edit:

1. Renumber later phases: numbers are monotonic and contiguous.

2. Update every cross-reference (dependencies, "(Phase N)" in success

criteria and testing strategy, file anchors) to the new numbering.

3. Nothing references a removed task, phase, function or file.

4. Each phase keeps its Automated / Manual Verification split.

5. No open question or placeholder entered the plan: research it or ask.

  1. **Research-criteria re-check (required when the approach changes or a

results-producing phase is added):** the Reproducibility & Correctness

criteria (seeds, provenance, tolerances) still hold and cover the new work.

  1. Report the changes by section and their effect on criteria.

Read references/iteration-patterns.md for the step 3 and 7 messages, a

worked pattern per change and common mistakes.

Quick Reference

| Change | Touch | Leave alone |

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

| Add a phase or task | Each new task names its file, cites path/file.ext:12-30 for existing code it changes or calls, marks new files as new; test first; its Automated/Manual criteria. A new phase also updates later numbers and references | Other tasks and phases |

| Cut scope | Its tasks, success criteria and tests; add it to "What We're NOT Doing" with the reason | Unrelated phases |

| Update criteria | The items, in the right Automated or Manual list | Tasks |

| New approach or experiment results | Implementation Approach; affected tasks; References (link the report); research criteria | Unaffected phases; Current State Analysis unless the results disprove it |

| Split or reorder | The phases, each independently testable; later numbers and references | Tasks that don't move |

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.