Skip to main content
subagent GitHub Copilot official · GitHub

C++ Expert — GitHub Copilot subagent: what it does, how to install

Provides guidance on modern C++ following ISO standards and C++ Core Guidelines. It helps write clean architecture, refactor legacy code, and set up testing.

Install into GitHub Copilot · Manually: put the files in place All methods and platforms ↓
.github/agents/expert-cpp-software-engineer.agent.md
Open on GitHub

What C++ Expert does

This subagent configures the assistant to handle C++ systems and application code. It focuses on RAII and value semantics so you avoid manual memory allocations. When designing architecture, the agent promotes Clean Architecture and DDD principles, relying on bounded contexts and anti-corruption layers.

Working with legacy code relies on Michael Feathers' strategies. The agent suggests characterization tests and seams for safe refactoring steps. It also covers TDD workflows and build diagnostics like sanitizers. Tools in the configuration include codebase search, terminal commands, and test runners.

Install this subagent if you write modern C++ and want strict enforcement of memory safety guidelines. If you maintain plain C code without RAII, its advice will not fit.

What it helps with

  • Refactor legacy code safely using seams and characterization tests
  • Eliminate manual memory management in favor of RAII and value semantics
  • Configure build diagnostics, static analysis, and sanitizers in CI
  • Design domain boundaries using Clean Architecture and DDD principles

Example prompts for the agent

  • Review this class for memory leaks and refactor it with RAII
  • Add characterization tests to this legacy module before refactoring
  • Propose an interface to decouple these components using Clean Architecture

How to install C++ Expert

Manually: put the files in place

.github/agents/expert-cpp-software-engineer.agent.md

From the same set554

The whole set →
git-commit official github This skill reviews Git changes, stages related files, and creates Conventional Commits. Use it when you want an agent to make one commit or split work into separate commits. GitHub Copilot 47,165installs excalidraw-diagram-generator official github Turn a plain-language description into an Excalidraw diagram. Useful for mapping processes, system structure, and relationships between entities. GitHub Copilot 31,639installs multi-stage-dockerfile official github This skill guides GitHub Copilot in writing multi-stage Dockerfiles for different languages and frameworks. Use it when the final runtime image should contain fewer build dependencies. GitHub Copilot 29,688installs documentation-writer official github Skill that turns the agent into a technical writer following the Diátaxis framework: tutorials, how-to guides, reference, and explanation. Proposes structure before writing. GitHub Copilot 27,757installs prd official github Turns a feature idea into a structured PRD with user stories, technical requirements, and risks. Use it when planning a software feature or an AI-powered one. GitHub Copilot 24,035installs refactor official github This skill reshapes existing code without changing its external behavior. Use it for gradual cleanup of large functions, duplication, weak types, and code smells. GitHub Copilot 22,321installs java-springboot official github Gives GitHub Copilot Spring Boot development practices, from project layout to tests and security. Use it when writing or reviewing Java application code. GitHub Copilot 21,272installs create-readme official github This skill reviews a project and creates a structured README.md. Use it when the repository needs clear documentation based on its actual files and code. GitHub Copilot 19,081installs

Similar

dotnet-framework-4.8-expert VoltAgent Community Maintains and modernizes legacy enterprise apps on .NET Framework 4.8. It handles Web Forms, WCF services, and Windows integrations without breaking existing systems. Claude Code 187installs powershell-module-architect VoltAgent Community A subagent for designing and refactoring PowerShell modules, profiles, and automation libraries. Use it when code must work across PowerShell 5.1 and 7+. Claude Code 183installs elixir-expert VoltAgent Community Reviews an Elixir project and helps implement changes using OTP, Phoenix, and Ecto. Use it when you need to reason about process architecture, fault handling, or tests. Claude Code 167installs python-pro VoltAgent Community A subagent for type-safe Python code across web APIs, system utilities, and complex applications. Use it when async patterns and broad type coverage matter. Claude Code 11,689installs python-pro Seth Hobson A subagent for modern Python 3.12+ development, async code, testing, APIs, and performance work. Use it when a project needs deeper Python guidance. Claude Code CX Codex Cursor 11,689installs typescript-pro VoltAgent Community This subagent handles advanced TypeScript patterns, complex generics, and type safety across frontend and backend code. Use it for type-heavy project work. Claude Code 9,602installs typescript-pro Seth Hobson A subagent for advanced TypeScript types, strict checking, and architecture work. Use it when generics, inference, or decorators need careful design. Claude Code CX Codex Cursor 9,602installs javascript-pro VoltAgent Community This subagent reviews and changes JavaScript for browser and Node.js projects. Use it for work involving async code, performance, or modern language features. Claude Code 4,974installs

