Use when building Python 3.11+ applications requiring type safety, async programming, or robust error handling. Generates type-annotated Python code, configures mypy in strict mode, writes pytest test suites with fixtures and mocking, and validates code with black and ruff. Invoke for type hints, async/await patterns, dataclasses, dependency injection, logging configuration, and structured error handling.
95
100%
Does it follow best practices?
Impact
91%
1.46xAverage score across 6 eval scenarios
Passed
No known issues
Python package project setup
src layout
100%
100%
py.typed marker
0%
100%
pyproject.toml present
100%
100%
Poetry or hatchling build backend
100%
100%
mypy strict mode
100%
100%
ruff linting config
100%
100%
black line length
0%
100%
pytest pythonpath src
0%
100%
pytest strict markers
0%
100%
coverage fail-under
0%
100%
X|None union syntax
100%
100%
No os.path usage
100%
100%
Async concurrency patterns
asyncio.TaskGroup used
0%
0%
asyncio.timeout used
0%
100%
No blocking sync calls in async
100%
100%
async/await for I/O
100%
100%
X|None union syntax
100%
100%
collections.abc Sequence/Callable
0%
0%
Type hints on all functions
100%
100%
Context manager for resources
100%
100%
No bare except
100%
100%
asyncio.run entrypoint
100%
100%
Google docstrings
100%
100%
Type-safe data modeling
Protocol used
0%
100%
TypedDict used
0%
0%
Dataclass over __init__
100%
100%
field(default_factory) for mutables
100%
100%
X|None union syntax
0%
100%
Complete type hints
75%
100%
Google-style docstrings
0%
100%
pytest.mark.parametrize used
0%
100%
pytest fixtures used
100%
100%
No bare except
100%
100%
No mutable default args
100%
100%
pathlib not os.path
100%
0%
Async mocking and pytest-asyncio testing
AsyncMock for async dependencies
100%
100%
assert_awaited used
100%
100%
patch decorator or context manager
100%
100%
pytest.mark.asyncio on async tests
100%
100%
No hardcoded secrets
100%
100%
Module-level logger
100%
100%
X|None union syntax
0%
100%
Full type annotations
50%
100%
Google-style docstrings
100%
100%
No bare except
100%
100%
pytest fixture used
0%
100%
Standard library data processing (functools, itertools, collections)
functools.lru_cache or cache used
100%
100%
itertools groupby or accumulate used
0%
100%
collections.Counter used
0%
100%
collections.defaultdict used
100%
100%
itertools.chain used
100%
100%
Comprehensions or generators
0%
100%
X|None union syntax
50%
100%
Full type annotations
100%
100%
Google-style docstrings
100%
100%
pytest fixtures
0%
100%
parametrize used
0%
100%
Generic types, ParamSpec, and type-safe decorators
TypeVar defined and used
100%
100%
Generic class defined
100%
100%
ParamSpec used in decorator
100%
100%
Callable from collections.abc
0%
100%
Literal type used
100%
100%
X|None union syntax
0%
100%
Full type annotations
100%
100%
Google-style docstrings
50%
100%
pytest fixtures used
0%
50%
parametrize used
0%
0%
No bare except
100%
100%
functools.wraps used
100%
100%
5b76101
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.