{"skill":{"slug":"harmony-next","displayName":"HarmonyOS NEXT Expert","summary":"Expert guidance for HarmonyOS NEXT (API 12+) development. Use this skill for ArkTS, ArkUI, and NDK development using official offline documentation for 3,300...","description":"---\nname: harmony-next\ndescription: Expert guidance for HarmonyOS NEXT (API 12+) development. Use this skill for ArkTS, ArkUI, and NDK development using official offline documentation for 3,300+ APIs and components.\n---\n\n# HarmonyOS NEXT Expert\n\nThis 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.\n\n## How to use this skill\n\nBecause 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.\n\n### Recommended Workflow (Optimized Search Protocol)\n\nDue 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:\n\n1. **Tier 1: Identify the Kit (Read `references/KITS.md`)**\n   HarmonyOS 5+ is organized by Kits (e.g., `AbilityKit`, `ArkUI`, `MediaKit`). Read `references/KITS.md` first to identify which Kit contains the functionality you need. This drastically narrows down the search space.\n\n2. **Tier 2: Task-to-File Mapping (Read `references/TASK_MAP.md`)**\n   For common tasks (Layout, Lifecycle, Network), check `references/TASK_MAP.md`. It links tasks to their most important keywords and Kits.\n\n3. **Tier 3: Surgical Grep (via `references/INDEX.md`)**\n   Once you have the Kit name or specific keywords, use `grep` on `references/INDEX.md` to find the exact filenames.\n   - *Example*: `grep \"AbilityKit\" references/INDEX.md | grep \"Context\"`\n\n### Core Content Structure\n\n- `JsEtsAPIReference/`: Detailed API signatures and C-API headers.\n- `quickStart/`: Step-by-step developer guides.\n- `KITS.md`: The primary navigation hub organized by @kit.\n- `INDEX.md`: The full A-Z file list for surgical lookups.\n\n### Directory Structure under `references/`\n\n- `JsEtsAPIReference/` : Contains the bulk of ArkTS and ArkUI component APIs, lifecycle methods, error codes, and C-API/NDK headers.\n- `quickStart/` : Beginner tutorials and fundamental concepts (e.g., page navigation, entry points).\n- `hos/` & `hos_en/` : Core concepts, system services, and framework overviews.\n\n## Core Directives for HarmonyOS Generation\n\n1. **Strictly Declarative**: Always use the declarative UI paradigm syntax (`@Entry`, `@Component`, `build()`).\n2. **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.\n3. **TypeScript/ArkTS Validation**: Ensure type safety and use standard ArkTS conventions.\n\\n<!-- version: 1.0.1 -->\n","topics":["Documentation"],"tags":{"latest":"1.0.2"},"stats":{"comments":0,"downloads":634,"installsAllTime":24,"installsCurrent":2,"stars":0,"versions":2},"createdAt":1773370688741,"updatedAt":1778491872769},"latestVersion":{"version":"1.0.2","createdAt":1773370904738,"changelog":"Ship compact retrieval bundle (SKILL + KITS + TASK_MAP + INDEX) to fit ClawHub size limit","license":"MIT-0"},"metadata":null,"owner":{"handle":"linhay","userId":"s179err7cnqx79j4p0qn81kpcd885315","displayName":"linhay","image":"https://avatars.githubusercontent.com/u/15262434?v=4"},"moderation":null}