cpp-coding-standards

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

3|1|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/oabdelmaksoud/AGI-FARM-PLUGIN --skill cpp-coding-standards-oabdelmaksoud
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cpp-coding-standards
Source: https://github.com/oabdelmaksoud/AGI-FARM-PLUGIN/tree/main/ecc-resources/docs/zh-CN/skills/cpp-coding-standards
Command: npx skills add https://github.com/oabdelmaksoud/AGI-FARM-PLUGIN --skill cpp-coding-standards-oabdelmaksoud

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps enforce modern, safe, and idiomatic C++ coding standards, preventing common errors and improving code quality and maintainability.

Core Features & Use Cases

  • Guideline Enforcement: Provides comprehensive rules based on the C++ Core Guidelines for various aspects of C++ programming (expressions, classes, resources, concurrency, etc.).
  • Code Review Aid: Acts as a checklist for developers during code writing and review to ensure adherence to best practices.
  • Use Case: When developing a new C++ module, use this Skill to ensure all new code follows type safety, RAII principles, and uses modern C++ features correctly, reducing bugs and improving long-term maintainability.

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

You can enforce modern C++ coding standards by checking code against the C++ Core Guidelines, ensuring type safety, RAII principles, and proper resource management. This Skill acts as a comprehensive checklist for evaluating expressions, classes, and concurrency.

What are the C++ Core Guidelines for resource management and error handling?

The C++ Core Guidelines for resource management mandate RAII principles to guarantee resource safety and prevent leaks. For error handling, they provide rules to enforce type safety and ensure robust, clear error propagation across modern C++17, C++20, and C++23 codebases.

How do I ensure type safety and immutability in my C++17 codebase?

To ensure type safety and immutability in your C++17 codebase, apply modern C++ best practices from the C++ Core Guidelines. This involves using correct expressions, enforcing RAII for resources, and applying specific rules for class design and templates.

Can I use these C++ coding best practices for C++20 and C++23 modules?

Yes, you can use these C++ coding best practices for C++20 and C++23 modules. The guidelines are designed to enforce modern C++ standards, ensuring type safety, resource safety, and clarity across C++17, C++20, and C++23 codebases.

What is the best way to prevent common C++ programming errors in new modules?

The best way to prevent common C++ programming errors in new modules is to follow the C++ Core Guidelines. Enforcing idiomatic C++ practices for expressions, concurrency, and templates reduces bugs and improves long-term maintainability.

Does this Skill cover C++ concurrency and templates best practices?

Yes, this Skill covers C++ concurrency and templates best practices. It enforces comprehensive rules based on the C++ Core Guidelines, guiding developers on safe and idiomatic usage of concurrency mechanisms and template design for modern C++.