Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Python Patterns?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/karthikrshet-python-patterns)
---
name: python-patterns
description: "Modern Python: typing, dataclasses/pydantic, pathlib, context managers, packaging with uv and pyproject."
tags: [python]
---
# Python Patterns
## When to use
- Python code
## Procedure
1. Type-hint public functions
2. Use dataclasses or pydantic for data
3. Use pathlib and context managers
4. Manage deps with uv/poetry
5. Lint with ruff, type-check with mypy/pyright
## Checklist
- [ ] Type checker clean
## Anti-patterns
- Mutable default arguments
- Bare except