cpp-pro

Modernize C++20 and C++23 codebases with safe memory management and CMake workflows.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/kamelmh/opencode-config --skill cpp-pro-kamelmh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cpp-pro
Source: https://github.com/kamelmh/opencode-config/tree/main/skills/cpp-pro
Command: npx skills add https://github.com/kamelmh/opencode-config --skill cpp-pro-kamelmh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you write, refactor, optimize, and debug modern C++ applications without losing correctness, maintainability, or performance, especially when the codebase involves templates, concurrency, memory management, or build complexity.

Core Features & Use Cases

  • Modern C++ Development: Use C++20 and C++23 features such as concepts, ranges, coroutines, constexpr improvements, and the spaceship operator.
  • Performance and Memory Work: Diagnose bottlenecks, apply zero-overhead abstractions, improve cache usage, reduce allocations, and reason about SIMD and move semantics.
  • Concurrency and Systems Programming: Build thread pools, atomic workflows, lock-free structures, and async patterns while keeping synchronization safe.
  • Build and Tooling Guidance: Configure CMake, sanitizers, testing, and static analysis for production-grade C++ workflows.
  • Example Use Case: A large legacy service can be modernized by replacing unsafe ownership patterns with RAII and smart pointers, tightening template constraints with concepts, and then validating the result with sanitizers and benchmarks.

Quick Start

Use the cpp-pro skill to review my C++ project and refactor it for modern C++20 safety, performance, and CMake-based build quality.

Frequently Asked Questions about cpp-pro

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

FAQPage Schema
How do I refactor legacy C++ code to use modern C++20 features like concepts and ranges?

Modernizing C++ codebases requires implementing C++20 and C++23 features like concepts, ranges, and coroutines while applying RAII and smart pointers for safe memory management. It also involves using CMake build workflows and sanitizers to validate warning-clean builds.

What's the best way to diagnose C++ performance bottlenecks and improve cache usage?

Diagnosing C++ performance bottlenecks requires analyzing cache usage, reducing allocations, and applying zero-overhead abstractions like move semantics and SIMD reasoning. This ensures performance optimizations maintain correctness and improve systems programming efficiency.

How do I build thread pools and lock-free structures with safe C++ concurrency?

Building thread pools and lock-free structures with safe C++ concurrency requires implementing atomic workflows and async patterns while maintaining strict synchronization. This approach prevents data races and ensures safe systems programming.

How do I configure CMake and sanitizers for production-grade C++ testing workflows?

Configuring CMake and sanitizers for production-grade C++ requires setting up static analysis and testing workflows to detect memory errors and enforce warning-clean builds. This validates code correctness and ensures safe memory management practices.

Does C++23 coroutine support work well with existing template metaprogramming?

C++23 coroutines integrate with template metaprogramming by enabling async workflows within constrained template structures using concepts. This combination ensures type safety and maintains zero-overhead abstractions in modern C++ application development.