CAT
/Skills
SkillsMCPMarketplacesDigestToolsAdvertise

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by Category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP Servers by Category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by Category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control

Cross AI Tools

Discover Claude Code plugins, extensions, and tools. Automatically updated directory of Anthropic Claude AI marketplaces with development tools, productivity plugins, and integrations.

Resources

  • Browse Skills
  • Browse MCP Servers
  • Browse Marketplaces
  • Plugins Reference

Community

  • About
  • Tools
  • Feedback
  • Privacy Policy
  • Advertise

Built for the Claude Code community with Claude Code by @mertduzgun

Independent project, not affiliated with Anthropic

Harmonyos Build Deploy

fadinglight9291117/arkts_skills
154 installs7 stars
Summary

Handles the full build and deploy pipeline for HarmonyOS apps using hvigorw, ohpm, and hdc. The skill walks you through clean builds, dependency installs, packaging HAP/HSP bundles, and pushing to devices with proper Git Bash compatibility for Windows users. Smart about asking what you actually want to do before running expensive operations, since builds take around 30 seconds and file transfers another 20. Delegates long-running tasks to subagents to avoid timeouts. Covers both incremental builds for daily work and clean builds when things break, plus single module builds for faster iteration. If you're building HarmonyOS apps and tired of remembering hvigorw flags and hdc path quirks, this consolidates the entire workflow.

Install to Claude Code

npx -y skills add fadinglight9291117/arkts_skills --skill harmonyos-build-deploy --agent claude-code

Installs into .claude/skills of the current project.

CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Keep your Mac awake
Keep your Mac awake
Keep your Mac awake while Claude Code and 40+ AI agents run. Sleeps when they're idle.
One time payment $9 →
Context.devContext.dev
Context.dev
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Make money from your Skills
Make money from your Skills
On Capafy, your Skill runs online 24/7 as an agent product, and you get paid every time someone uses it.
Start earning →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Keep your Mac awake
Keep your Mac awake
Keep your Mac awake while Claude Code and 40+ AI agents run. Sleeps when they're idle.
One time payment $9 →
Context.devContext.dev
Context.dev
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Make money from your Skills
Make money from your Skills
On Capafy, your Skill runs online 24/7 as an agent product, and you get paid every time someone uses it.
Start earning →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →
Files
SKILL.mdView on GitHub

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

# List connected devices (returns UDID)
hdc list targets

Note: Build output path is outputs/. For device installation, see Push and Install.

Workflows

IMPORTANT: Build, clean, and deploy operations are long-running (build ~30s, file transfer ~20s). Always delegate these workflows to a subagent to avoid timeout. This also provides better error handling and clearer progress reporting to the user.

Clean Build & Deploy

Delegate to subagent with the following steps:

  1. Clean: hvigorw clean --no-daemon
  2. Install dependencies: ohpm install --all
  3. Build: hvigorw assembleApp --mode project -p product=default -p buildMode=release --no-daemon
  4. Deploy to device (see Push and Install below)
  5. Launch: hdc -t <UDID> shell "aa start -a EntryAbility -b <bundleName>"
  6. Report success/failure with details

Deploy Only (No Rebuild)

Delegate to subagent with the following steps:

  1. Read AppScope/app.json5 to get bundleName
  2. Check outputs/ for existing build outputs. If empty or missing, collect signed HAP/HSP from each module's build directory ({srcPath}/build/default/outputs/default/*-signed.*) into outputs/. See module-discovery.md for details.
  3. Deploy to device (see Push and Install below)
  4. Launch: hdc -t <UDID> shell "aa start -a EntryAbility -b <bundleName>"
  5. Report success/failure with details

Clean App Cache/Data

Delegate to subagent:

  1. Clean cache: hdc -t <UDID> shell "bm clean -n <bundleName> -c"
  2. Clean data: hdc -t <UDID> shell "bm clean -n <bundleName> -d"
  3. Report success/failure

Build Commands (hvigorw)

Incremental Build (Default)

Use incremental build for normal development - only changed modules are rebuilt:

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

Single Module Build

Build only a specific module for faster iteration:

# Build single HAP module
hvigorw assembleHap -p module=entry@default --mode module -p buildMode=release --no-daemon

# Build single HSP module
hvigorw assembleHsp -p module=my_feature@default --mode module -p buildMode=release --no-daemon

# Build single HAR module
hvigorw assembleHar -p module=library@default --mode module -p buildMode=release --no-daemon

# Build multiple modules at once
hvigorw assembleHsp -p module=module1@default,module2@default --mode module -p buildMode=release --no-daemon

Module name format: {moduleName}@{targetName}

  • moduleName: Directory name of the module (e.g., entry, my_feature)
  • targetName: Target defined in module's build-profile.json5 (usually default)

When to use single module build:

  • Developing/debugging a specific module
  • Faster build times during iteration
  • Testing changes in isolated module

Note: After single module build, you still need to run assembleApp to package the complete application for installation.

Clean Build (When Needed)

Only perform clean build when:

  • First time building the project
  • Encountering unexplained build errors
  • After modifying build-profile.json5 or SDK version
  • Dependency resolution issues
# Clean build artifacts
hvigorw clean --no-daemon

# Deep clean (for dependency issues)
ohpm clean && ohpm cache clean
ohpm install --all
hvigorw --sync -p product=default -p buildMode=release --no-daemon
hvigorw assembleApp --mode project -p product=default -p buildMode=release --no-daemon

Install Dependencies (ohpm)

# Install all dependencies (after clean or first clone)
ohpm install --all

# With custom registry
ohpm install --all --registry "https://repo.harmonyos.com/ohpm/"

Sync Project

Only needed after modifying build-profile.json5 or oh-package.json5:

hvigorw --sync -p product=default -p buildMode=release --no-daemon

Build Parameters

ParameterDescription
-p product={name}Target product defined in build-profile.json5
-p buildMode={debug|release}Build mode
-p module={name}@{target}Target module with --mode module
--mode projectBuild all modules in project
--mode moduleBuild specific module only
--no-daemonDisable daemon (recommended for CI)
--analyze=advancedEnable build analysis

Build Outputs

Build output path: outputs/

outputs/
├── entry-default-signed.hap
└── *.hsp

Module Types

TypeExtensionDescription
HAP.hapHarmony Ability Package - Application entry module
HSP.hspHarmony Shared Package - Dynamic shared library
HAR.harHarmony Archive - Static library (compiled into HAP)
APP.appComplete application bundle (all HAP + HSP)

Finding Modules

Modules are defined in build-profile.json5 at the project root. The module type is determined by the type field in {module}/src/main/module.json5:

type valueModule TypeBuild Command
"entry" / "feature"HAPassembleHap
"shared"HSPassembleHsp
"har"HARassembleHar

Module build outputs: {srcPath}/build/default/outputs/default/

For detailed module discovery, build output structure, and handling unwanted modules, see references/module-discovery.md.

Device Installation (hdc)

hdc (HarmonyOS Device Connector) is the CLI tool for device communication, similar to Android's adb.

Check Device

hdc list targets              # List connected devices (returns UDID)
hdc -t <UDID> shell "whoami"  # Test connection

Push and Install

# Create temp directory on device (Git Bash compatible)
# If you use Git Bash on Windows, disable MSYS path conversion for hdc commands.
export MSYS_NO_PATHCONV=1

INSTALL_DIR="//data/local/tmp/install_$(date +%s)"
hdc -t <UDID> shell "mkdir -p $INSTALL_DIR"

# Push files one-by-one to explicit remote file paths (most reliable on Git Bash)
for f in outputs/*.hap outputs/*.hsp; do
    [ -f "$f" ] && hdc -t <UDID> file send "$f" "$INSTALL_DIR/$(basename "$f")"
done

# Install (reinstall) HSPs first, then the HAP
for f in outputs/*.hsp outputs/*.hap; do
    [ -f "$f" ] && hdc -t <UDID> shell "bm install -p $INSTALL_DIR/$(basename \"$f\") -r"
done

# Clean up temp directory
hdc -t <UDID> shell "rm -rf $INSTALL_DIR"

Verify and Launch

# Check installation
hdc -t <UDID> shell "bm dump -n <bundleName>"

# Launch app (default ability)
hdc -t <UDID> shell "aa start -a EntryAbility -b <bundleName>"

Uninstall

hdc -t <UDID> shell "bm uninstall -n <bundleName>"

hdc Command Reference

CommandDescription
hdc list targetsList connected devices
hdc -t <UDID> shell "<cmd>"Execute shell command on device
hdc -t <UDID> file send <local> <remote>Push file/directory to device
hdc -t <UDID> file recv <remote> <local>Pull file/directory from device
hdc killKill hdc server
hdc startStart hdc server
hdc versionShow hdc version

Bundle Manager (bm)

Run via hdc -t <UDID> shell "bm ...":

CommandDescription
bm install -p <path>Install from directory (all HAP/HSP)
bm install -p <file.hap>Install single HAP file
bm install -r -p <path>Reinstall (replace existing, keep data)
bm uninstall -n <bundleName>Uninstall application
bm dump -n <bundleName>Show package info
bm dump -aList all installed packages
bm clean -n <bundleName> -cClean application cache
bm clean -n <bundleName> -dClean application data

Ability Assistant (aa)

Run via hdc -t <UDID> shell "aa ...":

CommandDescription
aa start -a <ability> -b <bundle>Start specific ability
aa force-stop <bundleName>Force stop application

Troubleshooting

ErrorCauseSolution
version code not sameHSP in output not in build-profile.json5Remove unwanted HSP files before install (see module-discovery.md)
install parse profile prop check errorSignature/profile mismatchCheck signing config in build-profile.json5; verify bundleName matches app.json5; check certificate not expired
install failed due to older sdk versionDevice SDK < app's compatibleSdkVersionUpdate device or lower compatibleSdkVersion
Device not foundConnection issueCheck USB; enable Developer Options (tap build number 7x) and USB debugging; hdc kill && hdc start; try different USB port/cable
signature verification failedInvalid or expired certificateRegenerate certificate in DevEco Studio; check validity period; ensure correct signing config for build type

Key Configuration Files

FileDescription
AppScope/app.json5App metadata (bundleName, versionCode, versionName)
build-profile.json5Modules list, products, signing configs
{module}/src/main/module.json5Module config (abilities, permissions)
{module}/oh-package.json5Module dependencies

Reference Files

  • Module Discovery & Build Outputs: references/module-discovery.md - Module definitions, type identification, build output paths, unwanted modules
  • Complete Installation Guide: references/device-installation.md - Version verification scripts and installation script

Related Skills

  • arkts-development: ArkTS/ArkUI development patterns, state management, component lifecycle, and API usage. Use alongside this skill when developing HarmonyOS application code.
Featured
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Keep your Mac awake
Keep your Mac awake
Keep your Mac awake while Claude Code and 40+ AI agents run. Sleeps when they're idle.
One time payment $9 →
Context.devContext.dev
Context.dev
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Make money from your Skills
Make money from your Skills
On Capafy, your Skill runs online 24/7 as an agent product, and you get paid every time someone uses it.
Start earning →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →
Categories
DevOps & CI/CDRelease Management
First SeenJun 3, 2026
View on GitHub

Recommended

More DevOps & CI/CD →
observability-monitoring-monitor-setup

sickn33/antigravity-awesome-skills

observability monitoring monitor setup
262
39.4k
kubesphere-devops-pipeline

kubesphere/kubesphere

This handles CI/CD pipeline operations in KubeSphere's DevOps platform, which wraps Jenkins with Kubernetes custom resources.
17k
monitoring-observability

ahmedasmar/devops-claude-skills

monitoring observability
391
165
gitlab-ci-validator

akin-ozer/cc-devops-skills

gitlab ci validator
236
224
gitlab-ci-generator

akin-ozer/cc-devops-skills

gitlab ci generator
234
224
monitoring-observability

supercent-io/skills-template

Comprehensive monitoring setup with metrics collection, log aggregation, alerting, and health checks.
11k
88