harmonyos-build

Automate HarmonyOS application builds with PowerShell scripts and structured troubleshooting.

2|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/zhenzhizhi12/NexusAgent --skill harmonyos-build
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: harmonyos-build
Source: https://github.com/zhenzhizhi12/NexusAgent/tree/main/.opencode/skills/harmonyos-build
Command: npx skills add https://github.com/zhenzhizhi12/NexusAgent --skill harmonyos-build

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the complex process of building HarmonyOS applications, ensuring all necessary steps from dependency installation to final packaging are executed correctly, and provides a robust framework for handling build failures.

Core Features & Use Cases

  • End-to-End Build Process: Executes dependency installation, Cangjie pre-compilation, resource generation, compilation, and packaging.
  • Comprehensive Logging: Captures full stdout/stderr to build-full.log for detailed analysis, avoiding UI truncation.
  • Intelligent Failure Handling: Guides users through a prioritized troubleshooting process, starting with known issues in Evolution.md and progressing to code debugging and documentation search.
  • Use Case: When a developer encounters a build error during HarmonyOS app development, this Skill can be invoked to re-run the build, capture detailed logs, and then guide the developer through the documented troubleshooting steps to resolve the issue.

Quick Start

Use the harmonyos-build skill to build the HarmonyOS application located at "C:\czc\MyApplication10".

Frequently Asked Questions about harmonyos-build

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate HarmonyOS app compilation and packaging using PowerShell?

Troubleshoot HarmonyOS build failures by capturing full stdout and stderr logs to a build-full.log file. The skill guides you through analyzing logs, checking known issues, and debugging code to resolve compilation or packaging errors systematically.

What PowerShell execution policies are required to build HarmonyOS applications?

The HarmonyOS build process follows a structured troubleshooting sequence: first analyze the build-full.log file, then check known issues documented in Evolution.md, and finally progress to code debugging and documentation search if the error persists.

Can I troubleshoot HarmonyOS Cangjie compilation errors without reading truncated console output?

The skill handles HarmonyOS build failures by guiding users through a prioritized troubleshooting process, starting with known issues in Evolution.md, advancing to log analysis, and ending with code debugging and documentation search.

Why does my HarmonyOS build fail after Cangjie pre-compilation?

HarmonyOS build failures after Cangjie pre-compilation often stem from dependency issues or resource generation errors. The skill captures detailed logs and checks Evolution.md for known issues to identify whether the failure occurred during compilation or packaging stages.