Agent skill

Cpp Core Guidelines

by SpecterOps in SpecterOps/skills

Apply a condensed version of the ISO C++ Core Guidelines to C++ design, implementation, refactoring, modernization, and code review.

Apache-2.0Auto-check passedDevelopment

Install Cpp Core Guidelines

skills CLI
$ npx skills add SpecterOps/skills --skill cpp-core-guidelines -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install SpecterOps/skills cpp-core-guidelines --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/SpecterOps/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/code-review-and-qa/skills/cpp-core-guidelines .claude/skills/cpp-core-guidelines && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cpp-core-guidelines
GitHub stars
704
Token cost
~500 tokens
SKILL.md length
191 words
Files
5 (incl. references, assets)
Skills in repo
38
Repo updated
First seen
Licence
Apache-2.0

At a glance

Apply a condensed version of the ISO C++ Core Guidelines to C++ design, implementation, refactoring, modernization, and code review.

  • Works in 5 steps: Identify the task shape: new design,… → Read… → Apply the guidelines pragmatically → …
  • CMake-backed C++ projects
  • SKILL.md covers Overview, Workflow and Resource
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Cpp Core Guidelines is an agent skill from SpecterOps/skills. Apply a condensed version of the ISO C++ Core Guidelines to C++ design, implementation, refactoring, modernization, and code review. Use for .cpp, .cc, .cxx, .h, .hpp, CMake-backed C++ projects, API design, ownership/lifetime decisions, RAII, const-correctness, templates, concurrency, error handling, performance, C interop, and standard-library usage.

Its SKILL.md is about 500 tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including reference files and assets (for example `agents/openai.yaml` and `references/core-guidelines-condensed.md`).

It sits in Development, covering Legacy modernization, API design and Refactoring. It works with C++. The repository describes itself as: A marketplace for LLM skills. The licence is Apache-2.0.

When your agent uses it

  • CMake-backed C++ projects
  • Ownership/lifetime decisions
  • Const-correctness
  • Standard-library usage

Example prompts

  • “/cpp-core-guidelines”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Identify the task shape: new design, implementation, refactor, modernization, review, or bug fix.
  2. Read references/core-guidelines-condensed.md when the task touches C++ behavior, APIs, ownership, templates, concurrency, performance, or…
  3. Apply the guidelines pragmatically
  4. When reviewing, lead with concrete bugs and maintenance risks, not style preferences. Reference the relevant Core Guidelines family, such…
  5. When changing code, keep edits scoped, add regression tests for behavior changes, and prefer mechanical/tool-enforceable improvements.

What it can do on your machine

Read from SKILL.md and the folder at commit e655f93. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Cpp Core Guidelines loads about 500 tokens when it runs, and up to ~5.8k if it reads all its reference files. Until then it costs about 93 tokens; SKILL.md has 191 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~93
When it runs · the whole SKILL.md, loaded when a task matches
~500
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from SpecterOps/skills at commit e655f93, republished under its Apache-2.0 licence (© SpecterOps). 191 words, ~500 tokens.

Download SKILL.mdSave it as .claude/skills/cpp-core-guidelines/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
cpp-core-guidelines
description
Apply a condensed version of the ISO C++ Core Guidelines to C++ design, implementation, refactoring, modernization, and code review. Use for .cpp, .cc, .cxx, .h, .hpp, CMake-backed C++ projects, API design, ownership/lifetime decisions, RAII, const-correctness, templates, concurrency, error handling, performance, C interop, and standard-library usage.

C++ Core Guidelines

Overview

Use this skill to apply modern C++ guidance derived from the ISO C++ Core Guidelines. Prefer safer, clearer, statically checkable C++ without sacrificing zero-overhead design.

