Phase Management - johnpeterman72/CursorRIPER.sigma GitHub Wiki
π Project Phase Management
CursorRIPERβ¦Ξ£ organizes project lifecycle into four distinct phases (Ξ ), each with specific characteristics and transitions.
π― Phase Overview
Phase | Symbol | Name | Description | Trigger |
---|---|---|---|---|
Phase 1 | Ξ β π± | UNINITIATED | Framework ready, not started | Installation |
Phase 2 | Ξ β π§ | INITIALIZING | Setting up project | /start |
Phase 3 | Ξ β ποΈ | DEVELOPMENT | Active development | Setup complete |
Phase 4 | Ξ β π§ | MAINTENANCE | Long-term support | User decision |
π± Phase 1: Uninitiated (Ξ β)
Characteristics
Ξ β = π±UNINITIATED βΆ framework_installed β§ Β¬project_started
State
- β Framework files present
- β Rules enabled in Cursor
- β No memory bank created
- β No project configuration
- β No mode active
What Happens
- Framework waits for initialization
- No memory files exist
- No active context
- AI recognizes framework but has no project data
Example State
.cursor/
βββ rules/
βββ RIPERsigma1.0.5.mdc β Present
/memory-bank/ β Not created
Next Step
Type /start
to begin initialization
π§ Phase 2: Initializing (Ξ β)
Characteristics
Ξ β = π§INITIALIZING βΆ START_active β§ setup_ongoing
State
- β Memory bank created
- β³ Gathering requirements
- β³ Setting up structure
- π START process active
START Process (Sβ-Sβ)
Sβ: gather(requirements) βΆ create(Οβ)
Sβ: select(technologies) βΆ update(Οβ)
Sβ: define(architecture) βΆ create(Οβ)
Sβ: scaffold(project) βΆ create(directories)
Sβ
: setup(environment) βΆ update(Οβ)
Sβ: initialize(memory) βΆ create(Οβ-Οβ)
Initialization Workflow
Step 1: Requirements Gathering
"What kind of project are we building?"
"What are the main requirements?"
"Who are the stakeholders?"
β Updates projectbrief.md
Step 2: Technology Selection
"What programming language?"
"Which frameworks?"
"Database preferences?"
β Updates techContext.md
Step 3: Architecture Definition
"Monolith or microservices?"
"API structure?"
"Component organization?"
β Updates systemPatterns.md
Step 4: Project Scaffolding
Creating directory structure...
Setting up initial files...
Configuring environment...
β Creates project structure
Step 5: Environment Setup
"Development environment requirements?"
"Deployment targets?"
"CI/CD preferences?"
β Completes techContext.md
Step 6: Memory Initialization
β All memory files created
β Templates populated
β Cross-references established
β Memory system ready
Duration
- Typical: 15-30 minutes
- Depends on project complexity
- Can be paused and resumed
Completion Trigger
β
completion(START_phase) βΆ transition(Ξ β β Ξ β)
ποΈ Phase 3: Development (Ξ β)
Characteristics
Ξ β = ποΈDEVELOPMENT βΆ main_development β§ RIPER_active
State
- β All systems operational
- β RIPER modes available
- β Memory actively updated
- β Full framework features
Active Systems
Mode Engine
All five modes fully functional:
π Research βοΈ π‘ Innovate βοΈ π Plan βοΈ βοΈ Execute βοΈ π Review
Memory System
Continuous updates:
Οβ: Requirements refined
Οβ: Patterns documented
Οβ: Stack evolving
Οβ: Context tracking
Οβ
: Progress monitoring
Οβ: Protection growing
Protection System
Active enforcement:
Ξ¨β-Ξ¨β: Protection levels enforced
Ξβ-Ξβ: Context references tracked
β: Permissions checked
Typical Activities
Week 1-2: Foundation
- Core architecture implementation
- Database schema design
- Basic API structure
Week 3-4: Features
- Authentication system
- Core business logic
- API endpoints
Week 5-6: Integration
- Frontend connection
- Third-party services
- Testing suite
Week 7-8: Polish
- Performance optimization
- Security hardening
- Documentation
Progress Tracking
## π Development Metrics
- Features Complete: 24/30 (80%)
- Test Coverage: 78%
- Performance: β
Meeting targets
- Security: β οΈ Audit pending
Phase Indicators
- High mode switching frequency
- Rapid memory updates
- Active protection additions
- Growing context references
π§ Phase 4: Maintenance (Ξ β)
Characteristics
Ξ β = π§MAINTENANCE βΆ long_term_support β§ RIPER_active
State
- β Development complete
- β Production deployed
- π Bug fixes only
- π Minor enhancements
Transition Trigger
Ξ β βοΈ Ξ β: πuser_request
Can switch between Development and Maintenance as needed.
Maintenance Activities
Bug Fixes
/research β Investigate issue
/plan β Design fix
/execute β Implement fix
/review β Verify resolution
Performance Tuning
/research β Analyze metrics
/innovate β Optimization ideas
/plan β Improvement strategy
/execute β Apply optimizations
Security Updates
/research β Security audit
/plan β Patch strategy
/execute β Apply updates
/review β Verify security
Memory Focus
- Οβ (progress.md): Issue tracking
- Οβ (protection.md): Critical code
- Οβ (activeContext.md): Current fixes
Typical Workflow
- Issue Reported β Research mode
- Fix Planned β Plan mode
- Fix Implemented β Execute mode
- Fix Verified β Review mode
- Documentation Updated β Back to standby
π Phase Transitions
Transition Map
Ξ β β Ξ β: /start command
Ξ β β Ξ β: Automatic on completion
Ξ β βοΈ Ξ β: User decision
Ξ β β Ξ β (Start Project)
transition(Ξ β β Ξ β) = {
verify(framework_ready),
create_memory_bank(),
enter(RESEARCH_mode),
begin(START_process)
}
Ξ β β Ξ β (Begin Development)
transition(Ξ β β Ξ β) = {
verify(all_steps_complete),
validate(memory_files),
enable(full_features),
log("Development phase active")
}
Ξ β βοΈ Ξ β (Development βοΈ Maintenance)
transition(Ξ β βοΈ Ξ β) = {
user_command("/maintenance" | "/development"),
update_phase_marker(),
adjust_workflow_focus(),
maintain_all_features()
}
π Phase Indicators
How to Identify Current Phase
Ξ β Indicators
- No
/memory-bank/
folder - Framework responds to
/start
- No mode indicated
Ξ β Indicators
- START process active
- Memory files being created
- Gathering requirements
Ξ β Indicators
- Full mode switching
- Active feature development
- Rapid progress updates
Ξ β Indicators
- Mostly Research/Execute modes
- Focus on fixes
- Stable memory files
Phase Status Check
"What phase are we in?"
"Show current phase status"
"Check phase indicators"
π― Phase-Specific Strategies
Ξ β: Preparation
- Review framework docs
- Prepare requirements
- Set up development environment
Ξ β: Thoughtful Setup
- Don't rush initialization
- Provide detailed requirements
- Consider future needs
Ξ β: Structured Development
- Follow RIPER workflow
- Maintain protection discipline
- Regular progress updates
Ξ β: Efficient Maintenance
- Quick issue resolution
- Minimal disruption
- Preserve stability
π‘ Best Practices
1. Complete Each Phase
Don't skip initialization steps - they establish critical foundation.
2. Use Phase-Appropriate Modes
- Ξ β: Mostly Research/Plan
- Ξ β: All modes actively
- Ξ β: Research/Execute focus
3. Monitor Phase Health
## Phase Health Check
- Memory files current? β
- Protection adequate? β
- Context relevant? β οΈ
- Progress tracked? β
4. Phase Documentation
Keep phase transitions documented:
## Phase History
- 2024-01-01: Project started (Ξ β β Ξ β)
- 2024-01-02: Development began (Ξ β β Ξ β)
- 2024-03-15: Moved to maintenance (Ξ β β Ξ β)
- 2024-03-20: Hotfix development (Ξ β β Ξ β)
π¨ Common Phase Issues
Stuck in Initialization
Problem: START process incomplete Solution: Review missing steps, complete requirements
Premature Maintenance
Problem: Moved to Ξ β too early
Solution: Switch back with /development
Phase Confusion
Problem: Unsure of current phase Solution: Check memory files and mode availability
Lost Phase Context
Problem: After long break
Solution: Review progress.md
and activeContext.md
π Phase Metrics
Typical Duration
- Ξ β: Minutes to days (until
/start
) - Ξ β: 15-60 minutes
- Ξ β: Weeks to months
- Ξ β: Ongoing
Phase Efficiency
Track phase performance:
## Phase Metrics
- Initialization Time: 25 minutes
- Development Velocity: 5 features/week
- Maintenance Response: <2 hours
- Phase Transitions: 3 total
π Phase Integration
With Modes
Each phase favors certain modes:
- Ξ β: Research, Plan
- Ξ β: All modes equally
- Ξ β: Research, Execute, Review
With Memory
Phase determines memory focus:
- Ξ β: Creating foundation
- Ξ β: Active updates
- Ξ β: Selective updates
With Protection
Protection strategy by phase:
- Ξ β: Identify critical areas
- Ξ β: Apply protection actively
- Ξ β: Maintain protection integrity