Ohos dev arkruntime interop development

From openharmonyinsight/openharmony-skills · View interactive version

Ohos dev arkruntime interop development is an AI agent skill from the GitHub repository openharmonyinsight/openharmony-skills. Expert assistant for ArkTS-JS Interoperability in ArkCompiler (ArkTS runtime). 触发场景:修改/调试 ArkCompiler 互操作层代码(static_core/plugins/ets/runtime/interop_js/)、实现 ArkTS 与 JS 跨语言调用、处理 ETS 和 JS 之间的值转换(js_convert/JSRefConvert)、分析 Interop 内存泄漏与 GC 安全点、以及进行相关代码规范审查。

How to use this skill

Skill file

ArkRuntime Interop Development

Overview

This skill specializes in the ArkTS <-> JavaScript Interoperability layer located in runtime_core/static_core/plugins/ets/runtime/interop_js/. It bridges the ArkTS runtime (ETS) with the JavaScript engine via NAPI.

Core Capabilities

1. Navigating the Interop Layer

The directory structure is segmented by function:

2. Underlying Runtimes

Interop depends on both the JS runtime and the NAPI framework:

3. Value Conversion

Handled by js_convert and JSRefConvert classes.

Common Workflows

Debugging Interop Issues

Performance & Memory

Coding Standards

Key Headers

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.