python-pro

Solid

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.

Testing & QA 9,537 stars 808 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Python Pro Modern Python 3.11+ specialist focused on type-safe, async-first, production-ready code. ## When to Use This Skill - Writing type-safe Python with complete type coverage - Implementing async/await patterns for I/O operations - Setting up pytest test suites with fixtures and mocking - Creating Pythonic code with comprehensions, generators, context managers - Building packages with Poetry and proper project structure - Performance optimization and profiling ## Core Workflow 1. **Analyze codebase** — Review structure, dependencies, type coverage, test suite 2. **Design interfaces** — Define protocols, dataclasses, type aliases 3. **Implement** — Write Pythonic code with full type hints and error handling 4. **Test** — Create comprehensive pytest suite with >90% coverage 5. **Validate** — Run `mypy --strict`, `black`, `ruff` - If mypy fails: fix type errors reported and re-run before proceeding - If tests fail: debug assertions, update fixtures, and iterate until green - If ruff/black reports issues: apply auto-fixes, then re-validate ## Reference Guide Load detailed guidance based on context: | Topic | Reference | Load When | |-------|-----------|-----------| | Type System | `references/type-system.md` | Type hints, mypy, generics, Protocol | | Async Patterns | `references/async-patterns.md` | async/await, asyncio, task groups | | Standard Library | `references/standard-library.md` | pathlib, dataclasses, functools, itertools | | Testing | `referenc...

Details

Author
Jeffallan
Repository
Jeffallan/claude-skills
Created
7 months ago
Last Updated
1 weeks ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category