R014: 测试HAP命名不规范
OfficialEnforce test HAP naming to prevent packaging failures.
Software Engineering#static analysis#test templates#naming convention#openharmony#build-gn#hap packaging
Authoropenharmonyinsight
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill detects when OpenHarmony test HAP names in BUILD.gn templates do not follow the required CamelCase convention, which can lead to mismatched artifacts and broken test packaging.
Core Features & Use Cases
- Validate test template naming rules: Checks naming for ohos_js_app_suite, ohos_js_app_static_suite, and ohos_moduletest_suite by verifying required prefixes/suffixes.
- Catch casing and format violations: Ensures correct capitalization (e.g., Acts…Test / Acts…StaticTest) and flags deviations.
- Generate precise repair guidance: Produces a clear suggestion indicating whether to edit hap_name or the target_name (and keeps the correct parts unchanged).
- Use Case: When reviewing a CI failure or preparing a test PR, run this rule to quickly identify which BUILD.gn templates have invalid HAP naming and how to fix them safely.
Quick Start
Ask the AI to run rule R014 against your BUILD.gn files to report non-compliant test HAP names and provide exact fix suggestions for each match.
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: R014: 测试HAP命名不规范 Download link: https://github.com/openharmonyinsight/openharmony-skills/archive/main.zip#r014-hap 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.