cpp-guide

Installation
SKILL.md

C/C++ Guide

Applies to: C++20, Systems Programming, Embedded, Game Engines, High-Performance Computing

Core Principles

  1. RAII Everywhere: Every resource (memory, files, locks, sockets) is owned by an object whose destructor releases it
  2. Zero Raw Ownership: Never use new/delete directly; use smart pointers and containers for all heap allocation
  3. Value Semantics by Default: Pass and return by value; rely on move semantics and copy elision for performance
  4. Compile-Time over Run-Time: Use constexpr, static_assert, concepts, and templates to catch errors at compile time
  5. Warnings Are Errors: Build with -Wall -Wextra -Wpedantic -Werror; every warning is a latent bug

Guardrails

Standard & Compiler

Installs
11
Repository
ar4mirez/samuel
GitHub Stars
8
First Seen
Mar 1, 2026
cpp-guide — ar4mirez/samuel