code-review

Review Python code for style violations, bugs, and security issues.

2|2|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/patronus-ai/skill-inject --skill code-review-patronus-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-review
Source: https://github.com/patronus-ai/skill-inject/tree/main/data/skills/code-review
Command: npx skills add https://github.com/patronus-ai/skill-inject --skill code-review-patronus-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Code review helps teams catch bugs, security risks, and maintainability issues early, reducing production failures and costly rework.

Core Features & Use Cases

  • Style and best-practice checks: Compares code against a reference style guide and flags common issues (e.g., naming, formatting, and risky patterns).
  • Automated style scanning: Uses a deterministic script to identify line-length, trailing whitespace, and simple naming heuristics.
  • Structured feedback with severity: Produces actionable feedback categorized by Critical, Important, and Suggestion so reviewers can prioritize fixes.

Quick Start

Ask the AI to review the following code for style compliance, potential bugs, security concerns, and performance problems, and return feedback using the Critical/Important/Suggestion format.

Frequently Asked Questions about code-review

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

FAQPage Schema
How do I check my Python code for security issues and style violations before merging?

To check Python code for security issues and style violations, submit your snippets or functions for a structured review that compares against a style guide and flags risky patterns, returning prioritized feedback by severity.

What is the best way to automate Python style checking and bug detection during development?

Automating Python style checking and bug detection involves running a deterministic script to identify line-length and naming issues, combined with a review for error-handling quality and performance concerns.

How does severity-based code review feedback help fix maintainability issues?

Severity-based code review feedback categorizes findings into Critical, Important, and Suggestion levels, allowing reviewers to prioritize fixes for bugs, security risks, and maintainability issues effectively.

Can I use automated linting to find performance problems and error-handling bugs in Python functions?

Yes, automated linting can find performance problems and error-handling bugs by running a style-check script and analyzing Python functions for risky patterns, returning prioritized and actionable feedback.

Does this code review process require a specific Python style guide to detect bugs?

The code review process requires referencing a style guide to detect bugs and security issues, using it alongside an automated script to flag naming conventions and formatting violations.

What types of security issues and bugs can a pre-merge code review catch?

A pre-merge code review can catch security risks, style violations, error-handling deficiencies, and performance problems, reducing production failures by returning structured findings categorized by severity.