Mode Reference - johnpeterman72/CursorRIPER.sigma GitHub Wiki
π Mode Reference Guide
Comprehensive reference for all five RIPER modes, including permissions, operations, behaviors, and best practices.
π― Mode Overview Table
Mode | Symbol | Purpose | Key Restriction | Best For |
---|---|---|---|---|
RESEARCH | Ξ©β π | Understand | Cannot write | Investigation |
INNOVATE | Ξ©β π‘ | Explore | Cannot implement | Design |
PLAN | Ξ©β π | Specify | Cannot execute | Architecture |
EXECUTE | Ξ©β βοΈ | Implement | Cannot search | Coding |
REVIEW | Ξ©β π | Validate | Cannot modify | Quality |
π RESEARCH Mode (Ξ©β)
Definition
Ξ©β = πR βΆ β(Ξ©β) βΆ +π[0:3] -π[4:15] βΆ [MODE: RESEARCH]+findings
Purpose
Information gathering and understanding phase.
Permissions
β(Ξ©β) = {R: β, C: β, U: β, D: β}
- β Read: All files, documentation, code
- β Create: No file creation
- β Update: No modifications
- β Delete: No deletions
Allowed Operations
π(Ξ©β) = {
πβᡦββα΅£α΅₯β: β, // Read, analyze, identify
πα΅₯α΅’α΅£βα΅€ββ: ~, // Limited conceptual work
πα΅£βββ: β // No physical changes
}
Enabled Functions
read_files
- Read any project fileask_questions
- Clarify requirementsobserve_code
- Analyze implementationsdocument_findings
- Record discoveries
Key Activities
-
Requirements Analysis
"What are the current authentication requirements?" "How is user data currently stored?"
-
Code Investigation
"Analyze the current error handling approach" "What design patterns are used?"
-
Documentation Review
"Check API documentation" "Review system architecture"
Memory Updates
- Οβ (projectbrief.md): Requirements discovered
- Οβ (techContext.md): Technical findings
- Οβ (activeContext.md): Research focus
Context Preferences
MΞ[Ξ©β] = [Ξβ, Ξβ, Ξβ] // Docs, Folders, Git
Best Practices
- Cast wide net initially
- Document all findings
- Ask clarifying questions
- Don't suggest solutions yet
- Focus on "what is" not "what could be"
Common Commands
/research
!ad src/ # Add source directory
!adoc "System Docs" # Add documentation
!ag main # Check git history
Transition Triggers
- To INNOVATE: Understanding complete
- To PLAN: Solution obvious, skip innovation
- To EXECUTE: Emergency fix only
π‘ INNOVATE Mode (Ξ©β)
Definition
Ξ©β = π‘I βΆ β(Ξ©β) βΆ +π[4:6] -π[8:15] βΆ [MODE: INNOVATE]+possibilities
Purpose
Creative exploration and solution design phase.
Permissions
β(Ξ©β) = {R: β, C: ~, U: β, D: β}
- β Read: Reference materials
- π‘ Create: Conceptual only
- β Update: No modifications
- β Delete: No deletions
Allowed Operations
π(Ξ©β) = {
πβᡦββα΅£α΅₯β: β, // Read and analyze
πα΅₯α΅’α΅£βα΅€ββ: β, // Full conceptual work
πα΅£βββ: β // No implementations
}
Enabled Functions
suggest_ideas
- Propose approachesexplore_options
- Consider alternativesevaluate_approaches
- Compare solutions
Key Activities
-
Solution Exploration
"What are modern alternatives to session auth?" "How could we improve the current architecture?"
-
Pattern Discussion
"Consider using Repository pattern for data access" "Evaluate microservices vs monolithic approach"
-
Trade-off Analysis
"Compare SQL vs NoSQL for this use case" "Evaluate performance vs maintainability"
Memory Updates
- Οβ (systemPatterns.md): Design ideas
- Οβ (activeContext.md): Exploration notes
Context Preferences
MΞ[Ξ©β] = [Ξβ, Ξβ, Ξβ] // Code, Docs, Notepads
Best Practices
- Think outside the box
- Consider multiple approaches
- Don't commit to solutions
- Document all ideas
- Evaluate trade-offs
Common Commands
/innovate
!ac currentImplementation() # Reference existing
!adoc "Best Practices" # Industry standards
!an "Design Ideas" # Brainstorming notes
Transition Triggers
- To PLAN: Approach selected
- To RESEARCH: Need more info
- To EXECUTE: Never directly
π PLAN Mode (Ξ©β)
Definition
Ξ©β = πP βΆ β(Ξ©β) βΆ +π[7:9] -π[10:15] βΆ [MODE: PLAN]+checklistβββ
Purpose
Detailed specification and planning phase.
Permissions
β(Ξ©β) = {R: β, C: β, U: ~, D: β}
- β Read: All resources
- β Create: Plans and specs
- π‘ Update: Plan documents only
- β Delete: No deletions
Allowed Operations
π(Ξ©β) = {
πβᡦββα΅£α΅₯β: β, // Read and analyze
πα΅₯α΅’α΅£βα΅€ββ: β, // Design and specify
πα΅£βββ: ~ // Limited to plans
}
Enabled Functions
create_plan
- Design implementationdetail_specifications
- Define requirementssequence_steps
- Order tasks
Key Activities
-
Specification Creation
"Create detailed API specifications" "Define database schema"
-
Task Sequencing
1. Install dependencies 2. Create base structure 3. Implement core logic 4. Add error handling 5. Write tests
-
Protection Planning
"Identify sections needing Ξ¨β protection" "Plan Ξ¨β for business logic"
Memory Updates
- Οβ (activeContext.md): Plan details
- Οβ (progress.md): Milestones set
Context Preferences
MΞ[Ξ©β] = [Ξβ, Ξβ, Ξβ
] // Files, Folders, Rules
Best Practices
- Be extremely detailed
- Number every step
- Consider edge cases
- Plan protection strategy
- Define success criteria
Common Commands
/plan
!af target-file.js # Files to modify
!ar "Coding Standards" # Apply standards
"Create implementation plan"
Transition Triggers
- To EXECUTE: Plan complete
- To RESEARCH: Need clarification
- To INNOVATE: Rethink approach
βοΈ EXECUTE Mode (Ξ©β)
Definition
Ξ©β = βοΈE βΆ β(Ξ©β) βΆ +π[10:12] -[improve,create,deviate] βΆ [MODE: EXECUTE]+progress
Purpose
Implementation and coding phase.
Permissions
β(Ξ©β) = {R: β, C: β, U: β, D: ~}
- β Read: Everything
- β Create: New files/code
- β Update: Existing code
- π‘ Delete: With caution
Allowed Operations
π(Ξ©β) = {
πβᡦββα΅£α΅₯β: β, // Read as needed
πα΅₯α΅’α΅£βα΅€ββ: ~, // Limited thinking
πα΅£βββ: β // Full implementation
}
Enabled Functions
implement_code
- Write codefollow_plan
- Execute specificationstest_implementation
- Verify code
Special Restrictions
π« No Web Search in EXECUTE Mode! This maintains focus on implementation.
Key Activities
-
Code Implementation
// Implement according to plan function authenticateUser(credentials) { // Code exactly as specified }
-
Protection Application
// !cp PROTECTED - Security keys const SECRET = process.env.SECRET; // !cp END-P
-
Testing
describe('Authentication', () => { test('validates credentials', () => { // Test implementation }); });
Memory Updates
- Οβ (progress.md): Implementation progress
- Οβ (protection.md): Protected code
Context Preferences
MΞ[Ξ©β] = [Ξβ, Ξβ, Ξβ] // Code, Files, Pinned
Best Practices
- Follow plan exactly
- No improvisation
- Add protection immediately
- Test as you go
- Stay focused (no search!)
Common Commands
/execute
!af src/new-feature.js # Track new files
!ac implementedFunction() # Track new code
!cp # Protect critical parts
Transition Triggers
- To REVIEW: Implementation complete
- To PLAN: Need to adjust approach
- To RESEARCH: Never (stay focused)
π REVIEW Mode (Ξ©β )
Definition
Ξ©β
= πRV βΆ β(Ξ©β
) βΆ +π[13:15] -[modify,improve] βΆ [MODE: REVIEW]+{β
|β οΈ}
Purpose
Validation and quality assurance phase.
Permissions
β(Ξ©β
) = {R: β, C: β, U: β, D: β}
- β Read: Everything
- β Create: No creation
- β Update: No modifications
- β Delete: No deletions
Allowed Operations
π(Ξ©β
) = {
πβᡦββα΅£α΅₯β: β, // Full analysis
πα΅₯α΅’α΅£βα΅€ββ: ~, // Limited evaluation
πα΅£βββ: β // No changes
}
Enabled Functions
validate_output
- Check correctnessverify_against_plan
- Compare to specreport_deviations
- Document issues
Key Activities
-
Code Review
"Review authentication implementation" "Check code quality and standards"
-
Requirement Verification
β Requirement [βοΈΟβ:Rβ] implemented β οΈ Requirement [βοΈΟβ:Rβ] partially done β Requirement [βοΈΟβ:Rβ] missing
-
Protection Audit
"Verify all critical code protected" "Check protection coverage"
Memory Updates
- Οβ (progress.md): Review results
- Οβ (activeContext.md): Issues found
Context Preferences
MΞ[Ξ©β
] = [Ξβ, Ξβ, Ξβ] // Code, Files, Git
Best Practices
- Be thorough
- Check every requirement
- Verify protection
- Document all findings
- Don't fix issues (wrong mode!)
Common Commands
/review
!af implemented-files.js # Review targets
!ag main...feature # Compare changes
"Review against requirements"
Transition Triggers
- To EXECUTE: Fix issues found
- To PLAN: Major changes needed
- To RESEARCH: Investigate problems
π Mode Transition Rules
Valid Transitions
All modes can transition to any other mode:
Ξ©β β Ξ©β β Ξ©β β Ξ©β β Ξ©β
Standard Flow
RESEARCH β INNOVATE β PLAN β EXECUTE β REVIEW
Ξ©β Ξ©β Ξ©β Ξ©β Ξ©β
Transition Process
- Backup current state
- Verify completion
- Switch mode
- Update permissions
- Load context
- Log transition
Quick Reference Card
From\To | Research | Innovate | Plan | Execute | Review |
---|---|---|---|---|---|
Research | - | Common | Common | Rare | Rare |
Innovate | Common | - | Common | Never | Rare |
Plan | Common | Common | - | Common | Rare |
Execute | Never | Never | Common | - | Common |
Review | Common | Rare | Common | Common | - |