rust-analyzer-lsp
Rust language server (rust-analyzer) providing code intelligence and analysis for .rs files. Use when working with Rust code that needs autocomplete, go-to-definition, find references, error detection, or refactoring support.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bowen31337/rust-analyzer-lspWhat This Skill Does
The rust-analyzer-lsp skill acts as a bridge between the OpenClaw agent and the rust-analyzer language server. By integrating this skill, the agent gains deep, context-aware understanding of your Rust projects. It goes beyond simple text processing by parsing the Abstract Syntax Tree (AST) of your files, enabling it to track type definitions, manage imports, identify complex dependency relationships, and provide real-time diagnostics. Whether you are debugging a complex borrow checker issue or trying to understand a sprawling codebase, this skill provides the necessary insights to navigate and modify Rust code with high confidence and precision.
Installation
Installation is straightforward and requires the presence of the rust-analyzer binary on your system. First, ensure you have the Rust toolchain installed via rustup. You can install the server by running rustup component add rust-analyzer in your terminal. If you are on macOS, you may alternatively use brew install rust-analyzer. For Linux distributions, verify the binary is available via your package manager (e.g., sudo apt install rust-analyzer). Once the binary is in your PATH, the OpenClaw skill will automatically detect and communicate with the server, enabling full language intelligence within your workspace.
Use Cases
This skill is essential for any professional-grade Rust development workflow. Use it when you are performing complex refactors, such as renaming structs or functions across multiple modules, where a manual search-and-replace would be error-prone. It is also invaluable for investigating compilation errors; the agent can parse the diagnostics returned by the LSP to suggest specific fixes, such as adding missing traits or correcting lifetime annotations. Finally, it helps in exploring new crates by enabling 'go-to-definition' queries, allowing the agent to explain how external libraries work by reading their source directly.
Example Prompts
- "Analyze my project and suggest a fix for the current borrow checker error in main.rs."
- "Go to the definition of the User struct and show me all the places it is being instantiated in the codebase."
- "Refactor the authentication logic: extract the validation block into a separate function and update all calls to use this new function."
Tips & Limitations
To get the most out of this skill, ensure your project includes a valid Cargo.toml file at the root, as the LSP relies on Cargo metadata to resolve dependencies correctly. If you encounter issues with incomplete code intelligence, run cargo check to force a re-analysis. Keep in mind that for extremely large projects with heavy macro usage, there may be a slight latency while the server processes the codebase. Always maintain a consistent directory structure to ensure the language server can map files accurately.
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-rust-analyzer-lsp": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write, code-execution
Related Skills
Terse
Skill by bowen31337
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.
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.