PR Code Reviewer for Openclaw

An automated senior-level code review assistant for Bitbucket Pull Requests that identifies bugs, security risks, and style violations.

nesquitmx
v1.0.1
Feb 13, 2026
0
2k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install pr-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 pr-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 PR Code Reviewer?

The PR Code Reviewer is a robust tool designed to function as an automated Senior Code Reviewer within your development pipeline. By leveraging Openclaw Skills, this tool scans Pull Request diffs to identify syntax errors, security vulnerabilities, and violations of team-specific coding standards. It supports a wide range of languages including JavaScript, TypeScript, PHP, and Python, ensuring that only high-quality code reaches your production branches.

This skill doesn't just point out errors; it provides context and actionable suggestions. It mimics the behavior of a human reviewer by understanding the overall intent of the changes rather than just looking at lines in isolation. Utilizing Openclaw Skills for your code reviews reduces the manual burden on lead developers and increases the overall velocity of the engineering team.

PR Code Reviewer Use Cases

  • Automatically auditing Pull Requests for security vulnerabilities before they are merged into develop or master.
  • Enforcing consistent coding standards and team conventions across decentralized development teams.
  • Identifying performance bottlenecks and code smells in JavaScript, Node.js, PHP, and Python projects.
  • Providing immediate feedback to developers during the PR lifecycle to speed up the iteration process.

How PR Code Reviewer Works

  1. The skill receives the complete diff and context from a Bitbucket Pull Request.
  2. It automatically identifies the programming languages used in each file to apply relevant analysis rules.
  3. It cross-references the code against general, security, and language-specific standards defined in your Openclaw Skills reference library.
  4. Every issue found is classified by severity, ranging from Blocker for critical bugs to Nit for minor formatting details.
  5. The skill generates a structured report containing the current code, the suggested correction, and a technical explanation for the change.
  6. A final verdict is issued to approve, approve with changes, or reject the Pull Request based on the findings.

PR Code Reviewer Setup

To integrate this skill into your environment, ensure you have the necessary reference files available in your project structure.

# Move the skill definition to your active skills folder
mv pr-code-reviewer.md ./.agent/skills/

# Ensure your reference markdown files are in place
mkdir -p references
# Add your team-conventions.md and security.md to the references directory

Configure your Openclaw Skills runner to trigger the PR Code Reviewer whenever a new diff is provided by your CI/CD pipeline or manual input.

PR Code Reviewer Data Schema & Taxonomy

The PR Code Reviewer organizes its analysis into a clear, hierarchical format to make reviews easy to digest:

Component Description
Verdict The final status: Approve, Approve with Changes, or Reject.
Summary Stats Counts of findings categorized as Blocker, Warning, Suggestion, or Nit.
File Path The specific location of the finding in the repository.
Diff Comparison Side-by-side view of the problematic code vs. the suggested improvement.
Reasoning A technical justification explaining the 'why' behind each suggestion.

PR Code Reviewer Advanced Features

  • Contextual Understanding: Analyzes the PR intent rather than just performing simple linting.
  • Multi-Language Support: Seamlessly switches between rule sets for JavaScript, TypeScript, PHP, Python, and CSS/HTML.
  • Severity Classification: Prioritizes critical security and logic issues over stylistic preferences.
  • Extensible Rule Sets: Integrates with external markdown-based reference documents for dynamic rule enforcement within the Openclaw Skills ecosystem.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*