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

AIWolfPK - AI狼人杀

四个AI互相猜疑,你坐着看戏。每局30秒,到底谁是狼? Four AIs play Werewolf while you watch. 30s per round. Spot the wolf before they do.

Registry SourceRecently Updated
General

Project Analyzer

Analyze any project directory and produce a detailed report covering what the project does, its tech stack, folder structure, entry points, how to run it, an...

Registry SourceRecently Updated
General

Thought-Retriever

提炼对话回答中的核心洞察为高置信度知识晶体,存储于本体驱动记忆系统的自我进化与复用。

Registry SourceRecently Updated
General

Miaoji Bid Guard Pro

亚马逊广告护城河Pro版,90天ROI预测+多活动协同+季节性出价+关键词攻防矩阵。 从单次调价建议升级为完整的广告战役规划。基础功能可使用 miaoji-bid-guard 免费版。

Registry SourceRecently Updated