python-pro

Generates type-annotated Python 3.11+ code with mypy strict validation and pytest test suites.

Updated Mar 9, 2026
One-click install
npx skills add https://github.com/ArMaTeC/Redball --skill python-pro-armatec
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: python-pro
Source: https://github.com/ArMaTeC/Redball/tree/main/.devin/skills/python-pro
Command: npx skills add https://github.com/ArMaTeC/Redball --skill python-pro-armatec

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Writing production-grade Python requires consistent type safety, async patterns, and test coverage, but manually enforcing mypy strict mode, black formatting, and pytest conventions across a codebase is repetitive and error-prone. ## Core Features & Use Cases - Type-Safe Code Generation: Produces fully type-annotated Python 3.11+ code using modern syntax like X | None, dataclasses, Protocols, and generics that passes mypy --strict. - Async & Testing Patterns: Implements async/await with TaskGroups, async context managers, and writes pytest suites with fixtures, parametrization, mocking, and >90% coverage targets. - Project Setup & Validation: Configures pyproject.toml with black, ruff, mypy, and Poetry, then iterates on validation failures until checks pass. - Use Case: Ask it to build an async HTTP client with retry logic, and receive a fully typed module, a pytest suite with AsyncMock fixtures, and confirmation that mypy strict mode passes. ## Quick Start Use the python-pro skill to write a type-safe async function that fetches multiple URLs concurrently, complete with pytest tests and mypy strict validation.

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 that passes mypy strict mode?▼

Annotate all function signatures and class attributes, use `X | None` instead of `Optional[X]`, and configure mypy with strict = true in pyproject.toml. Fix every reported error, such as missing return type annotations, before considering the implementation complete.

How to write pytest tests with fixtures and mocking in Python?▼

Define fixtures in conftest.py that yield resources with cleanup, use @pytest.mark.parametrize for multiple input cases, and patch dependencies with unittest.mock.Mock or AsyncMock for async code. Aim for coverage above 90 percent with pytest-cov.

What is the difference between asyncio.gather and TaskGroup in Python 3.11?▼

asyncio.gather runs coroutines concurrently and can return exceptions as results with return_exceptions=True. TaskGroup, added in Python 3.11, provides structured concurrency where all tasks complete before the block exits and failures raise ExceptionGroup.

Does this skill support Python versions below 3.11?▼

The skill targets Python 3.11+ and uses features like TaskGroup, ExceptionGroup, and Self types that require 3.11. Union syntax with `X | None` works from 3.10, but older versions are outside its scope.

Why does mypy strict mode fail on third-party library imports?▼

Libraries without type stubs trigger missing import errors under strict mode. Add a [[tool.mypy.overrides]] section in pyproject.toml with ignore_missing_imports = true for the affected third-party modules.