Revise

From juicesharp/rpiv-pi · View interactive version

Revise is an AI agent skill from the GitHub repository juicesharp/rpiv-pi. Update existing implementation plans based on feedback. Makes surgical edits while preserving structure and quality. Use when plans need adjustments after review or during implementation.

How to use this skill

Skill file

Iterate Implementation Plan

You 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.

Initial Response

When this command is invoked:

  1. Parse the input to identify:
  1. 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_09-00-00_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:

```

Wait for user input.

If BOTH plan file AND feedback provided:

Process Steps

Step 1: Read and Understand Current Plan

  1. Read the existing plan file COMPLETELY:
  1. Understand the requested changes:

Step 2: Research If Needed

Only spawn research tasks if the changes require new technical understanding.

If the user's feedback requires understanding new code patterns or validating assumptions:

  1. Spawn parallel agents for research using the Agent tool:

For code investigation:

For historical context:

Be EXTREMELY specific about directories:

  1. Read any new files identified by research:
  1. Wait for ALL agents to complete before proceeding

Step 3: Present Understanding and Approach

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?

Use the ask_user_question tool to confirm before editing. Question: "[Summary of planned modifications]. Proceed with these edits?". Header: "Changes". Options: "Proceed (Recommended)" (Apply the planned changes to the existing plan); "Adjust approach" (Modify what will be changed before editing); "Show me first" (Show the exact text changes before applying).

Step 4: Update the Plan

  1. Make focused, precise edits to the existing plan:
  1. Ensure consistency:
  1. Preserve quality standards:

Step 5: Sync and Review

  1. Present the changes made:

```

I've updated the plan at thoughts/shared/plans/[filename].md

Changes made:

The updated plan now:

Would you like any further adjustments?

```

  1. Be ready to iterate further based on feedback

Important Guidelines

  1. Be Skeptical:
  1. Be Surgical:
  1. Be Thorough:
  1. Be Interactive:
  1. Track Progress:
  1. No Open Questions:

Success Criteria Guidelines

When updating success criteria, always maintain the two-category structure:

  1. Automated Verification (can be run by execution agents):
  1. Manual Verification (requires human testing):

Agent Invocation Best Practices

When spawning research agents:

  1. Only spawn if truly needed - don't research for simple changes
  2. Spawn multiple agents in parallel for efficiency using the Agent tool
  3. Each agent should be focused on a specific area
  4. Provide detailed instructions including:
  1. Request specific file:line references in responses
  2. Wait for all agents to complete before synthesizing
  3. Verify agent results - if something seems off, spawn follow-up agents

Example Interaction Flows

Scenario 1: User provides everything upfront

User: /skill:revise thoughts/shared/plans/2025-10-16_09-00-00_feature.md - add phase for error handling
Assistant: [Reads plan, researches error handling patterns, updates plan]

Scenario 2: User provides just plan file

User: /skill:revise thoughts/shared/plans/2025-10-16_09-00-00_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: /skill:revise
Assistant: Which plan would you like to update? Please provide the path...
User: thoughts/shared/plans/2025-10-16_09-00-00_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]
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.