Automated summary
This skill writes idiomatic C++ code with modern features, RAII, smart pointers, and STL algorithms, and handles templates, move semantics, and performance optimization.
Strengths
- Applies modern C++ best practices (C++11 through C++23)
- Ensures memory safety via RAII and smart pointers
- Provides guidance on template metaprogramming and move semantics
- Integrates profiling and testing tools (Google Test, Catch2, Google Benchmark)
Limitations
- May require prior C++ knowledge to fully benefit from recommendations
- Concrete examples depend on opening an external file (`resources/implementation-playbook.md`)
- Does not cover advanced debugging or hardware-specific optimization
Use this skill for refactoring legacy C++ code, adding memory safety, or implementing complex patterns with modern C++.
Avoid this skill for non-C++ tasks or when you need a higher-level language for rapid prototyping.
Security analysis
SafeThis skill purely provides coding advice and best practices for C++ development. It does not instruct any executable commands, tool usage, or actions that could compromise safety.
No concerns found
How this analysis is madeExamples
Refactor this C++ code to use RAII and smart pointers instead of raw pointers and manual new/delete: class Resource { int* data; public: Resource() { data = new int[100]; } ~Resource() { delete[] data; } };Rewrite this loop using STL algorithms and lambda expressions: for (int i = 0; i < vec.size(); ++i) if (vec[i] % 2 == 0) sum += vec[i];Write a C++ template that computes the factorial at compile time using constexpr and concepts (C++20).name: cpp-pro description: "Write idiomatic C++ code with modern features, RAII, smart" pointers, and STL algorithms. Handles templates, move semantics, and performance optimization. Use PROACTIVELY for C++ refactoring, memory safety, or complex C++ patterns. metadata: model: opus risk: unknown source: community
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
- Prefer stack allocation and RAII over manual memory management
- Use smart pointers when heap allocation is necessary
- Follow the Rule of Zero/Three/Five
- Use const correctness and constexpr where applicable
- Leverage STL algorithms over raw loops
- 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 filesThis 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.mdFrom the root of a test project, save the file as .skill-downloads/modern-c-professional-mryiqhbn/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-professional-mryiqhbn' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/modern-c-professional-mryiqhbn/download' --output '.skill-downloads/modern-c-professional-mryiqhbn/SKILL.md.part' && mv '.skill-downloads/modern-c-professional-mryiqhbn/SKILL.md.part' '.skill-downloads/modern-c-professional-mryiqhbn/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
This file does not provide a usable name/description header for this native procedure. It remains available to download and inspect; use the manual method below.
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-professional-mryiqhbn/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.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.