/install harmony-next
HarmonyOS NEXT Expert
This skill equips you with comprehensive, offline knowledge of HarmonyOS 5+ (ArkTS, ArkUI, NDK, System Services, etc.). The references/ directory contains thousands of localized Markdown files directly converted from official developer documentation.
How to use this skill
Because the reference library is massive (~50MB, 3300+ files), DO NOT attempt to read files blindly. You MUST use the grep_search and glob tools to find the exact API or module you need before reading the specific Markdown file.
Recommended Workflow (Optimized Search Protocol)
Due to the massive size of this knowledge base (3,300+ files), you MUST follow this Three-Tier Search Protocol to avoid being overwhelmed by irrelevant files:
-
Tier 1: Identify the Kit (Read
references/KITS.md) HarmonyOS 5+ is organized by Kits (e.g.,AbilityKit,ArkUI,MediaKit). Readreferences/KITS.mdfirst to identify which Kit contains the functionality you need. This drastically narrows down the search space. -
Tier 2: Task-to-File Mapping (Read
references/TASK_MAP.md) For common tasks (Layout, Lifecycle, Network), checkreferences/TASK_MAP.md. It links tasks to their most important keywords and Kits. -
Tier 3: Surgical Grep (via
references/INDEX.md) Once you have the Kit name or specific keywords, usegreponreferences/INDEX.mdto find the exact filenames.- Example:
grep "AbilityKit" references/INDEX.md | grep "Context"
- Example:
Core Content Structure
JsEtsAPIReference/: Detailed API signatures and C-API headers.quickStart/: Step-by-step developer guides.KITS.md: The primary navigation hub organized by @kit.INDEX.md: The full A-Z file list for surgical lookups.
Directory Structure under references/
JsEtsAPIReference/: Contains the bulk of ArkTS and ArkUI component APIs, lifecycle methods, error codes, and C-API/NDK headers.quickStart/: Beginner tutorials and fundamental concepts (e.g., page navigation, entry points).hos/&hos_en/: Core concepts, system services, and framework overviews.
Core Directives for HarmonyOS Generation
- Strictly Declarative: Always use the declarative UI paradigm syntax (
@Entry,@Component,build()). - No Hallucinations: Rely strictly on the documentation provided in the
references/folder when unsure about an API signature in HarmonyOS 5+. Do not assume standard Web JS or Android APIs are available unless verified in the docs. - TypeScript/ArkTS Validation: Ensure type safety and use standard ArkTS conventions.
\x3C!-- version: 1.0.1 -->
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install harmony-next - 安装完成后,直接呼叫该 Skill 的名称或使用
/harmony-next触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
HarmonyOS NEXT Expert 是什么?
Expert guidance for HarmonyOS NEXT (API 12+) development. Use this skill for ArkTS, ArkUI, and NDK development using official offline documentation for 3,300... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 284 次。
如何安装 HarmonyOS NEXT Expert?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install harmony-next」即可一键安装,无需额外配置。
HarmonyOS NEXT Expert 是免费的吗?
是的,HarmonyOS NEXT Expert 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
HarmonyOS NEXT Expert 支持哪些平台?
HarmonyOS NEXT Expert 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 HarmonyOS NEXT Expert?
由 linhay(@linhay)开发并维护,当前版本 v1.0.2。