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
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.
rsi-loop
Recursive Self-Improvement (RSI) loop for EvoClaw agents. Provides a structured observe→analyze→synthesize→deploy pipeline that enables agents to detect their own failure patterns and generate concrete improvement proposals (new skills, routing fixes, SOUL.md updates, memory improvements). Use when: (1) logging a task outcome (success/fail/quality), (2) running periodic self-improvement analysis, (3) reviewing or deploying improvement proposals, (4) integrating RSI into EvoClaw hub/edge agents via MQTT, (5) checking agent health score, (6) any mention of "self-improvement", "recursive improvement", "fix my own mistakes", "improvement loop", or "agent evolution". Core EvoClaw primitive.
clawchain
ClawChain RPC client for EvoClaw agents. Connects to Substrate-based blockchain, queries on-chain agent data, submits transactions, and enables agents to participate in on-chain governance and reputation tracking. Use when working with ClawChain L1 blockchain, agent DIDs, token economics, or agent reputation systems.