clickhouse/cpp-review
Review C++ code against Google C++ Style Guide. Use when reviewing C++ code, pull requests, or when asked to check code style compliance.
npx skills add https://github.com/ClickHouse/pg_stat_ch --skill cpp-review
Review C++ code for compliance with the Google C++ Style Guide.
PascalCasePascalCase (accessors use snake_case)snake_casemember_kPascalCaseUPPER_CASE with project prefix#define guard: PROJECT_PATH_FILE_H_explicitprivateoverride/final for virtual overridesnullptr (not NULL or 0)auto appropriately (not excessively)unique_ptr, shared_ptr)Use severity levels:
🔴 **MUST FIX**: Missing `explicit` on single-argument constructor
Line 45: `Foo(int value)` should be `explicit Foo(int value)` to prevent
implicit conversions.
🟡 **SHOULD FIX**: Function too long
Lines 78-145: `ProcessData()` is 67 lines. Consider breaking into smaller
functions for readability and testability.
🟢 **CONSIDER**: Use structured bindings
Line 23: `auto [iter, success] = map.insert({key, value});` would be clearer
than separate `.first` and `.second` access.
Take clickhouse/cpp-review from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.