R010
OfficialDetect part/subsystem mismatches in BUILD.gn
Software Engineering#code quality#consistency check#openharmony#configuration validation#build-gn#subsystem mapping#CI scanning
Authoropenharmonyinsight
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It prevents broken or inconsistent OpenHarmony module wiring by identifying when a BUILD.gn target declares a part_name that is not allowed under its subsystem_name.
Core Features & Use Cases
- BUILD.gn-only scanning: Reviews only files named BUILD.gn and focuses on targets that declare both part_name and subsystem_name.
- Subsystem-component mapping validation: Checks part_name against a merged subsystem→components mapping built from three upstream JSON configuration sources.
- Robust reporting for fast fixes: Produces issue reports with file path, line number, snippet, and a suggestion including valid part_name options for the detected subsystem.
- Network-safe behavior with guardrails: Uses local cache when available and emits explicit warnings when remote mapping retrieval fails and no cache exists, avoiding silent “0 issues” results.
Quick Start
Use the R010 skill to scan the target OpenHarmony repository folder for BUILD.gn files and report any part_name/subsystem_name mismatches based on the subsystem-component mapping.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: R010 Download link: https://github.com/openharmonyinsight/openharmony-skills/archive/main.zip#r010 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.