python

Enforce strict type annotations, async concurrency, and pytest testing for Python 3.11+.

25|3|Updated Jul 14, 2026
One-click install
npx skills add https://github.com/nimadorostkar/Claude-Skills-collection --skill python-nimadorostkar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python
Source: https://github.com/nimadorostkar/Claude-Skills-collection/tree/main/skills/languages/python
Command: npx skills add https://github.com/nimadorostkar/Claude-Skills-collection --skill python-nimadorostkar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the common pitfalls in Python development, such as weak typing, lack of test coverage, and inefficient async patterns, by enforcing a strict, modern standard for code quality.

Core Features & Use Cases

  • Type-Safe Development: Enforces full type annotation using modern Python 3.11+ features like Protocols and ParamSpec.
  • Async Concurrency: Provides patterns for structured concurrency, task groups, and proper cancellation handling.
  • Quality Gates: Integrates ruff, mypy, and pytest to ensure code is linted, type-checked, and verified against contracts.

Quick Start

Use the python skill to modernize the provided legacy module by adding type annotations and a comprehensive pytest suite.

Frequently Asked Questions about python

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

FAQPage Schema
How do I enforce strict type annotations in Python 3.11+ legacy code?

You enforce strict type checking in Python 3.11+ by applying mypy --strict to legacy modules, adding full type annotations using modern features like Protocols and ParamSpec for robust type safety.

What is the best way to structure async concurrency in Python I/O-bound services?

Structured async concurrency in Python I/O-bound services is best implemented using task groups and proper cancellation handling patterns to ensure robust and efficient asynchronous execution.

How do I set up automated testing and linting for production-grade Python code?

Automated testing and linting for production-grade Python code is set up by integrating ruff for linting, mypy for strict type checking, and pytest for contract verification to enforce code quality gates.

Does this Python development standard work for modernizing existing modules?

Yes, this Python development standard works for modernizing existing modules by adding comprehensive type annotations and a pytest suite to bring legacy code up to modern quality standards.

Why does mypy --strict fail on my Python async task groups?

mypy --strict fails on Python async task groups when proper type annotations are missing. You must apply strict type checking and structured concurrency patterns to pass the quality gates.