bambu-studio-ai
Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...
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.
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
SkillHub CLI
skillhub install bowen31337/rust-analyzer-lsp打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。
将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。
Rust language server integration providing comprehensive code intelligence through rust-analyzer.
.rs
rustup component add rust-analyzer
brew install rust-analyzer
# Ubuntu/Debian
sudo apt install rust-analyzer
# Arch Linux
sudo pacman -S rust-analyzer
Download pre-built binaries from the releases page.
Verify installation:
rust-analyzer --version
The language server runs automatically in LSP-compatible editors. For manual operations:
cargo fmt
cargo clippy
cargo build
cargo test
cargo check
Create .rust-analyzer.json in project root:
{
"checkOnSave": {
"command": "clippy"
},
"inlayHints": {
"typeHints": true,
"parameterHints": true
}
}
When editing Rust code:
cargo fmt to format codecargo clippy for lintingcargo test before committingcargo new <name> - Create new projectcargo build - Compile projectcargo run - Build and runcargo test - Run testscargo check - Fast compile checkcargo clippy - Run lintercargo fmt - Format codecargo doc --open - Generate and open docs这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。
# rust-analyzer LSP
Rust language server integration providing comprehensive code intelligence through rust-analyzer.
## Capabilities
- **Code intelligence**: Autocomplete, go-to-definition, find references
- **Error detection**: Real-time diagnostics for compilation errors
- **Refactoring**: Rename symbols, extract function/variable
- **Analysis**: Macro expansion, type hints, inlay hints
- **Supported extensions**: `.rs`
## Installation
### Via rustup (recommended)
```bash
rustup component add rust-analyzer
```
### Via Homebrew (macOS)
```bash
brew install rust-analyzer
```
### Via package manager (Linux)
```bash
# Ubuntu/Debian
sudo apt install rust-analyzer
# Arch Linux
sudo pacman -S rust-analyzer
```
### Manual download
Download pre-built binaries from the [releases page](https://github.com/rust-lang/rust-analyzer/releases).
Verify installation:
```bash
rust-analyzer --version
```
## Usage
The language server runs automatically in LSP-compatible editors. For manual operations:
### Format code
```bash
cargo fmt
```
### Run linter
```bash
cargo clippy
```
### Build and test
```bash
cargo build
cargo test
```
### Check without building
```bash
cargo check
```
## Configuration
Create `.rust-analyzer.json` in project root:
```json
{
"checkOnSave": {
"command": "clippy"
},
"inlayHints": {
"typeHints": true,
"parameterHints": true
}
}
```
## Integration Pattern
When editing Rust code:
1. rust-analyzer provides real-time diagnostics
2. Run `cargo fmt` to format code
3. Use `cargo clippy` for linting
4. Run `cargo test` before committing
## Common Cargo Commands
- `cargo new <name>` - Create new project
- `cargo build` - Compile project
- `cargo run` - Build and run
- `cargo test` - Run tests
- `cargo check` - Fast compile check
- `cargo clippy` - Run linter
- `cargo fmt` - Format code
- `cargo doc --open` - Generate and open docs
## More Information
- [rust-analyzer Website](https://rust-analyzer.github.io/)
- [GitHub Repos...Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...
Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...
Agents can sign plugins, rotate credentials without losing identity, and publicly attest to behavior.
Send and receive P2P messages using disposable numbers and PINs. No servers, no accounts. Use for human notifications, approval flows, and agent-to-agent communication.