python-pro

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

Updated Aug 19, 2026
One-click install
npx skills add https://github.com/nperepichka/Antigravity --skill python-pro-nperepichka
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: python-pro
Source: https://github.com/nperepichka/Antigravity/tree/main/config/skills/python-pro
Command: npx skills add https://github.com/nperepichka/Antigravity --skill python-pro-nperepichka

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Keeping up with the rapidly evolving Python ecosystem is difficult: developers struggle to choose the right tools (uv vs pip, ruff vs flake8), write correct async code, optimize performance bottlenecks, and ship production-grade services with proper typing, testing, and deployment practices. ## Core Features & Use Cases - Modern Python Development: Implements Python 3.12+ features including pattern matching, generics, Protocol typing, and advanced async/await patterns with asyncio, aiohttp, and trio. - Tooling & Quality Setup: Configures uv for package management, ruff for linting/formatting, mypy or pyright for type checking, and pytest with Hypothesis for testing. - Performance & Production: Profiles code with cProfile and py-spy, optimizes async and multiprocessing workloads, and builds FastAPI services with Pydantic validation and Docker deployment. - Use Case: Ask it to migrate a legacy project from pip to uv, set up ruff and mypy, then refactor a slow synchronous API client into an async implementation with full test coverage. ## Quick Start Ask the agent to review your Python module and refactor it using modern Python 3.12 patterns with type hints, async support, and pytest tests.

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?▼

uv replaces pip with a faster package manager that handles dependency resolution, virtual environments, and lock files. The skill guides migration by converting requirements to pyproject.toml, generating lock files, and updating your workflow commands.

How do I optimize slow Python code for better performance?▼

Start by profiling with cProfile or py-spy to identify bottlenecks. Then apply targeted fixes: async patterns for I/O-bound work, multiprocessing for CPU-bound tasks, caching with functools.lru_cache, and NumPy/Pandas vectorization for data processing.

Should I use ruff or flake8 for Python linting?▼

ruff replaces flake8, isort, and black with a single fast tool configured in pyproject.toml. It is the recommended choice in the modern Python toolchain covered by this skill.

Does FastAPI support async database access with SQLAlchemy?▼

Yes, SQLAlchemy 2.0+ provides async support that integrates with FastAPI endpoints. The skill covers building FastAPI services with Pydantic validation, async ORM sessions, and background tasks via Celery and Redis.

When should I not use async programming in Python?▼

Async helps only for I/O-bound workloads like network calls and database queries. For CPU-bound computation, use multiprocessing or concurrent.futures instead, since async does not bypass the GIL for heavy computation.