cpp-coding-standards

Enforce modern C++ coding standards for C++17/20 features and RAII.

Updated Apr 13, 2026
One-click install
npx skills add https://github.com/kleon6436/GitHubCopilotSettings --skill cpp-coding-standards-kleon6436
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cpp-coding-standards
Source: https://github.com/kleon6436/GitHubCopilotSettings/tree/main/skills/cpp-coding-standards
Command: npx skills add https://github.com/kleon6436/GitHubCopilotSettings --skill cpp-coding-standards-kleon6436

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill defines and enforces C++ coding standards to ensure consistent style, safer memory management, and modern language usage across a codebase.

Core Features & Use Cases

  • Naming conventions for classes, functions, variables, and members to ensure readability and consistency.
  • Memory management guidance emphasizing RAII, smart pointers, and avoidance of raw pointers.
  • Modern C++ guidance including C++17/20 features, structured bindings, optional, and header/file organization.
  • Error handling, documentation, and Doxygen-friendly comments to improve maintainability.

Quick Start

Audit your codebase against the C++ coding standards and start enforcing modern C++ practices across the project.

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 modern C++ coding standards across my codebase?

You can enforce modern C++ coding standards by applying automated checks and code reviews that target C++17/20 features, RAII, header rules, and explicit naming conventions to ensure consistent style and safer memory management.

What naming conventions should I use for C++ classes, functions, and variables?

For C++ naming conventions, apply explicit rules to classes, functions, variables, and members to ensure readability and consistency across the project, which improves overall code maintainability.

How do I improve C++ memory management to avoid using raw pointers?

To improve C++ memory management and avoid raw pointers, enforce RAII practices and use smart pointers for resource allocation, ensuring safer memory handling throughout the codebase.

Does this C++ coding standard support C++17 and C++20 features?

Yes, this C++ coding standard supports C++17 and C++20 features, providing guidance on structured bindings, optional types, and proper header and file organization for modern language usage.

How do I add Doxygen-style comments to my C++ code for better documentation?

To add Doxygen-style comments to C++ code, enforce documentation practices that require Doxygen-friendly comments alongside error handling rules, improving overall code maintainability.

What is the best way to check const correctness in modern C++?

The best way to check const correctness in modern C++ is to enforce explicit const correctness rules during code reviews and automated checks, ensuring safer and more maintainable code logic.