moai-lang-cpp

Enforce C++23 best practices with Google Test and clang-format.

4|1|Updated Nov 18, 2025
One-click install
npx skills add https://github.com/AJBcoding/claude-skill-eval --skill moai-lang-cpp-ajbcoding
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-lang-cpp
Source: https://github.com/AJBcoding/claude-skill-eval/tree/main/skills/moai-lang-cpp
Command: npx skills add https://github.com/AJBcoding/claude-skill-eval --skill moai-lang-cpp-ajbcoding

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

C++17/20/23 patterns, modern testing with Google Test, and contemporary tooling for enterprise code.

Core Features & Use Cases

  • ✅ Language patterns (templates, RAII, move semantics)
  • ✅ Testing with Google Test
  • ✅ Clang-Format and modern CMake workflows
  • ✅ Cross-platform C++ development

Quick Start

Generate a small C++17/23 module with a unit test using Google Test.

Frequently Asked Questions about moai-lang-cpp

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

FAQPage Schema
How do I enforce C++23 best practices in my codebase?

C++23 best practices enforcement identifies modern language patterns like templates, RAII, and move semantics across your codebase. This Skill integrates Google Test 1.15, clang-format 19, and CMake to validate code against current standards, catch anti-patterns, and maintain consistency in code-review and CI workflows.

Can I use Google Test with clang-format and CMake in a single workflow?

Yes. This Skill unifies Google Test 1.15 testing, clang-format 19 code formatting, and modern CMake into one integrated workflow. It enforces test-coverage thresholds, aligns tool versions, and ensures cross-platform C++ projects meet language-standard requirements without manual coordination.

What's the best way to migrate a C++ project to modern standards?

C++ migration targets incremental adoption of C++17, C++20, and C++23 patterns while maintaining test coverage and code style. This Skill identifies patterns needing updates, validates changes against Google Test suites, reformats code with clang-format, and integrates with CI checks to prevent regressions.

Does this work for cross-platform C++ development?

Yes. This Skill supports cross-platform C++ development by leveraging CMake for build portability, Google Test for consistent testing across platforms, and clang-format for uniform code style. It integrates with moai-foundation-langs and moai-foundation-trust for seamless multi-platform enforcement.

How do I set up test-coverage thresholds and CI checks for C++ projects?

This Skill configures Google Test 1.15 coverage thresholds, validates clang-format compliance, and embeds checks into CI pipelines. It enforces tool-version alignment and language-standard compliance, ensuring code-review workflows catch violations before merge and maintain enterprise-grade quality gates.