cpp-coding-standards

Enforce modern, safe, and idiomatic C++ coding practices aligned with the C++ Core Guidelines.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

C++ projects often drift toward unsafe patterns; this guide codifies modern, safe, and idiomatic practices aligned with the C++ Core Guidelines to keep code robust and maintainable.

Core Features & Use Cases

  • Establishes RAII-based resource management, explicit constructors, and strong typing to improve reliability.
  • Guides enum usage (enum class), smart pointers, and constrained templates to reduce common bugs.
  • Serves as a reference during code reviews, onboarding, and architectural decision-making for C++ codebases.

Quick Start

Apply these standards to your C++ projects to ensure safe, modern, and idiomatic code.

Frequently Asked Questions about cpp-coding-standards

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are modern C++ coding standards for enforcing RAII and safe resource management?

Modern C++ coding standards enforce RAII-based resource management, explicit constructors, and strong typing to improve reliability and prevent unsafe patterns in C++17, C++20, and C++23 codebases.

How do I apply C++ Core Guidelines during code reviews?

Apply C++ Core Guidelines during code reviews by codifying the use of enum class, smart pointers, and constrained templates, using these standards as a reference to catch unsafe patterns and ensure idiomatic code.

Why should I use enum class and smart pointers in C++ projects?

Use enum class and smart pointers in C++ projects to reduce common bugs through strong typing and automatic resource management, aligning with C++ Core Guidelines to keep code robust and maintainable.

Are these C++ coding standards suitable for onboarding new developers?

These C++ coding standards are suitable for onboarding new developers, serving as a baseline reference for architectural decision-making and establishing safe, idiomatic practices across project teams.

Can I use these coding standards with C++17 and C++20 codebases?

Yes, you can use these coding standards with C++17, C++20, and C++23 codebases to enforce modern, safe, and idiomatic practices like constrained templates and explicit constructors across your projects.