Skip to content
fadinglight9291117 avatar

Harmonyos Build Deploy

Build, clean, package, and install HarmonyOS apps via hvigorw, ohpm, and hdc with workflow confirmation.

CCM score
54 of 100
skills.sh installs
271
GitHub stars
7
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers clean builds, incremental and single-module builds, ohpm dependency installs, and hdc device deployment workflows
  • Includes build commands for HAP, HSP, HAR, and APP packaging, plus module discovery and output layout guidance
  • Requires confirming the chosen operation with the user before any build or device installation runs
  • Designed for developers troubleshooting installation errors such as "version code not same" on HarmonyOS devices

Install

$ npx -y skills add fadinglight9291117/arkts_skills --skill harmonyos-build-deploy -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

HarmonyOS Build & Deploy

Complete workflow for building, cleaning, packaging, and installing HarmonyOS applications.

First Step: Confirm Operation with User

IMPORTANT: Before executing any build or deploy operation, confirm which specific operation(s) the user wants to perform. Ask the user to choose from:

OperationDescription
Clean build artifactsRemove previous build cache and outputs
Install dependenciesUse ohpm to install project dependencies
Build projectUse hvigorw to build HAP/APP packages
Install to deviceUse hdc to install the app on a device
Full pipelineClean → install deps → build → deploy to device

Why confirm first:

  • Different scenarios require different operations (e.g., incremental build vs clean build)
  • Avoid unnecessary time-consuming operations
  • Give user control over the workflow
  • Prevent accidental device installation

After user responds:

  • Execute only the selected operations
  • Report progress and results clearly

Quick Reference

# Build complete app (incremental)
hvigorw assembleApp --mode project -p product=default -p buildMode=release --no-daemon

Details

Repository
github.com/fadinglight9291117/arkts_skills
Categories
Mobile Apps, DevOps & Cloud
First seen
Jun 3, 2026

Questions

What does the harmonyos-build-deploy skill do?

harmonyos-build-deploy guides an agent through building, cleaning, packaging and installing HarmonyOS applications. It covers hvigorw builds, ohpm dependency installs, packaging HAP, HSP and APP bundles, and installing to devices with hdc.

How do I install the harmonyos-build-deploy skill?

Run npx -y skills add fadinglight9291117/arkts_skills --skill harmonyos-build-deploy -y in a project. Once installed, harmonyos-build-deploy lets the agent run hvigorw builds and hdc device installs for HarmonyOS projects.

Can harmonyos-build-deploy help with the error "version code not same"?

Yes, harmonyos-build-deploy includes troubleshooting for installation errors such as "version code not same". It walks through the deploy steps so the agent can resolve that install failure on a device.

Which build outputs does harmonyos-build-deploy produce?

harmonyos-build-deploy produces HAP, HSP, HAR and APP packages, placed in the outputs directory. It also explains how to build a single module with hvigorw instead of the whole app.

More from fadinglight9291117/arkts_skills

All 2

Similar to Harmonyos Build Deploy

More Mobile Apps