python-code-review

Audit Python code for PEP8 compliance, type hints, and anti-patterns.

2|2|Updated Oct 20, 2025
One-click install
npx skills add https://github.com/tasanakorn/cc-marketplace --skill python-code-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-code-review
Source: https://github.com/tasanakorn/cc-marketplace/tree/main/plugins/python-dev/skills/python-code-review
Command: npx skills add https://github.com/tasanakorn/cc-marketplace --skill python-code-review

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manual code reviews are time-consuming, inconsistent, and can easily miss subtle issues like PEP8 violations, missing type hints, or common anti-patterns. This Skill automates the code review process, providing comprehensive, standardized, and actionable feedback, so you can focus on higher-level architectural decisions.

Core Features & Use Cases

  • Comprehensive Checks: Validates your Python code against PEP8 compliance, type hint coverage, modern Python best practices (3.9+), and detects common anti-patterns.
  • Detailed Feedback: Provides severity-based recommendations, concrete code examples for improvements, and suggestions for refactoring, making it easy to understand and apply fixes.
  • Tool Integration: Promotes and integrates with industry-standard tools like ruff (for fast linting and formatting) and mypy (for static type checking), guiding you towards a robust development workflow.
  • Use Case: Before submitting a pull request, ask Claude to review your Python code. It will identify issues, suggest fixes, and ensure your code meets high quality standards, significantly reducing the back-and-forth in team review cycles.

Quick Start

Ask Claude: "Review the following Python code for best practices:" [Paste your Python code here]

Frequently Asked Questions about python-code-review

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

FAQPage Schema
How do I review Python code for PEP8 compliance and best practices?

PEP8 code review checks your Python code against style standards, type hints, and modern best practices like f-strings and proper exception handling. Paste your code and ask for a review to identify violations, missing type hints, and anti-patterns with severity-based recommendations.

What Python code issues can automated code review detect?

Automated code review detects PEP8 naming violations, line length over 88 characters, improper whitespace, missing or misused type hints, import order problems, documentation gaps, anti-patterns, and structural issues like missing __init__.py or __main__.py entry points.

Can code review help reduce back-and-forth in pull request feedback?

Yes. Code review provides comprehensive, standardized feedback before submission, identifying issues, suggesting concrete fixes, and ensuring compliance with quality standards. This significantly reduces review cycles by catching preventable problems early.

Does this code review work with Python 3.9+ type hint syntax?

Yes. Code review checks for Python 3.9+ type hint syntax, including proper use of Optional versus None, avoiding Any overuse, and modern type annotation patterns to ensure your code uses current standards.

How does code review integrate with existing linting tools?

Code review promotes industry-standard tools like ruff for fast linting and formatting, and mypy for static type checking, guiding you toward a robust development workflow that complements automated checks.

What's the difference between code review and manual peer review?

Code review automates consistent, standardized checks for style and anti-patterns, catching subtle issues like type hint gaps and PEP8 violations. Manual review remains valuable for architectural decisions; code review handles the mechanical layer faster and more thoroughly.