From 306be63b7c41803e85e6e6345354ff250c20fbba Mon Sep 17 00:00:00 2001 From: cheliangzhao Date: Wed, 11 Feb 2026 12:40:24 +0800 Subject: [PATCH] refactor: remove non-build/deploy content from harmonyos-build-deploy skill MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove Wireless Debugging (hdc tconn) section — environment setup, not build/deploy - Remove Restart App workflow — runtime operation, not build/deploy - Remove aa dump -a command — runtime debugging, not build/deploy - Remove duplicate Build Output Structure from device-installation.md --- CHANGELOG.md | 8 ++++- harmonyos-build-deploy/SKILL.md | 31 ------------------- .../references/device-installation.md | 12 ------- 3 files changed, 7 insertions(+), 44 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3baba06..7721739 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,9 +15,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). - **harmonyos-build-deploy**: Extracted module discovery, build outputs, and unwanted modules into `references/module-discovery.md` (~138 lines moved out of SKILL.md) - **harmonyos-build-deploy**: Fixed unquoted variable in install.sh script +### Removed + +- **harmonyos-build-deploy**: Wireless debugging (hdc tconn) section — environment setup, not build/deploy +- **harmonyos-build-deploy**: Restart App workflow — runtime operation, not build/deploy +- **harmonyos-build-deploy**: `aa dump -a` command — runtime debugging, not build/deploy +- **harmonyos-build-deploy**: Duplicate Build Output Structure from device-installation.md (already in SKILL.md and module-discovery.md) + ### Added -- **harmonyos-build-deploy**: Wireless debugging documentation (hdc tconn) - **harmonyos-build-deploy**: Additional bm commands (install -r reinstall, clean cache/data) - **harmonyos-build-deploy**: Cross-reference to arkts-development skill - **harmonyos-build-deploy**: New reference file `references/module-discovery.md` diff --git a/harmonyos-build-deploy/SKILL.md b/harmonyos-build-deploy/SKILL.md index 3a1b618..f04bc7c 100644 --- a/harmonyos-build-deploy/SKILL.md +++ b/harmonyos-build-deploy/SKILL.md @@ -85,14 +85,6 @@ Delegate to subagent with the following steps: 3. Launch: `hdc -t shell "aa start -a EntryAbility -b "` 4. Report success/failure with details -### Restart App - -Delegate to subagent: - -1. Force stop: `hdc -t shell "aa force-stop "` -2. Launch: `hdc -t shell "aa start -a EntryAbility -b "` -3. Report success/failure - ### Clean App Cache/Data Delegate to subagent: @@ -284,32 +276,10 @@ hdc -t shell "bm uninstall -n " | `hdc -t shell ""` | Execute shell command on device | | `hdc -t file send ` | Push file/directory to device | | `hdc -t file recv ` | Pull file/directory from device | -| `hdc tconn :` | Connect to device over Wi-Fi | | `hdc kill` | Kill hdc server | | `hdc start` | Start hdc server | | `hdc version` | Show hdc version | -### Wireless Debugging (Wi-Fi) - -Connect to a device over the network instead of USB: - -```bash -# 1. Connect device via USB first and get its IP address -hdc -t shell "ifconfig" # Find wlan0 IP - -# 2. Enable TCP port on device (if supported) -hdc -t shell "param set persist.hdc.port 5555" - -# 3. Connect wirelessly -hdc tconn :5555 - -# 4. Verify connection -hdc list targets -# Should show the IP-based target alongside or instead of USB target -``` - -**Note:** Wireless debugging may require the device and host to be on the same network. Not all devices support `hdc tconn`. - ## Bundle Manager (bm) Run via `hdc -t shell "bm ..."`: @@ -333,7 +303,6 @@ Run via `hdc -t shell "aa ..."`: |---------|-------------| | `aa start -a -b ` | Start specific ability | | `aa force-stop ` | Force stop application | -| `aa dump -a` | Dump all running abilities | ## Troubleshooting diff --git a/harmonyos-build-deploy/references/device-installation.md b/harmonyos-build-deploy/references/device-installation.md index 1453260..8a2793c 100644 --- a/harmonyos-build-deploy/references/device-installation.md +++ b/harmonyos-build-deploy/references/device-installation.md @@ -152,18 +152,6 @@ Usage: ./install.sh 1234567890ABCDEF outputs/default/bundles/signed com.example.app ``` -## Build Output Structure - -``` -outputs/ -└── default/ - └── bundles/ - └── signed/ - ├── entry-default-signed.hap # Main entry HAP - ├── feature-default-signed.hap # Feature HAP (if any) - └── *.hsp # Shared library modules -``` - ## Troubleshooting Details ### Error: "version code not same"