lang-cpp-code-writing

Write, review, and refactor Modern C++11–17 code for embedded and Android NDK projects.

1|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/Binh230199/ai --skill lang-cpp-code-writing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lang-cpp-code-writing
Source: https://github.com/Binh230199/ai/tree/main/.github/skills/lang-cpp-code-writing
Command: npx skills add https://github.com/Binh230199/ai --skill lang-cpp-code-writing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you write, review, and refactor production C++ code for embedded and Android NDK environments with consistent modern best practices, reducing defects, ownership bugs, and design drift.

Core Features & Use Cases

  • Modern C++ Guidance: Applies C++11 to C++17 idioms such as RAII, smart pointers, move semantics, scoped enums, optional return types, and structured bindings.
  • Architectural Review: Evaluates class design, SOLID principles, namespace hygiene, dependency injection, and clean boundaries for maintainable code.
  • Documentation and Quality Gates: Promotes Doxygen coverage, thread-safety contracts, error-handling discipline, and a pre-commit checklist for release readiness.
  • Use Case: Use this Skill when implementing a new automotive sensor class, reviewing a Gerrit patch, or modernizing legacy C-style code in a Linux, QNX, or Android codebase.

Quick Start

Ask the assistant to write, review, or refactor your C++ class or module using the practices in this Skill.

Frequently Asked Questions about lang-cpp-code-writing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I refactor legacy C++ code to use RAII and smart pointers in embedded environments?

To refactor legacy C++ code with RAII and smart pointers in embedded environments, apply Modern C++11–17 idioms to enforce ownership rules. This process updates classes and modules to use scoped enums, move semantics, and optional return types for safer automotive Linux and QNX deployments.

What is the best way to enforce namespace hygiene and Doxygen documentation in C++ modules?

The best way to enforce namespace hygiene and Doxygen documentation in C++ modules is through architectural review and pre-commit discipline. Evaluating class design, thread-safety contracts, and dependency injection ensures clean boundaries and maintainable code.

Can I use modern C++11 to C++17 features for Android NDK and automotive QNX projects?

Yes, you can use modern C++11 to C++17 features for Android NDK and automotive QNX projects. This capability targets embedded and Android contexts, applying move semantics, error-handling discipline, and concurrency rules to reduce ownership bugs and design drift.

How do I review a C++ Gerrit patch for SOLID principles and thread-safety contracts?

To review a C++ Gerrit patch for SOLID principles and thread-safety contracts, evaluate class design and dependency injection using a pre-commit checklist. Enforcing error-handling discipline and architectural review verifies release readiness and maintainable code boundaries.

Does this C++ code review approach work for automotive Linux and Android NDK codebases?

Yes, this C++ code review approach works for automotive Linux and Android NDK codebases. It applies modern best practices, namespace hygiene, and smart-pointer use to write, review, and refactor production C++ code specifically tailored for embedded and Android contexts.