Peter Code Review for Openclaw

A robust pre-commit quality gate skill that automates local testing, static analysis, and security reviews to ensure code readiness.

chinasilva
v1.5.0
Mar 3, 2026
0
1.1k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install peter-code-review

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 peter-code-review 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 Peter Code Review?

Peter Code Review serves as the final barrier before code is committed or merged. It systematically analyzes current workspace changes or the most recent HEAD commit to provide a comprehensive evaluation of code health. By integrating various technology-specific tools like ESLint, Pytest, or Go test, it identifies potential issues early in the development lifecycle.

This skill focuses on delivering an actionable report that covers everything from syntax errors to security vulnerabilities. As a part of the Openclaw Skills ecosystem, it bridges the gap between manual development and automated CI/CD pipelines by providing an immediate, local validation loop for developers who want to maintain high standards.

Peter Code Review Use Cases

  • Validating local changes before performing a git commit to maintain a clean history.
  • Conducting a pre-PR review to identify and resolve obvious errors or linting issues.
  • Assessing the impact of UI or dependency changes before pushing to remote repositories.
  • Performing quick security and risk assessments for sensitive code modifications.

How Peter Code Review Works

  1. Identify the scope of modifications using git commands to compare the workspace or the latest commit.
  2. Execute baseline quality checks including linting, type checking, and unit testing tailored to the project's specific tech stack.
  3. Trigger conditional additional checks for builds or database migrations when specific configuration or dependency files are modified.
  4. Perform targeted UI validation and suggest manual smoke tests for frontend changes.
  5. Conduct a security and implementation audit focused on input validation, sensitive data exposure, and performance regressions.
  6. Generate a standardized code review report with a clear conclusion on whether the code is ready to commit.

Peter Code Review Setup

Ensure you are at the root of your repository and that the necessary language-specific tools (Node, Python, Go, etc.) are installed. The skill operates based on your local git state.

# Verify your git status before running
git status

# The skill will automatically detect your stack and run relevant checks

Peter Code Review Data Schema & Taxonomy

The skill generates a structured report within the agent context, following a strict taxonomy for clarity and risk management:

Section Description
Quality Checklist Status of lint, typecheck, tests, and security audits.
Git Summary Summary of files changed and identification of key modifications.
Execution Results Detailed log of command successes or failures for transparency.
Issues List Categorized by severity (Critical to Low) with file paths and line numbers.
Conclusion Final status categorization: Ready, High Risk, or Fix Required.

Peter Code Review Advanced Features

  • Automated fallback to HEAD commit review if the current working directory is clean.
  • Stack-aware command execution supporting Node/TS, Python, Go, and Rust ecosystems.
  • Conditional trigger logic for build-intensive tasks and database gatekeeping based on file paths.
  • Detailed risk labeling for unreachable database environments (GATE_DB_UNREACHABLE) during tests.
  • Comprehensive security auditing for XSS, SSRF, SQL injection, and sensitive token leakage.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*