Install
openclaw skills install br-risk-analyzer根据需求文档分析风险,分析代码漏洞。analyzes code changes between commits against requirement documents to identify and prioritize risk points.
openclaw skills install br-risk-analyzerThis skill analyzes code changes between commits against requirement documents to identify and prioritize risk points following the established code review protocol.
For each requirement aspect, verify against code:
| Verification Dimension | Key Questions |
|---|---|
| Correctness | Branch coverage, safe defaults, enum/state consistency |
| Boundaries | Null handling, large datasets, timeouts, duplicate submissions, idempotency |
| Concurrency | Locking, transaction boundaries, visibility, race conditions |
| Failure Paths | Exception swallowing, rollback capability, retry logic, partial failure handling |
| Configuration & Switches | Behavior when config missing, dangerous switch combinations |
| Security | Authorization, privilege escalation, injection vulnerabilities, sensitive data logging |
| Dependencies | External call failures, degradation strategies, circuit breaking, timeouts |
| Compatibility | Legacy data handling, old API support, grayscale deployment and rollback |
Follow strict priority grading:
P0 (Must Fix):
P1 (Fix This Iteration):
P2/P3 (Optional):
resources/project-understanding.mdProvide in single message:
Results follow this mandatory structure:
## Review Summary
- Requirement highlights: (1-3 sentences)
- Code scope: (module/path list)
- Overview: P0 x items / P1 x items / P2 x items / P3 x items
## Risk Inventory
### P0 (Must Address)
| ID | Risk Description | Location (file:class/method) | Trigger Conditions/Impact | Recommendation (optional) |
|----|------------------|------------------------------|---------------------------|---------------------------|
| R1 | ... | ... | ... | ... |
### P1 (Recommend Fix This Iteration)
| ID | Risk Description | Location | Trigger Conditions/Impact | Recommendation |
|----|------------------|----------|---------------------------|----------------|
| ... | ... | ... | ... | ... |
### P2 / P3 (Discretionary)
- ...
## Requirement Coverage Assessment
- Covered: ...
- Not explicitly covered in requirements but present in code: ...
- Out of scope for this review: ...
## Testing Recommendations (Optional)
| Risk ID | Test Type | Scenario | Expected |
|---------|-----------|----------|----------|
| R1 | Integration | ... | ... |
The results is saved in {requirements name}-risk-analyzer.md
During review, systematically verify: