cpp-coding-standards

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Modernizing C++ codebases requires adhering to the C++ Core Guidelines to improve safety, clarity, and long-term maintainability.

Core Features & Use Cases

  • Guidelines derived from the C++ Core Guidelines (RAII, immutability, smart pointers, and type safety) to guide code reviews.
  • Decision support for language features (enum class, constexpr, templates with concepts) and refactoring decisions.
  • Use cases include onboarding new engineers, codebase audits, and architectural planning across C++ projects.

Quick Start

Review a codebase against cpp-coding-standards to identify violations and recommended fixes.

Frequently Asked Questions about cpp-coding-standards

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

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

Modern C++ refactoring uses idiomatic patterns like RAII, enum class, constexpr, and templates with concepts to replace legacy structures. These standards provide decision support for refactoring, specifying rules with examples and anti-patterns to ensure safe, readable, and maintainable architectural updates.

What are the most important C++ coding standards for type safety?

Key C++ coding standards for type safety include using RAII, smart pointers, enum class, and templates with concepts. These modern C++ patterns prevent resource leaks and enforce type correctness, directly aligning with the C++ Core Guidelines to improve overall code clarity and long-term maintainability.

Can I use these C++ coding standards for onboarding new engineers?

Yes, these C++ coding standards are explicitly designed for onboarding new engineers. They provide clear rules, examples, and anti-patterns derived from the C++ Core Guidelines, helping new team members quickly adopt safe, idiomatic patterns and consistent practices across C++ projects.

How do I audit an existing C++ codebase for modern coding standard violations?

To audit an existing C++ codebase, review the code against these C++ coding standards to identify violations of RAII, type safety, and smart pointer usage. The standards specify rules with examples and anti-patterns, enabling you to detect issues and apply recommended fixes for maintainability.