Python Patterns skills for AI agents
10 practitioner-grade python patterns skills, each a focused Markdown document your agent loads into context on demand. Search them from Claude Desktop, Cursor or any MCP client, or pull one with the CLI.
All 10 skills
- Async Patterns
Asyncio patterns for concurrent I/O-bound programming in Python
216 lines - Context Managers
Context manager patterns using with statements for reliable resource management in Python
171 lines - Dataclasses
Dataclass and Pydantic model patterns for structured data in Python
204 lines - Decorators
Decorator patterns for wrapping, extending, and composing Python functions and classes
167 lines - Dependency Injection
Dependency injection patterns for loosely coupled, testable Python applications
261 lines - Generators
Generator and itertools patterns for memory-efficient data processing in Python
207 lines - Metaclasses
Metaclass and descriptor patterns for advanced class customization in Python
224 lines - Validate Python App Configuration with pydantic-settings
Declare typed settings, verify source precedence, and catch unsafe or incomplete deployment configuration before app startup.
29 lines - Adopt Ruff for Python Linting and Formatting
Use Ruff in a controlled migration with explicit configuration, rule parity, and reproducible check-only CI.
30 lines - Type Hints
Type hint patterns and mypy best practices for statically typed Python code
201 lines