cpp-coding-standards

Codify C++ Core Guidelines into actionable standards for C++17/20/23 projects.

1|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/vinitgirdhar/GRID_ --skill cpp-coding-standards-vinitgirdhar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cpp-coding-standards
Source: https://github.com/vinitgirdhar/GRID_/tree/main/.agent/skills/cpp-coding-standards
Command: npx skills add https://github.com/vinitgirdhar/GRID_ --skill cpp-coding-standards-vinitgirdhar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

C++ coding standards based on the C++ Core Guidelines to help teams write, review, or refactor C++ code toward modern, safe, and idiomatic practices.

Core Features & Use Cases

  • Aligns code with RAII, immutability by default, type safety, explicit interfaces, and resource management.
  • Provides comprehensive guidance across functions, classes, error handling, concurrency, templates, standard library usage, and naming.
  • Use Case: During code reviews or refactors, apply the guidelines to improve reliability, readability, and maintainability of C++ projects.

Quick Start

Audit your C++ codebase and start refactoring to conform to the Core 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 C++ Core Guidelines during code reviews?

To enforce C++ Core Guidelines during code reviews, apply actionable standards for RAII, immutability, type safety, and explicit interfaces to identify unsafe patterns and improve consistency. The guidelines provide examples and anti-patterns for guidance.

What are modern C++ coding standards for RAII and error handling?

Modern C++ coding standards for RAII and error handling enforce resource management without manual intervention and define explicit error-handling rules. They aim to reduce unsafe patterns by aligning code with idiomatic practices across functions, classes, and concurrency.

Can I use these C++ coding standards for C++17, C++20, and C++23 projects?

Yes, you can use these C++ coding standards for C++17, C++20, and C++23 projects. They are designed to apply during writing, reviewing, and refactoring to ensure consistency and safety across these modern C++ versions.

What is the best way to refactor legacy C++ code to improve safety?

The best way to refactor legacy C++ code to improve safety is auditing the codebase and conforming to the C++ Core Guidelines. Applying standards for RAII, templates, and standard library usage improves reliability, readability, and maintainability.

Why should I apply immutability by default in C++ code?

You should apply immutability by default in C++ code to improve type safety, explicit interfaces, and resource management. Aligning with this standard reduces unsafe patterns and helps teams write modern, safe, and idiomatic C++ practices.