Skip to content
Skill

Cpp coding standards

Guides an AI agent to write and review C++ code using Core Guidelines practices

Cpp coding standards is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
66
Last commit
License
MIT
Listing updated

Similar skills

About Cpp coding standards

This skill gives the agent a reference of C++ Core Guidelines rules covering interfaces, functions, classes, resource management, expressions, error handling, concurrency, templates, naming and performance. It is aimed at C++17, C++20 and C++23 code and is meant to steer new code, reviews and refactors toward modern, type-safe and resource-safe patterns.

The guidance is organized as rule tables and short code examples marked as do and don't, with a closing checklist the agent can run through before calling C++ work finished. It also flags when the standards should be adapted, such as legacy C codebases or embedded targets with hardware constraints.

The skill is instructional only: it contains no scripts or tool calls, so it works by shaping how the agent reads and writes C++ code. It needs a C++ project and a compiler toolchain for the agent to build and test its changes.

When your agent uses it

C++ coding standards based on the C++ Core Guidelines (isocpp.github.io). Use when writing, reviewing, or refactoring C++ code to enforce modern, safe, and idiomatic practices.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (22 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the rea-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add smartworldarafath/REA_Skill
/plugin install rea-skills@smartworldarafath

Or copy only this skill to ~/.claude/skills/cpp-coding-standards:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/cpp-coding-standards &&
cp -R "$tmp/.agents/skills/cpp-coding-standards" ~/.claude/skills/cpp-coding-standards &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/cpp-coding-standards inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/cpp-coding-standards to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/cpp-coding-standards &&
cp -R "$tmp/.agents/skills/cpp-coding-standards" ~/.agents/skills/cpp-coding-standards &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/cpp-coding-standards inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/cpp-coding-standards to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/cpp-coding-standards &&
cp -R "$tmp/.agents/skills/cpp-coding-standards" ~/.cursor/skills/cpp-coding-standards &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/cpp-coding-standards inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/smartworldarafath/REA_Skill.git --path .agents/skills/cpp-coding-standards

Or copy the folder to ~/.gemini/skills/cpp-coding-standards yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/cpp-coding-standards:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/cpp-coding-standards &&
cp -R "$tmp/.agents/skills/cpp-coding-standards" ~/.copilot/skills/cpp-coding-standards &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/cpp-coding-standards inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git

Then copy REA_Skill/.agents/skills/cpp-coding-standards into your agent's skills folder as cpp-coding-standards. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Interface and type design
Rules for explicit, strongly typed interfaces, clear ownership and passing parameters by value or const reference.
Resource management guidance
RAII patterns, smart pointer selection and avoiding raw new, delete, malloc and free.
Class and hierarchy rules
Rule of Zero and Rule of Five, virtual destructors, explicit constructors and override usage.
Error handling conventions
Custom exception types thrown by value and caught by reference, with noexcept guidance.
Concurrency safety patterns
Named RAII locks, scoped_lock for multiple mutexes and condition-based waiting.
Naming and header hygiene
Include guards, self-contained headers, namespace rules and underscore-style naming.

Good for

  • Review a C++ pull request for raw pointer ownership and missing RAII
  • Refactor legacy C++ functions to use const, constexpr and smart pointers
  • Write a new C++ class with a safe copy and move implementation
  • Check a header for include guard and using-namespace problems
  • Replace C-style casts and plain enums with safer alternatives

Cpp coding standards FAQ

Which C++ versions does the skill target?

It covers modern C++ from C++17 through C++20 and C++23, and notes that some examples use C++20 features such as concepts.

Does the skill run any scripts or tools?

No. The skill ships no scripts and only provides guidance and code examples for the agent to follow.

When should the guidance be skipped?

The skill says not to use it for non-C++ projects or legacy C codebases that cannot adopt modern C++, and to adapt it selectively in embedded or bare-metal contexts.

What triggers the skill?

It is meant to load when the agent is writing, reviewing or refactoring C++ code to enforce modern and idiomatic practices.

How do I install Cpp coding standards in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/cpp-coding-standards to use it in all your projects, or to .claude/skills/cpp-coding-standards in one project. Or install the rea-skills plugin, which includes it: /plugin marketplace add smartworldarafath/REA_Skill, then /plugin install rea-skills@smartworldarafath.

Does Cpp coding standards run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Cpp coding standards?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Cpp coding standards?

The closest alternatives to Cpp coding standards are Readable cpp, Coding standards, Modern cpp, Readable code and Cpp.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from smartworldarafath/REA_Skill

  1. Guides building and auditing UI to WCAG 2.2 AA across web, iOS and Android

    • Open source
    • 66 GitHub stars
    • Developer tools
  2. Diagnoses agent and LLM stacks for hidden failures and ranks the fixes by severity

    • Open source
    • 66 GitHub stars
    • Developer tools
  3. Compare coding agents head-to-head on your own tasks by pass rate, cost and time

    • Open source
    • 66 GitHub stars
    • Developer tools
  4. Guides an agent to design tool sets, observations and error recovery for better completion

    • Open source
    • 66 GitHub stars
    • Developer tools
  5. Lets an AI agent make x402 payments within per-task budgets and spending policies

    • Open source
    • 66 GitHub stars
    • Finance and payments