cpp-coding-standards

Enforce C++ Core Guidelines for writing, reviewing, and refactoring C++ code.

Updated Jul 10, 2025
One-click install
npx skills add https://github.com/nubiv/my-nome --skill cpp-coding-standards-nubiv
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cpp-coding-standards
Source: https://github.com/nubiv/my-nome/tree/main/nix-darwin/config/claude/skills/cpp-coding-standards
Command: npx skills add https://github.com/nubiv/my-nome --skill cpp-coding-standards-nubiv

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive set of modern C++ coding standards derived from the C++ Core Guidelines, helping developers write safer, more efficient, and more maintainable C++ code.

Core Features & Use Cases

  • Code Quality Enforcement: Ensures adherence to modern C++ idioms, type safety, and resource management.
  • Developer Guidance: Acts as a reference for best practices in C++ development, refactoring, and architectural decisions.
  • Use Case: When writing a new C++ class, consult this Skill to ensure it follows principles like RAII, immutability by default, and proper interface design.

Quick Start

Review the provided C++ code snippet against the C++ Core Guidelines.

Frequently Asked Questions about cpp-coding-standards

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the C++ Core Guidelines for modern resource management?

The C++ Core Guidelines for modern resource management enforce RAII, type safety, and immutability by default to ensure efficient and maintainable C++ code. They provide a comprehensive standard for writing safer C++ classes and interfaces.

How do I review C++ code against modern best practices?

To review C++ code against modern best practices, consult coding standards derived from the C++ Core Guidelines to check for proper RAII implementation, type safety, and efficient resource management. This ensures adherence to modern C++ idioms.

Does this coding standard support C++17, C++20, and C++23 features?

Yes, this coding standard supports C++17, C++20, and C++23 language features. It enforces best practices specifically tailored to these modern C++ versions for writing, reviewing, and refactoring code.

What's the best way to enforce type safety and immutability in C++?

The best way to enforce type safety and immutability in C++ is by applying the C++ Core Guidelines, which establish immutability by default and strict type safety. This approach acts as a reference for architectural decisions and refactoring.

When do I need modern C++ coding standards for refactoring?

You need modern C++ coding standards for refactoring when you want to ensure architectural decisions and code modifications align with RAII, proper interface design, and efficient resource management. This guarantees safer, more maintainable code.

Why should I follow RAII principles in C++ development?

You should follow RAII principles in C++ development because they enforce efficient resource management and type safety, preventing leaks and ensuring safer code. The C++ Core Guidelines use RAII as a foundational standard for modern C++.