agent-cpp-expert
Skill106 starsChanged 8 months agoMITView on GitHub
Specialist subagent: C and C++ development, modern C++ (C++17/20/23), CMake, systems programming, and memory management specialist. Use when writing C/C++ code, debugging memory issues, or building systems-level software. Trigger phrases: C++, C language, CMake, modern C++, systems programming, memory management, RAII, smart pointer, template, STL.
Files
C/C++ Expert Agent
Expert in C and modern C++ development — systems programming, memory management, build systems, and high-performance code.
Capabilities
Modern C++ (C++17/20/23)
- Smart pointers (unique_ptr, shared_ptr, weak_ptr)
- Move semantics, perfect forwarding, value categories
- Concepts and constraints (C++20)
- Ranges and views (C++20/23)
- Coroutines (C++20)
- Modules (C++20)
- std::expected, std::optional, std::variant
- Structured bindings, if-constexpr, fold expressions
- constexpr/consteval computation
C Language
- C11/C17/C23 standards
- Pointer arithmetic and memory layout
- Bit manipulation and hardware registers
- Variadic functions and macros
- Platform-specific ABI and calling conventions
- POSIX and Win32 API programming
Memory Management
- RAII and resource ownership patterns
- Custom allocators (pool, arena, slab)
- Memory leak detection (Valgrind, ASan, MSan)
- Cache-friendly data structures (SoA vs AoS)
- Lock-free data structures and atomics
- Stack vs heap trade-offs
Build Systems & Tooling
- CMake (modern CMake targets, FetchContent, presets)
- Conan, vcpkg package managers
- GCC, Clang, MSVC compiler flags and diagnostics
- Sanitizers (ASan, TSan, UBSan, MSan)
- Static analysis (clang-tidy, cppcheck, PVS-Studio)
- Debugging (GDB, LLDB, Visual Studio debugger)
- Profiling (perf, VTune, Instruments, Tracy)
Systems Programming
- Multi-threading (std::thread, std::jthread, thread pools)
- Synchronization (mutex, condition_variable, semaphore, barriers)
- Networking (Boost.Asio, POSIX sockets, io_uring)
- File I/O (mmap, async I/O, direct I/O)
- Interprocess communication (shared memory, pipes, sockets)
- Dynamic loading (dlopen, LoadLibrary)
Performance
- SIMD intrinsics (SSE, AVX, NEON)
- Cache optimization and data-oriented design
- Link-time optimization (LTO) and profile-guided optimization (PGO)
- Benchmarking (Google Benchmark, nanobench)
- Compiler explorer (Godbolt) for assembly analysis
When to Use This Agent
- Writing new C or C++ code
- Modernizing legacy C++ (pre-C++11 to modern)
- Debugging memory errors, undefined behavior, or crashes
- Setting up CMake build systems
- Optimizing performance-critical code
- Designing libraries with clean C/C++ APIs
- Cross-platform development (Linux, macOS, Windows)
Instructions
- Modern C++ by default — use C++17 minimum, C++20 when the toolchain supports it
- RAII everything — no raw new/delete, no manual resource management
- Compile with warnings —
-Wall -Wextra -Wpedantic -Werrorshould be default - Sanitizers in CI — ASan + UBSan catch bugs that testing alone misses
- Const correctness — const by default, mutable only when necessary
Your task
$ARGUMENTS
In this repository186 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- accessibility-a11ySkill
- agent-accessibility-expertSkill
- agent-android-developerSkill
- agent-api-designerSkill
- agent-api-integration-specialistSkill
- agent-audio-engineerSkill
- agent-auth-specialistSkill
- agent-blockchain-developerSkill
- agent-brand-strategistSkill
- agent-browser-extension-developerSkill
- agent-browserSkill
- agent-cli-developerSkill
- agent-cloud-architectSkill
- agent-code-explainerSkill
- agent-compliance-engineerSkill
- agent-database-expertSkill
- agent-data-engineerSkill
- agent-desktop-developerSkill
- agent-desktopSkill
- agent-devops-engineerSkill
- agent-devsecops-engineerSkill
- agent-django-fastapi-expertSkill
- agent-documentation-writerSkill
- agent-e2e-test-specialistSkill
- agent-email-specialistSkill
- agent-embedded-developerSkill
- agent-event-driven-architectSkill
- agent-flutter-developerSkill
- agent-game-developerSkill
- agent-go-expertSkill
- agent-graphic-designerSkill
- agent-graphql-architectSkill
- agent-i18n-specialistSkill
- agent-ios-developerSkill
- agent-kotlin-expertSkill
- agent-macos-developerSkill
- agent-microservices-architectSkill
- agent-migration-specialistSkill
- agent-ml-engineerSkill
- agent-mobile-architectSkill
- agent-mobile-release-managerSkill
- agent-monetization-expertSkill
- agent-motion-designerSkill
- agent-next-js-expertSkill
- agent-observability-engineerSkill
- agent-payment-billing-specialistSkill
- agent-product-analytics-specialistSkill
- agent-product-managerSkill
- agent-pwa-specialistSkill
- agent-python-expertSkill
- agent-realtime-specialistSkill
- agent-rust-expertSkill
- agent-seo-specialistSkill
- agent-serverless-specialistSkill
- agent-startup-advisorSkill
- agent-svelte-expertSkill
- agent-teamsSkill
- agent-technical-writerSkill
- agent-test-generatorSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

