Pre-Landing PR Review for Openclaw

A comprehensive AI-driven code review agent that analyzes PR diffs for structural integrity, data safety, and design consistency while proactively applying auto-fixes.

loocor
v1.0.0
Mar 21, 2026
0
835
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install gstack-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 gstack-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 Pre-Landing PR Review?

The Pre-Landing PR Review is a high-performance automation for Openclaw Skills designed to sit between your code and the merge button. Unlike standard linters, this skill performs a deep, two-pass analysis of your git diffs, focusing on critical areas such as SQL safety, race conditions, and LLM trust boundaries. It ensures that every PR is not only technically sound but also aligned with the original project intent and design standards.

By leveraging a Fix-First heuristic, this skill reduces the friction of code reviews by automatically repairing mechanical issues and batching high-level design judgments for user approval. It acts as a tireless technical lead, cross-referencing your changes against documentation, TODO lists, and even external adversarial review tools like Codex to ensure your codebase remains robust and debt-free.

Pre-Landing PR Review Use Cases

  • Final PR Sanity Checks: Running a comprehensive sweep of a branch before landing changes into the main codebase.
  • Scope Drift Prevention: Comparing current changes against PR descriptions and commit logs to identify unrelated feature creep.
  • Safety Audits: Specifically scanning for SQL injection risks, concurrency issues, and unhandled enum values.
  • Design Consistency: Automatically checking frontend changes against your local design system or DESIGN.md file.
  • Documentation Sync: Identifying when code changes have rendered existing markdown documentation stale or inaccurate.

How Pre-Landing PR Review Works

  1. Base Branch Detection: The skill identifies the target branch using GitHub CLI or git defaults to establish a comparison baseline.
  2. Scope & Intent Analysis: It reads the PR description, commit messages, and TODOs to verify if the changes align with the stated goal.
  3. Multi-Pass Technical Review: The agent performs a critical pass (data safety/concurrency) followed by an informational pass (dead code/test gaps).
  4. Design & Frontend Audit: If frontend files are detected, it applies specific design-system checklists to ensure UI consistency.
  5. Fix-First Execution: Mechanical issues are auto-fixed immediately, while complex design judgments are presented as a structured recommendation for the user to approve.
  6. Documentation & TODO Sync: It cross-references the diff with the project's documentation and task lists to ensure everything stays updated.

Pre-Landing PR Review Setup

To integrate this review capability into your Openclaw Skills environment, ensure you have the GitHub CLI installed and then configure the skill checklist:

# Ensure GitHub CLI is authenticated
gh auth status

# Create the mandatory checklist directory
mkdir -p .claude/skills/review/

# Initialize your project-specific checklist
touch .claude/skills/review/checklist.md

You can also optionally add a design-checklist.md in the same directory for frontend-specific audits.

Pre-Landing PR Review Data Schema & Taxonomy

The skill utilizes a structured feedback loop and specific file lookups to maintain context:

Data Component Source / Location Purpose
Checklist .claude/skills/review/checklist.md Core rules for the two-pass review process.
Design Specs DESIGN.md or design-system.md Reference for UI/UX consistency checks.
Task Context TODOS.md Used to detect scope drift and update task status.
Branch Metadata gh pr view Fetches base branch and original PR intent.
Status Codes DONE, BLOCKED, etc. Standardized protocol for reporting review completion.

Pre-Landing PR Review Advanced Features

  • Auto-Fix Heuristics: Automatically applies code corrections for mechanical CSS fixes or simple structural errors without requiring manual intervention.
  • Enum Completeness Grep: When a new enum is added, it searches the entire repository to ensure all logic branches (switches/match statements) are updated.
  • Codex Adversarial Integration: If available, can invoke OpenAI's Codex to provide an adversarial critique of the proposed PR plan.
  • Documentation Staleness Detection: Proactively flags when code modifications require updates to existing project documentation files.
  • Review Readiness Dashboard Logging: Automatically logs design and technical findings to track repository health over time.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*