← Back to Skills Marketplace
freepengyang

Ops Code Review

by freepengyang · GitHub ↗ · v1.0.5 · MIT-0
cross-platform ⚠ suspicious
121
Downloads
0
Stars
0
Active Installs
6
Versions
Install in OpenClaw
/install ops-code-review
Description
Code Review 安全扫描工具,自动化代码审计,支持 Django/Python、React+TypeScript、PHP 多语言。 自动识别 SVN 提交变更,调用 bandit/pylint/eslint/phpcs 进行安全扫描和代码规范检查, 报告推送飞书群。支持 post-commit hook...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install ops-code-review
  3. After installation, invoke the skill by name or use /ops-code-review
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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 多语言代码审计,敏感配置外置,工具依赖自检
Metadata
Slug ops-code-review
Version 1.0.5
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 6
Frequently Asked Questions

What is Ops Code Review?

Code Review 安全扫描工具,自动化代码审计,支持 Django/Python、React+TypeScript、PHP 多语言。 自动识别 SVN 提交变更,调用 bandit/pylint/eslint/phpcs 进行安全扫描和代码规范检查, 报告推送飞书群。支持 post-commit hook... It is an AI Agent Skill for Claude Code / OpenClaw, with 121 downloads so far.

How do I install Ops Code Review?

Run "/install ops-code-review" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Ops Code Review free?

Yes, Ops Code Review is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Ops Code Review support?

Ops Code Review is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Ops Code Review?

It is built and maintained by freepengyang (@freepengyang); the current version is v1.0.5.

💬 Comments