Hmos Multidevice Interaction Methods logo

Hmos Multidevice Interaction Methods

Organization
openharmonyinsight
hmos-multidevice-interaction-methods

HarmonyOS应用多设备交互适配开发方案skill,提供触摸、鼠标、键盘、手写笔等多输入方式的交互方案和统一策略。当涉及触摸、鼠标、键盘、手写笔等设备的交互以及实现交互归一化、悬停效果、右键菜单、焦点导航、手写板输入和压感等功能时调用。

Overview

Publisheropenharmonyinsight
Repositoryopenharmony-skills
Skill namehmos-multidevice-interaction-methods
Stars
36
Forks
7
Bundled files
13
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 13 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by openharmonyinsight on GitHub. Read the source before you install it.

Installation

Install the Hmos Multidevice Interaction Methods AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/openharmonyinsight/openharmony-skills/tree/main/skills/harmonyos-ai-agent-skill/references/hmos-multidevice-interaction-methods
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/openharmonyinsight/openharmony-skills.git /tmp/openharmony-skills
mkdir -p .claude/skills
cp -r /tmp/openharmony-skills/skills/harmonyos-ai-agent-skill/references/hmos-multidevice-interaction-methods .claude/skills/hmos-multidevice-interaction-methods
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Hmos Multidevice Interaction Methods in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Hmos Multidevice Interaction Methods on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Hmos Multidevice Interaction Methods is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

交互方式适配

技能概述

HarmonyOS应用交互方式适配skill,为触摸、鼠标、键盘、手写笔等多输入方式提供交互方案和统一交互策略 适用设备(device types): phone / tablet / 2in1 / tv 适用范围:交互归一化、鼠标悬浮、右键菜单、焦点导航、键盘快捷键、手写笔输入 不适用范围: 纯视觉动画微调、与输入方式无关的业务流程改造

核心约束

  • 先明确当前页面的主输入方式和兼容输入方式,再决定交互模型。
  • 优先采用交互归一化方案,避免为不同输入方式维护完全独立的主流程。
  • 涉及鼠标或触控板时,必须补充悬浮、右键和拖拽反馈。
  • 涉及键盘时,必须明确焦点顺序、方向键行为和快捷键行为。
  • 涉及手写笔时,必须区分触碰和按压。
  • 多输入并存时必须给出优先级策略。

阶段标签

标签阶段当前模块关注点
REQ需求分析设计主输入方式、兼容输入方式、交互边界
DEV开发事件接线、焦点链路、悬浮和快捷键实现
FIX问题修复焦点断裂、鼠标无反馈、快捷键冲突、手写笔异常
VAL功能验证输入矩阵、焦点路径、悬浮效果验证、快捷键验证

统一输出字段

  • 路由字段:active_phases、primary_phase、primary_scene、secondary_scenes、resources_used
  • REQ:device_constraints、capability_boundary、acceptance_focus
  • DEV:code_touchpoints、reuse_resources、implementation_notes、integration_risks
  • FIX:problem_profile、root_cause_hypothesis、fix_plan、regression_watchlist
  • VAL:verification_matrix、evidence_requirements、pass_criteria、residual_risks

字段释义

  • device_constraints:指由触摸、鼠标、键盘、手写笔或外接输入设备差异带来的交互硬约束。在 interaction-methods 中,通常是哪些输入方式必须支持、是否必须有 hover 或 focus、快捷键是否是必选能力。
  • capability_boundary:指当前交互方案覆盖哪些输入方式,哪些输入路径可以降级,哪些行为只在特定设备上生效。
  • acceptance_focus:指需求阶段验收时必须确认的焦点链路、悬浮反馈、快捷键行为和多输入回退策略。
  • scene 中 deliverables.REQ 出现 device_constraints,表示“该交互场景命中后,需求阶段必须先明确输入适配边界”,不是对字段重新命名。

场景决策树

开始
  │
  ├─→ 步骤1: 分析是否涉及鼠标交互(右键菜单,鼠标悬浮)
  │     └─→ 涉及 → 命中 `INPUT-01` -> 步骤2
  │     └─→ 不涉及 → 步骤3
  │
  ├─→ 步骤2: 分析是否涉及交互归一化,即一套组件同时支持触摸和鼠标
  │     └─→ 涉及 → 命中 `INPUT-02` -> 步骤3
  │     └─→ 不涉及 → 步骤3
  │
  ├─→ 步骤3: 分析是否涉及键盘交互(焦点导航、样式或键盘快捷键)
  │     └─→ 涉及 → 命中 `INPUT-03` -> 步骤4
  │     └─→ 不涉及 → 步骤4
  │
  └─→ 步骤4: 分析是否涉及手写笔交互(手写笔交互,压感)
        └─→ 涉及 → 命中 `INPUT-04` -> 结束
        └─→ 不涉及 → 结束

