- •Never use
python. Useuvinstead ofpython- •
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 .anduvx ty check - •Look before you leap (check conditions before acting)
modern-python
正确使用Python(使用`uv`而非`python`,采用现代类型语法、代码风格检查、格式化等规范!)
SKILL.md
--- frontmattername: modern-python description: Work with Python (`uv` instead of `python`, modern type syntax, linting, formatting, etc.) properly!