Skip to content
Back to skills

Python Patterns

ASecurity

Python patterns for typing, project layout, async, errors, logging, metrics, and packaging. Load before any edit to a .py file or pyproject.toml, however small, and for Python questions.

  • 2 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 5, 2026
ai-agentspython

Works with

  • cli

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add ku5ic/claude-kit --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/ku5ic-python-patterns/badge)](https://www.skillsdirectory.com/skills/ku5ic-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: Python patterns for typing, project layout, async, errors, logging, metrics, and packaging. Load before any edit to a .py file or pyproject.toml, however small, and for Python questions.
---

# Python patterns

Default assumption: Python 3.11, the oldest release the Python devguide still supports; 3.15 is current, per the Python release notes.

A Python row applies when the project's `requires-python` in `pyproject.toml`, or its `.python-version` or `.tool-versions`, is at least the row's version. A ruff, mypy, uv, Poetry, structlog, or prometheus-client row applies when the version of that tool the project pins, in `pyproject.toml`, a requirements file, or the lockfile, is at least the row's version, else when its installed `--version` is.

## Reference files

Loading this skill isn't enough. Before your next edit, read the file of every row that matches it. The rules live in those files, and this one only points at them.

| Before                                                                                                                                                     | Read                                                     |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
| Writing Python code, or raising the Python version or a tool's                                                                                             | [reference/upgrades.md](reference/upgrades.md)           |
| Writing, changing, or reviewing Python code                                                                                                                | [reference/anti-patterns.md](reference/anti-patterns.md) |
| Writing types, async code, errors, standard-library idioms, Pydantic models, imports, packaging, logging or structlog config, or prometheus-client metrics | [reference/practices.md](reference/practices.md)         |
| Editing `pyproject.toml`, or configuring ruff, mypy, or pyright                                                                                            | [reference/tooling.md](reference/tooling.md)             |

Files in this skill

  • SKILL.md3.6 KB
  • reference/anti-patterns.md4.1 KB
  • reference/async.md4 KB
  • reference/common-patterns.md3.4 KB
  • reference/errors.md1.2 KB
  • reference/project-layout.md4.2 KB
  • reference/typing.md4.1 KB

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.