cpp-coding-standards

Review C++17/20/23 code for C++ Core Guidelines compliance.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill resolves the risk of inconsistent, unsafe, and outdated C++ code that leads to bugs, security vulnerabilities, and high maintenance costs for teams without a unified modern coding standard.

Core Features & Use Cases

  • Comprehensive C++ Core Guidelines Alignment: Covers all key domains of modern C++ (C++17/20/23) including type safety, RAII, immutability, error handling, concurrency, and standard library usage.
  • Code Authoring & Review Support: Provides clear do/don't examples, anti-patterns, and rule references to guide writing new code, reviewing pull requests, and refactoring legacy C++ codebases.
  • Team Standard Enforcement: Includes a quick reference checklist to ensure consistent adherence to best practices across entire C++ projects, reducing onboarding friction for new team members.

Quick Start

Use the cpp-coding-standards skill to review the attached C++ header file for compliance with modern Core Guidelines, checking for proper const correctness, smart pointer ownership, and include guard usage.

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 code review?

You can enforce modern C++ coding standards during code review by applying the C++ Core Guidelines to check for type safety, RAII, const correctness, and smart pointer ownership. This Skill provides do/don't examples and anti-patterns to eliminate unsafe code and ensure idiomatic C++17/20/23 practices.

What are the C++ Core Guidelines for type safety and RAII?

The C++ Core Guidelines for type safety and RAII require managing resources automatically through object lifetimes instead of manual memory allocation. This Skill enforces these guidelines to eliminate resource leaks, ensure immutability, and remove unsafe legacy C++ patterns.

How do I refactor legacy C++ code to be safe and idiomatic?

Refactor legacy C++ code to be safe and idiomatic by replacing manual resource management and outdated patterns with modern C++17/20/23 constructs like RAII and smart pointers. This Skill identifies anti-patterns and applies team-wide standards to reduce maintenance overhead and security vulnerabilities.

Can I use this to check smart pointer ownership and const correctness in header files?

Yes, you can check smart pointer ownership and const correctness in header files by reviewing them against modern C++ Core Guidelines. This Skill evaluates include guard usage and immutability constraints to ensure your C++ interfaces maintain type safety and proper resource management.

Does this coding standard support C++20 and C++23 development workflows?

Yes, this coding standard supports C++20 and C++23 development workflows by aligning with the official C++ Core Guidelines. It covers type safety, error handling, concurrency, and standard library usage to ensure your codebase remains safe, modern, and idiomatic.