arkts-development
✓使用 ArkUI 聲明式 UI 框架開發 HarmonyOS ArkTS 應用程式。在建立 HarmonyOS/OpenHarmony 應用程式、建立 ArkUI 元件、使用裝飾器(@State、@Prop、@Link)實現狀態管理、從 TypeScript 遷移到 ArkTS 或使用 HarmonyOS 特定的 API(路由器、http、首選項)時使用。涵蓋元件生命週期、佈局模式和 ArkTS 語言約束。
SKILL.md
Build HarmonyOS applications using ArkTS and the ArkUI declarative UI framework.
| @State | @State count: number = 0 | Component internal state | | @Prop | @Prop title: string | Parent → Child (one-way) | | @Link | @Link value: number | Parent ↔ Child (two-way, use $varName) | | @Provide/@Consume | Cross-level | Ancestor → Descendant | | @Observed/@ObjectLink | Nested objects | Deep object observation |
| @ComponentV2 | @ComponentV2 struct MyComp | Enable V2 state management | | @Local | @Local count: number = 0 | Internal state (no external init) | | @Param | @Param title: string = "" | Parent → Child (one-way, efficient) | | @Event | @Event onChange: () => void | Child → Parent (callback) | | @ObservedV2 | @ObservedV2 class Data | Class observation |
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/fadinglight9291117/arkts_skills --skill arkts-development- 分類
- *創意媒體
- 認證
- ✓
- 收錄時間
- 2026-02-11
- 更新時間
- 2026-02-18
快速解答
什麼是 arkts-development?
使用 ArkUI 聲明式 UI 框架開發 HarmonyOS ArkTS 應用程式。在建立 HarmonyOS/OpenHarmony 應用程式、建立 ArkUI 元件、使用裝飾器(@State、@Prop、@Link)實現狀態管理、從 TypeScript 遷移到 ArkTS 或使用 HarmonyOS 特定的 API(路由器、http、首選項)時使用。涵蓋元件生命週期、佈局模式和 ArkTS 語言約束。 來源:fadinglight9291117/arkts_skills。
如何安裝 arkts-development?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/fadinglight9291117/arkts_skills --skill arkts-development 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/fadinglight9291117/arkts_skills