cpp-coding-standards

Apply C++ Core Guidelines to enforce RAII, type safety, and ownership rules.

1|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/samymity/bridge-ventures-backend --skill cpp-coding-standards-samymity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cpp-coding-standards
Source: https://github.com/samymity/bridge-ventures-backend/tree/main/.claude/skills/cpp-coding-standards
Command: npx skills add https://github.com/samymity/bridge-ventures-backend --skill cpp-coding-standards-samymity

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams avoid brittle or error-prone C++ patterns by providing practical, consistent guidance aligned with the C++ Core Guidelines.

Core Features & Use Cases

  • Modern C++ rule set: Covers RAII, immutability, strong typing, safe interfaces, and value semantics for C++17/20/23.
  • Decision support: Helps choose appropriate language features and idioms (e.g., enum class, smart pointers vs raw pointers, constexpr/noexcept).
  • Review and refactoring: Serves as a checklist for reviewing existing code and enforcing consistent style across a codebase.

Quick Start

Review a C++ file you plan to refactor against these guidelines and flag any violations of RAII, const-correctness, type safety, and ownership rules.

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 prevent resource leaks in modern C++?

To enforce RAII and prevent resource leaks in modern C++, apply C++ Core Guidelines that mandate smart pointers and value semantics, ensuring resources are automatically managed by object lifetimes. This Skill provides specific rules for safe ownership and consistent initialization.

What is the best way to review C++ pull requests for unsafe ownership?

The best way to review C++ pull requests for unsafe ownership is using a checklist that flags raw pointer misuse and violations of const-correctness. This Skill serves as a practical checklist enforcing type safety, strong typing, and immutability by default.

How do I choose between smart pointers and raw pointers in C++17/20/23?

To choose between smart pointers and raw pointers in C++17/20/23, use decision support guidelines that evaluate ownership semantics. This Skill helps select appropriate idioms by enforcing safe interfaces, strict resource management, and clear ownership rules.

When do I need coding standards for refactoring existing C++ codebases?

You need coding standards for refactoring existing C++ codebases when you must eliminate brittle patterns and enforce consistent style. This Skill guides refactors by flagging violations of strong typing, safe error handling, RAII, and immutability.

Does this C++ coding guidelines Skill support type safety and immutability by default?

Yes, this C++ coding guidelines Skill supports type safety and immutability by default. It applies C++ Core Guidelines to enforce strongly typed interfaces, const-correctness, and safe error handling for modern C++17/20/23 projects.