cpp-coding-standards

Enforce C++ Core Guidelines for code reviews and refactoring.

Updated Jan 30, 2026
One-click install
npx skills add https://github.com/ThejanaJayalath/Niolla-PM-system --skill cpp-coding-standards-thejanajayalath
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cpp-coding-standards
Source: https://github.com/ThejanaJayalath/Niolla-PM-system/tree/main/.cursor/skills/cpp-coding-standards
Command: npx skills add https://github.com/ThejanaJayalath/Niolla-PM-system --skill cpp-coding-standards-thejanajayalath

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the complexity of modern C++ development by providing a structured, authoritative guide to writing safe, efficient, and maintainable code that adheres to industry-standard best practices.

Core Features & Use Cases

  • Modern C++ Enforcement: Provides clear rules for C++17/20/23 features, including RAII, smart pointers, and concepts.
  • Code Quality Assurance: Offers a comprehensive checklist for code reviews and refactoring to eliminate common pitfalls like memory leaks, undefined behavior, and inefficient resource management.
  • Use Case: Use this Skill during a pull request review to identify potential violations of the Rule of Five, improper use of raw pointers, or missing const-correctness in class interfaces.

Quick Start

Apply the cpp-coding-standards to review the current module for RAII compliance and modern memory management patterns.

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 RAII and modern C++ coding standards during a code review?

To enforce RAII and modern C++ coding standards during code review, apply rules based on the C++ Core Guidelines to check for proper resource management, type safety, and immutability across C++17, C++20, and C++23 codebases.

What is the best way to check for const-correctness and proper smart pointer usage in C++?

The best way to check for const-correctness and smart pointer usage is to evaluate class interfaces against modern C++ best practices, ensuring adherence to the Rule of Five and eliminating improper raw pointers to prevent memory leaks.

How do I refactor legacy C++ code to eliminate undefined behavior and memory leaks?

To refactor legacy C++ code and eliminate undefined behavior, use a comprehensive checklist that enforces idiomatic language usage, RAII compliance, and compile-time checking, ensuring safe and efficient resource management.

Does this approach support C++20 concepts and C++23 features for architectural decision-making?

Yes, this approach supports C++20 concepts and C++23 features by providing structured rules for modern C++ enforcement, facilitating architectural decision-making through type safety and compile-time checking.

When should I not use raw pointers in modern C++ development?

You should avoid raw pointers in modern C++ development when managing resource lifecycles, replacing them with smart pointers and RAII patterns to ensure type safety and prevent undefined behavior.