By zircote
Claude Code plugin for C/C++ development with clangd LSP integration, 14 automated hooks for compilation, linting (clang-tidy), formatting (clang-format), and memory analysis (valgrind)
npx claudepluginhub zircote/lsp-marketplace --plugin cpp-lspA Claude Code plugin providing comprehensive C/C++ development support through:
# Run the setup command (after installing the plugin)
/setup
Or manually:
# macOS (Homebrew)
brew install llvm
# The clangd binary is included with LLVM
# Ensure /opt/homebrew/opt/llvm/bin is in your PATH
The plugin configures clangd for Claude Code via .lsp.json:
{
"cpp": {
"command": "clangd",
"args": [],
"extensionToLanguage": {
".c": "c", ".h": "c",
".cpp": "cpp", ".cc": "cpp", ".cxx": "cpp",
".hpp": "cpp", ".hxx": "cpp", ".hh": "cpp"
},
"transport": "stdio"
}
}
Capabilities:
| Hook | Trigger | Description |
|---|---|---|
cpp-format-on-edit | **/*.cpp,c,h,hpp | Auto-format with clang-format |
cpp-tidy-on-edit | **/*.cpp,c | Lint with clang-tidy |
cpp-compile-check | **/*.cpp,c | Compile check with clang/gcc |
cpp-cppcheck | **/*.cpp,c | Static analysis with cppcheck |
| Tool | Installation | Purpose |
|---|---|---|
clangd | brew install llvm | LSP server |
clang-format | Included with LLVM | Formatting |
clang-tidy | Included with LLVM | Linting |
cppcheck | brew install cppcheck | Static analysis |
Create a .clang-format file in your project root:
BasedOnStyle: Google
IndentWidth: 4
ColumnLimit: 100
Create a .clang-tidy file:
Checks: 'clang-analyzer-*,modernize-*,performance-*,bugprone-*'
cpp-lsp/
├── .claude-plugin/
│ └── plugin.json # Plugin metadata
├── .lsp.json # clangd configuration
├── commands/
│ └── setup.md # /setup command
├── hooks/
│ └── scripts/
│ └── cpp-hooks.sh
├── tests/
│ └── sample_test.cpp # Test file
├── CLAUDE.md # Project instructions
└── README.md # This file
Create compile_commands.json using:
# CMake
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .
# Bear (for Make projects)
bear -- make
MIT
Comprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.
Continuous self-referential AI loops for interactive iterative development, implementing the Ralph Wiggum technique. Run Claude in a while-true loop with the same prompt until task completion.
Complete developer toolkit for Claude Code
Permanent coding companion for Claude Code — survives any update. MCP-based terminal pet with ASCII art, stats, reactions, and personality.
AI-supervised issue tracker for coding workflows. Manage tasks, discover work, and maintain context with simple CLI commands.
Battle-tested Claude Code plugin for engineering teams — 38 agents, 156 skills, 72 legacy command shims, production-ready hooks, and selective install workflows evolved through continuous real-world use