cpp-coding-standards

Enforce modern C++17/20/23 coding standards across codebases.

1|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/riftzen-bit/gemini-setup --skill cpp-coding-standards-riftzen-bit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cpp-coding-standards
Source: https://github.com/riftzen-bit/gemini-setup/tree/main/skills/cpp-coding-standards
Command: npx skills add https://github.com/riftzen-bit/gemini-setup --skill cpp-coding-standards-riftzen-bit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The C++ coding standards based on the C++ Core Guidelines help teams write safer, clearer, and more maintainable C++ code by codifying best practices.

Core Features & Use Cases

  • Enforces modern C++ practices (C++17/20/23) such as RAII, immutability by default, and strong typing across new projects, code reviews, and refactoring.
  • Guides architecture decisions and code reviews to maintain consistency, readability, and safety across teams and large codebases.
  • Use Case: apply these standards when introducing new modules or refactoring legacy C++ to align with Core Guidelines.

Quick Start

Audit your C++ project against the Core Guidelines and begin migrating modules to modern patterns.

Frequently Asked Questions about cpp-coding-standards

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce C++ Core Guidelines during code reviews?

To enforce C++ Core Guidelines during code reviews, apply modern C++ coding standards that check for RAII, immutability by default, and strong typing. This ensures consistent adherence to safety practices across your codebase.

What are the key C++ coding standards for modern C++17 and C++20 projects?

Key C++ coding standards for modern C++17/20 projects include enforcing RAII for resource management, applying immutability by default, ensuring strong type safety, and following expressive interface naming conventions.

How do I refactor legacy C++ code to align with modern safety standards?

To refactor legacy C++ code to align with modern safety standards, audit your project against the Core Guidelines and migrate modules to modern patterns like RAII and strong typing. This improves maintainability and safety.

Does this C++ coding standards approach work for large team codebases?

Yes, this C++ coding standards approach works for large team codebases by guiding architecture decisions and code reviews to maintain consistency, readability, and safety across teams and large-scale C++ projects.

Why should I use RAII and immutability by default in C++?

You should use RAII and immutability by default in C++ to ensure safer resource management and prevent unintended modifications. These modern C++ practices codified in the Core Guidelines help write clearer, more maintainable code.