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...
C/C++ language server (clangd) providing code intelligence, diagnostics, and formatting for .c, .h, .cpp, .cc, .cxx, .hpp, .hxx files. Use when working with C or C++ code that needs autocomplete, go-to-definition, find references, error detection, or refactoring support.
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
SkillHub CLI
skillhub install bowen31337/clangd-lsp打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。
将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。
C/C++ language server integration providing comprehensive code intelligence through clangd (part of LLVM).
.c, .h, .cpp, .cc, .cxx, .hpp, .hxx, .C, .H
brew install llvm
# Add to PATH
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
# Ubuntu/Debian
sudo apt install clangd
# Fedora
sudo dnf install clang-tools-extra
# Arch Linux
sudo pacman -S clang
winget install LLVM.LLVM
Or download from LLVM releases.
Verify installation:
clangd --version
The language server runs automatically in LSP-compatible editors. For manual operations:
gcc file.c -o output # C
g++ file.cpp -o output # C++
clang file.c -o output # with clang
clang-format -i file.cpp
clang-tidy file.cpp -- -std=c++17
Create .clangd in project root:
CompileFlags:
Add: [-std=c++17, -Wall, -Wextra]
Remove: [-W*]
Diagnostics:
UnusedIncludes: Strict
MissingIncludes: Strict
Or compile_commands.json for complex projects:
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .
# or
bear -- make
When editing C/C++ code:
compile_commands.json for project understandingclang-format to format codeclang-tidy for static analysis-Wall -Wextra)Compile flags:
-std=c++17 - C++17 standard-Wall -Wextra - Enable warnings-O2 - Optimization level
-...这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。
# clangd LSP C/C++ language server integration providing comprehensive code intelligence through clangd (part of LLVM). ## Capabilities - **Code intelligence**: Autocomplete, go-to-definition, find references - **Error detection**: Real-time diagnostics for compilation errors - **Formatting**: Code formatting with clang-format - **Refactoring**: Rename symbols, extract function - **Supported extensions**: `.c`, `.h`, `.cpp`, `.cc`, `.cxx`, `.hpp`, `.hxx`, `.C`, `.H` ## Installation ### Via Homebrew (macOS) ```bash brew install llvm # Add to PATH export PATH="/opt/homebrew/opt/llvm/bin:$PATH" ``` ### Via package manager (Linux) ```bash # Ubuntu/Debian sudo apt install clangd # Fedora sudo dnf install clang-tools-extra # Arch Linux sudo pacman -S clang ``` ### Windows ```bash winget install LLVM.LLVM ``` Or download from [LLVM releases](https://github.com/llvm/llvm-project/releases). Verify installation: ```bash clangd --version ``` ## Usage The language server runs automatically in LSP-compatible editors. For manual operations: ### Compile ```bash gcc file.c -o output # C g++ file.cpp -o output # C++ clang file.c -o output # with clang ``` ### Format code ```bash clang-format -i file.cpp ``` ### Static analysis ```bash clang-tidy file.cpp -- -std=c++17 ``` ## Configuration Create `.clangd` in project root: ```yaml CompileFlags: Add: [-std=c++17, -Wall, -Wextra] Remove: [-W*] Diagnostics: UnusedIncludes: Strict MissingIncludes: Strict ``` Or `compile_commands.json` for complex projects: ```bash cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON . # or bear -- make ``` ## Integration Pattern When editing C/C++ code: 1. clangd uses `compile_commands.json` for project understanding 2. Run `clang-format` to format code 3. Use `clang-tidy` for static analysis 4. Compile with warnings enabled (`-Wall -Wextra`) ## Common Flags **Compile flags:** - `-std=c++17` - C++17 standard - `-Wall -Wextra` - Enable warnings - `-O2` - Optimization level -...
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...
OpenClaw Skill for stock data analysis
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.