Code Review Skill for Openclaw

A comprehensive automated code review agent that analyzes pull requests for quality, security, and performance using standardized guidelines.

terrycarter1985
v1.1.0
May 12, 2026
0
717
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install ai-code-review-skill

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 ai-code-review-skill 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 Review Skill?

The Code Review Skill is a specialized tool designed for Openclaw Skills that provides systematic evaluation of source code. It automates the heavy lifting of pull request analysis by integrating directly with GitHub via the gh CLI to check CI/CD status and file diffs. This skill ensures that every piece of code meets high standards for maintainability and security before it reaches production.

By leveraging project-specific guidelines, the skill acts as a tireless digital peer reviewer. It identifies vulnerabilities, detects performance bottlenecks like N+1 issues, and ensures consistent coding styles across the entire repository, ultimately fostering a culture of continuous learning and technical excellence within development teams.

Code Review Skill Use Cases

  • Automated review of GitHub pull requests to ensure project standards.
  • Pre-refactoring assessment to identify technical debt and high-risk areas.
  • Security-focused audits to detect hardcoded credentials or OWASP Top 10 vulnerabilities.
  • Quality gatekeeping when developers require a quick sanity check before final submission.
  • Debugging CI/CD failures by automatically pulling and analyzing failed GitHub Action logs.

How Code Review Skill Works

  1. The skill initiates by checking the CI/CD status of a Pull Request using the gh pr checks command.
  2. It determines the review scope by identifying modified files and analyzing the git diff.
  3. The agent gathers project context including the environment type (MVP vs. Production) and existing test coverage.
  4. It performs a systematic analysis across six key dimensions: Quality, Error Handling, Security, Testing, Performance, and Maintainability.
  5. The skill generates a structured feedback report categorized by severity: Critical, Warning, Good Practice, and Suggestion.
  6. For PRs with failed checks, it provides specific actionable remediation steps to fix build or linting errors.

Code Review Skill Setup

To utilize this skill, ensure you have the GitHub CLI installed and authenticated. This allows the Openclaw Skills environment to interact with your repositories.

# Install GitHub CLI on macOS
brew install gh

# Authenticate with your GitHub account
gh auth login

# Verify your current branch and PR status
gh pr status

Code Review Skill Data Schema & Taxonomy

The skill organizes its output using a standardized Markdown taxonomy to ensure clarity and scannability. Findings are structured as follows:

Category Description
Critical Issues High-priority bugs or security flaws requiring immediate fixes.
Warnings Recommended improvements for better stability or standards.
Good Practices Highlights of well-implemented code to encourage positive patterns.
Suggestions Optional enhancements for readability or minor optimizations.
CI/CD Status Summary of automated build/test results and failure logs.

Code Review Skill Advanced Features

  • Multi-platform CI/CD support including GitHub Actions and CircleCI via GitHub Checks integration.
  • Automated failure log retrieval using gh run view --log-failed for rapid troubleshooting.
  • Context-aware threshold adjustments based on whether the project is a prototype or production system.
  • Systematic security scanning for hardcoded secrets and minimal privilege principle violations.
  • Integrated performance auditing specifically targeting resource leaks and database N+1 problems.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*