ty-skills
Learn to use ty, Astral's high-performance Rust-based type checker for Python. This skill covers adding type annotations, resolving type errors, configuring rules, and migrating from mypy or pyright. Explore advanced patterns like intersection types and protocols, plus editor integration for VS Code, Cursor, Neovim, and PyCharm.
ty-skills teaches you to add type annotations and resolve type errors with ty, Astral's fast Rust-based type checker.
AI-generated summary based on this skill's SKILL.md
Install
jiatastic/open-python-skills/ty-skills · repository language: Python
git clone https://github.com/jiatastic/open-python-skills
cp -r open-python-skills/skills/ty-skills ~/.claude/skills/ty-skillsnpx skillfed install jiatastic/open-python-skills/ty-skillsFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
How to use ty type checker python?
ty-skills teaches you to use ty, Astral's high-performance Rust-based type checker for Python. Start by adding type annotations to your code, then run ty's check command to identify type errors. ty-skills covers the full workflow: understanding error messages, fixing violations, and integrating ty into your development environment for continuous type checking.
What's the process to migrate from mypy to ty?
ty-skills provides guidance for migrating from mypy or pyright to ty. The skill explains how to adapt your existing type annotations, configure ty's rules to match your project's needs, and handle any differences in error reporting. ty-skills helps you transition smoothly while maintaining your type safety standards.
How do I configure ty rules and severity levels?
ty-skills covers configuring ty rules and severity levels through your pyproject.toml file. Learn which rules to enable or disable, how to set strictness levels, and how to customize diagnostics for your team's standards. ty-skills explains both basic and advanced configuration options for fine-tuning type checking behavior.
What advanced type patterns does ty-skills cover?
ty-skills teaches advanced patterns including intersection types, protocol generics, and complex type relationships. These patterns help you express sophisticated type constraints that improve code safety. ty-skills shows practical examples of when and how to apply these patterns in real Python projects.
How do I set up ty in VS Code and other editors?
ty-skills covers editor integration for VS Code, Cursor, Neovim, and PyCharm. Learn how to configure ty's language server, enable real-time diagnostics, and customize your editor's type checking experience. ty-skills provides step-by-step setup instructions for each supported editor.
How does ty compare to mypy in performance?
ty-skills explains that ty is Astral's fast, Rust-based type checker designed for superior performance compared to mypy and pyright. The skill covers ty's speed advantages, when to choose ty over alternatives, and how its performance benefits your development workflow on large codebases.
SKILL.md
rendered from the published skill — quoted content, verbatim
ty-skills
Master Python type checking with ty - the extremely fast type checker written in Rust by Astral (creators of uv and Ruff).
When to Use This Skill
- Adding type annotations to Python code
- Fixing type errors and diagnostics from ty
- Configuring ty rules and severity levels
- Migrating from mypy or pyright to ty
- Understanding advanced type patterns (intersection types, protocols, generics)
- Setting up ty language server in your editor
Quick Start
# Install
uv tool install ty
# or: pip install ty
# Check current directory
ty check
# Check specific files
ty check src/
# Full diagnostics
ty check --output-format full
Configuration
Configure via
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 9 files
skills/ty-skills/SKILL.md
skills/ty-skills/references/advanced_patterns.md
skills/ty-skills/references/common_errors.md
skills/ty-skills/references/editor_setup/cursor.md
skills/ty-skills/references/editor_setup/neovim.md
skills/ty-skills/references/editor_setup/vscode.md
skills/ty-skills/references/migration_guide.md
skills/ty-skills/references/ty_rules_reference.md
skills/ty-skills/references/typing_cheatsheet.md