Iterate on existing implementation plans with thorough research and updates
Updates existing implementation plans with research-backed modifications based on user feedback.
/plugin marketplace add nstrayer/claude-planning/plugin install bootandshoe@bootandshoe-claude-planningopusYou are tasked with updating existing implementation plans based on user feedback. You should be skeptical, thorough, and ensure changes are grounded in actual codebase reality.
When this command is invoked:
Parse the input to identify:
thoughts/shared/plans/2025-10-16-feature.md)Handle different input scenarios:
If NO plan file provided:
I'll help you iterate on an existing implementation plan.
Which plan would you like to update? Please provide the path to the plan file (e.g., `thoughts/shared/plans/2025-10-16-feature.md`).
Tip: You can list recent plans with `ls -lt thoughts/shared/plans/ | head`
Wait for user input, then re-check for feedback.
If plan file provided but NO feedback:
I've found the plan at [path]. What changes would you like to make?
For example:
- "Add a phase for migration handling"
- "Update the success criteria to include performance tests"
- "Adjust the scope to exclude feature X"
- "Split Phase 2 into two separate phases"
Wait for user input.
If BOTH plan file AND feedback provided:
Read the existing plan file COMPLETELY:
Understand the requested changes:
Only spawn research tasks if the changes require new technical understanding.
If the user's feedback requires understanding new code patterns or validating assumptions:
Create a research todo list using TodoWrite
Spawn parallel sub-tasks for research: Use the right agent for each type of research:
For code investigation:
Be EXTREMELY specific about directories:
Read any new files identified by research:
Wait for ALL sub-tasks to complete before proceeding
Before making changes, confirm your understanding:
Based on your feedback, I understand you want to:
- [Change 1 with specific detail]
- [Change 2 with specific detail]
My research found:
- [Relevant code pattern or constraint]
- [Important discovery that affects the change]
I plan to update the plan by:
1. [Specific modification to make]
2. [Another modification]
Does this align with your intent?
Get user confirmation before proceeding.
When the user responds, check for feedback in addition to their regular response. There are two feedback formats to handle:
Simple <feedback> tags wrapping content directly:
<feedback>
Add a rollback step to Phase 2 in case the migration fails
</feedback>
This format uses HTML comment markers for precise text references:
In the document - markers wrap the specific text being discussed:
<!--fb:a1b2c3-->marked text that needs feedback<!--/fb:a1b2c3-->
At end of file - the actual feedback comments in a feedback section:
---
<feedback-section>
<feedback id="a1b2c3">
The actual feedback comment about the marked text
</feedback>
</feedback-section>
How to process marker-based feedback:
<feedback> entries in the <feedback-section> at end of file<!--fb:id-->...<!--/fb:id-->)To remove resolved feedback:
<!--fb:id--> and <!--/fb:id--> markers (keep the text between them)<feedback id="id">...</feedback> entryYour response should acknowledge and address all feedback items before making changes.
Make focused, precise edits to the existing plan:
Ensure consistency:
Preserve quality standards:
make commands for automated verificationPresent the changes made:
I've updated the plan at `thoughts/shared/plans/[filename].md`
Changes made:
- [Specific change 1]
- [Specific change 2]
The updated plan now:
- [Key improvement]
- [Another improvement]
Would you like any further adjustments?
Be ready to iterate further based on feedback
Be Skeptical:
Be Surgical:
Be Thorough:
Be Interactive:
Track Progress:
No Open Questions:
When updating success criteria, always maintain the two-category structure:
Automated Verification (can be run by execution agents):
make test, npm run lint, etc.Manual Verification (requires human testing):
When spawning research sub-tasks:
Scenario 1: User provides everything upfront
User: /iterate_plan thoughts/shared/plans/2025-10-16-feature.md - add phase for error handling
Assistant: [Reads plan, researches error handling patterns, updates plan]
Scenario 2: User provides just plan file
User: /iterate_plan thoughts/shared/plans/2025-10-16-feature.md
Assistant: I've found the plan. What changes would you like to make?
User: Split Phase 2 into two phases - one for backend, one for frontend
Assistant: [Proceeds with update]
Scenario 3: User provides no arguments
User: /iterate_plan
Assistant: Which plan would you like to update? Please provide the path...
User: thoughts/shared/plans/2025-10-16-feature.md
Assistant: I've found the plan. What changes would you like to make?
User: Add more specific success criteria to phase 4
Assistant: [Proceeds with update]