Autonomous Code Review
/install autonomous-code-review
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
- After any significant code change
- Before merging pull requests
- During code review requests
- To catch issues before human reviewers
Review Checklist
🔴 Critical (Block Merge)
- Security vulnerabilities (SQL injection, XSS, auth bypass)
- Data corruption risks (race conditions, deadlocks)
- Authentication/authorization bypasses
- Secrets hardcoded in source
🟡 Important (Should Fix)
- Performance issues (N+1 queries, inefficient loops)
- Error handling missing or insufficient
- Missing input validation
- Resource leaks (unclosed connections, files)
🟢建议 (Nice to Fix)
- Code style violations
- Missing documentation
- Hardcoded values that should be config
- Overly complex logic
Usage
# Review a file
openclaw code review --file src/auth.py
# Review 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
- Run on every commit, not just before merges
- Combine with human review for critical paths
- Track review history to catch recurring issues
- Customize rules per project type
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install autonomous-code-review - After installation, invoke the skill by name or use
/autonomous-code-review - Provide required inputs per the skill's parameter spec and get structured output
What is Autonomous Code Review?
Automatically review code to detect critical bugs, security flaws, performance issues, and style violations as a first-pass code auditor. It is an AI Agent Skill for Claude Code / OpenClaw, with 154 downloads so far.
How do I install Autonomous Code Review?
Run "/install autonomous-code-review" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Autonomous Code Review free?
Yes, Autonomous Code Review is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Autonomous Code Review support?
Autonomous Code Review is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Autonomous Code Review?
It is built and maintained by 1477009639zw-blip (@1477009639zw-blip); the current version is v1.0.0.