clangd-lsp
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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bowen31337/clangd-lspWhat This Skill Does
The clangd-lsp skill serves as a high-performance C/C++ language server integration for OpenClaw. It provides advanced code intelligence powered by the LLVM/clang toolchain, enabling developers to perform complex tasks within their C/C++ projects seamlessly. By leveraging the Language Server Protocol (LSP), this skill offers real-time diagnostics, intelligent code completion, symbol navigation (go-to-definition, find references), and sophisticated refactoring capabilities like symbol renaming and function extraction. It acts as the backbone for maintaining code quality, ensuring that syntax errors are identified during development rather than at compile-time, and that code style remains consistent through automated formatting.
Installation
Installation requires the LLVM toolchain, which can be managed through your system's package manager. On macOS, use brew install llvm and ensure the binary path is added to your environment variables. Linux users should install clangd via sudo apt install clangd on Ubuntu/Debian or sudo dnf install clang-tools-extra on Fedora. On Windows, use winget install LLVM.LLVM. Once installed, verify the setup by executing clangd --version in your terminal to ensure the agent can interface with the server correctly.
Use Cases
This skill is essential for developers working on low-level system programming, game engine development, or high-performance application engineering. It is particularly valuable for navigating large codebases where tracking symbol references across multiple headers is difficult. It is also ideal for enforcing team-wide coding standards via configuration files and performing deep static analysis to catch memory leaks, undefined behavior, or deprecated API usage before deployment. It serves as an essential tool for complex C++ projects requiring build-system awareness via compile_commands.json.
Example Prompts
- "OpenClaw, please analyze my project for potential memory leaks using clang-tidy and provide a summary of the diagnostic report."
- "Could you refactor the 'initializeResources' function in my main.cpp file and rename it to 'setupApplicationContext' while updating all references?"
- "The compiler is throwing an error in my header files. Can you check my .clangd configuration and tell me if I have the correct include paths set up?"
Tips & Limitations
To get the most out of clangd-lsp, always maintain an up-to-date compile_commands.json file, as the accuracy of the diagnostics relies heavily on the server's understanding of your build flags and include paths. While it excels at static analysis, it is not a compiler; you must still use tools like gcc or clang for the final build process. Furthermore, ensure your IDE or text editor supports LSP integration, as the server functions best in a persistent, long-running environment. For extremely large projects, consider using a pre-indexed cache to speed up initial load times.
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-clangd-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.