Docs 458 installs

modern-python

by trailofbits/skills

Configures Python projects with modern tooling (uv, ruff, ty). Use when creating projects, writing standalone scripts, or migrating from pip/Poetry/mypy/black.

Skill content

Modern Python

Guide for modern Python tooling and best practices, based on trailofbits/cookiecutter-python.

When to Use This Skill

- Creating a new Python project or package

- Setting up pyproject.toml configuration

- Configuring development tools (linting, formatting, testing)

- Writing Python scripts with external dependencies

- Migrating from legacy tools (when user requests it)

When NOT to Use This Skill

- User wants to keep legacy tooling: Respect existing workflows if explicitly requested

- Python < 3.11 required: These tools target modern Python

- Non-Python projects: Mixed codebases where Python isn't primary

Anti-Patterns to Avoid