cpp

Provide modern C++ patterns, template metaprogramming, and concurrency primitives.

20|5|Updated Jan 5, 2026
One-click install
npx skills add https://github.com/miles990/claude-software-skills --skill cpp-miles990
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cpp
Source: https://github.com/miles990/claude-software-skills/tree/main/programming-languages/cpp
Command: npx skills add https://github.com/miles990/claude-software-skills --skill cpp-miles990

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and examples for writing modern, efficient, and safe C++ code, covering advanced language features and best practices.

Core Features & Use Cases

  • Modern C++ Patterns: Learn RAII, smart pointers, move semantics, and lambda expressions.
  • Templates: Understand function and class templates, including CRTP and concepts.
  • Concurrency: Explore threading, futures, promises, and atomic operations.
  • Error Handling: Implement robust error management using exceptions, std::optional, and std::variant.
  • Use Case: Refactor legacy C code to leverage modern C++ features for improved safety and performance, or build high-performance concurrent systems.

Quick Start

Use the cpp skill to generate a basic CMakeLists.txt file for a C++20 project.

Frequently Asked Questions about cpp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement RAII and smart pointers for safe memory management in C++?

RAII and smart pointers in C++ tie resource lifetimes to object scope, automatically deallocating memory when objects go out of scope. This Skill provides idiomatic patterns to ensure robust, leak-free memory management.

What's the best way to use C++20 concepts and variadic templates for metaprogramming?

C++20 concepts and variadic templates enable compile-time code generation and strict type constraints. This Skill offers advanced template metaprogramming examples, including CRTP and concepts, to build flexible, type-safe components.

Can I use std::variant and std::expected for error handling without exceptions?

std::variant and std::expected facilitate robust error management in C++ without relying on exceptions. This Skill demonstrates how to implement safe, predictable error handling using these modern standard library features.

How do I generate a CMakeLists.txt file for a modern C++20 project?

Generating a CMakeLists.txt for a C++20 project requires configuring build targets and compiler standards. This Skill provides a quick start to generate a baseline CMakeLists.txt file for modern C++ development.

When should I refactor legacy C code to leverage modern C++ features?

Refactoring legacy C code to modern C++ is ideal when you need improved safety, performance, and maintainability. This Skill guides leveraging move semantics, lambdas, and RAII to upgrade existing codebases.