Agent skill
iterate-plan
Update an existing implementation plan based on feedback, grounded in codebase reality. Makes surgical edits while preserving completed work.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/iterate-plan
SKILL.md
Iterate Implementation Plan
Update an existing implementation plan based on feedback, grounded in codebase reality.
When Invoked
Three scenarios:
- No plan file provided: Ask for the plan path (list available plans in
plans/) - Plan file provided but NO feedback: Ask what changes to make
- Both provided: Proceed directly with updates
Process
Step 1: Understand Current Plan
- Read the existing plan file completely (no limit/offset)
- Understand the overall structure and approach
- Note the phases, success criteria, and implementation decisions
- Check for existing checkmarks (work already completed)
- Identify what worked and what needs changing
Step 2: Understand Requested Changes
Listen carefully to what the user wants:
- Are they adding new requirements?
- Changing the approach?
- Adding/removing phases?
- Adjusting scope?
- Fixing errors or omissions?
Ask clarifying questions if unclear:
- Use AskUserQuestion tool for ambiguous requests
- Confirm understanding before making changes
- Get specific about what success looks like
Step 3: Research If Needed
Only if changes require new technical understanding:
- Create a todo list for research tasks
- Search for relevant patterns in the codebase
- Read files that will be affected by changes
- Check for existing documentation or specs
- Validate feasibility of requested changes
Use parallel research when possible - run multiple searches/reads simultaneously.
Skip research if:
- Changes are straightforward (adding success criteria, clarifying wording)
- You already understand the technical context
- Changes are scope/organizational, not technical
Step 4: Confirm Understanding
Before making changes, confirm with the user:
Based on your feedback, I understand you want to:
- [Change 1 with specific detail]
- [Change 2 with specific detail]
[If research was done:]
My research found:
- [Relevant code pattern or constraint]
- [Relevant existing implementation]
I plan to update the plan by:
1. [Specific modification to plan section X]
2. [Specific modification to plan section Y]
Does this align with your intent?
Wait for confirmation before proceeding.
Step 5: Update the Plan
- Make focused, precise edits to the existing plan
- Maintain existing structure unless explicitly changing it
- Update success criteria if scope changed
- Add new phases following existing pattern
- Preserve completed work - don't remove checkmarks or completed phases
Ensure consistency:
- If adding a phase, match the format of existing phases
- If modifying scope, update "Out of Scope" section
- If changing approach, update affected phases and success criteria
- Maintain automated vs manual success criteria distinction
- Update "Related" section if new specs/research referenced
Use Edit tool for surgical changes:
- Change specific sections, don't rewrite whole file
- Preserve good content
- Keep version history implicit (plan files don't need changelog)
Step 6: Present Changes
I've updated the plan at `plans/[filename].md`
**Changes made:**
1. [Specific change 1 - section affected]
2. [Specific change 2 - section affected]
3. [Specific change 3 - section affected]
**Why these changes:**
[Brief rationale tying back to user's feedback]
**Impact:**
- [How this affects implementation effort, time, or approach]
- [Any new risks or dependencies]
Would you like any further adjustments?
Step 7: Iterate If Needed
If user has more feedback:
- Repeat from Step 2
- Continue until plan is approved
- Track iterations with todo list if multiple rounds
Guidelines
- Be Skeptical: Question vague feedback, verify technical feasibility
- Be Surgical: Make precise edits, preserve good content
- Be Thorough: Read entire plan, understand context before changing
- Be Interactive: Confirm understanding before making changes
- No Open Questions: Ask immediately if changes raise questions
- Respect Completed Work: Don't undo or modify completed phases without good reason
- Maintain Quality: Updated plan should still be specific, actionable, and complete
Common Iteration Scenarios
Adding a New Phase
User feedback: "We also need to add API caching"
Process:
- Understand where in sequence this phase belongs
- Research existing caching patterns in codebase
- Draft new phase following existing format
- Update dependencies between phases if needed
- Add to success criteria and testing strategy
Changing Approach
User feedback: "Let's use Redis instead of in-memory caching"
Process:
- Research Redis usage patterns in codebase
- Identify all phases affected by this change
- Update implementation approach in affected phases
- Update success criteria (Redis-specific checks)
- Update risks & mitigations section
Adding Details
User feedback: "The authentication phase is too vague"
Process:
- Identify what's unclear or missing
- Research authentication implementation patterns
- Add specific file paths and changes
- Add detailed test requirements
- Make success criteria more specific
Removing Scope
User feedback: "Let's skip the admin UI for now"
Process:
- Identify all phases related to admin UI
- Move removed work to "Out of Scope" section
- Remove dependencies on removed phases
- Verify remaining phases still make sense
- Update overall timeline/effort estimate
Splitting a Phase
User feedback: "Phase 3 is too large, can we break it up?"
Process:
- Identify logical split points in the phase
- Create Phase 3a and 3b (or 3 and 4)
- Divide success criteria appropriately
- Add dependencies if one must come before the other
- Renumber subsequent phases
Correcting Errors
User feedback: "That approach won't work with our auth system"
Process:
- Understand the constraint or conflict
- Research the correct approach
- Update affected phases with correct approach
- Verify no other phases have same error
- Update risks section if this revealed gaps
Handling Difficult Iterations
Plan is Fundamentally Wrong
If the plan needs >50% rewrite:
After reviewing your feedback and the codebase, I believe the current plan needs substantial restructuring rather than iteration.
Issues:
- [Fundamental issue 1]
- [Fundamental issue 2]
Recommendation: Create a new plan incorporating:
- [What to preserve]
- [What to change]
Would you like me to create a new plan, or should I attempt to salvage this one?
Feedback Conflicts with Plan Structure
Your requested change [X] conflicts with existing Phase [N] which does [Y].
Options:
1. Modify Phase [N] to accommodate new change (impacts: ...)
2. Add new phase before/after [N] (impacts: ...)
3. Replace Phase [N] entirely (impacts: ...)
Which approach do you prefer?
Feedback is Technically Infeasible
After researching, I found that [requested change] is not feasible because [technical reason].
Evidence:
- [File/code showing constraint]
- [Documentation or pattern showing limitation]
Alternative approaches:
1. [Alternative 1 - achieves similar goal]
2. [Alternative 2 - different tradeoff]
Which direction should we take?
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?