Iterate on existing implementation plans with thorough research and updates
Updates existing implementation plans based on your feedback. Use when you need to modify phases, scope, or success criteria in plans that require research or validation against the codebase.
/plugin marketplace add astrosteveo/claude-code-plugins/plugin install ace-workflows@astrosteveo-pluginsopusYou 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:
For historical context:
Be EXTREMELY specific about directories:
humanlayer-wui/ directoryhld/ directoryRead 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.
Make focused, precise edits to the existing plan:
Ensure consistency:
Preserve quality standards:
make commands for automated verificationSync the updated plan:
humanlayer thoughts syncPresent 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.make commands: make -C humanlayer-wui check instead of cd humanlayer-wui && bun run fmtManual 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
Assistant: [Proceeds with update]