cpp-coding-standards

Installation
Summary

Modern C++ standards enforcing type safety, resource management, and clarity through the C++ Core Guidelines.

  • Covers six foundational principles: RAII for resource lifetime, immutability by default, compile-time type safety, intent-driven naming, minimal complexity, and value semantics over pointers
  • Provides detailed rules across 15+ domains including functions, classes, resource management, error handling, concurrency, templates, and standard library usage with code examples for each
  • Includes anti-patterns and violations for every major category, plus a pre-submission checklist covering initialization, const-correctness, smart pointers, and exception safety
  • Designed for C++17/20/23; explicitly not suitable for legacy C codebases or bare-metal contexts where modern features conflict with hardware constraints
SKILL.md

C++ Coding Standards (C++ Core Guidelines)

Comprehensive coding standards for modern C++ (C++17/20/23) derived from the C++ Core Guidelines. Enforces type safety, resource safety, immutability, and clarity.

When to Use

  • Writing new C++ code (classes, functions, templates)
  • Reviewing or refactoring existing C++ code
  • Making architectural decisions in C++ projects
  • Enforcing consistent style across a C++ codebase
  • Choosing between language features (e.g., enum vs enum class, raw pointer vs smart pointer)

When NOT to Use

  • Non-C++ projects
  • Legacy C codebases that cannot adopt modern C++ features
  • Embedded/bare-metal contexts where specific guidelines conflict with hardware constraints (adapt selectively)

Cross-Cutting Principles

Related skills
Installs
4.1K
GitHub Stars
179.7K
First Seen
Feb 17, 2026