What problem does it solve?
This skill orchestrates the end-to-end OpenHarmony build workflow, including execution, verification, and post-build analysis to quickly identify issues and reduce debugging time.
Core Features & Use Cases
- Full-system and component builds: Build the complete OpenHarmony system or targeted components such as ace_engine, ace_engine_test, unittest, and ohos-sdk.
- SDK builds with special output handling: Support for building OpenHarmony SDK with its unique out/sdk structure.
- Rapid iteration with fast-rebuild: Skip GN generation when possible to speed up development and testing.
- Error detection and diagnostics: Analyze out/<product>/build.log and per-component logs, with utilities to extract recent errors and problematic sections.
- Workflow automation: Provides scripts to navigate to root, trigger builds, run analysis, and guide recovery steps after failures.
Quick Start
Navigate to the OpenHarmony root (the directory containing .gn), then run a full build with caching enabled. Example: run ./build.sh --export-para PYCACHE_ENABLE:true --product-name rk3568 --ccache. Monitor the result in out/rk3568/build.log. If errors occur, use the included analysis scripts located at .claude/skills/openharmony-build/scripts to extract errors and guide remediation.