npx skills add https://smithery.ai/skills/amnadtaowsoam/code-review-standards(选择至少一个画像以启用特定模块)
代码审查标准定义了团队如何审查代码以发现错误、分享知识、维持质量并确保一致性。良好的代码审查能使团队更强大。
核心原则:"代码审查是关于学习,而非评判。审查代码,而非个人。"
| 场景 | 预期行为 | 备注 |
|---|---|---|
| 小型 PR (<200 行) | 快速审查 (2-4 小时) | 易于彻底审查 |
| 大型 PR (>500 行) | 请求拆分 | 难以彻底审查 |
| 安全漏洞 | 阻塞性评论 | 必须在合并前修复 |
| 缺少测试 | 重要评论 | 应添加测试 |
| 风格问题 | 建议 | 最好有 |
| 优秀代码 | 表扬 | 正向强化 |
主要威胁 : 注入攻击、认证绕过、数据泄露
数据处理 : 对所有用户输入进行清理以防止注入攻击。切勿记录原始 PII
密钥管理 : 不要硬编码 API 密钥。使用环境变量/密钥管理器
授权 : 在状态更改前验证用户权限
request_iderror_rate、latency、queue_depth(AI Agent 在发生错误时思考和解决问题的规范)
每周安装次数
–
来源
首次出现
–
(Select at least one profile to enable specific modules)
Code Review Standards define how teams review code to catch bugs, share knowledge, maintain quality, and ensure consistency. Good code reviews make teams stronger.
Core Principle : "Code review is about learning, not judging. Review the code, not the person."
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| Scenario | Expected Behavior | Notes |
|---|---|---|
| Small PR (<200 lines) | Quick review (2-4 hours) | Easy to review thoroughly |
| Large PR (>500 lines) | Request to break up | Hard to review thoroughly |
| Security vulnerability | Blocking comment | Must fix before merge |
| Missing tests | Important comment | Should add tests |
| Style issue | Suggestion | Nice to have |
| Good code | Praise | Positive reinforcement |
Top Threats : Injection attacks, authentication bypass, data exposure
Data Handling : Sanitize all user inputs to prevent Injection attacks. Never log raw PII
Secrets Management : No hardcoded API keys. Use Env Vars/Secrets Manager
Authorization : Validate user permissions before state changes
request_iderror_rate, latency, queue_depth(ข้อกำหนดสำหรับ AI Agent ในการคิดและแก้ปัญหาเมื่อเกิดข้อผิดพลาด)
Weekly Installs
–
Source
First Seen
–
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
109,600 周安装