Skip to content
affaan-m avatar

Cpp Coding Standards

Modern C++ coding standards from the C++ Core Guidelines for writing, reviewing, and refactoring safe, idiomatic code.

CCM score
71 of 100
skills.sh installs
14.3K
GitHub stars
312.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers philosophy and interfaces, functions, classes and hierarchies, and resource management, with cross-cutting principles like RAII and immutability by default
  • Includes key rule tables (such as P.10, F.16, C.20, C.21, R.20, and R.21) with DO and DON'T code examples for each area
  • Enforces type safety, explicit ownership through smart pointers, and avoidance of raw new, delete, malloc, and free
  • Designed for C++17, C++20, and C++23 projects, and for choosing between language features like enum and enum class

Install

$ npx -y skills add affaan-m/ecc --skill cpp-coding-standards -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

These themes recur across the entire guidelines and form the foundation:

Details

Repository
github.com/affaan-m/ecc
Category
Code Review & Quality
First seen
Jul 14, 2026

Questions

What does the cpp-coding-standards skill do?

It applies the C++ Core Guidelines to C++17, C++20 and C++23 code, covering type safety, resource safety, immutability and clarity. It is used when writing, reviewing or refactoring C++ code to enforce modern, safe and idiomatic practices.

Where does cpp-coding-standards rank in its category?

It is listed in the Code Review & Quality category, where it ranks in the top 50. Other skills in that category include improve-codebase-architecture, code-review and caveman-review, while this skill focuses on C++-specific guideline enforcement.

How do I install cpp-coding-standards?

Run npx -y skills add affaan-m/ecc --skill cpp-coding-standards -y in your project. Once installed, the agent can check and write C++ code against rules such as RAII, Rule of Zero and Rule of Five, and const and constexpr usage.

When should I not use cpp-coding-standards?

It is not meant for non-C++ projects or legacy C codebases that cannot adopt modern C++ features. Embedded or bare-metal work can also conflict with some guidelines, so those rules should be adapted selectively.

More from affaan-m/ecc

All 257

Similar to Cpp Coding Standards

More Code Review & Quality