cpp-coding-standards

Enforce modern C++ coding standards from the C++ Core Guidelines.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the complexity and safety risks inherent in modern C++ development by providing a structured, authoritative set of guidelines to prevent common pitfalls like memory leaks, undefined behavior, and inefficient resource management.

Core Features & Use Cases

  • Modern C++ Enforcement: Provides rules for C++17/20/23 features, focusing on type safety, RAII, and immutability.
  • Code Review & Refactoring: Offers a checklist and specific anti-patterns to identify and fix legacy code issues or architectural flaws.
  • Use Case: When refactoring a legacy module, use this Skill to identify raw pointer usage that should be replaced with smart pointers and to ensure that class hierarchies follow the Rule of Five.

Quick Start

Apply the cpp-coding-standards to review the provided source file for violations of RAII and modern C++ best practices.

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 type safety?

To review C++ code for RAII violations, apply a checklist that identifies raw pointer usage needing replacement with smart pointers, verifies class hierarchies follow the Rule of Five, and flags anti-patterns causing inefficient resource management.

How do I refactor legacy C++ code to use idiomatic modern features?

Refactor legacy C++ code by replacing raw pointers with smart pointers for resource management, updating class hierarchies to follow the Rule of Five, and applying C++17/20/23 features to improve type safety and immutability.

Can these C++ Core Guidelines be used for architectural design and code reviews?

Yes, these C++ Core Guidelines can be used for architectural design and code reviews, providing a structured checklist to identify architectural flaws, enforce idiomatic feature usage, and ensure code clarity in software engineering tasks.

Why does my C++ project have memory leaks and undefined behavior?

C++ projects experience memory leaks and undefined behavior due to poor resource management and lack of RAII enforcement, which can be resolved by applying modern C++ coding standards that mandate smart pointers and type safety rules.

What is the best way to enforce immutability and the Rule of Five in C++?

The best way to enforce immutability and the Rule of Five in C++ is to apply coding standards derived from the C++ Core Guidelines, which provide specific anti-patterns and rules for class hierarchies and architectural design.