Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计异常

ohos-app-build-debugohos 应用程序构建调试

Agent Skill

ohos-app-build-debug 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

921

周安装

38

GitHub Stars

18

下载量

301
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ohos-app-build-debug(ohos 应用程序构建调试)
来源仓库:https://github.com/openharmonyinsight/openharmony-skills
仓库路径:skills/ohos-app-build-debug
安装命令:
npx skills add https://github.com/openharmonyinsight/openharmony-skills --skill ohos-app-build-debug
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/openharmonyinsight/openharmony-skills --skill ohos-app-build-debug

简介

用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词或任务场景快速定位候选结果。
  • 可结合来源仓库和原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态及是否触发联网或文件读写。
  • ohos-app-build-debug 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

OHOS App Build & Debug

When to Use This Skill

Use this skill when the user needs to work with HarmonyOS/OpenHarmony applications:

  • Building: "Build my OHOS app", "Compile the project", "Run hvigorw"
  • Installing: "Install this HAP", "Deploy to device", "Install app to device"
  • Launching: "Launch the app", "Start the application", "Run on device"
  • Debugging: "Take screenshot", "Parse crash stack", "Debug crash"
  • Environment: "Check DevEco Studio", "Show SDK path", "Verify tools", "Detect environment"

Quick Start

Build, install, and launch an OHOS application:

# Run scripts from skill directory
python3 $SKILL_DIR/scripts/build.py
python3 $SKILL_DIR/scripts/install.py -f entry/build/default/outputs/default/entry-default-signed.hap
python3 $SKILL_DIR/scripts/launch.py

Bundled Resources

This skill includes executable scripts in scripts/ that automatically detect DevEco Studio environment:

ScriptPurpose
build.pyBuild OHOS application using hvigorw
install.pyInstall HAP file to connected device
launch.pyLaunch installed application
screenshot.pyCapture device screenshot
parse_crash.pyParse crash stack using hstack
env_detector.pyDetect DevEco Studio and tools
ohos_utils.pyShared utility functions

For detailed command reference, see references/command-reference.md.

Common Workflows

Build and Install

# 1. Check environment
python3 $SKILL_DIR/scripts/env_detector.py

# 2. Build the application
python3 $SKILL_DIR/scripts/build.py

# 3. Install to device (output from build.py shows HAP path)
python3 $SKILL_DIR/scripts/install.py -f entry/build/default/outputs/default/entry-default-signed.hap

# 4. Launch the app
python3 $SKILL_DIR/scripts/launch.py

One-line Build, Install, Launch

python3 $SKILL_DIR/scripts/build.py && \
python3 $SKILL_DIR/scripts/install.py -f $(find entry/build -name "*.hap" | head -1) && \
python3 $SKILL_DIR/scripts/launch.py

Debug Workflow

# Launch app
python3 $SKILL_DIR/scripts/launch.py

# Take screenshot to verify
python3 $SKILL_DIR/scripts/screenshot.py -o ./screenshots

Crash Analysis

# Parse crash stack from file
python3 $SKILL_DIR/scripts/parse_crash.py -f crash.txt

# Parse from string
python3 $SKILL_DIR/scripts/parse_crash.py -c "stack trace here"

How It Works

Automatic Environment Detection

All scripts automatically detect DevEco Studio installation and configure the environment:

  1. DevEco Studio Detection

- Windows: C:\Program Files\Huawei\DevEco Studio\ - macOS: /Applications/DevEco-Studio.app/ - Linux: ~/DevEco-Studio/ or /opt/DevEco-Studio/

  1. Toolchain Configuration

- Sets JAVA_HOME to DevEco's bundled JBR - Adds SDK tools to PATH - Configures HDC_SERVER_PORT=7035 - Caches detection result for 24 hours

  1. Auto-Detected Tools

- Core: hdc, hvigorw, java - LLVM: clang, clang++, lld, llvm-* - Profiler: hiprofiler, hiperf - Other: hstack, ohpm, idl, restool, syscap_tool

Response Guidelines

When helping users with OHOS development:

  1. Locate Skill Directory

- Replace $SKILL_DIR with the actual skill installation path - Common locations: ~/.claude/skills/ohos-app-build-debug or project-specific paths

  1. Execute Scripts

- Call Python scripts in scripts/ directory using absolute or relative paths - Always change to the OHOS project directory before running scripts

  1. Show Environment First

- Run env_detector.py when first building to show tool availability

  1. Provide One-liners

- Combine build, install, launch when appropriate for user convenience

  1. Show Actual Commands

- Display the hvigorw/hdc commands being executed for transparency

  1. Handle Errors Gracefully

- Provide troubleshooting guidance when commands fail - Reference references/troubleshooting.md for detailed help

  1. Use Project Context

- Auto-detect bundle names and paths from project structure

Error Handling

If DevEco Studio is not detected:

  • Verify DevEco Studio is installed
  • Check standard installation paths
  • Set DEVECO_STUDIO_PATH environment variable

If device is not connected:

  • Check USB cable connection
  • Verify USB debugging is enabled on device
  • Authorize USB debugging on device when prompted

For detailed troubleshooting, see references/troubleshooting.md.

Prerequisites

  • DevEco Studio 3.1+ (4.0+ recommended)
  • OHOS Device with USB debugging enabled
  • Python 3.7+ (for running scripts)

Download DevEco Studio: https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/ide-download

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.71%
按下载量换算107

Claude

29.81%
按下载量换算90

Cursor

19.56%
按下载量换算59

Gemini CLI

10.28%
按下载量换算31

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills