C++ Development

Configure CMake builds and manage C++20/23 dependencies with Conan.

10|Updated Jun 30, 2020
One-click install
npx skills add https://github.com/laurigates/dotfiles --skill c-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: C++ Development
Source: https://github.com/laurigates/dotfiles/tree/main/dot_claude/skills/cpp-development
Command: npx skills add https://github.com/laurigates/dotfiles --skill c-development

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires cmake, conan, clang-tools, gdb, lldb, valgrind, catch2, googletest, google-benchmark.

What problem does it solve?

Modern C++ development involves complex build systems, package management, and ensuring memory safety while leveraging the latest language features. This Skill provides expert guidance and automation for C++20/23 projects, simplifying CMake, Conan, Clang tools, and performance optimization, allowing you to build robust, high-performance systems with confidence.

Core Features & Use Cases

  • Modern C++ Standards: Leverage C++20/23 features like modules, concepts, ranges, and coroutines for cleaner, more efficient code.
  • Build & Package Management: Master CMake for cross-platform builds and Conan for robust dependency management.
  • Code Quality & Safety: Utilize Clang tools (clang-format, clang-tidy) and sanitizers (AddressSanitizer) for high-quality, memory-safe code.
  • Use Case: Develop a cross-platform C++ library, automatically configuring CMake for different OS targets, managing dependencies with Conan, and ensuring code quality with clang-tidy, reducing build complexities and improving code reliability.

Quick Start

Example: Configure and build a CMake project

cmake -B build -DCMAKE_BUILD_TYPE=Release cmake --build build

Example: Format C++ code

clang-format -i src/main.cpp