Modern C++ Expert

VerifiedSafe

Write idiomatic C++ with modern features, RAII, smart pointers, and STL algorithms. Covers templates, move semantics, and performance optimization.

Sby Skills Guide Bot
DevelopmentAdvanced
8/29/2026
Claude CodeCursorWindsurfCopilotCodex
#cpp#modern-cpp#raii#templates#performance

Recommended for

Automated summary

A guide for writing idiomatic modern C++ code, covering RAII, smart pointers, templates, move semantics and performance optimization.

Strengths

  • Explicitly spans C++11 through C++23, including RAII, unique_ptr/shared_ptr and the Rule of Zero/Three/Five
  • Lists concrete deliverables: CMakeLists.txt, headers with #pragma once, Google Test or Catch2 tests, Google Benchmark benchmarks
  • Builds sanitizer verification (AddressSanitizer/ThreadSanitizer) and profiling with perf or VTune into the workflow
  • Favors compile-time errors over runtime errors and defers to the C++ Core Guidelines

Limitations

  • The 'use this skill when' section is boilerplate and gives no precise triggering criteria
  • No actual code samples or templates are included; details are deferred to resources/implementation-playbook.md
  • Risk level is marked unknown and the community source is not vetted
When to use it

Use it to design, review or refactor modern C++ code that needs safe resource management, templates or performance tuning.

When not to use it

Avoid it for legacy C code, platform-specific C++ toolchains, or any task unrelated to C++ programming.

Security analysis

Safe
Quality score78/100

The skill provides advisory guidance on C++ programming best practices and does not instruct or imply any execution of commands, file manipulation, network activity, or data exfiltration. It declares no tools and contains no destructive or obfuscated actions.

No concerns found

How this analysis is made

Examples

Refactor to smart pointers
Refactor this class that uses raw new/delete into modern C++17 with unique_ptr and the Rule of Five, and generate a matching CMakeLists.txt.
Template interface review
Review this variadic template wrapper in C++20: check perfect forwarding correctness, add concepts to constrain the parameters, and document the interface in the header.
Sanitizer-clean benchmarks
Add Google Test unit tests and a Google Benchmark for this container class, then tell me how to run it under AddressSanitizer and ThreadSanitizer to confirm the output is clean.

name: cpp-pro description: Write idiomatic C++ code with modern features, RAII, smart pointers, and STL algorithms. Handles templates, move semantics, and performance optimization. risk: unknown source: community date_added: '2026-02-27'

Use this skill when

  • Working on cpp pro tasks or workflows
  • Needing guidance, best practices, or checklists for cpp pro

Do not use this skill when

  • The task is unrelated to cpp pro
  • You need a different domain or tool outside this scope

Instructions

  • Clarify goals, constraints, and required inputs.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.
  • If detailed examples are required, open resources/implementation-playbook.md.

You are a C++ programming expert specializing in modern C++ and high-performance software.

Focus Areas

  • Modern C++ (C++11/14/17/20/23) features
  • RAII and smart pointers (unique_ptr, shared_ptr)
  • Template metaprogramming and concepts
  • Move semantics and perfect forwarding
  • STL algorithms and containers
  • Concurrency with std::thread and atomics
  • Exception safety guarantees

Approach

  1. Prefer stack allocation and RAII over manual memory management
  2. Use smart pointers when heap allocation is necessary
  3. Follow the Rule of Zero/Three/Five
  4. Use const correctness and constexpr where applicable
  5. Leverage STL algorithms over raw loops
  6. Profile with tools like perf and VTune

Output

  • Modern C++ code following best practices
  • CMakeLists.txt with appropriate C++ standard
  • Header files with proper include guards or #pragma once
  • Unit tests using Google Test or Catch2
  • AddressSanitizer/ThreadSanitizer clean output
  • Performance benchmarks using Google Benchmark
  • Clear documentation of template interfaces

Follow C++ Core Guidelines. Prefer compile-time errors over runtime errors.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/modern-c-expert-mte1ljt3/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/modern-c-expert-mte1ljt3' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/modern-c-expert-mte1ljt3/download' --output '.skill-downloads/modern-c-expert-mte1ljt3/SKILL.md.part' && mv '.skill-downloads/modern-c-expert-mte1ljt3/SKILL.md.part' '.skill-downloads/modern-c-expert-mte1ljt3/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/modern-c-expert-mte1ljt3/SKILL.md' && test -s '.skill-downloads/modern-c-expert-mte1ljt3/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/cpp-pro' && cp -R '.skill-downloads/modern-c-expert-mte1ljt3' '.claude/skills/cpp-pro'

Cursor
test -f '.skill-downloads/modern-c-expert-mte1ljt3/SKILL.md' && test -s '.skill-downloads/modern-c-expert-mte1ljt3/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/cpp-pro' && cp -R '.skill-downloads/modern-c-expert-mte1ljt3' '.cursor/skills/cpp-pro'

Codex
test -f '.skill-downloads/modern-c-expert-mte1ljt3/SKILL.md' && test -s '.skill-downloads/modern-c-expert-mte1ljt3/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/cpp-pro' && cp -R '.skill-downloads/modern-c-expert-mte1ljt3' '.agents/skills/cpp-pro'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/modern-c-expert-mte1ljt3'

openskills read 'modern-c-expert-mte1ljt3'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/modern-c-expert-mte1ljt3/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills