cpp-coding-standards

Enforce modern C++ coding standards aligned with the C++ Core Guidelines.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill consolidates a comprehensive set of C++ coding standards derived from the C++ Core Guidelines to help teams write, review, and refactor modern, safe, and idiomatic C++ code, reducing defects and opinion-based variance.

Core Features & Use Cases

  • Cross-Cutting Principles: RAII everywhere (Resource lifetime tied to object lifetime), Immutability by default, Type safety, Express intent, Minimize complexity, Value semantics over pointer semantics.
  • Rules & Examples: Functions (F.), Classes & Class Hierarchies (C.), Resource Management (R.), Concurrency & Parallelism (CP.), Templates (T.), Standard Library (SL.), Enumerations (Enum.), Source Files & Naming (SF.), Performance (Per.*).
  • Use Cases: Writing new C++ code, reviewing or refactoring existing code, architectural decisions, coding style enforcement across a codebase.

Quick Start

Audit and refactor your C++ projects to align with modern, safe, and idiomatic practices defined in the C++ Core Guidelines.

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 ensuring RAII and type safety?

Modern C++ coding standards enforce RAII, immutability by default, and type safety by tying resource lifetimes to object lifetimes. They align with the C++ Core Guidelines to reduce defects and eliminate opinion-based variance across a codebase.

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

You can enforce C++ Core Guidelines during code reviews by applying a comprehensive, example-backed checklist covering functions, class hierarchies, resource management, and concurrency to guide automated checks and manual refactoring.

How do I refactor existing C++ code to use value semantics over pointer semantics?

Refactor C++ code to use value semantics over pointer semantics by applying the Rule of Zero/Five and RAII everywhere, ensuring objects manage their own resources safely without requiring explicit memory deallocation.

What is the best way to standardize C++ naming conventions and error handling across a project?

The best way to standardize C++ naming conventions and error handling is to adopt a consolidated guideline set aligned with the C++ Core Guidelines, covering source files, enumerations, and standard library usage.

Can I use these C++ coding guidelines for concurrency and parallelism practices?

Yes, these C++ coding guidelines include specific rules and examples for concurrency and parallelism, ensuring thread-safe resource management and consistent style across concurrent operations.