🎁 Get the FREE AI Skills Starter GuideSubscribe →
BytesAgainBytesAgain
🦀 ClawHub

OpenClaw Code Review

by @michealxie001

Automated code review assistant. Analyzes code changes, PRs, and files for quality issues, best practices, security concerns, and style violations. Provides...

Versionv1.0.0
Installs2
💡 Examples

场景 1:提交前自检

# 1. 添加变更到暂存区
git add src/

2. 审查暂存区代码

python3 main.py review staged

3. 如果有错误,修复后再提交

场景 2:审查 PR

# 获取 PR 的最新提交
python3 main.py review commit $(git rev-parse HEAD)

场景 3:批量审查

# 审查所有 Python 文件
python3 main.py review file src/**/*.py --format json --output report.json

设置更严格的阈值

python3 main.py review file src/ --max-complexity 5 --max-function-lines 30


⚙️ Configuration

创建 .code-review.json 在项目根目录:

{
  "max_complexity": 10,
  "max_function_lines": 50,
  "max_file_lines": 500,
  "ignore": [
    "tests/**",
    "vendor/**",
    "node_modules/**"
  ],
  "severity": "warning"
}


View on ClawHub
TERMINAL
clawhub install openclaw-code-review

🧪 Use this skill with your agent

Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

🔍 Can't find the right skill?

Search 60,000+ AI agent skills — free, no login needed.

Search Skills →