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