python-pro

Writes and reviews Python 3.12+ code using async patterns, modern tooling, and testing practices.

Updated Jul 29, 2026
One-click install
npx skills add https://github.com/MaiconGambini/opencode-harness-guide --skill python-pro-maicongambini
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-pro
Source: https://github.com/MaiconGambini/opencode-harness-guide/tree/main/skills/python-pro
Command: npx skills add https://github.com/MaiconGambini/opencode-harness-guide --skill python-pro-maicongambini

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Keeping up with the fast-moving Python ecosystem is hard: developers often write outdated code, miss modern 3.12+ language features, or struggle to choose between tools like uv, ruff, mypy, and pydantic when building production services. ## Core Features & Use Cases - Modern Python Development: Applies Python 3.12+ features such as pattern matching, improved typing, generics, and async/await patterns with asyncio and trio. - Modern Tooling Guidance: Configures projects with uv for package management, ruff for linting and formatting, mypy/pyright for type checking, and pytest for testing. - Production Services: Designs FastAPI, Django, or Flask applications with Pydantic validation, SQLAlchemy 2.0, background tasks, and Docker-based deployment. - Use Case: Ask it to migrate a legacy project from pip and flake8 to uv and ruff, add type hints across the codebase, and set up pytest with coverage in CI. ## Quick Start Ask the agent to review your Python module and refactor it to use Python 3.12 features, type hints, and async patterns with pytest coverage.

Frequently Asked Questions about python-pro

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

FAQPage Schema
How do I migrate a Python project from pip to uv?

Replace pip workflows with uv by generating a lockfile via uv lock and installing with uv sync, which is significantly faster than pip. The skill guides updating pyproject.toml, CI pipelines, and virtual environment setup to match uv conventions.

What is the difference between ruff and flake8 for linting?

Ruff is a single Rust-based tool that replaces flake8, black, and isort with much faster execution and unified configuration in pyproject.toml. It implements most flake8 rules and supports autofixing many violations.

How do I add async support to a FastAPI application?

Define endpoints with async def and use async libraries such as aiohttp, async SQLAlchemy 2.0 sessions, and asyncio for concurrency. Avoid blocking calls inside async handlers, since they stall the event loop and degrade throughput.

Does Python 3.12 pattern matching replace if-elif chains?

Structural pattern matching with match statements handles complex destructuring of mappings, sequences, and classes more readably than long if-elif chains. It is best for discriminating on data shape, not simple value comparisons.

When should I use multiprocessing instead of asyncio in Python?

Use asyncio for I/O-bound work like network calls and database queries, and multiprocessing or concurrent.futures for CPU-bound tasks that are limited by the GIL. Choosing the wrong model wastes resources without improving latency.