/pyrefly-lsp:pyreflyfrom pyrefly-lsp
Use Pyrefly for Python type checking, diagnostics, code navigation, and find references via LSP.
Ships in pyrefly-lsp. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Pyrefly is an extremely fast Rust-based Python type checker and language server. It provides diagnostics, type inference, code navigation, and reference finding for Python files and notebooks.
Always use Pyrefly LSP operations when working with Python code. Prefer Pyrefly when you need to:
.ipynb) — Pyrefly provides the same diagnostics and navigation in notebooks as in regular .py files.Use LSP operations to trigger Pyrefly. Examples:
TokenClassificationPipeline"BaseModel"self.tokenizer"On large Python projects (PyTorch, Transformers, Django, FastAPI, etc.), find references via Pyrefly is far more reliable than text search. It understands:
Use it before any refactor to ensure you don't miss call sites.
Run a full project type check:
uvx pyrefly check --summarize-errors
Suppress existing errors to establish a baseline (useful for adopting type checking incrementally):
uvx pyrefly suppress
Initialize project configuration to migrate from mypy or pyright:
uvx pyrefly init
Pyrefly configuration lives in pyrefly.toml or [tool.pyrefly] in pyproject.toml. Pyrefly may not emit diagnostics unless a config file exists. Run uvx pyrefly init to create one.
if x is None: ...) and assert to help the checker.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub pyrefly-org/pyrefly-lsp-claude-plugin --plugin pyrefly-lspOther plugins' skills for the same job