Code Reviewer for Openclaw

An automated code review assistant that analyzes pull requests for security risks, complexity, and architectural integrity across multiple programming languages.

alirezarezvani
v1.0.0
Mar 11, 2026
0
669
2

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install cs-code-reviewer

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 cs-code-reviewer 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 skill is a comprehensive automation suite designed to enhance the peer review process by identifying risks and quality issues before code reaches production. As a specialized entry in the directory of Openclaw Skills, it integrates into developer workflows to detect everything from hardcoded secrets and SQL injection patterns to SOLID principle violations and deep nesting.

By providing systematic analysis of git diffs and source code structure, this tool serves as a first line of defense for engineering teams. It allows human reviewers to focus on high-level logic and business requirements while the agent handles the tedious task of checking for code smells, complexity metrics, and language-specific antipatterns.

Code Reviewer Use Cases

  • Automated vetting of pull requests to identify high-risk changes and security vulnerabilities.
  • Auditing legacy codebases to find long functions, god classes, and excessive cyclomatic complexity.
  • Generating standardized review reports with clear verdicts and prioritized action items for contributors.
  • Enforcing consistent language-specific coding standards across polyglot engineering teams.

How Code Reviewer Works

  1. The agent analyzes git diffs between the feature branch and the base branch to assess change complexity and prioritize files.
  2. It scans the modified code for security risks such as hardcoded credentials, debug statements, and injection patterns.
  3. The skill evaluates structural quality against predefined thresholds for function length, nesting levels, and file size.
  4. It cross-references the code against extensive internal guides for language-specific standards (e.g., TypeScript, Python, Go).
  5. Finally, it aggregates all findings into a structured report with a numerical score and a recommended review verdict.

Code Reviewer Setup

To begin using this tool among your Openclaw Skills, ensure you have the necessary environment for Python execution. Follow these steps to analyze your repository:

# Analyze a repository branch against main
python scripts/pr_analyzer.py /path/to/repo --base main --head feature-branch

# Run deep code quality checks on a directory
python scripts/code_quality_checker.py /path/to/code --language typescript

# Generate a comprehensive review report in Markdown
python scripts/review_report_generator.py /path/to/repo --format markdown --output review.md

Code Reviewer Data Schema & Taxonomy

The Code Reviewer skill organizes its findings using a structured data model to ensure clear communication of code health.

Data Component Description
PR Analysis JSON metadata containing complexity scores (1-10) and risk categorization (Critical to Low).
Quality Metrics Numerical data on function length (>50 lines), nesting (>4 levels), and method counts.
Review Verdicts Automated status recommendations: Approve, Approve with suggestions, Request changes, or Block.
Reference Catalog Markdown-based checklists covering security, performance, maintainability, and testing.

Code Reviewer Advanced Features

  • Customizable threshold configurations for cyclomatic complexity and file size limits.
  • Native support for multiple languages including TypeScript, Python, Go, Swift, and Kotlin.
  • Automated detection of specific antipatterns like boolean blindness or N+1 queries.
  • Integration-ready JSON output for embedding results into CI/CD pipelines and developer dashboards.
  • Detailed commit message validation and file prioritization for large-scale pull requests.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*