harmonyos-build
构建并校验 HarmonyOS、OpenHarmony 的 HAP 或 APP 产物。用于 Hvigor debug/release 构建、module/product 选择、SDK 与 Hvigor 发现、构建诊断、产物选择、SHA-256 和签名 Profile 事实检查。
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-buildSetup by platform
Install
One-click setup for your editorRun in your project root
npx @skills-hub-ai/cli install harmonyos-build --target claude-codeExamples
Prompt
我需要为项目构建一个调试版的HAP文件,模块为entry,产品为debug。Output
执行 harmonyos-build,指定项目根目录、artifact 类型为hap、mode为debug、product为debug、module为entry。系统将检测SDK和Hvigor,生成构建计划,运行Hvigor任务,验证产物存在和SHA-256,最后输出调试HAP包的路径和哈希信息。Prompt
请校验我刚刚生成的APP的签名和Profile信息,确保无误。Output
调用 harmonyos-build,设置artifact类型为app、mode为release、product为正式发布。系统会读取产物,验证其非空、正确的扩展名,计算SHA-256,并提取嵌入的Profile信息(如签名类型、distribution状态),确保签名事实正确,输出产物路径、哈希和Profile验证结果。Instructions
Security
Reviews (0)
Related skills
Browse all →More Build skills
Browse category →Frequently asked questions about harmonyos-build
What does the harmonyos-build skill do?
构建并校验 HarmonyOS、OpenHarmony 的 HAP 或 APP 产物。用于 Hvigor debug/release 构建、module/product 选择、SDK 与 Hvigor 发现、构建诊断、产物选择、SHA-256 和签名 Profile 事实检查。 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-build skill?
Run `npx @skills-hub-ai/cli install harmonyos-build` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/harmonyos-build/ 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-build work with?
harmonyos-build 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-build 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-build after installing it?
In Codex CLI, type `/harmonyos-build` (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-build 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.