Skip to main content
subagent Claude Code CX Codex Cursor

cpp-pro · wshobson — Claude Code subagent: what it does, how to install

Writes modern C++ from C++11 to C++23 using RAII, smart pointers, and STL algorithms. Helps with C++ refactoring and template design.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add wshobson/agents
/plugin install systems-programming@claude-code-workflows
Open on GitHub

What cpp-pro does

This subagent specializes in modern C++ across C++11, C++14, C++17, C++20, and C++23 standards. It follows C++ Core Guidelines, choosing stack allocation and RAII over manual heap tracking. Smart pointers like std::unique_ptr and std::shared_ptr replace raw pointers, and raw loops are converted into STL algorithms.

The agent generates source code, CMakeLists.txt files, headers with #pragma once or include guards, unit tests with Google Test or Catch2, and benchmarks using Google Benchmark. Code is designed to run cleanly under AddressSanitizer and ThreadSanitizer. The subagent uses the Opus model in its configuration.

Install this if your project requires refactoring old C++ code or handling concurrency with std::thread and atomics. For simple scripting tasks, it adds unnecessary overhead.

What it helps with

  • refactor raw memory management to RAII and smart pointers
  • generate CMakeLists.txt configured for specific C++ standards
  • create unit tests using Catch2 or Google Test
  • clean up concurrency code to pass ThreadSanitizer checks
  • replace manual loops with STL algorithms

Example prompts for the agent

  • Refactor this buffer class using RAII and Rule of Five
  • Generate a CMakeLists.txt for C++20 with Catch2 tests
  • Review this template code for move semantics and perfect forwarding

How to install cpp-pro

1Plugin marketplace

/plugin marketplace add wshobson/agents
/plugin install systems-programming@claude-code-workflows

2Manually: put the files in place

.claude/agents/cpp-pro.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

From the same set213

The whole set →
typescript-advanced-types Seth Hobson Guides an agent through advanced TypeScript types, from generics to conditional and mapped types. Use it for typed libraries, API clients, or strict configuration objects. Claude Code CX Codex Cursor 92,169installs tailwind-design-system Seth Hobson Helps build design systems with Tailwind CSS v4, from theme tokens to component variants. Use it when a project needs shared UI patterns. Claude Code CX Codex Cursor 70,180installs brand-landingpage Travis D. Elliott This skill interviews you about the product and its visual direction, then builds a landing page through Stitch. Use it when there’s no established design yet. Claude Code CX Codex Cursor 39,476installs python-testing-patterns Seth Hobson This skill guides Python testing with pytest, fixtures and mocks. Use it when building a test suite or tracking down failing checks. Claude Code CX Codex Cursor 36,943installs python-performance-optimization Seth Hobson This skill profiles Python code to locate CPU and memory bottlenecks. Use it when an application responds slowly or consumes too many resources. Claude Code CX Codex Cursor 35,675installs nextjs-app-router-patterns Seth Hobson This skill covers Next.js App Router patterns for rendering, routing, and data fetching. Use it when starting an App Router project or moving from Pages Router. Claude Code CX Codex Cursor 32,529installs api-design-principles Seth Hobson Use this skill to plan or review REST and GraphQL APIs. It helps when writing a specification or setting API conventions for a team. Claude Code CX Codex Cursor 30,348installs code-review-excellence Seth Hobson This skill guides pull request reviews, catches logic and security issues, and helps teams give specific feedback. Use it for review standards or developer mentoring. Claude Code CX Codex Cursor 30,193installs

Other versions of cpp-pro

Similar

Questions about cpp-pro

How to install cpp-pro in Claude Code?

Run /plugin marketplace add wshobson/agents or place .claude/agents/cpp-pro.md in your project. You can also run /plugin install systems-programming@claude-code-workflows.

What does cpp-pro do?

It produces idiomatic C++ code, writes CMakeLists.txt build files, adds unit tests, and applies C++ Core Guidelines.

Which test frameworks and tools does cpp-pro support?

It generates unit tests for Google Test or Catch2, benchmarks for Google Benchmark, and targets clean AddressSanitizer and ThreadSanitizer runs.

Source text

cpp-pro.md · MIT
---
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.
model: opus
---

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

1. Prefer stack allocation and RAII over manual memory management
2. Use smart pointers when heap allocation is necessary
3. Follow the Rule of Zero/Three/Five
4. Use const correctness and constexpr where applicable
5. Leverage STL algorithms over raw loops
6. 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.

© Seth Hobson · MIT · wshobson/agents

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor