Showing 28 verified skills. 284 preview entries are hidden until we confirm a real source. Show preview skills · Why?
Catch Python type errors in real-time while coding
claude install anthropics/claude-plugins-official/pyright-lspFull Pyright integration for Python type checking, import resolution, hover information, and refactoring.
This is the actual SKILL.md file that powers this skill. Copy it to install.
---
name: pyright-lsp
description: |
Always active when working in Python projects. Runs Pyright diagnostics
after edits to catch type errors. Trigger: any .py file edit.
allowed-tools:
- Bash(npx pyright *)
- Bash(pip install pyright *)
- Read
- Glob
---
# Pyright LSP
Python type checking and diagnostics via Pyright language server. Catches
type errors, import issues, and missing annotations.
## Prerequisites
- `pyright` installed: `pip install pyright` or `npm install -g pyright`
- Python project with `pyrightconfig.json` or `pyproject.toml` (optional)
## Steps
1. After any Python file edit, run diagnostics:
```bash
npx pyright --outputjson 2>/dev/null | python3 -c "
import json, sys
data = json.load(sys.stdin)
for d in data.get('generalDiagnostics', [])[:20]:
print(f\"{d['file']}:{d['range']['start']['line']}: {d['message']}\")
"
```
2. Or for simple output:
```bash
npx pyright 2>&1 | tail -30
```
3. Common fixes:
- Add type annotations to function signatures
- Use `Optional[T]` or `T | None` for nullable params
- Add `py.typed` marker for library packages
- Use `TYPE_CHECKING` imports to avoid circular dependencies
4. Configure strictness in `pyrightconfig.json`:
```json
{
"typeCheckingMode": "basic",
"reportMissingTypeStubs": false
}
```
mkdir -p ~/.claude/skills/pyright-lsp~/.claude/skills/pyright-lsp/SKILL.mdResulting file structure:
~/.claude/
skills/
pyright-lsp/
SKILL.md <-- skill definitionSkills are loaded automatically by Claude Code when you start a new session. The skill name and description in the frontmatter determine when Claude triggers it.
Recommended from shared domain, career, and tool overlap with Pyright LSP
Query databases, inspect schemas, and explore data from your AI editor
Both used by Software Engineer, Data Scientist
Build RAG pipelines with embedding, retrieval, and cited generation
Both used by Software Engineer, Data Scientist
Build and test regex patterns with visual debugging
Both used by Software Engineer, Data Scientist
Generate realistic test data with proper relational structure
Both used by Software Engineer, Data Scientist
Design and optimize prompts with evaluation frameworks and A/B testing
Both used by Software Engineer, Data Scientist
Build interactive data visualizations and creative demos from scratch
Both used by Software Engineer, Data Scientist
Pyright LSP