cpp-coding-standards

Review C++ code against C++ Core Guidelines for resource management.

1|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/its-Basudeba/Care-HMS --skill cpp-coding-standards-its-basudeba
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cpp-coding-standards
Source: https://github.com/its-Basudeba/Care-HMS/tree/main/.agent/skills/cpp-coding-standards
Command: npx skills add https://github.com/its-Basudeba/Care-HMS --skill cpp-coding-standards-its-basudeba

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the complexity and potential for memory-safety errors in modern C++ development by providing a structured, authoritative set of guidelines derived from the C++ Core Guidelines.

Core Features & Use Cases

  • Modern Best Practices: Enforces RAII, type safety, and immutability to prevent common C++ pitfalls.
  • Code Review & Refactoring: Provides a checklist for evaluating code quality, resource management, and interface design.
  • Use Case: Use this Skill during a pull request review to ensure that raw pointers are replaced with smart pointers and that all class hierarchies follow the Rule of Five.

Quick Start

Use the cpp-coding-standards skill to review the provided C++ source file for violations of the RAII and resource management guidelines.

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

Enforce modern C++ coding standards during code reviews by evaluating source files against the C++ Core Guidelines, checking for RAII enforcement, type safety, and idiomatic resource management. This ensures maintainable, performant, and memory-safe C++ code.

What is RAII and how does it prevent memory-safety errors in C++?

RAII, or Resource Acquisition Is Initialization, prevents memory-safety errors in C++ by binding resource lifetimes to object lifetimes. This Skill provides structured guidelines to replace raw pointers with smart pointers, ensuring proper resource cleanup and type safety.

How do I refactor raw pointers to smart pointers in C++?

Refactor raw pointers to smart pointers in C++ by applying the C++ Core Guidelines provided by this Skill. It facilitates refactoring by enforcing RAII principles and checking that class hierarchies follow the Rule of Five for proper resource management.

Can I use these C++ Core Guidelines for any project scale?

You can use these C++ Core Guidelines across various project contexts and scales. The Skill provides a comprehensive checklist for evaluating code quality, architectural decision-making, and interface design to write maintainable and performant C++ code.

When should I follow the Rule of Five in C++ class hierarchies?

Follow the Rule of Five in C++ class hierarchies whenever a class manages resources to ensure proper memory-safe copying and destruction. This Skill enforces this standard during architectural decision-making and refactoring to prevent resource leaks.

Why does my C++ code have memory-safety errors despite using modern features?

C++ code may have memory-safety errors if raw pointers bypass RAII or if class hierarchies ignore the Rule of Five. This Skill addresses these pitfalls by providing an authoritative checklist derived from the C++ Core Guidelines to enforce immutability and type safety.