| name | iterate-plan |
| description | Update existing implementation plans through user feedback with thorough research and validation. This skill should be used when iterating on implementation plans, updating plans based on new requirements, refining technical approaches in existing plans, or when the user wants to modify a previously created plan file. Triggers on requests like "update the plan", "change the implementation approach", "iterate on this plan", or when feedback is provided about an existing plan document. |
Iterate Plan
Overview
This skill enables intelligent iteration on existing implementation plans. Rather than rewriting plans from scratch, it makes surgical, well-researched updates while preserving the plan's existing structure and quality standards.
Initial Input Handling
Parse the user's request to identify two required elements:
- Plan file path - The location of the existing implementation plan
- Requested changes - What modifications the user wants
Handle these scenarios:
| Scenario | Action |
|---|---|
| No plan provided | Ask: "Which plan file should I update?" |
| Plan but no feedback | Ask: "What changes would you like to make to this plan?" |
| Both provided | Proceed to Step 1 |
Five-Step Iteration Process
Step 1: Understand the Current Plan
Read the complete plan file and thoroughly understand:
- Overall structure and organization
- Current technical approach and decisions
- Success criteria (both automated and manual)
- Dependencies and relationships between sections
- Any existing constraints or trade-offs documented
Document the sections that will likely need modification based on the feedback.
Step 2: Research If Needed
Critical: Only spawn research tasks if the changes require new technical understanding.
When research is necessary, use specialized sub-agents with highly specific instructions:
Research Task Template:
- Agent type: codebase-locator | codebase-analyzer | Explore
- Specific directories to examine
- Exact patterns or code to find
- Required output format (file:line references)
Research scenarios that warrant sub-agent spawning:
- Changes involve unfamiliar parts of the codebase
- New integrations or dependencies need validation
- Technical feasibility of proposed changes is uncertain
- Alternative approaches need evaluation
Do NOT research when:
- Changes are cosmetic or structural (reordering, rewording)
- The modification is already well-understood
- Feedback is about plan formatting, not technical content
Step 3: Present Understanding Before Changes
Before making any modifications, present:
Interpretation of Feedback
- Restate what changes are being requested
- Confirm understanding of the user's intent
Research Findings (if research was performed)
- Key discoveries with file:line references
- Technical implications for the plan
Planned Modifications
- List specific sections that will change
- Describe the nature of each change
- Note any sections that will remain unchanged
Wait for user confirmation before proceeding to Step 4.
Step 4: Make Surgical Edits
Update the plan using Edit tool with these principles:
Structural Integrity
- Maintain existing heading hierarchy
- Preserve section organization patterns
- Keep consistent formatting throughout
Content Quality
- Ensure changes align with surrounding context
- Update all related sections (e.g., if changing approach, update affected tasks)
- Maintain traceability between requirements and implementation tasks
Success Criteria Standards
- Automated Verification: Commands that can be run (tests, lints, builds)
- Manual Verification: Human-observable behaviors requiring testing
- Never mix these categories; keep them distinctly separated
Edit Scope
- Change only what is necessary to address the feedback
- Avoid "while I'm here" improvements unless explicitly requested
- Preserve author's voice and existing explanations where possible
Step 5: Present Changes and Invite Iteration
After editing, present:
Summary of Changes Made
- What was modified and why
- Any dependencies that were updated as a result
Invitation for Further Iteration
- Ask if the changes meet expectations
- Offer to refine any sections further
Critical Guidelines
Be Skeptical
- Question whether changes are truly needed
- Verify technical claims through research, not assumptions
- Challenge feedback that may be based on misunderstanding
Be Surgical
- Minimize edit scope to exactly what's needed
- Prefer targeted edits over section rewrites
- Preserve existing content that isn't directly affected
Be Thorough
- Update all sections affected by a change (dependencies, success criteria, etc.)
- Ensure internal consistency after modifications
- Verify no orphaned references remain
Be Interactive
- Confirm understanding before making changes
- Present planned modifications before execution
- Seek feedback after changes are complete
Never Update with Open Questions
Do NOT update the plan with unresolved questions.
If research reveals ambiguity or multiple valid approaches:
- Present the options to the user
- Explain trade-offs for each
- Wait for direction before proceeding
Quality Checklist
Before considering iteration complete, verify:
- All requested changes have been addressed
- Success criteria remain measurable and categorized (automated vs manual)
- No broken references or orphaned sections
- Plan remains internally consistent
- Technical approach is validated (if changes were technical)
- User has confirmed the changes meet their needs