Code Review

Review pull request diffs for security, correctness, and style issues.

9|3|Updated Apr 16, 2024
One-click install
npx skills add https://github.com/keiretsu-labs/kubernetes-manifests --skill code-review-keiretsu-labs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Code Review
Source: https://github.com/keiretsu-labs/kubernetes-manifests/tree/main/openclaw/workspaces/main/skills/code-review
Command: npx skills add https://github.com/keiretsu-labs/kubernetes-manifests --skill code-review-keiretsu-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, git, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of reviewing code changes in pull requests, ensuring correctness, security, and adherence to style guidelines.

Core Features & Use Cases

  • Automated Code Analysis: Performs security scans, correctness checks, and style consistency validation on code diffs.
  • Structured Feedback: Generates prioritized findings reports (Critical, High, Medium, Low) and can post comments directly to pull requests.
  • Use Case: When a new feature branch is ready for merging, this Skill can be invoked to provide a thorough review, identifying potential bugs or security vulnerabilities before they reach production.

Quick Start

Use the code review skill to review pull request number 123 in the repository rajsinghtech/my-repo.

Frequently Asked Questions about Code Review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate code review on a pull request before merging?

Automated code review on a pull request is performed by analyzing diffs to validate correctness, execute security scans, check style consistency, and generate priority-based findings reports before merging to production.

What does an automated security scan check for in a pull request diff?

A security scan in a pull request diff checks for potential security vulnerabilities and correctness issues, validating that new feature branch changes adhere to established style guidelines before reaching production.

Do I need GitHub CLI and Git to run automated pull request reviews?

Yes, GitHub CLI and Git are required dependencies to run automated pull request reviews, as the tool uses them to analyze repository diffs and post structured feedback comments directly to the pull request.

How do I post structured review comments to a GitHub pull request?

To post structured review comments to a GitHub pull request, the tool generates a prioritized findings report categorized by severity (Critical, High, Medium, Low) and submits it via the GitHub CLI.

Can I run security and correctness checks on a feature branch before merging?

Yes, you can run security and correctness checks on a feature branch before merging by invoking the tool to perform a structured analysis on the diff and identify potential bugs or vulnerabilities.