Agent skill · software engineering · personamanagmentlayer
cpp-expert
Expert-level C++ development with modern C++20/23, STL, memory management, and performance. Use when the user mentions C++, C++20, C++23, the STL, templates, or performance, or when the task involves Modern C++ Features, Memory Management, Ranges and Views, or Coroutines.
Why this skill is useful
Adds advanced C++20/23 features and performance optimization techniques that are not commonly known or documented in standard resources.
What it needs
Requires clang++, cmake, g++, make installed locally. About 3k tokens when loaded. Last updated 2026-03-30. 41 stars on the source repository.
What this skill does
C++ Expert Expert guidance for modern C++ development including C++20/23 features, STL, templates, memory management, and high-performance programming. Core Concepts Modern C++ Features (C++20/23) Concepts and constraints Ranges and views Coroutines Modules Three-way comparison (spaceship operator) std::format std::span Designated initializers consteval and constinit Memory Management RAII (Resource Acquisition Is Initialization) Smart pointers (uniqueptr, sharedptr, weakptr) Move semantics and perfect forwarding Memory allocation strategies Custom allocators Memory pools Performance Zero-cost abstractions Inline optimization Template metaprogramming Compile-time computation (constexpr) Cache-friendly data structures SIMD operations STL Containers Sequential Containers Associative Containers Algorithms Concurrency Build Systems CMake Anti-Patterns to Avoid ❌ Raw pointers for ownership: Use smart pointers ❌ Manual memory management: Use RAII ❌ Using C-style arrays: Use std::array or std::vector ❌ Ignoring const correctness: Mark everything const that can be ❌ Unnecessary copies: Use move semantics and references ❌ Premature optimization: Profile before optimizing ❌ Using new without delete: Use smart pointers Reference Documentation Detailed material lives alongside this skill and is read on demand: Best Practices — RAII, Const Correctness, Rule of Zero/Three/Five Modern C++ Syntax — Concepts (C++20), Ranges and Views (C++20), Coroutines (C++20), Smart Pointers, Move Semantics, Templates and Metaprogramming, std::format (C++20) Resources C++ Reference: https://en.cppreference.com/ C++ Core Guidelines: https://isocpp.github.io/CppCoreGuidelines/ Compiler Explorer: https://godbolt.org/ CPP Reference: https://cplusplus.com/
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills personamanagmentlayer/cpp-expert