.claude/skills/cpp-review/SKILL.md
Review C++ code against Google C++ Style Guide. Use when reviewing C++ code, pull requests, or when asked to check code style compliance.
npx skillsauth add clickhouse/pg_stat_ch cpp-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
development
Google C++ Style Guide rules for writing clean, maintainable C++ code. Use when writing C++, reviewing code, discussing naming conventions, formatting, class design, or any C++ best practices. Covers headers, scoping, classes, functions, naming, comments, and formatting.
testing
Create and push a new semver release tag. Asks for release type (patch/minor/major), validates commit exists on remote, bumps version, and pushes the tag.
development
Check C++ naming conventions against Google Style Guide. Use when checking if names follow conventions or when renaming identifiers.
development
Generate C++ header files following Google Style Guide. Use when creating new header files or asking for a header template.