Workflow

  1. Identify the task shape: new design, implementation, refactor, modernization, review, or bug fix.
  2. Read references/core-guidelines-condensed.md when the task touches C++ behavior, APIs, ownership, templates, concurrency, performance, or code review.
  3. Apply the guidelines pragmatically:
    • Prefer explicit interfaces, strong types, invariants, RAII, standard-library facilities, and compile-time checking.
    • Preserve project conventions when they conflict only cosmetically.
    • Treat raw ownership, unchecked bounds, data races, invalid lifetimes, implicit global state, naked allocation, C casts, and macro-based code as high-priority risks.
  4. When reviewing, lead with concrete bugs and maintenance risks, not style preferences. Reference the relevant Core Guidelines family, such as R for resources, F for functions, or CP for concurrency.
  5. When changing code, keep edits scoped, add regression tests for behavior changes, and prefer mechanical/tool-enforceable improvements.

Resource

  • references/core-guidelines-condensed.md: condensed concept map and review checklist covering the guideline families: philosophy, interfaces, functions, classes, enums, resources, expressions/statements, performance, concurrency, errors, constants, templates, C interop, source files, standard library, architecture, profiles, GSL, and naming/layout.

© SpecterOps, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references, assets) in plugins/code-review-and-qa/skills/cpp-core-guidelines of SpecterOps/skills.

  • SKILL.md
  • agents/openai.yaml
  • assets/icon.png
  • assets/icon.svg
  • references/core-guidelines-condensed.md

Open the folder on GitHubat commit e655f93

Compare with similar skills

Cpp Core Guidelines next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Cpp Core Guidelines compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cpp Core Guidelines this skillSpecterOps/skills704—~500Automated safety check: PassApache-2.0
Software Design Philosophyluoling8192/software-design-philosophy-skill346—~3.4kAutomated safety check: PassMIT
Code Revieweralirezarezvani/claude-skills28k1 repos~1.6kAutomated safety check: PassMIT
Dignified Python Standardsdocling-project/docling69k—~1.5kAutomated safety check: PassApache-2.0
Clean Code GuardamElnagdy/guard-skills1.3k2 repos~4.3kAutomated safety check: PassMIT
Code Refactoring Workflowluongnv89/claude-howto42k—~3.1kAutomated safety check: PassMIT

Similar skills

  • Software Design Philosophy

    luoling8192/software-design-philosophy-skill

    Software design philosophy guide based on John Ousterhout's "A Philosophy of Software Design." Use this skill during: code reviews, architecture discussions, API design, module decomposition…

    346 GitHub stars~3.4k tokensUpdated 3 mo ago
    DevelopmentAuto-check passed
  • Code Reviewer

    alirezarezvani/claude-skills

    Code review automation for TypeScript, JavaScript, Python, Go, Swift, Kotlin, C, .NET, Java, C, C++, Rust, Ruby, PHP, and Dart/Flutter.

    28k GitHub starsUsed in 1 repo~1.6k tokens
    DevelopmentAuto-check passed
  • Dignified Python Standards

    docling-project/docling

    Applies opinionated production Python conventions chosen by the project's Python version: modern type syntax, pathlib, explicit checks and interface guidance.

    69k GitHub stars~1.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Clean Code Guard

    amElnagdy/guard-skills

    Reviews generated or changed production code against Clean Code, SOLID, DRY, KISS, YAGNI and LLM-specific failure modes before it ships, in any language.

    1.3k GitHub starsUsed in 2 repos~4.3k tokens
    DevelopmentAuto-check passed
  • Code Refactoring Workflow

    luongnv89/claude-howto

    Guides systematic, test-backed refactoring in the style of Martin Fowler, moving through research, planning and small incremental changes with your approval at each phase.

    42k GitHub stars~3.1k tokensUpdated 8 days ago
    DevelopmentAuto-check passed
  • Qt C++ Code Review

    x-tools-author/x-tools

    Read-only review of Qt6 C++ code that combines a deterministic lint script with six parallel analysis agents and reports only high-confidence issues.

    1.1k GitHub starsUsed in 2 repos~4.3k tokens
    DevelopmentAuto-check passed

More from SpecterOps/skills

