python-expert

Write and review Python code for correctness, type safety, and PEP 8 compliance.

Updated Jul 23, 2026
One-click install
npx skills add https://github.com/rahulgupta2018/agent-skills --skill python-expert-rahulgupta2018
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: python-expert
Source: https://github.com/rahulgupta2018/agent-skills/tree/main/skills/python-expert
Command: npx skills add https://github.com/rahulgupta2018/agent-skills --skill python-expert-rahulgupta2018

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill addresses the challenge of maintaining high-quality, idiomatic, and performant Python code by enforcing strict standards for correctness, type safety, and style.

Core Features & Use Cases

  • Code Quality Enforcement: Automatically reviews Python code against a priority hierarchy of Correctness, Type Safety, Performance, and Style.
  • Best Practice Guidance: Provides actionable fixes for common Python pitfalls like mutable default arguments, late-binding closures, and improper error handling.
  • Use Case: Use this skill when refactoring a legacy module to ensure it meets modern Python 3.11+ standards, includes comprehensive type hints, and follows PEP 8 conventions.

Quick Start

Activate the python-expert skill to review the current file for performance bottlenecks and missing type hints.

Frequently Asked Questions about python-expert

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

FAQPage Schema
How do I refactor Python code to meet modern PEP 8 and type safety standards?▼

Refactoring Python code for PEP 8 and type safety involves enforcing strict standards for correctness, idiomatic structure, and comprehensive type annotation. It addresses common pitfalls like mutable default arguments and late-binding closures.

What is the best way to review Python code for performance bottlenecks and missing type hints?▼

The best way to review Python code for performance and type hints is to enforce a priority hierarchy of Correctness, Type Safety, Performance, and Style. This identifies bottlenecks and ensures robust error handling.

How do I fix common Python pitfalls like mutable default arguments and late-binding closures?▼

To fix Python pitfalls like mutable default arguments and late-binding closures, apply actionable best practice guidance during code review. This ensures idiomatic structure and robust error handling.

Can I use this approach to enforce type hints and PEP 8 compliance on legacy Python modules?▼

Yes, you can enforce type hints and PEP 8 compliance on legacy Python modules by refactoring them to meet modern Python 3.11+ standards. This ensures strict type safety and idiomatic structure.

Why does my Python code fail type safety checks during refactoring?▼

Python code fails type safety checks during refactoring when it lacks comprehensive type annotations or contains improper error handling. Enforcing strict type safety standards resolves these issues.