Cplusplus.instructions
# GitHub Copilot Instructions
These instructions define how GitHub Copilot should assist with this project. The goal is to ensure consistent, high-quality code generation aligned with our conventions, stack, and best practices.
## 🧠 Context
- **Project Type**: System Library / Game Engine / Cross-Platform App / CLI Tool
- **Language**: C++
- **Framework / Libraries**: STL / Boost / Qt / CMake / GoogleTest
- **Architecture**: Modular / Layered / ECS / RAII / OOP / Component-Based
## 🔧 General Guidelines
- Use modern C++ (C++17 or C++20 where supported).
- Prefer RAII for resource management.
- Favor smart pointers (`std::unique_ptr`, `std::shared_ptr`) over raw pointers.
- Use `const`, `constexpr`, and `noexcept` to express intent.
- Keep headers clean—avoid logic in header files.
- Use `clang-format` or `.editorconfig` for consistent formatting.
- Favor readability, modularity, and exception safety.
## 📁 File Structure
Use this structure as a guide when creating or updating files:when to use it
Community prompt sourced from the open-source GitHub repo Code-and-Sorts/awesome-copilot-agents (CC0-1.0). A "Cplusplus.instructions" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
roleplaycommunitygeneral
source
Code-and-Sorts/awesome-copilot-agents · CC0-1.0