python-reviewer

Identify and fix Python code quality and security issues.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/artsmc/codex-agentic --skill python-reviewer-artsmc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-reviewer
Source: https://github.com/artsmc/codex-agentic/tree/main/skills/python-reviewer
Command: npx skills add https://github.com/artsmc/codex-agentic --skill python-reviewer-artsmc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Python codebases often suffer from a mix of idiom issues, lax type hints, and security vulnerabilities that slip past casual reviews; this skill provides a rigorous, automated perspective to tighten code quality and safety.

Core Features & Use Cases

  • Enforces Pythonic idioms and modern best practices, including avoidance of mutable defaults and common anti-patterns.
  • Flags security concerns such as potential SQL injection risks, hardcoded secrets, and unsafe dependency usage; provides actionable refactoring suggestions.
  • Guides static typing improvements (MyPy/Pyright) and linting alignment with Ruff to improve maintainability.
  • Use cases include pre-release audits, codebase cleanups, and targeted reviews of modules or packages.

Quick Start

Analyze the target Python module or project and return structured feedback with concrete, ready-to-apply changes.

Frequently Asked Questions about python-reviewer

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

FAQPage Schema
How do I find and fix Python security issues and anti-patterns in my codebase?

Python static analysis identifies code quality and security issues by flagging mutable defaults, insecure patterns, and typing gaps, then provides actionable refactoring suggestions to ensure compatibility with Ruff, MyPy, and Bandit checks.

How do I check my Python project for typing gaps and MyPy compatibility?

Checking typing gaps involves analyzing modules to guide static typing improvements for MyPy and Pyright, ensuring robust type hints and better maintainability across the Python project.

Can I use this to align my Python code with Ruff linting rules?

Yes, you can align code with Ruff linting rules by analyzing the codebase to enforce Pythonic idioms and modern best practices, returning structured feedback with concrete changes ready to apply.

What is the best way to audit a Python module for hardcoded secrets before release?

The best way to audit for hardcoded secrets is to perform an automated review that flags insecure patterns and unsafe dependencies, providing actionable refactoring suggestions for safe release preparation.

Does this Python code review approach work on large projects and individual functions?

Yes, this approach applies to varying sizes from individual functions to large projects, using static analysis to identify quality issues and ensure secure, idiomatic code across the entire codebase.

Why should I use automated static analysis instead of casual Python code reviews?

Automated static analysis is necessary because casual reviews often miss lax type hints and security vulnerabilities, whereas rigorous analysis tightens code quality by catching anti-patterns and ensuring tool compatibility.