pyright-lsp
Python language server (Pyright) providing static type checking, code intelligence, and LSP diagnostics for .py and .pyi files. Use when working with Python code that needs type checking, autocomplete suggestions, error detection, or code navigation.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bowen31337/pyright-lspWhat This Skill Does
The pyright-lsp skill acts as a powerful Python language server integration for your OpenClaw agent, enabling professional-grade static type checking and advanced code intelligence. Powered by Microsoft’s Pyright, this tool performs comprehensive analysis on Python source files (.py) and type stub files (.pyi). It excels at identifying type mismatches, missing imports, and logic errors before you even run your code, significantly reducing runtime exceptions. Beyond mere error checking, it provides the foundation for smart code navigation, allowing the agent to understand complex code structures, follow function definitions, and find references across your entire project.
Installation
To integrate this capability, ensure you have a compatible runtime environment. Install via the OpenClaw registry using: clawhub install openclaw/skills/skills/bowen31337/pyright-lsp. Ensure the underlying Pyright binary is present by running which pyright. If missing, you can install it globally via npm (npm install -g pyright) or Python-based package managers (pip install pyright or pipx install pyright), which is the recommended approach for isolated CLI utility management.
Use Cases
Use this skill when you are engaged in refactoring large Python codebases where manual testing is insufficient to guarantee type safety. It is essential for teams enforcing strict type checking via pyrightconfig.json, as it ensures that all changes adhere to the project's configured typeCheckingMode. It is also highly effective during complex debugging sessions where the agent needs to trace variable types or function signatures across multiple modules, ensuring accurate modifications that won't break existing interfaces.
Example Prompts
- "Run a full static type check on the current directory and list all identified issues in the src folder."
- "Analyze this file and tell me why I am getting a type mismatch error when calling the process_data function."
- "Configure the project for strict type checking and suggest changes to the current script to fix the reported diagnostics."
Tips & Limitations
For optimal results, maintain a pyrightconfig.json file in your project root to define strict include/exclude rules. This prevents the analyzer from wasting resources on third-party libraries or virtual environments. Note that pyright-lsp is primarily a static analysis tool; it does not execute your code, so it cannot catch runtime-only errors like database connection timeouts or missing environment variables. For best results, use it alongside a runtime testing framework like pytest.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-bowen31337-pyright-lsp": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read
Related Skills
Identity Resolver
Skill by bowen31337
whalecli
Agent-native whale wallet tracker for ETH and BTC chains. Track large crypto wallet movements, score whale activity, detect accumulation/distribution patterns, and stream real-time alerts. Integrates with FearHarvester and Simmer prediction markets for closed-loop signal→bet workflows. Use when: user asks about whale activity, on-chain signals, large wallet movements, smart money flows, or when pre-validating crypto trades/bets with on-chain data.
agent-self-governance
Self-governance protocol for autonomous agents: WAL (Write-Ahead Log), VBR (Verify Before Reporting), ADL (Anti-Divergence Limit), VFM (Value-For-Money), and IKL (Infrastructure Knowledge Logging). Use when: (1) receiving a user correction — log it before responding, (2) making an important decision or analysis — log it before continuing, (3) pre-compaction memory flush — flush the working buffer to WAL, (4) session start — replay unapplied WAL entries to restore lost context, (5) any time you want to ensure something survives compaction, (6) before claiming a task is done — verify it, (7) periodic self-check — am I drifting from my persona? (8) cost tracking — was that expensive operation worth it? (9) discovering infrastructure — log hardware/service specs immediately.
solidity-lsp
Solidity language server providing smart contract development support including compilation, linting, security analysis, and code intelligence for .sol files. Use when working with Ethereum smart contracts, Substrate pallets, or any Solidity code that needs compilation, security checks, gas optimization, or code navigation. Essential for ClawChain pallet development.
Terse
Skill by bowen31337