python-patterns

Installation
Summary

Pythonic idioms, PEP 8 standards, type hints, and best practices for building robust Python applications.

  • Covers core principles including readability, explicit code, EAFP exception handling, and modern type hints with generics and protocols
  • Includes practical patterns for error handling, context managers, comprehensions, generators, dataclasses, and decorators with runnable examples
  • Addresses concurrency patterns for I/O-bound (threading, async/await) and CPU-bound (multiprocessing) tasks, plus memory optimization techniques
  • Provides package organization standards, import conventions, tooling integration (black, ruff, mypy, pytest), and anti-patterns to avoid
SKILL.md

Python Development Patterns

Idiomatic Python patterns and best practices for building robust, efficient, and maintainable applications.

When to Activate

  • Writing new Python code
  • Reviewing Python code
  • Refactoring existing Python code
  • Designing Python packages/modules

Core Principles

1. Readability Counts

Python prioritizes readability. Code should be obvious and easy to understand.

# Good: Clear and readable
Related skills
Installs
4.9K
GitHub Stars
179.7K
First Seen
Feb 1, 2026