Overview
- Skill Key
- bowen31337/clangd-lsp
- Author
- bowen31337
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/bowen31337/clangd-lsp
- Latest Commit SHA
- 0e212f05ad9b058c84475a0e58e2bd1b8215f4f7
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.
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 clangd-lsp 技能。 若已安装,则直接安装 clangd-lsp 技能。
# 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 -...
heyixuan2
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 pipeline: search → generate → analyze → colorize → preview → open BS → user slice → print → monitor. Supports all 9 Bambu Lab printers (A1 Mini, A1, P1S, P2S, X1C, X1E, H2C, H2S, H2D).
openstockdata
OpenClaw Skill for stock data analysis
capt-marbles
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 discoverability and citation.
cecwxf
Run OpenAI Codex CLI from OpenClaw for coding tasks in a target project directory. Use when the user asks OpenClaw to use Codex for implementation, debugging, refactoring, review, or scripted coding workflows.
cclank
Comprehensive news aggregator that fetches, filters, and deeply analyzes real-time content from 8 major sources: Hacker News, GitHub Trending, Product Hunt, 36Kr, Tencent News, WallStreetCN, V2EX, and Weibo. Best for 'daily scans', 'tech news briefings', 'finance updates', and 'deep interpretations' of hot topics.
cemoso
Autonomous PR review loop with Greptile. Use when an agent creates a PR and needs to autonomously handle code review feedback — reading Greptile reviews, fixing issues, pushing fixes, re-triggering review, and auto-merging when score is 4/5+. Trigger on commands like "pr review {url}", "review my PR", or when a Greptile review webhook/poll delivers feedback.