AGENT SKILL
pyrefly
Use this skill when the user wants to type check Python code, migrate from mypy/pyright, or add type annotations with pyrefly.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 57
- Forks
- 5
01 前言 Front Matter
- name
- pyrefly
- description
- Use this skill when the user wants to type check Python code, migrate from mypy/pyright, or add type annotations with pyrefly.
03 SKILL.md 正文
Pyrefly Plugin
Pyrefly is a fast Python type checker and language server (Rust, Meta). ~15x faster than mypy/pyright; default checker for Instagram's 20M-line codebase. Also ships Pydantic/Django/pytest support and IDE features via pyrefly lsp.
Commands
Type Checking
pyrefly check run— Type check project (--output-format jsonfor pipelines)pyrefly self version— Print pyrefly version
Adoption & Migration
pyrefly config init— Create config, optionally migrate mypy/pyright settingspyrefly suppress run— Add suppression comments to silence existing errorspyrefly infer run— Insert inferred type annotations into sourcepyrefly config dump— Show merged configurationpyrefly _ _— Passthrough to pyrefly CLI
Usage Examples
- "Type check this Python project"
- "Migrate this repo from mypy to pyrefly"
- "Silence all existing type errors so CI passes"
- "Add inferred type annotations to this file"
- "Give me type errors as JSON"
Installation
pip install pyrefly
# or: uv tool install pyrefly
# or: cargo install pyrefly
Examples
# Check whole project
pyrefly check
# JSON output for tooling
pyrefly check --output-format json
# Baseline existing errors, then fix incrementally
pyrefly init
pyrefly suppress
# Generate annotations from inference
pyrefly infer path/to/file.py
Key Features
- 1.85M+ lines/sec; sub-10ms rechecks in the IDE
- Drop-in migration:
pyrefly initreads mypy.ini / pyrightconfig pyrefly suppressbaselines existing errors on upgradepyrefly inferwrites inferred annotations into source- Built-in Pydantic, Django, and pytest understanding
04 同仓库更多 Skills
sc-machin-mcp
暂无简介
★ 57
supercli.quickstart
SuperCLI capability router — discover and execute CLI commands through namespace.resource.action interface
★ 57
zzdoc
Use this skill to compile scdoc manpages with a fast Zig-based compiler.
★ 57
zx
Use this skill when the user wants to a tool for writing better scripts using node.js.
★ 57
zvm
Use this skill when the user wants to manage multiple Zig compiler versions.
★ 57
quickstart
暂无简介
★ 57