| name | risk-analysis |
| description | Identify technical risks and generate mitigation strategies for a project based on its architecture, tech stack, and requirements. Use when Dev needs to surface implementation risks before task breakdown, especially for high-complexity or high-stakes features. |
| inclusion | manual |
Risk Analysis
Identify technical risks in a project's architecture and requirements, assess their impact and probability, and generate concrete mitigation strategies.
When to Use
- Dev has completed architecture design and needs to surface risks before task breakdown
- A feature has high complexity, tight deadlines, or unfamiliar technology
- Stakeholders need a risk register before committing to a delivery plan
Input
architecture: "React SPA + Node.js API + PostgreSQL + Redis"
keyFeatures:
- "Real-time collaborative editing"
- "File upload up to 100MB"
- "Third-party payment integration"
constraints: "3-month deadline, team of 5, no dedicated DevOps"
Output Format
## Risk Register: {Project Name}
| ID | Risk | Category | Impact | Probability | Score | Mitigation |
|----|------|----------|--------|-------------|-------|------------|
| RISK-001 | Real-time sync conflicts under concurrent edits | Technical | High | High | 🔴 Critical | Use CRDT or OT algorithm; prototype in week 1 |
| RISK-002 | 100MB file upload timeout on slow connections | Technical | Medium | Medium | 🟡 Medium | Chunked upload with resumable protocol (tus.io) |
| RISK-003 | Payment provider API changes breaking checkout | Integration | High | Low | 🟡 Medium | Abstract payment layer; pin SDK version; monitor changelog |
| RISK-004 | No DevOps capacity for production incidents | Operational | High | Medium | 🔴 Critical | Use managed services (Railway/Render); set up alerts day 1 |
### Risk Detail
#### RISK-001: Real-time sync conflicts
- **Description**: Multiple users editing the same document simultaneously may produce conflicting states that are difficult to merge correctly
- **Impact**: High — data loss or corruption directly affects core product value
- **Probability**: High — concurrent editing is the primary use case
- **Mitigation**:
1. Evaluate Yjs (CRDT library) in week 1 spike — 3 days max
2. If Yjs integration is too complex, fall back to last-write-wins with conflict notification
3. Add integration tests simulating 5 concurrent editors before feature sign-off
- **Contingency**: If mitigation fails, descope real-time to async collaboration (Google Docs-style suggestions) for MVP
Risk Categories
| Category | Examples |
|---|
| Technical | Algorithm complexity, performance bottlenecks, data consistency |
| Integration | Third-party API reliability, version compatibility, rate limits |
| Operational | Deployment complexity, monitoring gaps, incident response |
| Scope | Requirement ambiguity, feature creep, underestimated complexity |
| Team | Knowledge gaps, key-person dependency, onboarding time |
Risk Scoring Matrix
| Low Impact | Medium Impact | High Impact |
|---|
| High Probability | 🟡 Medium | 🔴 Critical | 🔴 Critical |
| Medium Probability | 🟢 Low | 🟡 Medium | 🔴 Critical |
| Low Probability | 🟢 Low | 🟢 Low | 🟡 Medium |
Execution Rules
- Identify at minimum one risk per major architectural component
- Every risk must have: description, impact, probability, score, and at least one concrete mitigation step
- Critical risks (🔴) must include a contingency plan if mitigation fails
- Flag any risk that could require scope reduction — surface it early
- Risks that are actually BA/UX ambiguities should be logged as DEVAMB items, not RISK items