All skills
Skillintermediate

C++ Hooks

> This file extends [common/hooks.md](../common/hooks.md) with C++ specific content.

Claude Code Knowledge Pack7/10/2026

Overview

C++ Hooks

This file extends common/hooks.md with C++ specific content.

Build Hooks

Run these checks before committing C++ changes:

# Format check
clang-format --dry-run --Werror src/*.cpp src/*.hpp

# Static analysis
clang-tidy src/*.cpp -- -std=c++17

# Build
cmake --build build

# Tests
ctest --test-dir build --output-on-failure

Recommended CI Pipeline

  1. clang-format — formatting check
  2. clang-tidy — static analysis
  3. cppcheck — additional analysis
  4. cmake build — compilation
  5. ctest — test execution with sanitizers