Skip to content
Back to skills

Python Patterns

ASecurity

Modern Python: typing, dataclasses/pydantic, pathlib, context managers, packaging with uv and pyproject.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentspython

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add karthikrshet/saarthi --skill python-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Python Patterns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Python Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/karthikrshet-python-patterns/badge)](https://www.skillsdirectory.com/skills/karthikrshet-python-patterns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.