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
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, andR.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, andfree - Designed for C++17, C++20, and C++23 projects, and for choosing between language features like
enumandenum class
Install
$ npx -y skills add affaan-m/ecc --skill cpp-coding-standards -yInstalls 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.,
enumvsenum 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- Springboot Security14.2K
- Liquid Glass Design14.2K
- Database Migrations14.1K
- E2e Testing14.1K
- Strategic Compact14K
- Laravel Patterns13.8K
- Verification Loop13.6K
- Codebase Onboarding13.6K
- Springboot Tdd13.4K
- Security Scan13.4K
- Django Tdd13.3K
- Deployment Patterns13.3K
- Search First13.3K
- Deep Research13.2K
- Eval Harness13.1K
- Continuous Learning13K
- Cpp Testing13K
- Jpa Patterns13K
- Rust Patterns12.9K
- Kotlin Coroutines Flows12.9K
- Configure Ecc12.9K
- Laravel Tdd12.8K
- Agentic Engineering12.8K
- Clickhouse Io12.7K
Similar to Cpp Coding Standards
More Code Review & QualitycppSkillmindrally/skills829 installsModern C++17/20 coding guidelines emphasizing RAII, smart pointers, memory safety, and performance practices.
modern-cppPlugintrailofbits/skills8.4K starsModern C++ best practices (C++20/23/26). Use when writing C++ code, creating new C++ projects, or modernizing legacy C++ patterns.
coding-standardsSkillaffaan-m/ecc17.6K installsBaseline cross-project coding conventions for naming, immutability, readability, and code-quality review.
cpp-proSkilljeffallan/claude-skills5.9K installsModern C++20/23 developer skill for concepts, ranges, coroutines, SIMD, and CMake-based performance work.
coding-guidelinesSkillactionbook/rust-skills4.5K installsRust style and best-practice rules covering naming, data types, strings, errors, memory, concurrency, and async.