← 返回 Skills 市场
laimiaohua

GI Code Review

作者 laimiaohua · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
268
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install gi-code-review
功能描述
Review code for quality, security, and maintainability following team standards. Use when reviewing pull requests, examining code changes, or when the user a...
使用说明 (SKILL.md)

Code Review 代码审查

按照团队规范对代码进行质量、安全和可维护性审查。适用于 Vue3、FastAPI、Python 技术栈。

何时使用

  • 用户请求代码审查
  • 审查 Pull Request 或代码变更
  • 用户提到「帮我看看这段代码」「review 一下」「代码质量」

审查清单

1. 正确性与逻辑

  • 逻辑正确,处理边界情况
  • 无明显的空指针/未定义访问
  • 异步逻辑正确(async/await 配对)
  • 错误处理完整,有 try/except 或 .catch()

2. 安全

  • 无 SQL 注入(使用参数化查询)
  • 无 XSS(Vue 已转义,注意 v-html)
  • 敏感信息不硬编码(用 get_env 或配置)
  • 接口有权限校验(如需要)

3. 代码风格与可维护性

  • 符合项目约定(router/service/dao 分层)
  • 函数职责单一,长度适中
  • 命名清晰(变量、函数、路由)
  • 有必要的注释和日志

4. 性能

  • 无 N+1 查询(批量查询或 join)
  • 大列表考虑分页
  • 前端避免不必要的重复渲染

5. 测试

  • 关键逻辑有测试覆盖
  • 边界情况有测试

反馈格式

  • 🔴 必须修复:影响正确性、安全或严重性能问题
  • 🟡 建议改进:可读性、可维护性、最佳实践
  • 🟢 可选优化:锦上添花

项目规范参考

  • 后端:app/dao、app/service、app/router、app/model(entity/dto/vo)
  • 数据库:使用 AsyncSqlSessionTemplate(insert/update/query_one/query_list)
  • 报错:from tkms.exception.api import ApiException
  • 配置:from tkms import get_env
  • 前端:Vue3 + Ant Design,components/views/services 分层
安全使用建议
This skill is an instruction-only code-review checklist tailored to Vue3/FastAPI/Python and appears safe and coherent. Know that its recommendations reference project-specific conventions (tkms, AsyncSqlSessionTemplate, get_env) and may not fit other codebases; avoid pasting secrets or credentials into the chat when asking for a review. If you want reviews for a different stack or generic guidance, request a more general checklist or edit the SKILL.md to remove project-specific assumptions. If you plan to let an agent run autonomously with this skill, be aware the agent could initiate reviews on code you provide — that is expected behavior but verify you’re comfortable with any code snippets you share.
功能分析
Type: OpenClaw Skill Name: gi-code-review Version: 1.0.0 The skill bundle consists of metadata and a Markdown file (SKILL.md) providing instructions for an AI agent to perform code reviews. It contains no executable code, and the instructions focus on identifying security vulnerabilities (SQLi, XSS, hardcoded secrets) and maintaining code quality without any indicators of malicious intent or prompt injection attacks.
能力评估
Purpose & Capability
The name/description match the instructions: the SKILL.md gives a concrete checklist for reviewing Vue3, FastAPI, and Python code. It references project-specific conventions and libraries (e.g., AsyncSqlSessionTemplate, tkms.get_env, ApiException), which is coherent if this is intended for that team but means recommendations will be biased toward that codebase.
Instruction Scope
Instructions are limited to reviewing code quality, security, maintainability and present a clear checklist and feedback format. The skill does not direct the agent to read arbitrary system files, environment variables, or to transmit data to external endpoints.
Install Mechanism
No install spec and no code files (instruction-only), so nothing will be written to disk or downloaded by the skill itself — lowest-risk install posture.
Credentials
The skill requests no environment variables or credentials. It explicitly advises checking for hardcoded secrets (a sensible checklist item) but does not ask for any secret values itself.
Persistence & Privilege
always is false and there are no indications the skill attempts to modify agent/system settings. Autonomous invocation is allowed by default (normal) but not elevated here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install gi-code-review
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /gi-code-review 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release. Code review guidelines for Vue3 + FastAPI. Gravitech Innovations.
元数据
Slug gi-code-review
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

GI Code Review 是什么?

Review code for quality, security, and maintainability following team standards. Use when reviewing pull requests, examining code changes, or when the user a... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 268 次。

如何安装 GI Code Review?

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

GI Code Review 是免费的吗?

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

GI Code Review 支持哪些平台?

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

谁开发了 GI Code Review?

由 laimiaohua(@laimiaohua)开发并维护,当前版本 v1.0.0。

💬 留言讨论