The RIPER workflow is the core component of the CursorRIPER Framework, providing a structured approach to software development through five distinct operational modes. This guide explains how to use each mode effectively.
flowchart LR
R[RESEARCH] --> I[INNOVATE]
I --> P[PLAN]
P --> E[EXECUTE]
E --> Rev[REVIEW]
Rev -.-> R
style R fill:#e6f3ff,stroke:#0066cc
style I fill:#e6ffe6,stroke:#006600
style P fill:#fff0e6,stroke:#cc6600
style E fill:#ffe6e6,stroke:#cc0000
style Rev fill:#f0e6ff,stroke:#6600cc
Information gathering and understanding existing code.
- At the beginning of a new feature or bugfix
- When encountering unfamiliar code
- When you need to understand how something works
/researchorENTER RESEARCH MODE
- "I need to understand how the authentication system works."
- "Can you analyze the data flow in the payment processing module?"
- "Help me understand the existing implementation of the shopping cart."
- Be specific about what you want to understand
- Provide context by @-mentioning relevant files
- Ask follow-up questions to deepen understanding
- Take time to thoroughly understand before moving to INNOVATE
Brainstorming potential approaches and solutions.
- After gathering information in RESEARCH mode
- When exploring different approaches to a problem
- When you need creative solutions
/innovateorENTER INNOVATE MODE
- "What are some approaches to implement the user notification system?"
- "Let's brainstorm different ways to optimize the database queries."
- "Help me think through different architectural options for the new feature."
- Consider multiple approaches rather than settling on the first idea
- Discuss pros and cons of each approach
- Explore trade-offs between different solutions
- Don't commit to a specific implementation yet
- Document key decisions and rationales
Creating detailed technical specifications.
- After selecting an approach in INNOVATE mode
- When you need a comprehensive implementation plan
- Before making significant code changes
/planorENTER PLAN MODE
- "Create a detailed plan for implementing the user notification system."
- "Let's develop a step-by-step plan for refactoring the payment processing module."
- "Help me plan the implementation of the new feature."
- The AI will deeply reflect on the changes needed
- Analyze existing code to map the full scope of changes
- Ask 4-6 clarifying questions to refine the plan
- Draft a comprehensive plan of action
- Convert the plan into a numbered, sequential checklist
- Answer clarifying questions thoroughly
- Review the plan carefully before approving
- Ensure the plan covers all aspects of the implementation
- Verify that all file paths and function names are correct
- Consider potential side effects of the planned changes
Implementing exactly what was planned in PLAN mode.
- After approving a plan in PLAN mode
- When you're ready to implement changes
- When you have a clear, approved plan to follow
/executeorENTER EXECUTE MODE
- "Let's start implementing the approved plan."
- "Implement steps 1-3 from the plan."
- "Continue execution from step 4."
- Only enter EXECUTE mode after a plan is approved
- Follow the plan exactly as specified
- Track progress against the checklist
- If any issues arise that require deviation, return to PLAN mode
- Update memory bank files as you make progress
Validating implementation against the plan.
- After completing implementation in EXECUTE mode
- When you want to verify changes match the plan
- Before committing or merging changes
/revieworENTER REVIEW MODE
- "Let's review the implementation against our plan."
- "Validate the changes we just made."
- "Review steps 1-5 to ensure they match the plan."
- Be thorough in reviewing all changes
- Pay attention to any deviation flags
- Decide whether deviations are acceptable or need to be fixed
- Document any deviations and their rationales
- Update memory bank files with review findings
You can transition between modes at any time using the appropriate command. The typical workflow follows the RIPER sequence:
- Start with RESEARCH to understand the problem
- Move to INNOVATE to explore potential solutions
- Transition to PLAN to create a detailed implementation plan
- Enter EXECUTE to implement the plan
- Finally, use REVIEW to validate the implementation
However, you can move between modes as needed, except for EXECUTE mode which requires an approved plan from PLAN mode.
As you progress through the RIPER workflow, the framework will automatically update memory bank files:
activeContext.md- Updated with current focus and changesprogress.md- Tracks implementation progresssystemPatterns.md- Documents architectural decisions
Keep these files up to date to maintain context across sessions.
The CursorRIPER Framework prevents coding disasters while maintaining perfect continuity across sessions.
