用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/SiliconLabsSoftware/silabs-mlops --skill review-code命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | review-code |
| description | Three-Critic Code Review Protocol |
| disable-model-invocation | true |
Conduct a comprehensive, multi-perspective code review to identify and resolve all functional, performance, and quality issues.
Your Focus Areas:
Functional Correctness
State Management
Counter & Timer Accuracy
Edge Cases & Corner Cases
Review Template:
✅ CORRECT: [List what works correctly]
⚠️ CONCERNS: [List potential issues or unclear areas]
❌ BUGS: [List definite bugs found]
💡 SUGGESTIONS: [List improvements]
Your Focus Areas:
Performance Optimization
Code Efficiency
Memory Efficiency
Fast Path Analysis
Review Template:
⚡ OPTIMIZED: [List efficient implementations]
🐌 SLOW PATHS: [List performance bottlenecks]
💾 MEMORY: [Memory usage analysis]
💡 OPTIMIZATIONS: [Suggested improvements]
Your Focus Areas:
Code Readability
Standards Compliance
Maintainability
Robustness
Review Template:
👍 GOOD PRACTICES: [List quality implementations]
📖 READABILITY: [Readability assessment]
🔧 MAINTENANCE: [Maintainability concerns]
💡 IMPROVEMENTS: [Suggested refinements]
After individual reviews, all three critics discuss their findings together.
Step 1: Share Individual Findings
Step 2: Cross-Examination
Step 3: Categorize Issues
Step 4: Prioritize Fixes
Step 5: Consensus Building
# 🏛️ THREE-CRITIC CODE REVIEW REPORT
## 📊 EXECUTIVE SUMMARY
- Overall Assessment: [APPROVED / NEEDS FIXES / MAJOR REWORK]
- Critical Issues Found: [Number]
- Major Issues Found: [Number]
- Minor Issues Found: [Number]
---
## 🔴 CRITICAL BUGS (Must Fix)
### Issue #1: [Title]
- **Severity**: CRITICAL
- **Found By**: Critic #[1/2/3]
- **Description**: [Detailed explanation]
- **Location**: [File:line]
- **Impact**: [What breaks]
- **Reproduction**: [How to trigger]
- **Suggested Fix**: [How to resolve]
- **Critics' Consensus**: [Unanimous/Majority/Split]
[Repeat for each critical bug]
---
## 🟠 MAJOR ISSUES (Should Fix)
### Issue #X: [Title]
[Same format as above]
---
## 🟡 MINOR ISSUES (Nice to Fix)
### Issue #X: [Title]
[Same format as above]
---
## 🟢 ENHANCEMENTS (Future Improvements)
### Enhancement #X: [Title]
[Same format as above]
---
## 💬 CRITICS' DISCUSSION HIGHLIGHTS
### Key Debates:
1. **[Topic]**: [Summary of discussion and resolution]
2. **[Topic]**: [Summary of discussion and resolution]
### Dissenting Opinions:
- **Critic #X on [Issue]**: [Minority opinion and reasoning]
---
## ✅ WHAT WORKS WELL
- [List of excellent implementations]
- [List of best practices observed]
[List of clever solutions]
---
[ ] Fix issue #[X]: [Brief description]
[ ] Fix issue #[Y]: [Brief description]
[ ] Address issue #[X]: [Brief description]
[ ] Address issue #[Y]: [Brief description]
[ ] Improve [X]: [Brief description]
[ ] Consider [X]: [Brief description]
---
[ ] ✅ APPROVED - Production ready
[ ] ⚠️ APPROVED WITH CONDITIONS - Fix critical bugs first
[ ] ❌ NOT APPROVED - Major rework required
: [XX]%
✍️ Critic #1 (Functional): [APPROVE / CONDITIONAL / REJECT]
✍️ Critic #2 (Performance): [APPROVE / CONDITIONAL / REJECT]
✍️ Critic #3 (Quality): [APPROVE / CONDITIONAL / REJECT]
Prepare the Code
Execute Phase 1
Execute Phase 2
Execute Phase 3
Review & Act
# THREE-CRITIC CODE REVIEW REQUEST
Please conduct a comprehensive code review using three expert critics:
## CRITICS:
1. **Critic #1**: Functional Correctness & Algorithm Expert
2. **Critic #2**: Performance & Optimization Expert
3. **Critic #3**: Code Quality & Maintainability Expert
## PROTOCOL:
### PHASE 1: Individual Reviews
Each critic independently reviews the code from their expertise area.
**Critic #1 Focus**: Functional correctness, algorithms, state management, edge cases, timer accuracy
**Critic #2 Focus**: Performance, optimization, memory efficiency, fast path analysis
**Critic #3 Focus**: Code readability, standards compliance, maintainability, robustness
### PHASE 2: Collaborative Discussion
All three critics discuss their findings:
- Share individual findings
- Cross-examine concerns
- Debate significance and priority
- Categorize issues: CRITICAL / MAJOR / MINOR / ENHANCEMENT
- Build consensus
### PHASE 3: Consolidated Report
Produce a final report with:
- Executive summary
- All issues categorized by severity
- Critics' discussion highlights
- What works well
- Recommended action plan
- Final verdict with consensus
## CODE TO REVIEW:
[Insert code or file references here]
## SPECIFIC CONCERNS:
[Insert any specific areas of concern]
## REQUIREMENTS:
- Be brutally honest
- Find ALL bugs and issues
- Consider production readiness
- Provide actionable fixes
- Achieve critic consensus
Please proceed with the three-phase review.
Using the Three-Critic Protocol, review the TCP ECO timer implementation in tcp.c:
Specific concerns:
- Timer accuracy over extended intervals (30 seconds)
- Counter updates during mode transitions
- Fast path performance overhead
- Edge cases with wraparound arithmetic
Focus on production readiness for commercial IoT devices.
Using the Three-Critic Protocol, review the new API additions:
Specific concerns:
- Thread safety
- API consistency with existing codebase
- Error handling completeness
- Documentation clarity
Focus on maintainability and developer experience.
Using the Three-Critic Protocol, review the optimizations made to tcp_tmr():
Specific concerns:
- Does the fast path truly have zero overhead?
- Are all corner cases still handled correctly?
- Is long-term timer accuracy maintained?
- Are there any subtle functional regressions?
Focus on verifying that optimization didn't break functionality.
A good review should:
Based on review results, code can be certified as:
| Level | Criteria | Suitable For |
|---|---|---|
| Production Ready | 0 critical bugs, <3 major issues | Commercial deployment |
| Conditional Approval | 0 critical bugs, 3-5 major issues | Deploy after fixes |
| Major Rework Needed | 1+ critical bugs, 5+ major issues | Not ready for production |
| Safety-Critical Ready | + Formal verification, certification | Medical, aviation, space |
Version: 1.0
Last Updated: 2025-10-31
Maintained By: Netstack Team