Questions about C++ Expert

How to install C++ Expert in GitHub Copilot?

Place the agent file in your project under .claude/agents/expert-cpp-software-engineer.md, .cursor/agents/expert-cpp-software-engineer.md, or .codex/agents/expert-cpp-software-engineer.md.

What does C++ Expert do?

It guides code generation toward modern ISO C++ standards, C++ Core Guidelines, and CERT C++. It prioritizes explicit ownership, clean architecture, and deterministic tests.

Which tools does the subagent support?

The agent uses tools like codebase, edit/editFiles, runTests, and microsoft.docs.mcp to inspect code and run checks.

Source text

expert-cpp-software-engineer.agent.md · MIT
---
description: 'Provide expert C++ software engineering guidance using modern C++ and industry best practices.'
name: 'C++ Expert'
tools: ['changes', 'codebase', 'edit/editFiles', 'extensions', 'web/fetch', 'findTestFiles', 'githubRepo', 'new', 'openSimpleBrowser', 'problems', 'runCommands', 'runNotebooks', 'runTasks', 'runTests', 'search', 'searchResults', 'terminalLastCommand', 'terminalSelection', 'testFailure', 'usages', 'vscodeAPI', 'microsoft.docs.mcp']
---
# Expert C++ software engineer mode instructions

You are in expert software engineer mode. Your task is to provide expert C++ software engineering guidance that prioritizes clarity, maintainability, and reliability, referring to current industry standards and best practices as they evolve rather than prescribing low-level details.

You will provide:

- insights, best practices, and recommendations for C++ as if you were Bjarne Stroustrup and Herb Sutter, with practical depth from Andrei Alexandrescu.
- general software engineering guidance and clean code practices, as if you were Robert C. Martin (Uncle Bob).
- DevOps and CI/CD best practices, as if you were Jez Humble.
- Testing and test automation best practices, as if you were Kent Beck (TDD/XP).
- Legacy code strategies, as if you were Michael Feathers.
- Architecture and domain modeling guidance using Clean Architecture and Domain-Driven Design (DDD) principles, as if you were Eric Evans and Vaughn Vernon: clear boundaries (entities, use cases, interfaces/adapters), ubiquitous language, bounded contexts, aggregates, and anti-corruption layers.

For C++-specific guidance, focus on the following areas (reference recognized standards like the ISO C++ Standard, C++ Core Guidelines, CERT C++, and the project’s conventions):

- **Standards and Context**: Align with current industry standards and adapt to the project’s domain and constraints.
- **Modern C++ and Ownership**: Prefer RAII and value semantics; make ownership and lifetimes explicit; avoid ad‑hoc manual memory management.
- **Error Handling and Contracts**: Apply a consistent policy (exceptions or suitable alternatives) with clear contracts and safety guarantees appropriate to the codebase.
- **Concurrency and Performance**: Use standard facilities; design for correctness first; measure before optimizing; optimize only with evidence.
- **Architecture and DDD**: Maintain clear boundaries; apply Clean Architecture/DDD where useful; favor composition and clear interfaces over inheritance-heavy designs.
- **Testing**: Use mainstream frameworks; write simple, fast, deterministic tests that document behavior; include characterization tests for legacy; focus on critical paths.
- **Legacy Code**: Apply Michael Feathers’ techniques—establish seams, add characterization tests, refactor safely in small steps, and consider a strangler‑fig approach; keep CI and feature toggles.
- **Build, Tooling, API/ABI, Portability**: Use modern build/CI tooling with strong diagnostics, static analysis, and sanitizers; keep public headers lean, hide implementation details, and consider portability/ABI needs.

© github · MIT · github/awesome-copilot

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