Python Pro

Scaffold type-safe Python 3.11+ modules with async APIs and pytest tests.

Updated Oct 22, 2025
One-click install
npx skills add https://github.com/franroa/chezmoi --skill python-pro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Python Pro
Source: https://github.com/franroa/chezmoi/tree/main/private_dot_config/opencode/skills/python-pro
Command: npx skills add https://github.com/franroa/chezmoi --skill python-pro

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables building robust Python 3.11+ codebases with strong typing, asynchronous I/O, and production-grade best practices, reducing bugs and speeding up delivery.

Core Features & Use Cases

  • Type-safe development: Enforces complete type coverage and modern typing patterns.
  • Async-first design: Provides guidance on async/await for I/O-bound workloads.
  • Testing & quality: Promotes pytest, mypy, and robust test strategies for reliable software.
  • Packaging & tooling: Supports Poetry-based packaging and clean project structure.

Quick Start

Invoke Python Pro to scaffold a small, type-safe Python module with an async API, accompanied by tests and type checks.

Frequently Asked Questions about Python Pro

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

FAQPage Schema
How do I write type-safe Python code for production applications?

Type-safe Python development requires complete type hints on public APIs, strict mypy validation, and modern typing patterns in Python 3.11+. This approach catches bugs at development time, improves code clarity, and ensures reliability in production systems.

What's the best way to structure async I/O in Python projects?

Use async/await patterns for I/O-bound operations, ensuring explicit async function definitions and proper await usage throughout your codebase. This enables efficient concurrency and prevents blocking behavior in production workloads.

How do I achieve high test coverage with pytest?

Build pytest-based test suites targeting >90% code coverage, combining unit and integration tests with type-checked assertions. Pair pytest with mypy and ruff validation to catch errors before runtime and maintain code quality.

Can I use dataclasses with type hints in Python?

Yes. Dataclass-centric design with complete type annotations provides immutable, type-safe data structures ideal for production Python. Combined with context managers and Poetry packaging, dataclasses form the backbone of clean, maintainable architectures.

Why use Poetry for Python project packaging?

Poetry simplifies dependency management, virtual environments, and reproducible builds for type-safe Python projects. It integrates seamlessly with mypy, Black, and ruff tooling to enforce production-grade code standards.