场景索引

INPUT-01 鼠标设备交互(点击,悬浮,右键菜单)

阶段: REQ, DEV, FIX

适用场景
  • 页面需要面向 PC 或平板外接鼠标
  • 当前问题表现为鼠标悬浮无反馈或右键无菜单
不适用场景
  • 页面只面向纯触摸设备
关键决策
  • 明确悬浮态反馈、右键菜单和拖拽手势的交互层级
  • 决定是否为桌面设备提供额外快捷操作
文件读取

REQ阶段

DEV阶段

FIX阶段


INPUT-02 交互归一化

阶段: REQ, DEV, FIX

适用场景
  • 同一组件需要兼容触摸和鼠标
  • 当前问题表现为不同输入方式走了不同主流程
不适用场景
  • 当前页面只支持单一输入方式
关键决策
  • 选择统一事件入口和差异化反馈出口
  • 决定长按、右键、拖拽之间的优先级
文件读取

REQ阶段

DEV阶段

FIX阶段


INPUT-03 键盘焦点导航与快捷键

阶段: REQ, DEV, FIX

适用场景
  • 页面需要焦点导航、方向键切换焦点、键盘快捷键时
  • 当前问题表现为焦点顺序错乱或快捷键冲突
不适用场景
  • 页面完全不支持键盘输入
关键决策
  • 定义焦点顺序、方向键映射和快捷键命名空间
  • 决定自动导航和手动导航的边界
文件读取

REQ阶段

DEV阶段

FIX阶段


INPUT-04 手写笔输入与笔态交互

阶段: REQ, DEV, FIX

适用场景
  • 页面需要支持手写笔触碰、按压或悬浮
  • 当前问题表现为笔输入和手指输入混淆
不适用场景
  • 目标设备不支持手写笔
关键决策
  • 区分笔触输入与普通触摸输入
  • 决定悬浮、按压、笔迹预览的反馈方式
文件读取

REQ阶段

DEV阶段

FIX阶段


阶段输出契约

REQ

  • 必须输出:active_phases、primary_phase、primary_scene、secondary_scenes
  • 必须输出:device_constraints、capability_boundary、acceptance_focus
  • 额外要求:明确主输入方式、兼容输入方式,以及是否存在输入优先级

DEV

  • 必须输出:code_touchpoints、reuse_resources、implementation_notes、integration_risks
  • 额外要求:明确事件入口、焦点管理入口和快捷键触发逻辑

FIX

  • 必须输出:problem_profile、root_cause_hypothesis、fix_plan、regression_watchlist
  • 额外要求:明确问题属于事件归一化缺失、焦点链路错误、悬浮反馈缺失还是笔输入分流错误

VAL

  • 必须输出:verification_matrix、evidence_requirements、pass_criteria、residual_risks
  • 额外要求:至少覆盖触摸、鼠标或触控板、键盘三类输入中的适用组合;如命中 INPUT-04,还要进行手写笔验证

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Hmos Multidevice Interaction Methods AI skill do?

HarmonyOS应用多设备交互适配开发方案skill,提供触摸、鼠标、键盘、手写笔等多输入方式的交互方案和统一策略。当涉及触摸、鼠标、键盘、手写笔等设备的交互以及实现交互归一化、悬停效果、右键菜单、焦点导航、手写板输入和压感等功能时调用。

Why use Hmos Multidevice Interaction Methods on TypingMind?

Because you install it once and use it with any model. Hmos Multidevice Interaction Methods is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Hmos Multidevice Interaction Methods in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/openharmonyinsight/openharmony-skills/tree/main/skills/harmonyos-ai-agent-skill/references/hmos-multidevice-interaction-methods. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Hmos Multidevice Interaction Methods?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Hmos Multidevice Interaction Methods?

As many as you like. As long as a model supports skills, you can use Hmos Multidevice Interaction Methods with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Hmos Multidevice Interaction Methods AI skill free?

It is published on GitHub by openharmonyinsight. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