Python 3.12 / 3.13 anti-patterns reference loaded by super-review:run when the diff touches `*.py` files or dependency manifests. Covers mutable defaults, exception hygiene, asyncio pitfalls, dataclass traps, type-hint drift, `pickle`/`eval`/`requests` security, free-threaded build implications, exception groups, PEP 695 type aliases, `@override`, and async generator cancellation in 3.13. Patterns ruff/mypy miss. Load when reviewing `**/*.py` or detecting `pyproject.toml`, `requirements.txt`, or `Pipfile` in the diff.

Identify Python 3.12/3.13 anti-patterns in pull request diffs.

Updated May 15, 2026
One-click install
npx skills add https://github.com/mattnowdev/super-review --skill python-3-12-3-13-anti-patterns-reference-loaded-by-super-review-run-when-the-diff-touches-py-files-or-dependency-manifests-covers-mutable-defaults-exception-hygiene-asyncio-pitfalls-dataclass-traps-type-hint-drift-pickle-eval-requests-security-free-threaded-build-implications-exception-groups-pep-695-type-aliases-override-and-async-generator-cancellation-in-3-13-patterns-ruff-mypy-miss-load-when-reviewing-py-or-detecting-pyproject-toml-requirements-txt-or-pipfile-in-the-diff
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Python 3.12 / 3.13 anti-patterns reference loaded by super-review:run when the diff touches `*.py` files or dependency manifests. Covers mutable defaults, exception hygiene, asyncio pitfalls, dataclass traps, type-hint drift, `pickle`/`eval`/`requests` security, free-threaded build implications, exception groups, PEP 695 type aliases, `@override`, and async generator cancellation in 3.13. Patterns ruff/mypy miss. Load when reviewing `**/*.py` or detecting `pyproject.toml`, `requirements.txt`, or `Pipfile` in the diff.
Source: https://github.com/mattnowdev/super-review/tree/main/skills/python
Command: npx skills add https://github.com/mattnowdev/super-review --skill python-3-12-3-13-anti-patterns-reference-loaded-by-super-review-run-when-the-diff-touches-py-files-or-dependency-manifests-covers-mutable-defaults-exception-hygiene-asyncio-pitfalls-dataclass-traps-type-hint-drift-pickle-eval-requests-security-free-threaded-build-implications-exception-groups-pep-695-type-aliases-override-and-async-generator-cancellation-in-3-13-patterns-ruff-mypy-miss-load-when-reviewing-py-or-detecting-pyproject-toml-requirements-txt-or-pipfile-in-the-diff

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents noisy, unreliable Python PR feedback by systematically checking common high-impact Python 3.12/3.13 mistakes that linters may miss, especially around correctness, security, and runtime performance pitfalls in real diff changes.

Core Features & Use Cases

  • Anti-pattern checklist for Python reviewers: Covers mutable defaults, exception hygiene, value equality bugs, type-hint/runtime drift, asyncio blocking, and dataclass/class performance traps.
  • Security-focused checks: Flags risky constructs like pickle.loads on untrusted bytes, eval/exec on influenced input, insecure f-string SQL/shell composition, and outbound HTTP calls without timeouts.
  • Python-version-aware modern guidance: Includes 3.12/3.13-specific topics such as PEP 695 type aliases, @override, async generator cancellation, exception groups, and free-threaded build implications.

Quick Start

Ask the AI to run the Python review reference for a PR that modifies Python files and then return a bounded list of only the issues supported by quoted diff evidence.

Frequently Asked Questions about Python 3.12 / 3.13 anti-patterns reference loaded by super-review:run when the diff touches `*.py` files or dependency manifests. Covers mutable defaults, exception hygiene, asyncio pitfalls, dataclass traps, type-hint drift, `pickle`/`eval`/`requests` security, free-threaded build implications, exception groups, PEP 695 type aliases, `@override`, and async generator cancellation in 3.13. Patterns ruff/mypy miss. Load when reviewing `**/*.py` or detecting `pyproject.toml`, `requirements.txt`, or `Pipfile` in the diff.

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

FAQPage Schema
What Python anti-patterns do static linters like ruff and mypy miss in pull requests?

Python anti-patterns that static linters miss include mutable defaults, exception hygiene issues, asyncio blocking pitfalls, dataclass traps, type-hint drift, and security risks like insecure pickle or eval usage in PR diffs.

How do I check Python 3.12 and 3.13 code for security and performance issues in a PR?

To check Python 3.12 and 3.13 code for security and performance issues, load an anti-pattern reference covering PEP 695 type aliases, exception groups, and free-threaded build implications to systematically review diff changes against a checklist.

Does this Python code review reference work with pyproject.toml and requirements.txt changes?

Yes, the Python code review reference triggers when a diff touches dependency manifests like pyproject.toml, requirements.txt, or Pipfile, as well as any *.py files, to produce evidence-quoted review prompts.

What are the most common asyncio and exception group pitfalls in Python 3.13?

Common Python 3.13 pitfalls include async generator cancellation issues and exception group handling errors, which require targeted review checklists to identify runtime problems that static type checkers cannot detect.

How can I detect insecure f-string SQL composition and missing HTTP timeouts in Python code reviews?

Detect insecure f-string SQL composition and missing HTTP timeouts by applying a security-focused anti-pattern checklist that flags risky constructs like eval, pickle.loads, and outbound requests without timeouts during PR evaluation.

When should I use PEP 695 type aliases and the @override decorator in Python 3.12?

Use PEP 695 type aliases and the @override decorator in Python 3.12 when modernizing type hints, ensuring you review for type-hint and runtime drift that can introduce correctness bugs missed by standard linters.