All 38 skills in this repo
  • Codex Activity Report

    SpecterOps/skills

    Generate a normalized UTC timeline and evidence-based narrative from Codex activity artifacts.

    704 GitHub stars~805 tokensUpdated 15 days ago
    Auto-check passed
  • Com Proxy Triage

    SpecterOps/skills

    A skill your agent uses when the user wants to triage Windows COM proxy/hijack candidates by capturing HKCU\Software\Classes\CLSID\{...}\InProcServer32 NAME NOT FOUND lookups for a process, mapping…

    704 GitHub stars~1.5k tokensUpdated 15 days ago
    Auto-check passed
  • Cwe Code Review

    SpecterOps/skills

    Perform CWE-grounded security code reviews and precise weakness mapping using a locally derived MITRE CWE corpus, relationship graphs, mapping notes, detection methods, mitigations, and schema…

    704 GitHub stars~2.4k tokensUpdated 15 days ago
    Auto-check passed
  • Ghostwriter Oplog

    SpecterOps/skills

    A skill your agent uses for Ghostwriter operation log entries from Codex, including config guidance, quick notes, evidence-backed entries, and guided oplog capture through the Ghostwriter MCP tools.

    704 GitHub stars~665 tokensUpdated 15 days ago
    Auto-check passed
  • Nmap Parse

    SpecterOps/skills

    Parse nmap scan output and generate actionable recon notes. An agent skill from SpecterOps/skills.

    704 GitHub stars~738 tokensUpdated 15 days ago
    Auto-check passed
  • Osint Recon

    SpecterOps/skills

    Perform OSINT and external reconnaissance for approved targets.

    704 GitHub stars~813 tokensUpdated 15 days ago
    Auto-check passed

Works with

Categories

Questions about Cpp Core Guidelines

What does Cpp Core Guidelines do?

Apply a condensed version of the ISO C++ Core Guidelines to C++ design, implementation, refactoring, modernization, and code review. Cpp Core Guidelines is an agent skill from SpecterOps/skills. Apply a condensed version of the ISO C++ Core Guidelines to C++ design, implementation, refactoring, modernization, and code review.

When should I use Cpp Core Guidelines?

Cpp Core Guidelines fits situations like: CMake-backed C++ projects; ownership/lifetime decisions; const-correctness; standard-library usage.

How do I install Cpp Core Guidelines in Claude Code?

Run `npx skills add SpecterOps/skills --skill cpp-core-guidelines -a claude-code`. Or copy the skill folder (plugins/code-review-and-qa/skills/cpp-core-guidelines in SpecterOps/skills) into .claude/skills/cpp-core-guidelines in your project. Claude Code loads it when a task matches its description.

How do I install Cpp Core Guidelines in Codex?

Run `npx skills add SpecterOps/skills --skill cpp-core-guidelines -a codex`. Or copy the skill folder (plugins/code-review-and-qa/skills/cpp-core-guidelines in SpecterOps/skills) into .agents/skills/cpp-core-guidelines in your project. Codex loads it when a task matches its description.

Can I use Cpp Core Guidelines in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add SpecterOps/skills --skill cpp-core-guidelines -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cpp-core-guidelines, .gemini/skills/cpp-core-guidelines, .github/skills/cpp-core-guidelines and .opencode/skills/cpp-core-guidelines in your project.

What does Cpp Core Guidelines need to run?

SKILL.md names no scripts, command-line tools or credentials: Cpp Core Guidelines is instructions for the agent only.

Does Cpp Core Guidelines access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Cpp Core Guidelines safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Cpp Core Guidelines use?

Cpp Core Guidelines is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cpp Core Guidelines use?

About 500 tokens (SKILL.md is roughly 2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.3k tokens, read only when the agent opens those files.

What are the alternatives to Cpp Core Guidelines?

Skills that share tags, products or a category with Cpp Core Guidelines: Software Design Philosophy (luoling8192/software-design-philosophy-skill, 346 stars), Code Reviewer (alirezarezvani/claude-skills, 28k stars), Dignified Python Standards (docling-project/docling, 69k stars) and Clean Code Guard (amElnagdy/guard-skills, 1.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cpp Core Guidelines?

SpecterOps (a GitHub organization) maintains it in SpecterOps/skills, which has 704 GitHub stars. The repository holds 38 skills in this directory. The repository was last updated on September 23, 2026.

Source: SpecterOps/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.