Preface¶
HarmonyOS versions iterate rapidly, and information regarding API deprecation, Kit boundaries, and compilation self-check rules is often scattered across documentation and community posts. When asking models to write ArkTS / ArkUI code in Cursor or Claude Code, you are prone to stepping on deprecated interfaces or missing constraints related to app listing and modularization. The following introduces the “HarmonyOS Code Workshop” on SkillHub—a coding Skill designed for HarmonyOS 7 (API 26) that integrates a knowledge base and inspection capabilities into the Agent’s Skill system, eliminating the need to craft prompts from scratch every time.
What is this¶
The “HarmonyOS Code Workshop” is a dev-programming category Skill sourced from the SkillHub community (community), with the coordinate @user_8c9419f3/harmonyos-code-workshop, currently at version 6.2.0. The official page is published by Harmony-Lee, tagged with requires_api_key=false, meaning no additional API Key is needed after installation.
In one sentence: It is a full-process coding assistant for HarmonyOS 7 (API 26) featuring a built-in expert-level knowledge base of 9,700+ lines, focusing on ArkTS + ArkUI native HarmonyOS code generation and engineering constraints.
- SkillHub Page: https://www.skillhub.cn/skills/user_8c9419f3/harmonyos-code-workshop
- API Address: https://api.skillhub.cn/user_8c9419f3/harmonyos-code-workshop
Core Features¶
The following capabilities are derived from the official SkillHub introduction, summarized by module, and do not exceed publicly disclosed descriptions.
Quality and Self-Inspection¶
- Deprecated API Auto-detection: Covers a comparison of 51+ groups of deprecated APIs.
- 5-Dimension Compile Self-check: Performs compilation-oriented self-inspection from multiple dimensions after generating or modifying code (specific dimensions are defined within the Skill’s knowledge base).
- 5 Self-Evolution Mechanisms: Iteration and error-correction mechanisms declared by the Skill (details are in the SKILL body and knowledge base).
- 50 Self-test Questions: Used to verify if the Agent answers according to HarmonyOS specifications.
Templates and Quick Reference¶
- 40 Code Templates: Starting skeletons for common pages and capability integrations.
- 76 Kit Quick References: Rapidly align Kit APIs and usage boundaries.
In-depth Practice (Kits and Engineering)¶
- In-depth coverage of six major Kits: MediaKit, NetworkKit, SensorKit, NotificationKit, WebView, BackgroundTaskKit.
- 15 Domain-specific Practical Cases.
- Data Persistence Trio, HSP Modular Architecture, CI/CD Listing Full Process, Agent DSL Pitfall Guide.
HarmonyOS 7 New Capabilities (Knowledge Base Coverage)¶
Topics such as Agent Architecture, 3DGS On-device Reconstruction, Tap-to-Connect (NearLink), Spatial Audio, Interactive Cards, and Star Shield Security are listed as “New Capabilities” directions in the introduction. It is suitable to name these keywords to the Agent when corresponding requirements arise.
Installation and Activation¶
The installation process follows the official SkillHub instructions: First, ensure the skillhub CLI is available, then install the Skill into the skills directory actually read by the current Agent (the Agent will not load it if installed in the wrong directory).
1. Check or Install SkillHub CLI¶
command -v skillhub && skillhub --version
If not installed, you can use the official one-click script (full installation includes default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
CLI only:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
For more complete priority sources and directory instructions, see: https://skillhub.cn/install/skillhub.md
2. Install this Skill¶
The installation prompt provided on the official page is: According to the installation documentation mentioned above, install the coordinate @user_8c9419f3/harmonyos-code-workshop.
Example in the terminal (replace <skills directory> with your current client’s path):
skillhub install user_8c9419f3/harmonyos-code-workshop --dir <skills directory>
Common directories (from SkillHub installation documentation):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
After installation, restart or reload the Agent according to your client’s requirements to enable the Skill.
3. Alternative Method without CLI¶
The SkillHub page also supports sending the following sentence to an AI that supports Skills, allowing it to complete the installation according to the documentation:
Please install @user_8c9419f3/harmonyos-code-workshop based on https://skillhub.cn/install/skillhub.md.
Typical Usage¶
The official source does not provide a separate “copy-and-use” business code repository example. Typical usage is to initiate tasks with clear goals + API level + Kit names within an Agent session where the Skill is enabled. The following types of expressions align with the Skill’s self-described capabilities for easy reproduction:
-
New Page / Component
Specify HarmonyOS 7, API 26, require ArkUI declarative syntax, and explicitly request “5-dimension compile self-check” and “deprecated API detection”. -
Kit Capability Integration
For example: “Use NetworkKit to implement an HTTPS request with certificate validation, and complete error handling by referencing the NetworkKit in-depth chapter in the Skill.” -
Engineering and Listing
For example: “Split feature modules according to HSP modularization, and list the configuration items that need to be changed in the CI/CD listing process.” -
HarmonyOS 7 New Features
For example: “Implement interactive cards or spatial audio capabilities, constrained to using only interfaces from the API 26 documentation.”
Through the above steps, the Agent will read the 9,700+ lines of knowledge base and templates within the Skill, rather than relying solely on the model’s general HarmonyOS memory.
Applicable Scenarios and Notes¶
Who is it for
- Native application developers focusing on HarmonyOS 7 (API 26) and ArkTS + ArkUI.
- Teams that need to systematically avoid deprecated APIs and align Kit usage and listing processes during AI-assisted coding.
- Developers already working in clients that support Skill directories (like Cursor, Claude Code, Codex) and are willing to manage Skills using SkillHub.
Usage Notes
- Version is subject to SkillHub (currently 6.2.0); capability descriptions may change after upgrading. Check the introduction on the page before installation.
skillhub installmust use--dirto point to the current Agent’s skills directory; otherwise, it defaults to./skills/and may not be recognized.- This Skill does not require an API Key; generated code must still be compiled and verified locally in DevEco Studio / on a real device or emulator. The Skill cannot replace the official SDK and signing environment.
- Community-sourced Skill: For critical business logic and security-related implementations, it is recommended to double-check against Huawei’s official documentation.
Platform Data (Fetched by SkillHub, for selection reference)
- Category: dev-programming
- Rating: 100000; Downloads: 4805 (Page statistics update over time; refer to SkillHub’s real-time display).
Conclusion¶
The “HarmonyOS Code Workshop” consolidates the HarmonyOS 7 knowledge base, deprecated API detection, compilation-oriented self-checks, Kit practicals, and listing processes into a single Skill, making it suitable as a fixed context for daily ArkTS development. If you intend to do long-term API 26 native development within an Agent, you can install @user_8c9419f3/harmonyos-code-workshop from the official page:
https://www.skillhub.cn/skills/user_8c9419f3/harmonyos-code-workshop