🦀 ClawHub
Autonomous Code Review
by @1477009639zw-blip
Automatically review code to detect critical bugs, security flaws, performance issues, and style violations as a first-pass code auditor.
TERMINAL
clawhub install autonomous-code-review📖 About This Skill
Autonomous Code Review
Category: Development Author: Beta Version: 1.0.0 Runtime: OpenClaw + Claude/GPT
What It Does
Automatically review code for bugs, security issues, performance problems, and style violations. Acts as a tireless first-pass reviewer on any codebase.
When to Use
Review Checklist
🔴 Critical (Block Merge)
🟡 Important (Should Fix)
🟢建议 (Nice to Fix)
Usage
# Review a file
openclaw code review --file src/auth.pyReview a diff
openclaw code review --diff "main..feature-branch"Full repository audit
openclaw code review --repo ./ --exclude "node_modules,dist"
Integration
GitHub Actions
- name: Code Review
uses: openclaw/code-review-action@v1
with:
api-key: ${{ secrets.OPENCLAW_API_KEY }}
Pre-commit Hook
openclaw code review --staged --fail-on critical
Output Format
{
"file": "src/auth.py",
"issues": [
{
"severity": "critical",
"line": 42,
"rule": "sql-injection",
"message": "User input directly interpolated into SQL query",
"fix": "Use parameterized queries instead"
}
],
"score": 72,
"summary": "1 critical, 2 important, 3 suggestions"
}
Best Practices
⚡ When to Use
💡 Examples
# Review a file
openclaw code review --file src/auth.pyReview a diff
openclaw code review --diff "main..feature-branch"Full repository audit
openclaw code review --repo ./ --exclude "node_modules,dist"