cpp-conventions
Modern C++ coding conventions — naming, RAII, smart pointers, const correctness, and standard library usage
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Modern C++ coding conventions — naming, RAII, smart pointers, const correctness, and standard library usage
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Health check procedures D1–D14 for the Audit agent — structural validation, attention budget, version checks, workspace integrity, and static audit
Configure and manage Model Context Protocol servers for external tool access
Review a UI for accessibility — WCAG 2.1 AA compliance, semantic HTML, ARIA usage, keyboard navigation, focus management, colour contrast, and screen reader compatibility
Design or review a REST or GraphQL API — resource modeling, versioning strategy, error contract, OpenAPI/schema-first workflow, and security baseline
Generate a CHANGELOG.md entry from staged changes, a commit range, or a PR diff — following Keep a Changelog format with conventional commit classification
Set up and audit environment variable management — create .env.example, add startup validation, separate secrets from config, and document every variable
| name | cpp-conventions |
| description | Modern C++ coding conventions — naming, RAII, smart pointers, const correctness, and standard library usage |
| compatibility | >=1.4 |
Skill metadata: version "1.0"; license MIT; tags [cpp, c++, conventions, raii, smart-pointers]; recommended tools [codebase, editFiles].
Applies to: **/*.cpp, **/*.hpp, **/*.cc, **/*.hh, **/*.cxx, **/*.hxx, **/*.h
snake_case for functions and variables, PascalCase for types and classes, SCREAMING_SNAKE_CASE for macros.std::unique_ptr over raw new/delete. Use std::shared_ptr only when shared ownership is genuinely needed.std::make_unique and std::make_shared — never raw new except in factory patterns.explicit to prevent implicit conversions.const and constexpr by default. Remove const only when mutation is required.std::string_view over const std::string& for read-only string parameters.std::span over pointer+size pairs (C++20).std::optional for values that may be absent — not sentinel values or out-parameters.std::variant over union types for type-safe alternatives.[[nodiscard]] on functions whose return value must not be ignored.constexpr functions, inline variables, or templates instead.