ilkruglov

Pyrefly Lsp — Development skill for Claude Code

Development community

Python LSP на pyrefly для Claude Code: навигация и диагностика тем же движком, что pyrefly check.

How to install Pyrefly Lsp

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ilkruglov/pyrefly-lsp and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Pyrefly Lsp does

Python LSP на pyrefly для Claude Code: навигация и диагностика тем же движком, что pyrefly check.

Alternatives in Development

  • Pyright Lsp — Python /plugin install pyright-lsp@claude-plugins-official 14k ★
  • Lsp Debug — LSP Debug Skill 1.9k ★
  • License — Check that every Python source file carries the required SPDX Apache-2.0 license header 1.1k ★

README

pyrefly-lsp

A Claude Code plugin that runs [pyrefly](https://pyrefly.org) as the Python language server, with a proxy that keeps the server in sync with the disk and completes outgoing calls. Claude gets code navigation and type errors from the same engine as `pyrefly check`.

Documentation, a comparison with other Python language servers, settings and limitations are in the plugin README: [plugins/pyrefly-lsp/README.md](plugins/pyrefly-lsp/README.md). Changes: [CHANGELOG.md](CHANGELOG.md).

This is a community plugin. It is not affiliated with or endorsed by Meta or the pyrefly team.

Install

claude plugin marketplace add ilkruglov/pyrefly-lsp
claude plugin install pyrefly-lsp@pyrefly-lsp

You also need `python3` 3.9+ and `pyrefly` (`uv tool install pyrefly`).

Repository layout

  • plugins/pyrefly-lsp/: the plugin itself: its manifest, the server config and the proxy scripts/pyrefly_lsp_proxy.py.
  • tests/: unit tests for the proxy and end-to-end tests with real pyrefly.
  • .claude-plugin/marketplace.json: a marketplace with this one plugin.

Development

uvx pytest                 # unit and end-to-end tests; the end-to-end ones need pyrefly on PATH
ruff check . && ruff format --check .
pyrefly check
claude plugin validate . && claude plugin validate --strict plugins/pyrefly-lsp

To try the plugin in a live session without installing it: `claude --plugin-dir plugins/pyrefly-lsp`. The proxy logs to the server's stderr (`claude --debug`).

License

Apache-2.0, see [LICENSE](LICENSE).