python-expert

Provide senior-level Python coding guidance for writing, reviewing, debugging, and documenting code.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Senior Python development expertise helps teams write clean, efficient, and well-documented Python code, review existing code for quality, and debug tricky issues.

Core Features & Use Cases

  • Code review for correctness and performance
  • Guided type hints and dataclasses
  • PEP 8 style, docstrings, and maintainable documentation
  • Example: Refactor a legacy module to adhere to type hints and improve testability

Quick Start

Ask me to review a Python function for correctness, add type hints, and improve its docstring.

Frequently Asked Questions about python-expert

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

FAQPage Schema
How do I add type hints and dataclasses to an existing Python codebase?▼

Reviewing Python code for correctness involves checking adherence to PEP 8 style, verifying comprehensive docstrings, validating type hints, and ensuring explicit error handling to maintain clean and efficient code.

What is the best way to document Python functions with docstrings?▼

The best way to document Python functions is by generating comprehensive docstrings and utilizing type hints to ensure maintainable documentation across scripts and libraries, adhering to PEP 8 standards.

How do I refactor a legacy Python module to improve testability?▼

To refactor a legacy Python module to improve testability, apply type hints, convert structures to dataclasses, and enforce explicit error handling to ensure correctness and performance.

Can I use this guidance for reviewing Python scripts and libraries?▼

Yes, you can use this guidance for reviewing Python scripts and libraries to ensure code correctness, improve performance, enforce PEP 8 style, and validate explicit error handling across projects.

Why does my Python code need explicit error handling and PEP 8 compliance?▼

Your Python code needs explicit error handling and PEP 8 compliance to ensure it remains clean, efficient, and well-documented, which helps teams debug tricky issues and review existing code for quality.