安全扫描
OpenClaw
安全
high confidenceThis is an instruction-only code-review helper whose content matches its name and requests no installs, credentials, or filesystem access — it appears coherent and proportionate.
评估建议
This skill is internally consistent and low-risk: it only provides review guidelines and a report template and asks for nothing from your system. Before using: (1) avoid pasting sensitive secrets or proprietary code into the chat — provide minimal, non-sensitive snippets or a sanitized diff; (2) if you don't want the agent to invoke this skill autonomously, keep it user-invocable only or change agent policies; (3) if you plan to feed repository links, ensure the agent has only the access you int...详细分析 ▾
✓ 用途与能力
Name/description (
安全有层次,运行前请审查代码。
运行时依赖
无特殊依赖
版本
latestv1.0.02026/3/10
● 无害
安装命令 点击复制
官方npx clawhub@latest install code-review1
镜像加速npx clawhub@latest install code-review1 --registry https://cn.clawhub-mirror.com
技能文档
# Code Review - 代码审查
概述
系统性地审查代码变更,确保质量、可维护性和正确性。审查维度
1. 正确性
- 逻辑是否正确?
- 边界情况是否处理?
- 错误处理是否完整?
2. 可读性
- 命名是否清晰?
- 代码结构是否清晰?
- 注释是否有帮助(不是噪音)?
3. 可维护性
- 是否遵循 DRY 原则?
- 是否容易修改和扩展?
- 依赖是否合理?
4. 测试
- 测试覆盖是否充分?
- 测试是否有意义?
- 测试是否可读?
问题分级
| 级别 | 含义 | 处理 | |------|------|------| | Critical | 必须修复才能合并 | 阻塞 | | Important | 应该修复 | 建议修复 | | Minor | 可以改进 | 可选 | | Nitpick | 个人偏好 | 仅供参考 |审查输出格式
``markdown
代码审查报告
概览
- 变更: [简述变更内容]
- 审查者: AI
- 日期: YYYY-MM-DD
问题
Critical
- [ ] 文件:行号 - 问题描述
Important
- [ ] 文件:行号 - 问题描述
Minor
- [ ] 文件:行号 - 问题描述
优点
- [列出代码的优点]
结论
[通过/需要修改后通过/不通过]
``
嵌入式领域扩展
额外检查项:- 内存分配是否安全?
- 是否有资源泄漏风险?
- 中断上下文是否正确使用?
- 时序要求是否满足?
- 功耗影响是否考虑?
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制
免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制