Pyright Type Checker
Pyright analyzes Python code for type errors in real-time, boosting developer productivity and catching bugs early.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add pyright-type-checker npx -- -y @trustedskills/pyright-type-checker
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"pyright-type-checker": {
"command": "npx",
"args": [
"-y",
"@trustedskills/pyright-type-checker"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill enables AI agents to perform static type checking on Python code using the Pyright engine. It analyzes source files to detect type errors, missing definitions, and incorrect usage patterns before runtime execution occurs.
When to use it
- Reviewing complex Python modules where type safety is critical for reliability.
- Validating code generated by an AI agent to ensure it adheres to strict typing standards.
- Identifying potential bugs related to variable mismatches or undefined attributes in a development pipeline.
- Enforcing consistent data structures across a large codebase during refactoring tasks.
Key capabilities
- Static analysis of Python source code without executing it.
- Detection of type inference errors and explicit annotation issues.
- Identification of missing imports and undefined variables.
- Support for advanced typing features like generics and protocols.
Example prompts
- "Run a full type check on the
utils.pyfile using Pyright and list all reported errors." - "Analyze this new Python function and explain any type mismatches found by the checker."
- "Refactor this script to fix the type errors highlighted by the Pyright analysis."
Tips & gotchas
Ensure your Python environment has the pyright package installed before invoking the skill, as it relies on external dependencies. While highly effective for catching logic flaws early, remember that static analysis cannot guarantee runtime behavior in dynamic scenarios involving complex object interactions or external APIs.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.