Team Collaboration - johnpeterman72/CursorRIPER.sigma GitHub Wiki
π₯ Team Collaboration Guide
Learn how to use CursorRIPERβ¦Ξ£ effectively in team environments, ensuring consistent workflows, shared understanding, and synchronized development.
π― Collaboration Goals
Effective team collaboration with CursorRIPERβ¦Ξ£:
- π€ Shared workflow understanding
- π Consistent memory management
- π‘οΈ Unified protection strategy
- π Smooth handoffs
- π Clear progress tracking
Without proper collaboration:
- π« Conflicting approaches
- π« Lost context between developers
- π« Inconsistent protection
- π« Duplicated work
ποΈ Team Setup
1. Shared Framework Configuration
Repository Structure:
project-root/
βββ .cursor/
β βββ rules/
β βββ RIPERsigma1.0.5.mdc # Core framework
β βββ team-standards.mdc # Team customizations
β βββ project-specific.mdc # Project rules
βββ memory-bank/ # Shared memory
β βββ projectbrief.md
β βββ systemPatterns.md
β βββ ...
βββ .gitignore # Exclude personal
Git Configuration:
# .gitignore
# Include shared memory
!/memory-bank/
# Exclude personal context
/memory-bank/personal/
/memory-bank/backups/*/
*.bak
# Exclude local notes
/memory-bank/*-local.md
2. Team Standards Document
Create team-standards.mdc
:
# Team CursorRIPERβ¦Ξ£ Standards
## Mode Usage
- Daily standup: Report current mode
- Mode switches: Document in PR description
- Feature work: Follow standard flow (RβIβPβEβR)
## Memory Management
- Update memory files before pushing
- Review memory changes in PRs
- Weekly memory sync meetings
## Protection Rules
- All API keys: Ξ¨β (PROTECTED)
- Business logic: Ξ¨β (CRITICAL)
- Shared utilities: Ξ¨β (GUARDED)
## Context Handoff
- Document active context in PRs
- Clear personal context before handoff
- Use context templates for common tasks
3. Role Assignments
Mode Champions:
- Research Champion: Ensures thorough investigation
- Plan Champion: Reviews all specifications
- Execute Champion: Monitors code quality
- Review Champion: Validates implementations
Memory Maintainers:
- Requirements Owner: Maintains Οβ
- Architecture Owner: Maintains Οβ
- Progress Tracker: Maintains Οβ
π Collaboration Workflows
1. Feature Development Workflow
Developer A - Research & Planning:
## Feature: User Notifications
### Day 1 - Research Phase
/research
- Investigated notification services
- Documented findings in Οβ
- Updated requirements in Οβ
### Day 2 - Planning Phase
/plan
- Created notification architecture
- Updated Οβ with design decisions
- Detailed plan in Οβ
### Handoff Context
!af src/notifications/ # Feature location
!ac NotificationService # Main implementation
!adoc "Notification Spec" # Requirements
Status: Ready for implementation
Developer B - Implementation:
## Continuing: User Notifications
### Day 3 - Implementation
/execute
- Retrieved context from handoff
- Implemented according to plan
- Protected critical sections:
- API keys [Ξ¨β]
- Send logic [Ξ¨β]
- Updated progress in Οβ
: 60%
### Day 4 - Completion
- Finished implementation
- Updated Οβ
: 100%
- Ready for review
Developer C - Review:
## Review: User Notifications
### Day 5 - Review Phase
/review
- Verified against requirements [βοΈΟβ:Rββ
]
- Checked protection coverage
- Validated test coverage
- Result: Approved with minor notes
2. Pair Programming Workflow
Driver Setup:
/execute
!af src/feature.js # Current file
!ac implementFeature() # Current function
!cs feature.js active # Mark active
Navigator Guidance:
"Check requirement [βοΈΟβ:Rβ]"
"This needs protection level Ξ¨β"
"Update progress in Οβ
"
Role Switch:
# Save driver context
!an "Driver context: feature.js, implementFeature()"
# Navigator becomes driver
!cc # Clear
!cm # Mode context
# Restore from notepad
3. Code Review Workflow
PR Description Template:
## PR: Implement User Notifications
### Mode History
- RESEARCH: 2024-01-15 (2 hours)
- PLAN: 2024-01-15 (1 hour)
- EXECUTE: 2024-01-16 (4 hours)
- REVIEW: 2024-01-16 (30 min)
### Memory Updates
- Οβ: Added requirement Rββ
- Οβ: New pattern Pββ (Observer)
- Οβ
: Feature Fβ complete
### Protection Added
- `src/notify/api.js:10-15` [Ξ¨β]
- `src/notify/send.js:*` [Ξ¨β]
### Context for Review
!af src/notifications/
!ac sendNotification()
!adoc "Notification Requirements"
Review Checklist:
- Mode progression logical?
- Memory files updated?
- Protection appropriate?
- Context documented?
- Cross-references valid?
π Team Protocols
1. Daily Standup Protocol
Format:
## Developer: John
- Current Mode: EXECUTE (Ξ©β)
- Current Context: Authentication feature
- Progress: 75% of JWT implementation
- Blockers: Need security review for [Ξ¨β] sections
- Next: Complete tests, switch to REVIEW
2. Memory Sync Protocol
Weekly Memory Review:
## Memory Sync Meeting - Week 3
### Requirements (Οβ)
- New: Rββ, Rββ
- Updated: Rβ
(clarified scope)
- Deprecated: Rβ (replaced by Rββ)
### Architecture (Οβ)
- New Pattern: Pββ (Event sourcing)
- Decision: Dβ (Move to microservices)
### Progress (Οβ
)
- Completed: Fβ
, Fβ, Fβ
- In Progress: Fβ (80%), Fβ (30%)
- Blocked: Fββ (awaiting design)
3. Protection Review Protocol
Monthly Protection Audit:
## Protection Audit - January
### Coverage Report
- Total protected sections: 47
- New this month: 12
- Removed: 3
- Modified: 5
### Team Violations
- Total: 2
- Resolved: 2
- Process improvements: Added pre-commit hook
### Protection Gaps
- Payment processing: Needs Ξ¨β
- User data handling: Needs Ξ¨β
- API endpoints: Need Ξ¨β
4. Context Handoff Protocol
Handoff Document:
## Context Handoff: Authentication Feature
### Current State
- Mode: EXECUTE (60% complete)
- Last action: Implemented token generation
### Active Context
Files:
- src/auth/jwt.service.ts π’
- src/auth/refresh.service.ts π‘
- tests/auth.test.ts π΄ (needs update)
Code:
- generateToken() β
- validateToken() β
- refreshToken() β³ (in progress)
### Next Steps
1. Complete refreshToken()
2. Update tests
3. Add protection markers
4. Switch to REVIEW
### Notes
- Watch for edge case with expired tokens
- Need security review before merge
π οΈ Team Tools
1. Shared Templates
Feature Template:
## Feature: [Name]
- Lead: [Developer]
- Mode: [Current]
- Started: [Date]
- Target: [Date]
- Status: [%]
### Requirements
- [βοΈΟβ:Rx]
### Context
!af [files]
!ac [code]
Bug Template:
## Bug: [Description]
- Severity: [HIGH|MEDIUM|LOW]
- Assigned: [Developer]
- Mode: [Current]
### Investigation (RESEARCH)
- Root cause:
- Affected files:
### Fix Plan (PLAN)
- Approach:
- Files to modify:
### Implementation (EXECUTE)
- Changes made:
- Tests added:
2. Team Commands
Collaboration Commands:
"Show team progress" # Overview of all features
"List my assigned items" # Personal tasks
"Check protection coverage" # Team-wide audit
"Generate handoff document" # Context transfer
3. Integration Scripts
Pre-commit Hook:
#!/bin/bash
# .git/hooks/pre-commit
# Check for memory updates
if git diff --cached --name-only | grep -q "memory-bank/"; then
echo "β Memory files updated"
else
echo "β οΈ Warning: No memory updates detected"
fi
# Check for protection markers
if git diff --cached | grep -q "!c[pcgidt]"; then
echo "β Protection markers found"
fi
# Validate cross-references
./scripts/validate-references.sh
CI/CD Integration:
# .github/workflows/riper-check.yml
name: RIPER Framework Check
on: [push, pull_request]
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Check Memory Files
run: |
test -f memory-bank/projectbrief.md
test -f memory-bank/progress.md
- name: Validate Protection
run: |
./scripts/check-protection.sh
- name: Verify Cross-References
run: |
./scripts/validate-xrefs.sh
π‘ Team Best Practices
1. Communication
- Document mode switches
- Explain protection decisions
- Share context changes
- Update memory promptly
2. Consistency
- Follow team standards
- Use agreed patterns
- Maintain naming conventions
- Apply protection uniformly
3. Knowledge Sharing
- Regular framework training
- Share workflow tips
- Document lessons learned
- Mentor new team members
4. Conflict Resolution
- Memory conflicts: Latest reasonable update wins
- Protection disputes: Security/compliance decides
- Mode preferences: Follow standard flow
- Context conflicts: Merge both contexts
5. Continuous Improvement
- Weekly retrospectives
- Framework customization
- Tool development
- Process refinement
π Team Metrics
Productivity Metrics
## Team RIPER Metrics - January
### Mode Distribution
- Research: 15% β οΈ (target: 20%)
- Innovate: 10% β
- Plan: 20% β
- Execute: 45% β
- Review: 10% β οΈ (target: 15%)
### Memory Health
- Update frequency: Daily β
- Cross-references: 95% valid β
- Protection coverage: 88% β οΈ
### Collaboration
- Handoffs: 12 (smooth: 10, issues: 2)
- PR cycle time: 4.5 hours β
- Context clarity: 8/10
Quality Metrics
## Quality Indicators
### Protection Effectiveness
- Violations prevented: 23
- Critical code protected: 100%
- Security issues: 0 β
### Memory Accuracy
- Requirements up-to-date: 95%
- Progress accuracy: 90%
- Architecture current: 85%
### Workflow Compliance
- Standard flow followed: 78%
- Mode discipline: 85%
- Context management: 80%
π¨ Common Team Issues
1. Memory Conflicts
Problem: Multiple updates to same file Solution:
- Pull before updating
- Merge thoughtfully
- Communicate changes
2. Context Loss
Problem: Handoff missing information Solution:
- Use handoff template
- Document in PR
- Verbal handoff when complex
3. Protection Inconsistency
Problem: Different protection standards Solution:
- Team protection guide
- Regular audits
- Automated checks
4. Mode Confusion
Problem: Unclear when to switch modes Solution:
- Mode champions
- Clear triggers
- Team training
π Onboarding New Team Members
Day 1: Framework Basics
- Install framework
- Read core concepts
- Practice mode switches
- Understand memory files
Day 2: Team Standards
- Review team customizations
- Learn protection rules
- Practice context management
- Understand workflows
Day 3: Hands-on Practice
- Pair programming session
- Simple feature workflow
- Code review participation
- Memory update practice
Week 1: Integration
- Assigned mentor
- First solo feature
- Team standup participation
- Framework feedback