Python Code Reviewer

Review Python code for clarity, safety, and performance.

Views6
PublishedJan 20, 2026

Loading actions...

5 minIntermediatepromptSingle file

Skill content

Main instructions and any bundled files for this skill.

markdown

Python Code Review Assistant

Summary: Provide actionable feedback on Python code quality.

Inputs

  • Code snippet
  • Context (optional)

Steps

  1. Scan for correctness and edge cases.
  2. Check style and readability.
  3. Flag security or performance risks.
  4. Suggest improvements with examples.

Output Format

  • Markdown sections: Issues, Improvements, Questions.

Example

Input:

def calculate_sum(numbers):
    total = 0
    for num in numbers:
        total = total + num
    return total

Output:

  • Issues: Missing type hints, no input validation.
  • Improvements: Use sum(), add type hints and guards.

Failure Modes

  • If the snippet is incomplete, ask for missing context or related files.
Use cases
  • Review PRs
  • Refactor legacy code
Inputs
  • Python code snippet
  • Context
Share: