cpp-pro
What it does
This agent helps write modern and efficient C++ code, following best practices. It focuses on advanced features like smart pointers and STL algorithms.
When to use it
- ✓Need to write C++ code following the latest practices.
- ✓Want to optimize the performance of your C++ code.
- ✓Need help with specific modern C++ features like smart pointers.
Skill link
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/cpp-pro/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Write a C++ function that uses smart pointers to manage the memory of a complex object and returns the result of an operation on it.”
5 new skills a week. 1 minute to read.
How it works
It analyzes your request, applies modern C++ best practices, and generates the C++ code, including configuration files and tests if needed.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
FAQ
What are 'smart pointers'?
They are pointers that automatically manage memory, preventing common leaks and errors.
What is 'STL'?
It's the C++ Standard Library, offering ready-to-use data structures and algorithms.
What does 'RAII' mean?
It's a C++ principle where resources (like memory) are automatically managed by object lifetimes, ensuring they are correctly released.
Details
Original description by the author
Write idiomatic C++ code with modern features, RAII, smart pointers, and STL algorithms. Handles templates, move semantics, and performance optimization.
Popularity
- GitHub stars
- 48k
- Ranking position
- #4276
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
00-andruia-consultant
48kHelps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
007
48kLets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
10-andruia-skill-smith
48kHelps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
20-andruia-niche-intelligence
48kLets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.