openharmony-cpp
OfficialHarden and standardize OpenHarmony C++ code.
Software Engineering#code review#coding conventions#secure coding#c++#memory safety#OpenHarmony#header guards
Authoropenharmonyinsight
Version1.0.0
Installs0
System Documentation
What problem does it solve?
OpenHarmony C++ projects often suffer from inconsistent style, fragile headers, and avoidable security bugs when code is written without strict project conventions.
Core Features & Use Cases
- Strict OpenHarmony C++ conventions: Enforces naming/formatting rules such as K&R braces, file/class alignment, and global/member variable prefixes.
- Safe header management: Requires conventional include guards and discourages
#pragma once, forward-declaration hiding, and header pollution. - Critical security requirements: Mandates input validation, integer safety rules, and memory-safety practices like nulling pointers after deletion.
- Class/function design quality: Guides modern C++ usage (e.g.,
explicit,nullptr,override), constructor/destructor rules, and reasonable function size/parameter limits. - Use case: When introducing a new OpenHarmony module or refactoring legacy code, this skill helps ensure the implementation matches platform expectations and reduces security review risk.
Quick Start
Ask the AI to review your OpenHarmony C++ header and source files against naming, header-guard, include, and secure-coding requirements, and report every violation found.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: openharmony-cpp Download link: https://github.com/openharmonyinsight/openharmony-skills/archive/main.zip#openharmony-cpp Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.