Agent skill

modern-python

Work with Python (`uv` instead of `python`, modern type syntax, linting, formatting, etc.) properly!

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/modern-python-majiayu000-claude-skill-regist

SKILL.md

  • Never use python. Use uv instead of python
    • uv add package-name
    • uv run script.py
  • Don't use from __future__ import annotations
  • Use modern type syntax (list[str], str | None)
  • Format with uvx ruff format .
  • Lint with uvx ruff check . and uvx ty check
  • Look before you leap (check conditions before acting)

Didn't find tool you were looking for?

Be as detailed as possible for better results