cpp-core-guidelines-review

Detect C++ Core Guidelines violations across source files with parallel section reviews.

31|6|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/openharmonyinsight/openharmony-skills --skill cpp-core-guidelines-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cpp-core-guidelines-review
Source: https://github.com/openharmonyinsight/openharmony-skills/tree/main/skills/cpp-core-guidelines-review
Command: npx skills add https://github.com/openharmonyinsight/openharmony-skills --skill cpp-core-guidelines-review

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you identify C++ Core Guidelines violations in your C++ codebase by running parallel reviews per guideline section and producing structured, section-specific findings.

Core Features & Use Cases

  • Parallel, section-based guideline auditing: Launches dedicated sub-agents to check each bundled C++ Core Guidelines section independently.
  • Review output is written to a dedicated review folder: Produces per-section markdown reports plus an aggregated Summary report.
  • Scope clarification before execution: Enforces that target files/directories and include patterns are unambiguous before starting the reviews.
  • Use Case: When preparing a large C++ change (multiple files, templates, core services), run this Skill to systematically catch guideline violations across Functions, Classes, Resource Management, Concurrency, Error Handling, etc., and consolidate results for engineering follow-up.

Quick Start

Use the cpp-core-guidelines-review skill to review the C++ files under src/ with extensions .cpp, .h, and .hpp while excluding third_party/.

Frequently Asked Questions about cpp-core-guidelines-review

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

FAQPage Schema
How do I check my C++ code for Core Guidelines violations across resource management and concurrency?

To check C++ code for Core Guidelines violations, this Skill runs parallel section-focused reviewers that audit resource management and concurrency safety independently, then aggregates findings into structured markdown reports within a review directory.

Can I exclude third_party directories when running a C++ Core Guidelines code review?

Yes, you can exclude directories like third_party during a C++ Core Guidelines code review by clarifying target file scopes and include patterns before execution, ensuring only specified source files are audited.

What is the best way to review a large C++ change for functions, classes, and error handling guideline compliance?

The best way to review a large C++ change for guideline compliance is to launch dedicated sub-agents in parallel that check bundled sections like functions, classes, and error handling, consolidating per-section findings for engineering follow-up.

Does C++ static analysis for Core Guidelines modify my reviewed source files?

No, C++ static analysis for Core Guidelines does not modify reviewed source files; it generates deterministic per-section markdown outputs and an aggregated Summary report in a dedicated review directory without altering the original codebase.

How do I audit C++ templates and core services for concurrency safety without missing section-specific rules?

To audit C++ templates and core services for concurrency safety, orchestrate multiple section-focused reviewers in parallel, ensuring constrained per-section review coverage across all relevant Core Guidelines bundles without missing specific rules.