python-review

Analyze Python codebases for security gaps, performance bottlenecks, and maintainability risks.

Updated Jan 15, 2026
One-click install
npx skills add https://github.com/vircung/opencode-config --skill python-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-review
Source: https://github.com/vircung/opencode-config/tree/main/skill/python-review
Command: npx skills add https://github.com/vircung/opencode-config --skill python-review

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Python code security analysis, performance optimization, and maintainability assessment to help teams ship safer, faster, and cleaner Python code.

Core Features & Use Cases

  • Static analysis tool integration (MyPy, Pylance) to enforce type hints and catch issues early.
  • Comprehensive workflow guidance for security and quality checks with Bandit, Ruff, and recommended configurations for pyproject and mypy.
  • Performance and maintainability assessment patterns including code quality checks, complexity reviews, and refactoring guidance.

Quick Start

Run the Python review on your codebase to perform security, performance, and maintainability analysis.

Frequently Asked Questions about python-review

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

FAQPage Schema
How do I automate Python code reviews for security and maintainability?

Automate Python code reviews by applying static analysis with MyPy and Pylance, security checks with Bandit, and quality enforcement with Ruff. This identifies security gaps, performance bottlenecks, and maintainability risks across web services, data pipelines, and CLI tools.

What is the best way to check Python codebases for security gaps and performance bottlenecks?

Checking Python codebases for security gaps and performance bottlenecks involves running comprehensive static analysis and security workflows. You can use Bandit for security vulnerabilities, MyPy for type enforcement, and Ruff for code quality to catch issues early.

How do I configure MyPy and Ruff for Python static analysis?

Configuring MyPy and Ruff for Python static analysis requires setting up specific configurations in your pyproject and mypy files. This enforces type hints, checks import structures, and applies code quality rules to maintain cleaner codebases.

Does this Python code review approach work for data pipelines and CLI tools?

Yes, this Python code review approach works for data pipelines and CLI tools. The analysis applies to codebases of varying sizes and architectures, guiding developers through recommended tooling and automation patterns for different project types.

Why should I use Bandit and Ruff together for Python static analysis?

Using Bandit and Ruff together for Python static analysis separates security enforcement from general code quality. Bandit identifies security vulnerabilities, while Ruff handles linting and complexity, ensuring comprehensive coverage for safer and cleaner code.

What are the limitations of static analysis for Python performance optimization?

Static analysis limitations for Python performance optimization include catching type and import issues but missing runtime bottlenecks. It guides refactoring and complexity reviews, but deep performance assessment requires additional dynamic profiling beyond MyPy and Ruff.