Skip to main content
Run any Skill in Manus
with one click

runtime-pitfalls

Stars3
Forks0
UpdatedJuly 8, 2026 at 17:48

鸿蒙工程**运行时装配陷阱**——ArkTS 语法无错但项目跑不起来 / 行为不正确的工程层坑。 来源:真实 LLM 对话客户端 app M3-M13 + paseo-harmony Phase A/B 实战反馈。 **激活条件**(满足任一即激活): - 修改 `build-profile.json5` / `module.json5` / `oh-package.json5` 任意一个 - 改 `resources/*/element/string.json` 或其他资源文件 - 实现主题切换 / 跟随系统外观(涉及 `@StorageLink('appearanceTheme')`) - 在 Web 组件上注册 `javaScriptProxy` / 实现 H5 ↔ ArkTS 桥 - 写多模态 LLM 调用(OpenAI Vision / Whisper / DALL-E 等) - 多模块工程(feature 拆分)+ 模块改名 - HUKS 加密集成(API key / 用户敏感数据落盘) - 替换品牌图标 / 修改 `AppScope/resources/base/media/{background,foreground}.png`(layered icon) - 改 `NavPathStack` 路由 / 在 `build()` 写多个根 container / 实现长列表 timeline - 多 host 共享存储(per-host store 按 serverId 分桶)/ daemon workspaceId 字段消费 **不激活**:纯 UI 组件、纯算法逻辑、单 module hello world。

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly