Harmonyos Build Deploy
Helps with building, deployment as part of agent workflows workflows.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add harmonyos-build-deploy npx -- -y @trustedskills/harmonyos-build-deploy
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"harmonyos-build-deploy": {
"command": "npx",
"args": [
"-y",
"@trustedskills/harmonyos-build-deploy"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill enables AI agents to automate building, cleaning, packaging, and installing HarmonyOS applications as part of a workflow. It focuses on providing specific build and deployment commands for HarmonyOS projects using tools like hvigorw and hdc. Crucially, the skill requires confirmation from the user before executing any operation to ensure accuracy and prevent unintended actions.
When to use it
- Automating incremental builds of HarmonyOS applications.
- Performing a full clean build and deployment pipeline for HarmonyOS apps.
- Installing a HarmonyOS application onto a connected device.
- Managing project dependencies using
ohpm. - When needing precise control over the build and deployment process in an automated workflow.
Key capabilities
- Operation Confirmation: Requires user confirmation before executing any build or deploy operation (Clean, Install Dependencies, Build Project, Install to Device, Full Pipeline).
- Build Commands: Provides
hvigorwcommands for assembling HAP/APP packages. - Deployment Commands: Includes
hdccommands for installing applications onto a device and managing file transfers. - Dependency Management: Supports using
ohpmfor dependency installation. - Workflow Automation: Facilitates automated build, clean, and deployment workflows.
Example prompts
- "Can you please perform a full pipeline build of my HarmonyOS app?"
- "I need to install the latest version of my application onto my device. What steps should we take?"
- "Clean the build artifacts for my HarmonyOS project."
Tips & gotchas
- User Confirmation is Required: The agent must confirm which operation(s) the user wants to perform before proceeding.
- Git Bash Considerations: If using Git Bash on Windows, remember to disable MSYS path conversion (
export MSYS_NO_PATHCONV=1) when runninghdccommands. - Output Path: Build output is located in the
outputs/directory.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.