harmonyos-develop
实现、重构或诊断 HarmonyOS、OpenHarmony 与 ArkTS 应用功能和工程架构。用于 Ability 与生命周期、状态管理、服务层、权限、网络、存储、数据库、并发、后台任务、ArkWeb、跨进程或跨设备通信、错误恢复以及非纯视觉业务逻辑。
Signing
SignedSLSA L2- Signed by
- skills-hub.ai distributor
- Method
- Distributor-signed by skills-hub.aiCryptographically signed by the skills-hub.ai distributor key at publish time.
- Signed
Install this skill
Run this command in your terminal. No account required — it auto-detects your AI tool and installs the skill file.
npx @skills-hub-ai/cli install harmonyos-developSetup by platform
Install
One-click setup for your editorRun in your project root
npx @skills-hub-ai/cli install harmonyos-develop --target claude-codeExamples
Prompt
我需要在HarmonyOS应用中实现跨设备通信功能,确保在网络断连时能自动恢复。Output
已在项目中引入跨设备通信模块,封装网络状态检测与重试机制。实现了断线重连与状态同步,确保在网络恢复后自动恢复通信。验证包括网络断连模拟和重连测试,确认通信路径在断线后能正确恢复,符合失败恢复路径要求。相关代码已提交,等待后续设备验证。Prompt
请帮我重构OpenHarmony应用中的权限管理逻辑,确保权限请求符合最佳实践。Output
已重构权限管理模块,采用动态权限请求和权限状态监听,避免静态声明带来的权限滥用。实现了请求权限前的状态判断和用户引导,确保权限请求流程符合平台规范。静态契约和单元测试已覆盖权限请求场景,构建通过,验证权限请求在不同状态下的正确性。代码已交付,后续将进行设备端验证。Instructions
Security
Reviews (0)
Related skills
Browse all →More Build skills
Browse category →Frequently asked questions about harmonyos-develop
What does the harmonyos-develop skill do?
实现、重构或诊断 HarmonyOS、OpenHarmony 与 ArkTS 应用功能和工程架构。用于 Ability 与生命周期、状态管理、服务层、权限、网络、存储、数据库、并发、后台任务、ArkWeb、跨进程或跨设备通信、错误恢复以及非纯视觉业务逻辑。 It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the harmonyos-develop skill?
Run `npx @skills-hub-ai/cli install harmonyos-develop` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/harmonyos-develop/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does harmonyos-develop work with?
harmonyos-develop runs in Codex CLI. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the harmonyos-develop skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use harmonyos-develop after installing it?
In Codex CLI, type `/harmonyos-develop` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the harmonyos-develop skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.