python-best-practices
Installation
SKILL.md
Python Best Practices
Type Hints (3.12+ Syntax)
# Use built-in generics (3.9+), no need for typing.List, typing.Dict
def process_items(items: list[str]) -> dict[str, int]:
return {item: len(item) for item in items}
# Union with | syntax (3.10+)
def find_user(user_id: int) -> User | None:
...
# Type parameter syntax (3.12+)
type Vector[T] = list[T]
type Matrix[T] = list[Vector[T]]
def first[T](items: list[T]) -> T:
return items[0]
Related skills
More from rohitg00/awesome-claude-code-toolkit
devops-automation
CI/CD pipeline design with GitHub Actions, Docker, Kubernetes, Helm, and GitOps patterns
116react-patterns
React 19 patterns including Server Components, Actions, Suspense, hooks, and component composition
88database-optimization
Query optimization, indexing strategies, and database performance tuning for PostgreSQL and MySQL
85api-design-patterns
REST API design with resource naming, pagination, versioning, and OpenAPI spec generation
81redis-patterns
Redis patterns including caching strategies, pub/sub, streams for event processing, Lua scripts, and data structures
79frontend-excellence
Modern frontend patterns for React Server Components, performance optimization, and Core Web Vitals
79