nl2ms-ui

根据自然语言通过midscene的api生成midscene脚本,可以生成web端、Android端、iOS端和PC端的midscene脚本。当用户提及生成脚本,android脚本、iOS脚本、web脚本、PC脚本时使用。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "nl2ms-ui" with this command: npx skills add wu-xiyou/nl2ms-ui

Midscene 脚本生成技能

何时使用此技能

当用户需要生成以下类型的自动化测试脚本时使用此技能:

  • Android 脚本:Android 移动端应用的自动化测试脚本
  • iOS 脚本:iOS 移动端应用的自动化测试脚本
  • Web 脚本:Web 浏览器的自动化测试脚本
  • PC 脚本:桌面端应用的自动化测试脚本

平台支持

1. Android 端

  • YAML 示例references/examples-android-yaml.md
  • TypeScript 示例references/examples-android-ts.md

2. iOS 端

  • YAML 示例references/examples-ios-yaml.md
  • TypeScript 示例references/examples-ios-ts.md

3. Web 端

  • YAML 示例references/examples-web-yaml.md
  • TypeScript 示例references/examples-web-ts.md

4. PC 端

  • YAML 示例references/examples-pc-yaml.md
  • TypeScript 示例references/examples-pc-ts.md

最佳实践

  1. 明确指定平台:生成脚本时明确目标平台(Android/iOS/Web/PC)
  2. 使用描述性步骤名称:为每个步骤提供清晰的名称和描述
  3. 合理使用等待:优先使用 aiWaitFor 而非固定 sleep
  4. 错误处理:使用 continueOnError: true 或 try-catch 处理可选步骤
  5. 验证断言:在关键步骤后添加断言验证操作成功
  6. 环境配置:使用 .env 管理 API 密钥,设置合适的 aiActionContext

参考资源

  • API 参考references/midscene-api
  • 详细示例
    • Android:
      • YAML: references/examples-android-yaml.md
      • TypeScript: references/examples-android-ts.md
    • iOS:
      • YAML: references/examples-ios-yaml.md
      • TypeScript: references/examples-ios-ts.md
    • Web:
      • YAML: references/examples-web-yaml.md
      • TypeScript: references/examples-web-ts.md
    • PC:
      • YAML: references/examples-pc-yaml.md
      • TypeScript: references/examples-pc-ts.md
  • 常见场景references/common-scenarios.md
  • 官方文档https://midscenejs.com/api.html

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Context Nexus

Advanced-installation integration manifest for persistent cross-session memory, structured observability, encrypted secrets management, and replay for OpenCl...

Registry SourceRecently Updated
General

Runtime Doctor

Diagnose local OpenClaw runtime/config drift, gateway disconnects, session recovery failures, workspace state incoherence, and runtime stability issues with...

Registry SourceRecently Updated
General

Glancely

Personal tracker framework. Scaffold new habit/workout/mood/reminder trackers from natural language. Dashboard, cron, all in one skill.

Registry SourceRecently Updated
General

Wechat Md Publisher Skill

发布 Markdown 文章到微信公众号,支持草稿管理、多主题、智能图片处理、自动封面图。推荐与 news-to-markdown-skill 配合使用实现一键转载(支持本地图片)。

Registry SourceRecently Updated