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
Own this skill? Claim it
What it does
- Covers invoking ty through
uv run,uvx, or a global install, plusty checkon files, directories, or the whole project - Includes rule control with
--error,--warn,--ignore, andty 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]inpyproject.tomlor aty.tomlfile, and for mypy or Pyright migrations
Install
$ npx -y skills add astral-sh/agent-plugins --skill ty -yInstalls 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 inpyproject.toml- A
ty.tomlconfiguration 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 checksty ...- 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 3Similar to Ty
More PythonruffSkillastral-sh/agent-plugins4.4K installsRuff-based guide for linting and formatting Python code, with scoped-fix guardrails for existing projects.
pyrightPluginPiebald-AI/claude-code-lsps520 starsPython language server with excellent type checking
mypySkillbobmatnyc/claude-mpm-skills498 installsStatic type checker for Python that adds gradual typing, strict mode, and Protocol support to existing code.
pyright-type-checkerSkillbobmatnyc/claude-mpm-skills153 installsFast Python type checking with Pyright, offering strict modes and VS Code integration.
uvSkillastral-sh/agent-plugins6.4K installsPractical guide for uv, the Python package and project manager, covering scripts, projects, tools, and pip workflows.
ruff-lintingSkilllaurigates/claude-plugins541 installsFast Python linting with ruff covering rule selection, auto-fixing, and config files.