ohos-app-dev
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseOpenHarmony App Dev
OpenHarmony 应用开发
Inner-loop skill for working on an existing OpenHarmony / HarmonyOS app. Every
toolchain and device action goes through the CLI. The CLI delegates to the
DevEco toolchain (, , , and the HarmonyOS lint tools). Use only commands
documented by ; do not assume unsupported flags or subcommands.
devecoclihvigorohpmhdcdevecocli helpFor ArkUI source design and implementation, consume the handoff from
. For architecture and state-boundary decisions, consume
. For uncertain API signatures or API-level support, use
. For an explicit V1/V2 migration, consume the
recorded inventory and migration plan before verification. This skill remains the
canonical executor for lint, build, device, runtime, logs, and UI evidence.
.etshmos-arkui-develop-skillhmos-arkui-mvvm-patternhmos-arkts-knowledge-retriever用于处理现有 OpenHarmony / HarmonyOS 应用的内部循环 skill。所有
工具链和设备操作都通过 CLI 执行。该 CLI 委托给
DevEco 工具链(、、 和 HarmonyOS lint 工具)。仅使用
中记录的命令;不要假设存在不受支持的标志或子命令。
devecoclihvigorohpmhdcdevecocli help对于 ArkUI 源码设计和 实现,读取
的交接内容。对于架构和状态边界决策,读取
。对于不确定的 API 签名或 API 级别支持情况,使用
。如需明确的 V1/V2 迁移,请先读取
记录好的清单和迁移计划,再进行验证。本 skill 仍是执行 lint、构建、设备、
运行时、日志和 UI 证据收集的标准执行器。
.etshmos-arkui-develop-skillhmos-arkui-mvvm-patternhmos-arkts-knowledge-retrieverEfficiency Defaults
效率默认值
- Use the smallest inner loop that matches the Track. For a local or logic change, stop at lint/build; do not launch a device unless runtime behavior is in scope.
- For a UI Track, take one initial screenshot and one approved interaction pass. Do not repeat build/run/layout/screenshot after an unchanged successful pass.
- Prefer for module-scoped source changes, then
devecocli build --modules <module> --build-mode debug. Usedevecocli run --skip-build --device <serial> --module <module>only when the project has a valid--hotreload-applyhot-reload file and the user path does not need a fresh install. File-level recompilation remains controlled by Hvigor's dependency graph; never promise that an arbitrary edit compiles in isolation..hvigor - Never print an unfiltered result. Capture it through
devecocli logor filter immediately withcompact_command.py.rg "TypeError|JS_ERROR|Fatal|ERROR" - Never pass raw output into the conversation. Use
devecocli docs search, which fixesdevecocli_docs_bridge.py, removes long fields, and marks short non-English snippets for local model translation. Do not discard a relevant Chinese result solely because its source language is Chinese.--format json --limit 3 - The bridge's is intermediate input to the local model; only translated English
translation_queuemay be reused as later context.ready_context - Keep full command output in ; show only the marker, exit code, first actionable error, and artifact path in the conversation.
artifacts/logs/ - Use the installation and DevEco Studio toolchain resolved by the workflow environment. Do not overwrite the caller's PATH or mix executables from unrelated Node installations.
devecocli
Prereqs: Node.js and npm,installed by the hackathon setup and on PATH, and an available DevEco Studio toolchain (devecocli,hvigor,ohpm, etc.). Check withhdc.devecocli -V
- 使用与 Track 匹配的最短内部循环。对于本地或逻辑 更改,止步于 lint/构建;除非运行时行为在范围内,否则不要启动设备。
- 对于 UI Track,截取一张初始屏幕截图并执行一轮经批准的交互验证。 在一次成功且未发生变化的验证后,不要重复执行构建、运行、布局分析或屏幕截图。
- 对于模块范围内的源码更改,优先使用
,然后使用
devecocli build --modules <module> --build-mode debug。仅当 项目拥有有效的devecocli run --skip-build --device <serial> --module <module>hot-reload 文件且用户路径不需要全新安装时,才使用.hvigor。文件级重新编译仍由 Hvigor 的依赖关系图控制;绝不能承诺 任意编辑都能单独编译。--hotreload-apply - 绝不打印未经过滤的 结果。通过
devecocli log捕获,或立即使用compact_command.py过滤。rg "TypeError|JS_ERROR|Fatal|ERROR" - 绝不将原始 输出传入对话。请使用
devecocli docs search,它会修正devecocli_docs_bridge.py、移除过长字段, 并将简短的非英语片段标记为需要由本地模型翻译。 不要仅因结果源语言为中文就丢弃相关的中文结果。--format json --limit 3 - 该 bridge 的 是供本地模型处理的中间输入;只有经过翻译的 英文
translation_queue可在后续上下文中复用。ready_context - 将完整命令输出保存在 中;在对话中仅展示标记、退出码、 首个可操作错误和 artifact 路径。
artifacts/logs/ - 使用工作流环境所解析到的 安装和 DevEco Studio 工具链。 不要覆盖调用方的 PATH,也不要混用来自无关 Node 安装的可执行文件。
devecocli
前置条件: Node.js 和 npm、由 hackathon setup 安装且位于 PATH 中的, 以及可用的 DevEco Studio 工具链(devecocli、hvigor、ohpm等)。使用hdc检查。devecocli -V
Windows toolchain selection
Windows 工具链选择
Require the caller's to put the DevEco Studio Node directory first, followed by
the npm global bin directory and DevEco toolchain directories. Do not hard-code, probe,
or modify installation paths in this skill. Verify the resolved tools:
PATHpowershell
Get-Command node, npm, devecocli
node --version; npm --version; devecocli -VDo not mix executables from different Node installations. If the resolved tools are not
the intended DevEco environment, stop and report the PATH issue.
要求调用方的 将 DevEco Studio Node 目录置于首位,随后是 npm 全局 bin 目录和
DevEco 工具链目录。此 skill 不得硬编码、探测或修改安装路径。验证解析到的工具:
PATHpowershell
Get-Command node, npm, devecocli
node --version; npm --version; devecocli -V不要混用来自不同 Node 安装的可执行文件。如果解析到的工具并非预期的 DevEco 环境,
则停止操作并报告 PATH 问题。
Verified CLI Reference
已验证的 CLI 参考
Windows runner
Windows 运行器
Use as the default build command. Do not invoke directly unless the user explicitly requests lower-level Hvigor
diagnostics. Put the DevEco Studio Node directory first on before
invoking the CLI: .
devecocli buildhvigorw assembleHapPATHC:\Program Files\Huawei\DevEco Studio\tools\nodeRun with a bounded timeout. Treat a non-zero CLI exit code or
, , or as an immediate build failure. On
timeout, record ; do not kill unrelated Node, Java, or
Hvigor processes.
devecocli buildBUILD FAILEDERRORScript ErrorDEVECOCLI_BUILD_TIMEOUTAfter each build command, report . Build
completion requires exit code and successful build output.
DEVECOCLI_BUILD_EXIT_CODE=<code>0These commands and flags were verified against the installed CLI.
Do not repeatedly call for them. Run help only when the CLI version
changes or a needed command/argument is not listed here.
devecocli--help| Purpose | Command |
|---|---|
| Version | |
| Lint | |
| Build | |
| Devices | |
| Device details | |
| Install and launch | |
| UI layout | |
| UI screenshot | `devecocli ui screenshot --device <device-name> --path <directory |
| UI click | |
| UI text | |
| Logs | |
If or returns a Windows ,
record the DevEco CLI/toolchain blocker and stop that verification step.
devecocli check lintdevecocli buildspawn EINVALFor , whitespace-containing input may be rejected by some
CLI versions; use a single token or explicit coordinates and record the issue in
. Do not switch to raw without confirmation.
devecocli ui textconductor/learning.mdhdc使用 作为默认构建命令。除非用户明确要求更底层的 Hvigor
诊断,否则不要直接调用 。调用 CLI 前,将 DevEco Studio Node 目录
放在 首位:。
devecocli buildhvigorw assembleHapPATHC:\Program Files\Huawei\DevEco Studio\tools\node使用有界超时运行 。CLI 返回非零退出码,或出现 、
或 时,立即视为构建失败。超时时,记录
;不要终止无关的 Node、Java 或 Hvigor 进程。
devecocli buildBUILD FAILEDERRORScript ErrorDEVECOCLI_BUILD_TIMEOUT每次构建命令后,报告 。构建完成要求退出码为
且构建输出成功。
DEVECOCLI_BUILD_EXIT_CODE=<code>0以下命令和标志已针对已安装的 CLI 进行验证。
不要反复为它们调用 。仅当 CLI 版本发生变化,或所需命令/参数未在此处
列出时才运行帮助。
devecocli--help| 用途 | 命令 |
|---|---|
| 版本 | |
| Lint | |
| 构建 | |
| 设备 | |
| 设备详情 | |
| 安装并启动 | |
| UI 布局 | |
| UI 截图 | `devecocli ui screenshot --device <device-name> --path <directory |
| UI 点击 | |
| UI 文本 | |
| 日志 | |
如果 或 返回 Windows ,
请记录 DevEco CLI/工具链阻塞问题,并停止该验证步骤。
devecocli check lintdevecocli buildspawn EINVAL对于 ,某些 CLI 版本可能会拒绝包含空白的输入;请使用单个词元或
显式坐标,并将问题记录到 。未经确认,不要切换为直接使用原始 。
devecocli ui textconductor/learning.mdhdcWhen to use
何时使用
Trigger on: "build the app", "deploy / run it on device", "lint these files", "grab the
logs", "take a screenshot", "tap this button", "why is it crashing on launch", or a
verification request from a Conductor Track. Project scaffolding, standalone system-app
privilege/signing work, and system-bundle development are outside this skill's scope.
触发条件:“构建应用”、“部署 / 在设备上运行”、“对这些文件执行 lint”、“获取
日志”、“截取屏幕截图”、“点击此按钮”、“为什么启动时崩溃”,或来自 Conductor Track 的
验证请求。项目脚手架、独立的系统应用权限/签名工作以及系统 bundle 开发均不在此 skill 的范围内。
Directives
指令
- CLI-first. Use for build, install, launch, lint, logs, and UI operations. Use the verified CLI references above instead of repeatedly probing
devecocli.--help - Lint timing. For non-UI changes or an explicit lint request, run after editing and resolve errors; use its automatic-fix option only after reviewing the proposed changes. For UI changes executed under Conductor, the first post-implementation action is the build-to-device checkpoint; run lint after the user approves the current UI and before final verification or commit. Resolve errors; justify warnings. If lint or build fails, update the project's
devecocli check lint --format jsonbefore retrying and display the updated Lessons Learned. If the project is not Conductor-managed, useconductor/learning.mdas the fallback log; create it with aartifacts/logs/learning.mdheading when needed. A non-zero exit or explicit# Learning Logresult ends the current command and the current verification step. Capture the first actionable cause, update and display the learning log, then return a concise failure report. Do not wait after the launcher has exited, continue to device/UI validation, or retry implicitly. A retry requires a separately announced recovery step and must not happen for a missing launcher or command-not-found error. 3. Build completion is a two-part check. A build is successful only when the DevEco build result is successful andBUILD FAILEDreturns exit codedevecocli. Always print or capture0after the command. If the exit code is non-zero, the build is failed and the workflow must return the failure immediately. Do not start device validation while the command is still running after the success marker. A persistent Hvigor daemon alone is normal.DEVECOCLI_BUILD_EXIT_CODE=<code> - Build-to-device gate. After a successful build, always run before deployment.
devecocli device listaccepts a device serial or name. If the serial containsdevecocli runor another redaction placeholder, use the displayed device name instead. If no device is listed, do not stop at a generic "blocked" report: this is commonly a first-time-emulator issue (no virtual device created yet, or its system image was never downloaded) rather than a CLI problem — see[IP_ADDRESS]and hand the Device Manager steps to the user as an explicit manual step, then wait. If multiple devices are listed, ask the user to select one and never silently choose one. Areferences/troubleshooting.mdrow is only discovery evidence, not an install readiness check. Keep the real serial in a shell variable instead of copying a redacted address from displayed output:Connected. Run$serial = (hdc list targets | Where-Object { $_ -match ':\\d+$' } | Select-Object -First 1).Trim(). If that command fails, runhdc -t $serial shell echo hdc-ready,hdc kill -r, and the shell check again. Stop if the shell check still fails; do not attempt install or launch.hdc tconn $serial - No destructive device operations without confirmation. Treat uninstalling apps, modifying device data, and deleting emulators as destructive.
- UI inspection. Use and
devecocli ui layout. Use the documenteddevecocli ui screenshot,devecocli ui click,doubleclick,longclick,swipe,fling, anddircflingcommands for interaction.drag - Implementation handoff. Before verification, read the changed files and any Conductor handoff/API-evidence artifacts. Confirm the target module, SDK/API level, state-management version, expected user paths, and known risks. Do not infer missing acceptance criteria from the source code.
- ArkUI diagnosis. If lint/build fails on an ArkUI API, import, callback type, state
decorator, rendering rule, or API-level issue, classify the first actionable error and
use or the ArkUI references before proposing a fix. Do not mechanically replace
hmos-arkts-knowledge-retrieverwith@ohos.*; verify the current SDK and project convention first.@kit.* - State-management migration. If the handoff declares a migration, read the migration inventory and target version before verification. Check for unresolved V1 decorators, invalid V1/V2 mixing, incomplete parent/child event flow, missing V2 initialization, and unsupported APIs. If the handoff does not declare a migration, do not suggest V1-to-V2 conversion as an incidental cleanup.
- CLI 优先。 使用 完成构建、安装、启动、lint、日志和 UI 操作。 使用上述已验证的 CLI 参考,不要反复探测
devecocli。--help - Lint 时机。 对于非 UI 更改或明确的 lint 请求,在编辑后运行
并解决错误;只有在审查过建议的更改后, 才能使用其自动修复选项。对于在 Conductor 下执行的 UI 更改,实现后的第一项操作 是构建到设备检查点;在用户批准当前 UI 后、最终验证或提交之前运行 lint。 解决错误;为警告说明理由。如果 lint 或构建失败,请在重试前更新项目的
devecocli check lint --format json,并展示更新后的 Lessons Learned。 如果项目不由 Conductor 管理,则使用conductor/learning.md作为回退日志; 需要时创建带有artifacts/logs/learning.md标题的文件。 非零退出或明确的# Learning Log结果将终止当前命令和当前验证步骤。 捕获首个可操作原因,更新并展示学习日志,然后返回简洁的失败报告。 启动器退出后不要继续等待,不要继续执行设备/UI 验证,也不要隐式重试。 重试需要单独宣布恢复步骤,并且缺少启动器或出现 command-not-found 错误时不得重试。 3. 构建完成需要双重检查。 只有 DevEco 构建结果成功且BUILD FAILED返回退出码devecocli时, 构建才算成功。命令后始终打印或捕获0。如果退出码非零, 则构建失败,工作流必须立即返回失败信息。如果命令在显示成功标记后仍在运行, 不要启动设备验证。持续运行的 Hvigor daemon 本身属于正常现象。DEVECOCLI_BUILD_EXIT_CODE=<code> - 构建到设备门禁。 构建成功后,部署前始终运行 。
devecocli device list接受设备序列号或名称。如果序列号包含devecocli run或其他脱敏占位符, 请改用显示的设备名称。如果没有列出设备,不要仅返回笼统的“受阻”报告:这通常是 首次使用模拟器的问题(尚未创建虚拟设备,或从未下载其系统镜像),而不是 CLI 问题—— 参见[IP_ADDRESS], 将 Device Manager 步骤作为明确的手动步骤交给用户,然后等待。如果列出多个设备, 请让用户选择一个,绝不能静默选择。references/troubleshooting.md行仅是发现设备的证据,并不代表已具备安装条件。 将真实序列号保存在 shell 变量中,而不是从显示的输出里复制已脱敏的地址:Connected。 运行$serial = (hdc list targets | Where-Object { $_ -match ':\d+$' } | Select-Object -First 1).Trim()。如果该命令失败,运行hdc -t $serial shell echo hdc-ready、hdc kill -r,然后再次执行 shell 检查。如果 shell 检查仍然失败则停止; 不要尝试安装或启动。hdc tconn $serial - 未经确认,不得执行破坏性设备操作。 将卸载应用、 修改设备数据和删除模拟器视为破坏性操作。
- UI 检查。 使用 和
devecocli ui layout。 对于交互操作,使用已记录的devecocli ui screenshot、devecocli ui click、doubleclick、longclick、swipe、fling和dircfling命令。drag - 实现交接。 验证前,读取变更文件和所有 Conductor 交接/API 证据 artifacts。 确认目标模块、SDK/API 级别、状态管理版本、预期用户路径和已知风险。 不要从源代码推断缺失的验收标准。
- ArkUI 诊断。 如果 lint/构建因 ArkUI API、导入、回调类型、状态装饰器、
渲染规则或 API 级别问题而失败,请对首个可操作错误进行分类,并在提出修复方案前使用
或 ArkUI references。 不要机械地将
hmos-arkts-knowledge-retriever替换为@ohos.*;先验证当前 SDK 和项目约定。@kit.* - 状态管理迁移。 如果交接声明了迁移,请在验证前读取迁移清单和目标版本。 检查未解决的 V1 装饰器、无效的 V1/V2 混用、不完整的父子事件流、缺失的 V2 初始化 和不受支持的 API。如果交接未声明迁移, 不要将 V1 到 V2 的转换作为附带清理工作提出。
Inner-loop workflow
内部循环工作流
For a UI track running under Conductor:
- Edit sources after the written work plan is approved.
- Build — . Treat the build as complete only after the command exit check and successful build output. On failure, stop, capture the failing phase and first actionable error, update the applicable learning log, display the lesson, fix the cause, then rerun the failed build-to-device checkpoint.
devecocli build - Device gate — run after build success. Stop if there is no target; resolve multiple targets explicitly and select the target serial.
devecocli device list - Install and launch — . If HDC reports
devecocli run --skip-build --module <module> --device <serial>orconnect-key, runNot match target founded, reconnect withhdc kill -r, verifyhdc tconn $serial, then rerun the shell readiness check. Retry deployment only after the shell check passes.hdc list targets - Observe and pause — capture the first screenshot, then use the interactive tool to ask for UI approval and automated interaction consent. Record interaction consent immediately with
question, before lint or any tap/type action. If the UI is rejected, return to Edit and repeat steps 2-5. If the question tool cannot render, use a Markdown table only after the tool call fails or is dismissed.record_test_consent.py - Lint after UI approval — .
devecocli check lint --format json <project-root> - Regression observe
- Logs: for HiLog output or crash logs.
devecocli log - Screenshot: .
devecocli ui screenshot - Layout: .
devecocli ui layout - Drive: use the interaction commands listed above.
devecocli ui - Record: report each planned user path as pass, fail, or blocked and attach its screenshot/log evidence. A successful launch alone is not UI-path validation.
- Migration paths: when applicable, report simple state updates, nested-object updates, parent/child communication, list mutations, persistence restore, and animation behavior separately.
- Logs:
对于在 Conductor 下运行的 UI Track:
- 编辑 — 在书面工作计划获批后编辑源码。
- 构建 — 。仅在命令退出检查和成功构建输出后, 才视为完成。 失败时,停止,捕获失败阶段和首个可操作错误,更新适用的 learning log, 展示经验教训,修复原因,然后重新运行失败的构建到设备检查点。
devecocli build - 设备门禁 — 构建成功后运行 。如果没有目标设备则停止; 明确解决多目标设备问题并选择目标序列号。
devecocli device list - 安装并启动 — 。 如果 HDC 报告
devecocli run --skip-build --module <module> --device <serial>或connect-key,运行Not match target founded、 通过hdc kill -r重新连接,验证hdc tconn $serial,然后重新运行 shell 就绪检查。 只有 shell 检查通过后才能重试部署。hdc list targets - 观察并暂停 — 截取第一张屏幕截图,然后使用交互式 工具请求 UI 批准和自动化交互同意。必须立即使用
question记录交互同意,且要在 lint 或任何点击/输入操作之前完成。如果 UI 被拒绝, 返回编辑阶段并重复步骤 2-5。如果 question 工具无法渲染,只有在工具调用失败或被关闭后, 才使用 Markdown 表格。record_test_consent.py - UI 批准后执行 Lint — 。
devecocli check lint --format json <project-root> - 回归观察
- 日志: 使用 获取 HiLog 输出或崩溃日志。
devecocli log - 屏幕截图: 。
devecocli ui screenshot - 布局: 。
devecocli ui layout - 操作: 使用上述列出的 交互命令。
devecocli ui - 记录: 将每个规划的用户路径报告为通过、失败或受阻,并附上对应的 屏幕截图/日志证据。仅成功启动并不能证明 UI 路径已通过验证。
- 迁移路径: 适用时,分别报告简单状态更新、嵌套对象更新、父子通信、 列表变更、持久化恢复和动画行为。
- 日志: 使用
Recipes
配方
Quick rebuild & reinstall
快速重新构建并重新安装
devecocli check lint --format json <project-root>devecocli builddevecocli device listdevecocli run --skip-builddevecocli logdevecocli check lint --format json <project-root>devecocli builddevecocli device listdevecocli run --skip-builddevecocli logWindows build-process verification
Windows 构建进程验证
Run and report together
with successful build output. Never report the Track complete from an
exit code alone.
devecocli buildDEVECOCLI_BUILD_EXIT_CODE=0运行 ,并结合成功构建输出报告 。
绝不能仅凭退出码就报告 Track 完成。
devecocli buildDEVECOCLI_BUILD_EXIT_CODE=0Diagnose a runtime crash
诊断运行时崩溃
devecocli builddevecocli run --skip-builddevecocli logdevecocli builddevecocli run --skip-builddevecocli logUI validation against a design
针对设计稿的 UI 验证
devecocli ui layout --device <device-name>devecocli ui screenshot --device <device-name> --path artifacts/snapshots/<task_id>.pngbuild-profile.json5devecocli ui layout --device <device-name>devecocli ui screenshot --device <device-name> --path artifacts/snapshots/<task_id>.pngbuild-profile.json5UI validation against acceptance paths
针对验收路径的 UI 验证
For each UI Track, obtain the initial state, actions, expected result, and evidence path
from the implementation handoff. Execute the smallest meaningful regression path after
launch. Include empty, loading, error, and persistence states when they are in scope.
For a non-UI track, use the shorter sequence: Edit -> Lint -> Build -> Device gate when
applicable -> Run/Tests -> Logs.
对于每个 UI Track,从实现交接中获取初始状态、操作、预期结果和证据路径。
启动后执行最小但有意义的回归路径。在范围内时,应包括空状态、加载状态、错误状态和持久化状态。
对于非 UI Track,使用更短的序列:编辑 -> Lint -> 构建 -> 适用时进行设备门禁 -> 运行/测试 -> 日志。
API or ArkUI diagnostic failure
API 或 ArkUI 诊断失败
When a compiler or lint failure concerns an API or ArkUI rule:
- Stop at the first actionable error.
- Check the local ArkUI references.
- Call if the signature, import, or version is unclear.
hmos-arkts-knowledge-retriever - Record the evidence and first fix attempt in the applicable learning log.
- Let the implementation skill apply the source change, then rerun this skill's gates.
当编译器或 lint 失败涉及 API 或 ArkUI 规则时:
- 在首个可操作错误处停止。
- 检查本地 ArkUI references。
- 如果签名、导入或版本不明确,调用 。
hmos-arkts-knowledge-retriever - 将证据和首次修复尝试记录到适用的 learning log。
- 由实现 skill 应用源码更改,然后重新运行此 skill 的各项门禁。
State-management migration validation
状态管理迁移验证
For a V1/V2 migration, use the migration matrix to drive verification. At minimum,
check decorator coverage, state refresh, parent-to-child updates, child-to-parent events,
list insert/delete/update behavior, application-level state, and persistence after
relaunch when those capabilities are in scope. A successful compile does not prove
semantic equivalence.
对于 V1/V2 迁移,使用迁移矩阵驱动验证。至少应检查装饰器覆盖范围、状态刷新、
父到子更新、子到父事件、列表插入/删除/更新行为、应用级状态,以及在相关能力范围内
重新启动后的持久化表现。成功编译并不能证明语义等价。
Dependency change
依赖项更改
Edit → (run when needed).
oh-package.json5devecocli buildohpm install编辑 → (必要时运行 )。
oh-package.json5devecocli buildohpm installCommon raw-device ops (no dedicated command)
常见的原始设备操作(无专用命令)
- List targets:
hdc list targets -v - For operations not exposed by DevEco CLI, ask for confirmation before using the underlying
DevEco toolchain command. Do not invent an equivalent subcommand.
devecocli
- 列出目标:
hdc list targets -v - 对于 DevEco CLI 未提供的操作,使用底层 DevEco 工具链命令前必须先请求确认。
不要虚构等效的 子命令。
devecocli
SDK / API level reference
SDK / API 级别参考
Read for / .
build-profile.json5compatibleSdkVersiontargetSdkVersion读取 以获取 / 。
build-profile.json5compatibleSdkVersiontargetSdkVersionOut of scope
不在范围内
- Scaffolding or templating a fresh project.
- System/persistent bundle development and OHOS source-tree builds.
- Product discovery, Track planning, and architecture decisions owned by Conductor or the architecture specialist.
- 新项目的脚手架搭建或模板生成。
- 系统/持久化 bundle 开发和 OHOS 源码树构建。
- 由 Conductor 或架构专家负责的产品发现、Track 规划和架构决策。
References
References
App-engineering knowledge for ArkTS / ArkUI work — this skill is the canonical home; the
other skills point here rather than restating it:
- — ArkTS strict-mode rules the compiler /
references/arkts-strict.mdenforce.devecocli check lint --format json - — Clean-Architecture layering for ArkTS apps (Domain / Data / Presentation).
references/architecture.md - — common
references/troubleshooting.mdbuild / SDK failures and fixes.devecocli - — ArkUI handoff, diagnostic routing, and UI-path verification guidance.
references/arkui-validation.md - — V1/V2 migration preflight and behavioral regression matrix.
references/state-migration-validation.md
用于 ArkTS / ArkUI 工作的 App 工程知识——本 skill 是标准归属;
其他 skill 均指向这里,而不在此重复:
- — 编译器/
references/arkts-strict.md强制执行的 ArkTS 严格模式规则。devecocli check lint --format json - — ArkTS 应用的 Clean-Architecture 分层(Domain / Data / Presentation)。
references/architecture.md - — 常见的
references/troubleshooting.md构建/SDK 失败及修复方法。devecocli - — ArkUI 交接、 诊断路由和 UI 路径验证指南。
references/arkui-validation.md - — V1/V2 迁移预检和行为回归矩阵。
references/state-migration-validation.md