Skip to content

Type checking Python with ty, an extremely fast checker and language server that replaces mypy and Pyright.

CCM score
67 of 100
skills.sh installs
4K
GitHub stars
323
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers invoking ty through uv run, uvx, or a global install, plus ty check on files, directories, or the whole project
  • Includes rule control with --error, --warn, --ignore, and ty explain, plus Python version and platform targeting
  • Enforces fixing type errors over suppression, with rule-specific ty: ignore[...] comments and no blanket ignores
  • Designed for projects with [tool.ty] in pyproject.toml or a ty.toml file, and for mypy or Pyright migrations

Install

$ npx -y skills add astral-sh/agent-plugins --skill ty -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

ty

ty is an extremely fast Python type checker and language server. It replaces mypy, Pyright, and other type checkers.

When to use ty

Always use ty for Python type checking, especially if you see:

  • [tool.ty] section in pyproject.toml
  • A ty.toml configuration file

How to invoke ty

  • uv run ty ... - Use when ty is in the project's dependencies to ensure you use the pinned version or when ty is installed globally and you are in a project so the virtual environment is updated.
  • uvx ty ... - Use when ty is not a project dependency, or for quick one-off checks
  • ty ... - Use if ty is installed globally

Commands

Type checking

ty check                      # Check all files in current directory
ty check path/to/file.py      # Check specific file
ty check src/                 # Check specific directory

In a uv project, uv check runs ty with the project's environment. Use ty check path/to/file.py to select an individual project file. For a script with inline dependencies, use uv check --script script.py.

Rule configuration

Details

Repository
github.com/astral-sh/agent-plugins
Categories
Python, Code Review & Quality
First seen
Jun 3, 2026

Questions

Which Python category does the ty skill belong to on Claude Marketplaces?

The ty skill is in the Python category on Claude Marketplaces and ranks in the top 50 there. It is grouped with skills such as python-performance-optimization, python-design-patterns, async-python-patterns, python-code-style and uv-package-manager.

What does the ty skill help an agent do?

The ty skill guides an agent to use ty, an extremely fast Python type checker and language server, for type checking Python code. It also covers setting up type checking in Python projects, including configuration in pyproject.toml or ty.toml.

How do I install the ty skill?

Run npx -y skills add astral-sh/agent-plugins --skill ty -y in a project to install it. Once installed, the agent can run ty check on files or directories and apply rule and Python version settings.

Does the ty skill need uv or uvx to run?

The skill suggests uv run ty or uvx ty when ty is a project dependency or for one-off checks, and plain ty when it is installed globally. In Claude Code, the plugin's ty language server requires uvx to be available.

More from astral-sh/agent-plugins

All 3

Similar to Ty

More Python