·using-python-lsp
</>

using-python-lsp

mhagrelius/dotfiles

在使用 Python 代码并启用 Pyright-lsp 插件时使用 - 用于查找引用、检查类型、导航定义或验证类型正确性

10安装·0热度·@mhagrelius

安装

$npx skills add https://github.com/mhagrelius/dotfiles --skill using-python-lsp

SKILL.md

The pyright-lsp plugin provides semantic code intelligence for Python. Use LSP tools instead of grep/read when you need semantic accuracy - LSP understands Python's type system, inheritance, and symbol relationships.

| Find all callers of a method | findReferences | Grep for method name | | Get function return type | hover | Read file + parse | | Jump to definition | goToDefinition | Grep + Read | | Check type errors | getDiagnostics | Run mypy/pyright CLI | | View file structure | documentSymbol | Read entire file |

| Grep for symbol before rename | Text search misses method calls through aliases, inheritance | Use findReferences | | Read entire file for one type | Wastes context, slow | Use hover | | Run mypy after every change | Slow, requires external tool | Use getDiagnostics |

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/mhagrelius/dotfiles --skill using-python-lsp
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 using-python-lsp?

在使用 Python 代码并启用 Pyright-lsp 插件时使用 - 用于查找引用、检查类型、导航定义或验证类型正确性 来源:mhagrelius/dotfiles。

如何安装 using-python-lsp?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/mhagrelius/dotfiles --skill using-python-lsp 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/mhagrelius/dotfiles