Code Reviewer for Openclaw

An automated toolkit for auditing pull requests, identifying architectural risks, and generating comprehensive quality reports across multiple programming languages.

alirezarezvani
v0.1.0
Mar 4, 2026
0
560
1

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install code-reviewer-2

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install code-reviewer-2 using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Code Reviewer?

The Code Reviewer is a robust utility designed to streamline the software development lifecycle by automating the tedious aspects of code audits. As part of the Openclaw Skills ecosystem, it provides deep integration with git workflows to analyze pull requests for complexity, security vulnerabilities, and adherence to best practices. Whether you are managing large TypeScript projects or complex Python microservices, this skill ensures consistency across your codebase.

This tool goes beyond simple linting by evaluating structural integrity, such as identifying God classes and deep nesting, while also scanning for critical security flaws like hardcoded secrets and SQL injection patterns. By leveraging the Openclaw Skills framework, developers can achieve higher code quality with significantly less manual effort during the review cycle.

Code Reviewer Use Cases

  • Automated vetting of pull requests to identify high-risk changes before human review.
  • Scaling code quality standards across large engineering teams using standardized Openclaw Skills.
  • Identifying technical debt, such as God classes or overly complex functions, in legacy codebases.
  • Security auditing for hardcoded credentials, API keys, and common injection vulnerabilities.
  • Generating structured review checklists and verdicts to speed up the approval process.

How Code Reviewer Works

  1. The PR Analyzer examines the git diff between branches to assess complexity and detect immediate risks like secrets or debug statements.
  2. The Code Quality Checker parses the source code against pre-defined thresholds for structural issues and SOLID violations.
  3. Findings are processed through the Openclaw Skills logic to prioritize issues based on severity.
  4. The Review Report Generator synthesizes all data points to calculate a quality score and provide a final verdict (Approve, Request Changes, or Block).
  5. Detailed reports are exported as Markdown or JSON for integration into CI/CD pipelines or developer dashboards.

Code Reviewer Setup

To begin using this skill within your Openclaw Skills environment, follow these steps:

# Analyze current branch against main
python scripts/pr_analyzer.py /path/to/repo

# Run a full quality audit on a directory for a specific language
python scripts/code_quality_checker.py /path/to/code --language python

# Generate a final markdown report for the repository
python scripts/review_report_generator.py . --format markdown --output review.md

Code Reviewer Data Schema & Taxonomy

The skill organizes data into structured JSON results and human-readable Markdown reports. It tracks the following metrics:

Metric Description Threshold/Value
Complexity Score Risk assessment of the change 1-10 Scale
File Prioritization Ranking files by review importance Critical to Low
Structural Metrics Limits on nesting and length >4 levels / >50 lines
Security Flags Pattern matching for vulnerabilities Secrets, SQLi

All reference guides, including language-specific standards and antipattern fixes, are stored within the /references directory for easy access.

Code Reviewer Advanced Features

  • Multi-language support covering TypeScript, JavaScript, Python, Go, Swift, and Kotlin.
  • Custom threshold configuration for line counts, method counts, and cyclomatic complexity.
  • Automated commit message validation to ensure compliance with project standards.
  • Integration-ready JSON output for use within custom Openclaw Skills pipelines.
  • Comprehensive reference guides for proactive identification of common logic and structural antipatterns.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*