ArkUIX Module Adapter

Analyze OHOS/ArkUI-X module .d.ts coverage and C/C++ architecture to generate cross-platform adapter plans.

31|6|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/openharmonyinsight/openharmony-skills --skill arkuix-module-adapter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ArkUIX Module Adapter
Source: https://github.com/openharmonyinsight/openharmony-skills/tree/main/skills/arkuix-module-adapter
Command: npx skills add https://github.com/openharmonyinsight/openharmony-skills --skill arkuix-module-adapter

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill helps you adapt an OpenHarmony/ArkUI-X OHOS module for cross-platform use by systematically analyzing the existing OHOS code, identifying what needs adaptation, and generating the adapter architecture and configuration you can implement and build with confidence.

Core Features & Use Cases

  • 6-phase end-to-end adaptation workflow that guides you from minimal module identification to implementation guidance across platforms.
  • API and architecture analysis to estimate cross-platform coverage (via @crossplatform in .d.ts) and determine whether platform-specific work is truly necessary.
  • Generated implementation blueprint covering OHOS pure virtual interfaces, OHOS thin wrappers (forwarding), Android JNI adapters, iOS Objective-C++ adapters, plus required build/configuration updates.

Quick Start

Tell the skill the OHOS ArkTS module you want to adapt, for example: "I need to adapt @ohos.data.preferences to Android and iOS".

Frequently Asked Questions about ArkUIX Module Adapter

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I adapt an OHOS module for Android and iOS cross-platform use?

Cross-platform adaptation of OHOS modules requires analyzing .d.ts @crossplatform coverage and C/C++ platform dependencies. The workflow determines whether to reuse OHOS code, build a hybrid abstraction, or independently implement functionality, producing adapter configurations for Android and iOS.

What is the best way to analyze ArkUI-X module cross-platform coverage?

The best way to analyze ArkUI-X cross-platform coverage is by running bundled analysis scripts that evaluate .d.ts @crossplatform annotations and C/C++ platform dependency architecture. This identifies what requires adaptation and estimates platform-specific work accurately.

How do I generate JNI and Objective-C++ adapters for ArkUI-X modules?

Generating JNI and Objective-C++ adapters involves analyzing the OHOS module's pure virtual interfaces and thin wrappers, then creating an implementation blueprint. The blueprint covers Android JNI adapters, iOS Objective-C++ adapters, and required SDK build artifacts configuration.

Does this cross-platform adaptation workflow support all OHOS subsystem modules?

The cross-platform adaptation workflow applies to OHOS subsystem modules such as preferences, intl, and multimedia image. It verifies required repositories and analyzes platform dependencies to determine if specific module adaptation is necessary before generating implementation guidance.

When should I choose independent implementation over OHOS reuse for module adaptation?

You should choose independent implementation over OHOS reuse when analysis of .d.ts @crossplatform coverage and C/C++ architecture reveals significant platform dependencies. The workflow's actionable plan recommends the appropriate mode based on dependency complexity and coverage metrics.

What SDK build artifacts are required for ArkUI-X module adaptation?

Required SDK build artifacts for ArkUI-X module adaptation include generated configurations for adapter layers spanning Android JNI and iOS Objective-C++ implementations. The workflow produces mandatory build artifacts alongside the implementation blueprint after architecture analysis completes.