cpp-review
Skill129 starsChanged 8 months agoApache-2.0View on GitHub
Review C++ code against Google C++ Style Guide. Use when reviewing C++ code, pull requests, or when asked to check code style compliance.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- inference-gateway/skillstheir own version, first seen Nov 23, 2026
- DeRuiChen258/RL_Infra_skills-openAItheir own version, first seen Aug 14, 2026
- TheKREATORS/my-claude-skillstheir own version, first seen Mar 19, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- DeRuiChen258/RL_Infra_skills-openAI★ 3same name
- inference-gateway/skills★ 3same name
- TheKREATORS/my-claude-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- cpp-header-templateSkill
- cpp-naming-checkSkill
- create-new-releaseSkill
- google-cpp-styleSkill
The file
Files
C++ Code Review (Google Style)
Review C++ code for compliance with the Google C++ Style Guide.
Review Checklist
Naming
- Types use
PascalCase - Functions use
PascalCase(accessors usesnake_case) - Variables use
snake_case - Class members have trailing underscore:
member_ - Constants use
kPascalCase - Macros use
UPPER_CASEwith project prefix
Headers
- Has
#defineguard:PROJECT_PATH_FILE_H_ - Self-contained (includes all dependencies)
- Includes ordered: related header, C system, C++ stdlib, other libs, project
- No forward declarations unless necessary
Classes
- Single-argument constructors are
explicit - Data members are
private - Copy/move semantics explicit (= default, = delete)
- No virtual calls in constructors
- Uses composition over inheritance when appropriate
Functions
- Returns values instead of output parameters when possible
- Parameters ordered: inputs before outputs
- Functions are ≤40 lines (prefer smaller)
- Uses
override/finalfor virtual overrides
Modern C++
- Uses
nullptr(notNULLor0) - Uses C++ casts (not C-style)
- Uses range-based for loops where appropriate
- Uses
autoappropriately (not excessively) - Smart pointers for ownership (
unique_ptr,shared_ptr)
Formatting
- 80 character line limit
- 2-space indent
- Braces on same line as control structures
- Spaces around binary operators
Feedback Format
Use severity levels:
- 🔴 MUST FIX: Style violations or bugs that must be fixed
- 🟡 SHOULD FIX: Strong recommendations for improvement
- 🟢 CONSIDER: Optional enhancements or suggestions
Example Review Comment
🔴 **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.Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

