modern-python

Configure Python projects with uv, ruff, and ty tooling.

3|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/andrew-d/claude-skills --skill modern-python-andrew-d
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: modern-python
Source: https://github.com/andrew-d/claude-skills/tree/main/plugins/trailofbits--modern-python/skills/modern-python
Command: npx skills add https://github.com/andrew-d/claude-skills --skill modern-python-andrew-d

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and templates (resource) components.

What problem does it solve?

This Skill streamlines the setup and management of Python projects by integrating modern, high-performance tools for linting, formatting, dependency management, and type checking, reducing boilerplate and improving developer productivity.

Core Features & Use Cases

  • Project Initialization: Quickly set up new Python projects with pyproject.toml and essential tooling.
  • Dependency Management: Use uv for fast, efficient installation and management of project dependencies.
  • Code Quality: Enforce consistent code style and catch errors with ruff (linting/formatting) and ty (type checking).
  • Security: Integrate security scanning tools like pip-audit and detect-secrets.
  • Use Case: When starting a new Python library, use this Skill to automatically configure ruff, uv, and ty for optimal development and maintainability.

Quick Start

Initialize a new Python project using the modern-python skill.

Frequently Asked Questions about modern-python

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a modern Python project with uv and ruff?

To migrate a Python project from Poetry to uv, this skill replaces legacy dependency management tools with uv for fast installation and updates pyproject.toml accordingly. It handles the transition from pip, mypy, and black to modern equivalents like ruff and ty.

How do I integrate security scanning tools like pip-audit into a Python project?

To integrate security scanning, this skill configures pip-audit for dependency vulnerability checks and detect-secrets to prevent credential leaks. It also adds shellcheck, actionlint, and zizmor to secure the project's scripts and CI workflows.

Can I use ruff for both linting and formatting in a Python project?

Yes, you can use ruff for both linting and formatting, as this skill configures ruff to replace multiple legacy tools like black and flake8. It centralizes code quality enforcement within the pyproject.toml configuration.

What is the best way to configure type checking with ty in Python?

The best way to configure ty for type checking is through the pyproject.toml file, which this skill sets up automatically alongside ruff and uv. It provides a modern, high-performance alternative to mypy for catching type errors.