python

Guide Python 3.14 codebases with uv, ruff, mypy, and asyncio workflows.

15|2|Updated May 23, 2026
One-click install
npx skills add https://github.com/VKirill/antigravity-for-claude-code --skill python-vkirill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python
Source: https://github.com/VKirill/antigravity-for-claude-code/tree/main/skills/python
Command: npx skills add https://github.com/VKirill/antigravity-for-claude-code --skill python-vkirill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Python teams waste time repeatedly deciding core fundamentals—modern syntax, typing strategy, packaging with uv, lint/format, async patterns, and how to debug the most common runtime errors.

Core Features & Use Cases

  • Foundation for modern Python 3.14: covers current language constructs like PEP 695 type parameters, exception groups, structural pattern matching, t-strings, and deferred annotations.
  • Typing and tooling setup: guidance for Protocol, TypedDict, ParamSpec, Self, and configuring mypy/ruff in a consistent pyproject.toml workflow.
  • Packaging and workflow with uv: best-practice project initialization, dependency groups (PEP 735), interpreter pinning, lockfile discipline, and CI/Docker usage patterns.
  • Async and concurrency fundamentals: structured concurrency with asyncio.TaskGroup, cancellation rules, timeouts, and sync/async bridging.
  • Reliable error handling and troubleshooting: exception hierarchy patterns, raise ... from, ExceptionGroup + except*, and symptom-indexed fixes for ModuleNotFoundError/ImportError, circular imports, venv pollution, and encoding issues.

Quick Start

Use the python skill when you need help choosing idiomatic Python 3.14 syntax and setting up types, uv packaging, ruff formatting, and mypy checks for a new repository.

Frequently Asked Questions about python

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

FAQPage Schema
How do I set up a modern Python project with uv and configure mypy and ruff?

To set up a modern Python project, initialize your repository structure using uv for packaging and dependency management, then configure ruff for linting and formatting alongside mypy for static type checking within a consistent pyproject.toml workflow.

How does asyncio TaskGroup handle structured concurrency and cancellation in Python 3.14?

Asyncio TaskGroup provides structured concurrency by managing a group of asynchronous tasks, automatically propagating cancellations if one task fails, and utilizing timeout rules and sync/async bridging to ensure reliable concurrent execution.

What is the best way to resolve ModuleNotFoundError and circular import issues in Python?

The best way to resolve ModuleNotFoundError and circular import issues involves applying symptom-indexed troubleshooting patterns, checking for virtualenv pollution, and verifying correct project structure and package isolation to prevent runtime errors.

How do I use PEP 695 type parameters and exception groups in Python 3.14?

PEP 695 introduces new syntax for type parameters, while exception groups allow handling multiple exceptions simultaneously using except* syntax, both representing current language constructs essential for writing reliable modern Python code.

Can I use uv with existing CI and Docker workflows for Python packaging?

Yes, uv supports CI and Docker usage patterns by providing best-practice project initialization, dependency groups via PEP 735, interpreter pinning, and lockfile discipline to ensure reliable and reproducible builds.

Why should I use Protocol and TypedDict for typing instead of traditional base classes?

Protocol and TypedDict enable structural subtyping and precise dictionary typing respectively, offering more flexible and accurate type checking alongside ParamSpec and Self types when configuring mypy in a modern Python codebase.