← 返回 Skills 市场
Ops Code Review
作者
freepengyang
· GitHub ↗
· v1.0.5
· MIT-0
121
总下载
0
收藏
0
当前安装
6
版本数
在 OpenClaw 中安装
/install ops-code-review
功能描述
Code Review 安全扫描工具,自动化代码审计,支持 Django/Python、React+TypeScript、PHP 多语言。 自动识别 SVN 提交变更,调用 bandit/pylint/eslint/phpcs 进行安全扫描和代码规范检查, 报告推送飞书群。支持 post-commit hook...
安全使用建议
This skill appears to implement an SVN-based multi-language scanner, but there are a few red flags you should address before installing:
- Metadata mismatch: The registry says no env vars are required, but SKILL.md and the code require CODE_REVIEW_SVN_USER, CODE_REVIEW_SVN_PASS and CODE_REVIEW_FEISHU_CHAT_ID. Confirm the skill owner and ask them to update metadata to declare these required secrets.
- Limit credentials: If you proceed, create a read-only SVN account with minimal scope, and treat CODE_REVIEW_SVN_PASS as a secret. Do not provide high-privilege or admin credentials.
- Run installs in isolation: The install steps perform system-global changes (pip --break-system-packages, global npm packages, curl | php for composer). Run the installation in a container, VM, or isolated environment to avoid altering your host system Python/npm state.
- Review the hook deployment: The generated SVN post-commit hook calls python3 on a filesystem path; ensure you place the scripts in a controlled location and verify the hook content before enabling it on production SVN servers.
- Verify Feishu integration: The code writes messages to /tmp/code_review_pending_msg.json expecting OpenClaw to forward them. Confirm how your OpenClaw instance processes that file and that your Feishu webhook/chat id is configured correctly.
- Audit installer commands: Although downloads come from known hosts (getcomposer.org, official package managers), piping remote install scripts to interpreters (curl | php) is a sensitive pattern — fetch and inspect the installer before running.
If you cannot validate these points or do not control an isolated environment, treat this skill as risky and prefer to run its scripts manually only after inspection.
功能分析
Type: OpenClaw Skill
Name: ops-code-review
Version: 1.0.5
The skill bundle provides a comprehensive code review automation tool for SVN repositories, but it exhibits several high-risk behaviors. It requires and handles sensitive SVN credentials and Feishu IDs via environment variables and local configuration files (svn_manager.py). The installation process involves high-risk actions such as downloading and executing the Composer installer via 'curl | php' and installing Python packages with the '--break-system-packages' flag (SKILL.md, check_dependencies.py). While these behaviors are aligned with the stated purpose of CI/CD automation and code auditing, the combination of credential handling, remote script execution, and broad shell command usage via subprocess calls to various linters warrants a suspicious classification.
能力评估
Purpose & Capability
Name/description promise an SVN-based multi-language code scanner using bandit/pylint/eslint/phpcs — the code files implement exactly that. However the registry metadata claims no required environment variables while the SKILL.md and code clearly require CODE_REVIEW_SVN_USER, CODE_REVIEW_SVN_PASS and CODE_REVIEW_FEISHU_CHAT_ID; that mismatch is unexpected and reduces trust.
Instruction Scope
Runtime instructions and scripts are narrowly scoped to checking out/updating SVN repos, running local linters/scanners, generating reports and writing a message file (/tmp/code_review_pending_msg.json) for OpenClaw to push to Feishu. They instruct creating config.json and installing hooks on the SVN server. The scripts do not themselves POST to external webhooks (they write to /tmp for the platform to pick up), which limits direct network exfiltration but means proper platform configuration is required to actually deliver reports.
Install Mechanism
Install spec uses apt-get, pip with --break-system-packages, npm/global installs and a curl | php composer installer. While composed of common package sources (apt, PyPI, npm, getcomposer.org), the pip flag and global installs modify system-managed packages and global node modules — these are intrusive and should be run in an isolated environment (container/VM). No arbitrary or unknown single-host downloads were used, but curl | php is a privileged install pattern that should be audited before execution.
Credentials
The skill needs SVN credentials and a Feishu chat id as environment variables (CODE_REVIEW_SVN_USER, CODE_REVIEW_SVN_PASS, CODE_REVIEW_FEISHU_CHAT_ID) and supports CODE_REVIEW_CONFIG; these are reasonable for its purpose. The problem is the registry metadata lists no required env vars — the omission is an incoherence that could hide sensitive requirements. No unrelated credentials are requested.
Persistence & Privilege
Skill does not request always: true, does not modify other skills, and its persistent effects are confined to writing config/state/report files under /tmp and optionally installing SVN hooks (user-triggered). Those actions are consistent with a code-review tool and do not indicate excessive platform privileges.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install ops-code-review - 安装完成后,直接呼叫该 Skill 的名称或使用
/ops-code-review触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.5
优化描述开头,增加 Code Review 关键词密度,改善大词搜索排名
v1.0.4
1. 优化 name 与 slug 一致性,提升搜索排名
2. 重写描述,增加 SVN/bandit/pylint/eslint/phpcs/Django/React/PHP/CI/CD 等关键词,改善搜索可见性
3. 删除 references/ 目录并清理敏感规则描述,解决 VirusTotal 误报
4. 移除 SKILL.md 末尾的审计规则参考段落(已删除 references/ 目录)
v1.0.3
Bug Fix: ESLint v9+ 适配(--no-config-lookup 替代 --no-eslintrc);新增内置 eslint.react.ts.js 配置,解决不同项目 ESLint 配置不兼容问题;新增全局 typescript-eslint 依赖(@typescript-eslint/parser);check_dependencies.py 支持检查 Node 模块(typescript-eslint);修复 composer 安装命令(避免管道)
v1.0.2
修复 shell=True 误报、PEP 668 pip 安装问题、composer 前置依赖、exec preflight 检测问题、文档补充完整 config.json 示例和 cp 步骤
v1.0.1
1.0.1: SVN账密/飞书ID改为环境变量配置,更安全更简洁;文档更新配置说明
v1.0.0
初始版本:支持 Django/React+TS/PHP 多语言代码审计,敏感配置外置,工具依赖自检
元数据
常见问题
Ops Code Review 是什么?
Code Review 安全扫描工具,自动化代码审计,支持 Django/Python、React+TypeScript、PHP 多语言。 自动识别 SVN 提交变更,调用 bandit/pylint/eslint/phpcs 进行安全扫描和代码规范检查, 报告推送飞书群。支持 post-commit hook... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 121 次。
如何安装 Ops Code Review?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install ops-code-review」即可一键安装,无需额外配置。
Ops Code Review 是免费的吗?
是的,Ops Code Review 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Ops Code Review 支持哪些平台?
Ops Code Review 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Ops Code Review?
由 freepengyang(@freepengyang)开发并维护,当前版本 v1.0.5。
推荐 Skills