The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
paths: - "/*.cpp" - "/.hpp" - "**/.cc" - "/*.hh" - "/.cxx" - "**/.h" - "**/CMakeLists.txt"
C++ フック
このファイルは common/hooks.md を C++ 固有のコンテンツで拡張します。
ビルドフック
C++ の変更をコミットする前にこれらのチェックを実行する:
# フォーマットチェック
clang-format --dry-run --Werror src/*.cpp src/*.hpp
# 静的解析
clang-tidy src/*.cpp -- -std=c++17
# ビルド
cmake --build build
# テスト
ctest --test-dir build --output-on-failure
推奨 CI パイプライン
- clang-format — フォーマットチェック
- clang-tidy — 静的解析
- cppcheck — 追加解析
- cmake ビルド — コンパイル
- ctest — サニタイザーを使用したテスト実行