HarmonyOS Agent Skills Open-Sourced: AI-Powered Development Efficiency Boost
HarmonyOS has open-sourced its first batch of Agent Skills on GitCode, providing AI-assisted coding support for ArkTS syntax checking, ArkUI development, multi-device adaptation, and application stability diagnosis, with demonstrated efficiency gains in foldable device adaptation and freeze analysis.
HarmonyOS recently open-sourced the HarmonyOS_Skills repository on GitCode, releasing the first batch of HarmonyOS Agent Skills designed to assist AI in generating high-quality code across key HarmonyOS development workflows.
Four Core Skill Categories
ArkTS Knowledge Retrieval, Syntax Checking & Fixing: Retrieves ArkTS language guide documents for syntax reference during development, review, and debugging; automatically checks and fixes ArkTS syntax errors in HarmonyOS projects and automates project builds.
ArkUI Development Skills: Provides precise retrieval from a local knowledge base, fetches APIs, completes coding and verification, assists in generating HarmonyOS UI pages and component code, and offers UI specification checks and optimization suggestions to accelerate interface development.
Multi-Device Adaptation Development: Targets HarmonyOS multi-terminal characteristics, delivering cross-device adaptation code generation and checking capabilities to simplify multi-end adaptation coding work.
Application Quality Assurance: Focuses on application stability issues, covering crashes, freezes, and memory leaks with full-process intelligent diagnosis to help developers efficiently locate and fix faults.
The article highlights multi-device adaptation and application stability as two critical areas that directly impact user experience consistency and stability.
Multi-Device Adaptation Skills: Layered Architecture & Intelligent Routing
HarmonyOS implements a layered architecture for multi-device adaptation skills, relying on a unified intelligent routing entry point combined with standardized sub-skill designs for specific scenarios. Developers describe requirements in natural language, and the system automatically decomposes the development scenario and generates standardized adaptation code, solving challenges such as multi-device avoidance, folding/unfolding, interaction, rotation, screen/window adaptation, and hardware invocation — achieving "precise multi-device adaptation" from usable to user-friendly.
Real-world test comparison: When prompted "This project currently only adapts to slab phones; now please adapt to dual-fold and tri-fold devices," the general large model without skills failed to correctly generate UI layouts for dual-fold and multi-fold screens. With the multi-device skills enabled, the system quickly identified the developer's intent and automatically completed adaptation of screen sizes, window layouts, and interaction logic.
Repository path:
03-solutions/HMOS-technologies/multi-device/Application Stability Skills: One-Click Diagnosis, Precise Location, Rapid Fix
Traditional manual log analysis for frequent stability issues (crashes, freezes, memory leaks) is inefficient, while general large models lack HarmonyOS-specific stability domain knowledge, making precise fault localization and actionable optimization difficult.
The quality assurance skills address this gap. Taking freeze diagnosis as an example, the skill supports uploading fault logs ( faultlog) and stack sampling files, or triggering AI diagnosis via natural language interaction (e.g., "analyze freeze cause"). The system automatically reconstructs the fault evidence chain, precisely pinpoints the abnormal module and exact code lines, and generates a structured report containing root cause analysis and optimization recommendations. Combined with the AI development assistant, developers achieve an efficient closed loop from "diagnosis" to "fix," reducing investigation cycles from hours to minutes.
Repository path:
03-solutions/quality/stabilityAccess & Usage
Developers can log in to the GitCode website and search for HarmonyOS_Skills/harmonyos-agent-skills to obtain the skills and improve HarmonyOS application development efficiency.
HarmonyOS Agent Skills repository:
https://gitcode.com/HarmonyOS_Skills/harmonyos-agent-skills/Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
HarmonyOS Developer Technology
HarmonyOS developers provide key technology analysis, version updates, Codelabs practice, and event information for HarmonyOS. Welcome developers to join the HarmonyOS ecosystem and create infinite possibilities together!
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
