Skip to content
Back to skills

Nl2ms Ui

ASecurity

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

  • 21 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 7, 2026
developmenttypescriptapi

Works with

  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill nl2ms-ui --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nl2ms Ui?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nl2ms Ui
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-nl2ms-ui/badge)](https://www.skillsdirectory.com/skills/modbender-nl2ms-ui)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nl2ms-ui
description: 根据自然语言通过midscene的api生成midscene脚本,可以生成web端、Android端、iOS端和PC端的midscene脚本。当用户提及生成脚本,android脚本、iOS脚本、web脚本、PC脚本时使用。
---

# 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

Files in this skill

  • SKILL.md2.4 KB
  • references/examples-android-ts.md4.3 KB
  • references/examples-android-yaml.md2.2 KB
  • references/examples-ios-ts.md4.1 KB
  • references/examples-ios-yaml.md2.3 KB
  • references/examples-pc-ts.md4.1 KB
  • references/examples-pc-yaml.md1.6 KB
  • references/examples-web-ts.md3.1 KB
  • references/examples-web-yaml.md5.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.