ty-skills

ty-skills is a skill for Claude Code from jiatastic/open-python-skills. It costs 104 tokens per session (944 once invoked), scanned A, original, MIT.

A set of instructions for using ty, a Python type checker that finds places where values or function arguments may have the wrong type. It covers setup, rules, configuration, and migration from other type checkers.

In plain words
What is it for?
Use it to add or fix Python type annotations, run checks on files or folders, configure diagnostics in pyproject.toml, and move from mypy or pyright.
Why use it?
It finds many type-related mistakes before the program runs and makes those checks repeatable in editors and continuous integration.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the open-python-skills plugin — 8 skills shipped together

Good fit Use it to add or fix Python type annotations, run checks on files or folders, configure diagnostics in pyproject.toml, and move from mypy or pyright.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jiatastic/open-python-skills/ty-skills
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jiatastic/open-python-skills --skill ty-skills
Clone the repo
git clone --depth 1 https://github.com/jiatastic/open-python-skills

Made for: Claude Code.

Or install open-python-skills, the plugin that ships this one along with the rest of its 8 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ty-skills

README.md
[![agentmods](https://agentmods.dev/badge/skills/jiatastic/open-python-skills/ty-skills/github.svg)](https://agentmods.dev/skills/jiatastic/open-python-skills/ty-skills)
Your own site
<a href="https://agentmods.dev/skills/jiatastic/open-python-skills/ty-skills"><img src="https://agentmods.dev/badge/skills/jiatastic/open-python-skills/ty-skills/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ty-skills

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiatastic/open-python-skills/ty-skills"><img src="https://agentmods.dev/badge/skills/jiatastic/open-python-skills/ty-skills.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 944 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00104 $0.00944
Opus 5.5 $0.00042 $0.00378
Sonnet 5.5 $0.00021 $0.00189
Haiku 4.5 $0.00010 $0.00094

Measured 2mo ago against content hash 865d747c55cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ty-skills scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ty-skills/SKILL.md · 131 lines

How it starts

The opening of the file, as written. The whole thing — 131 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 pyproject.toml:

[tool.ty.environment]
python-version = "3.12"
python = "./.venv"
python-platform = "linux"
root = ["./src"]
extra-paths = ["./typings"]

[tool.ty.rules]
# error: fail CI, warn: report, ignore: disable
possibly-unresolved-reference = "error"
invalid-argument-type = "error"
division-by-zero = "warn"
unused-ignore-comment = "warn"

[tool.ty.src]
include = ["src", "tests"]
exclude = ["src/migrations/"]

# Per-file overrides
[[tool.ty.overrides]]
include = ["tests/**"]

[tool.ty.overrides.rules]
possibly-unresolved-reference = "warn"

Rules Quick Reference

Rule Default Description
possibly-unresolved-reference error Variable might not be defined
invalid-argument-type error Argument type mismatch
incompatible-assignment error Assigned value incompatible
missing-argument error Required argument missing
unsupported-operator error Operator not supported for types
invalid-return-type error Return type mismatch
division-by-zero warn Potential division by zero
unused-ignore-comment warn Suppression not needed
redundant-cast warn Cast has no effect
possibly-unbound-attribute warn Attribute might not exist
index-out-of-bounds warn Index might be out of range

Read the full file on GitHub · 131 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 131 lines · 104 tokens per session scan A 865d747c55cd

Subscribe to this mod's changes

ty-skills is a skill published in the GitHub repository jiatastic/open-python-skills (10 stars, last pushed 9mo ago), licensed MIT. It adds 104 tokens to every session and 944 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

astropy

Core Python library for astronomy and astrophysics workflows that need Astropy APIs, including units/quantities, coordinates, FITS I/O, tables, time systems, WCS, and cosmology. Use when implementing or debugging astronomical data analysis code with Astropy.

K-Dense-AI/scientific-agent-skills · 56 tokens

dask

Scales pandas, NumPy, and custom Python research workflows beyond memory or across clusters with Dask. Covers DataFrames, Arrays, Bags, Futures, chunking, schedulers, and distributed diagnostics. Use for partitioned file processing, scientific array computation, or parallel tasks whose memory and dependency structure…

K-Dense-AI/scientific-agent-skills · 67 tokens

matlab

Builds, reviews, migrates, and plans MATLAB or GNU Octave numerical workflows. Use for arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 44 tokens

bioservices

Provides a Python interface to bioinformatics services including UniProt, KEGG, ChEMBL, Reactome, QuickGO, and UniChem. Used for cross-database protein annotation, pathway retrieval, chemical identifier mapping, and integrated biological data workflows with BioServices.

K-Dense-AI/scientific-agent-skills · 56 tokens

optimize-for-gpu

GPU-accelerates scientific Python on NVIDIA hardware and verifies that the result is correct and faster. Use for CUDA/GPU optimization; CPU-bound NumPy, SciPy, pandas, scikit-learn, NetworkX, scikit-image, vector-search, image-processing, graph, simulation, or file-I/O workloads; CuPy, cuDF, cuML, cuGraph, cuVS…

K-Dense-AI/scientific-agent-skills · 151 tokens

polars

High-performance DataFrame library for Python ETL, analytics, and pandas migration. It supports expression-based data manipulation with lazy query optimization, parallel execution, streaming out-of-core processing, Arrow interoperability, and optional GPU execution.

K-Dense-AI/scientific-agent-skills · 47 tokens