← 返回 Skills 市场
wangzhiming1999

Modified Code Review

作者 wangzhiming · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
715
总下载
0
收藏
2
当前安装
2
版本数
在 OpenClaw 中安装
/install modified-code-review
功能描述
Reviews user-modified code (diffs/PRs), provides best-practice recommendations, analyzes cost-effectiveness of the approach, and outputs a code score. Use wh...
使用说明 (SKILL.md)

\r \r

修改代码评审(Modified Code Review)\r

\r 对用户修改的代码进行评审,给出最佳实践建议、修改方案性价比分析,并输出代码评分。\r \r

触发场景\r

\r

  • 用户要求「review 我修改的代码」「审查修改」「代码评审」\r
  • 用户需要「最佳实践方案」「修改方案性价比」「代码评分」\r
  • 用户提供 git diff、PR 或指定文件/改动范围\r \r

执行流程\r

\r

1. 获取改动范围\r

\r

  • 若用户未指定:先看 git status / git diff 或当前打开/选中的文件\r
  • 明确本次评审的文件与改动内容(新增、修改、删除)\r \r

2. 评审维度\r

\r 按以下维度分析修改,并给出结论与建议:\r \r | 维度 | 关注点 |\r |------|------|\r | 正确性 | 逻辑是否正确、边界与异常是否考虑、是否有明显 bug |\r | 可读性 | 命名、结构、注释是否清晰,是否符合项目风格 |\r | 可维护性 | 是否易扩展、是否过度耦合、重复代码 |\r | 性能 | 是否有不必要的计算、内存/请求是否合理 |\r | 安全 | 输入校验、敏感数据、XSS/注入等 |\r | 测试 | 关键路径是否有测试、用例是否合理 |\r \r

3. 最佳实践建议\r

\r

  • 每条建议标明:必须改 / 建议改 / 可选优化\r
  • 若与项目约定(如 CLAUDE.md、ESLint、现有模式)冲突,以项目约定为准并说明\r
  • 建议附带简短理由和(如适用)示例代码片段\r \r

4. 修改方案性价比\r

\r 对主要修改方案做「性价比」评估:\r \r

  • 收益:可维护性、性能、可读性、风险降低等\r
  • 成本:改动量、影响范围、回归风险、时间预估\r
  • 结论:高性价比(建议优先)/ 中性价比(可选)/ 低性价比(暂不推荐),并简述原因\r \r

5. 代码评分\r

\r 先列 Blockers,再给评分——有 Blocker 时评分仅供参考,不能用分数掩盖必须修的问题。\r \r | 分数区间 | 等级 | 含义 |\r |----------|------|------|\r | 90–100 | A 优秀 | 可直接合并,仅有个别小建议 |\r | 75–89 | B 良好 | 整体达标,有若干改进点 |\r | 60–74 | C 合格 | 能用但建议按优先级修复/优化 |\r | 40–59 | D 需改进 | 存在明显问题,建议修改后再合 |\r | 0–39 | E 不达标 | 存在严重问题,需重构或重做 |\r \r 评分需结合:正确性权重最高,其次可维护性/可读性,再考虑性能与安全。\r \r

输出模板\r

\r 按以下结构组织回复(可用中文):\r \r

## 修改代码评审报告\r
\r
### 一、改动概览\r
- 涉及文件与变更类型\r
- 主要改动摘要(1–3 句)\r
\r
### 二、评审结论(按维度)\r
- 正确性:…\r
- 可读性:…\r
- 可维护性:…\r
- 性能:…\r
- 安全:…\r
- 测试:…\r
\r
### 三、最佳实践建议\r
- [必须改] …\r
- [建议改] …\r
- [可选优化] …\r
\r
### 四、修改方案性价比\r
- 方案/建议 1:收益 vs 成本 → 性价比结论\r
- (其他主要方案按需)\r
\r
### 五、代码评分\r
- **Blockers(必须改,不改不能合)**:…(无则写"无")\r
- **分数**:XX / 100(等级:X)\r
- **一句话总结**:…\r
```\r
\r
## 注意事项\r
\r
- 评审基于用户提供的 diff/文件/上下文,不臆测未展示的代码\r
- 与项目技术栈、既有风格一致(如 Next.js、TypeScript、Zustand、Tailwind 等)\r
- 性价比与评分需简要说明依据,便于用户决策\r
安全使用建议
This skill appears coherent and does what it claims: review diffs/PRs and produce suggestions and a score. Before running it, consider providing a focused git diff or the PR link rather than allowing it to enumerate the whole repo, and avoid including secrets or sensitive data in the diff. Because the skill may run git status/git diff or read open files, only invoke it in workspaces you allow the agent to inspect. There are no installs or credential requests, so installation risk is low.
功能分析
Type: OpenClaw Skill Name: modified-code-review Version: 1.0.1 The skill is a standard code review assistant designed to analyze code changes (diffs/PRs) for correctness, security, and maintainability. It uses legitimate commands like `git status` and `git diff` to identify changes, which is appropriate for its stated purpose. No malicious patterns, data exfiltration, or harmful prompt injections were found in SKILL.md or the metadata files.
能力评估
Purpose & Capability
Name/description match the instructions: the skill reviews user-modified code, asks for diffs/PRs or repository change state, and reports on correctness, readability, maintainability, performance, security, tests and a score. All required actions are appropriate for a code-review skill.
Instruction Scope
Runtime instructions explicitly tell the agent to inspect git status/git diff or currently opened/selected files when the user doesn't specify changes. This is appropriate for a code-review task but means the agent may read repository files beyond a single file if the user doesn't supply a focused diff—users should be aware of that scope.
Install Mechanism
Instruction-only skill with no install spec and no code files; nothing is downloaded or written to disk by the skill itself.
Credentials
The skill declares no environment variables, credentials, or config-path access. It references project conventions (e.g., ESLint, CLAUDE.md) which is reasonable for adhering to project style.
Persistence & Privilege
always:false and no special privileges requested. The skill does not request persistent presence or to modify other skills/configuration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install modified-code-review
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /modified-code-review 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Publish from oliver-skill repository
v1.0.0
- Initial release of modified-code-review skill. - Reviews user-modified code (diffs/PRs), provides best-practice recommendations, analyzes cost-effectiveness, and outputs a code score. - Covers review dimensions: correctness, readability, maintainability, performance, security, and testing. - Includes structured output template with five sections: change overview, review conclusions, best practice suggestions, cost-effectiveness analysis, and code rating. - Scoring uses a 100-point scale with five levels and a summary.
元数据
Slug modified-code-review
版本 1.0.1
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 2
常见问题

Modified Code Review 是什么?

Reviews user-modified code (diffs/PRs), provides best-practice recommendations, analyzes cost-effectiveness of the approach, and outputs a code score. Use wh... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 715 次。

如何安装 Modified Code Review?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install modified-code-review」即可一键安装,无需额外配置。

Modified Code Review 是免费的吗?

是的,Modified Code Review 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Modified Code Review 支持哪些平台?

Modified Code Review 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Modified Code Review?

由 wangzhiming(@wangzhiming1999)开发并维护,当前版本 v1.0.1。

💬 留言讨论