Google C++ Style Guide

•
108
•

Enforces and applies Google C++ Style Guide standards for clean, maintainable, and idiomatic C++20 code.

This skill equips Claude with the comprehensive Google C++ Style Guide rules, specifically targeting C++20. It ensures that all code generation, reviews, and refactoring tasks adhere to professional standards for naming conventions, formatting, header organization, and class design. By applying these rules, the skill helps developers minimize technical debt, improve code readability for large teams, and avoid common C++ pitfalls through strict adherence to proven industry best practices like 'include what you use' and composition over inheritance.

主要功能

01Modern C++20 feature recommendations while avoiding non-standard extensions.
02Class design guidance prioritizing explicit constructors and private data members.
03108 GitHub stars
04Automated header guard generation and include-ordering logic.
05Standardized formatting including 2-space indents and 80-character line limits.
06Enforcement of PascalCase for types/functions and snake_case for variables.

使用场景

01Scaffolding new C++20 projects with correct directory structures and header guards.
02Conducting automated code reviews to identify style violations and naming inconsistencies.
03Refactoring legacy C++ code to meet modern Google style requirements.