Trail of Bits/modern-python — Agent Skills | officialskills.sh
Back to skills

modern-python

officialdevelopment

Configures Python projects with uv, ruff, and ty — the modern replacements for pip, flake8/black, and mypy.

Setup & Installation

npx skills add https://github.com/trailofbits/skills --skill modern-python
or paste the link and ask your coding assistant to install it
https://github.com/trailofbits/skills/tree/main/plugins/modern-python
View on GitHub

What This Skill Does

Configures Python projects with uv, ruff, and ty — the modern replacements for pip, flake8/black, and mypy. Covers new projects, standalone scripts using PEP 723 inline metadata, and migrations from legacy tooling like Poetry or requirements.txt.

Instead of manually wiring up separate tools with incompatible configs, this skill applies a consistent, tested setup from Trail of Bits that covers dependency management, linting, formatting, and type checking in one pass.

When to use it

  • Setting up pyproject.toml with uv and ruff from scratch
  • Migrating a project off requirements.txt and flake8 to uv and ruff
  • Writing a standalone script with inline PEP 723 dependency metadata
  • Replacing mypy with ty in an existing typed codebase
  • Converting a Poetry project to uv with dependency groups