AgentSkillsCN

modern-python

正确使用Python(使用`uv`而非`python`,采用现代类型语法、代码风格检查、格式化等规范!)

SKILL.md
--- frontmatter
name: modern-python
description: Work with Python (`uv` instead of `python`, modern type syntax, linting, formatting, etc.) properly!
  • 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)