nl2ms-ui
根据自然语言通过midscene的api生成midscene脚本,可以生成web端、Android端、iOS端和PC端的midscene脚本。当用户提及生成脚本,android脚本、iOS脚本、web脚本、PC脚本时使用。
Why use this skill?
Use nl2ms-ui to generate cross-platform automation scripts for Android, iOS, Web, and PC using natural language. Accelerate your QA process now.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/wu-xiyou/nl2ms-uiWhat This Skill Does
The nl2ms-ui skill acts as an intelligent bridge between human intent and the Midscene automation framework. It interprets natural language instructions to generate structured, executable automation scripts for cross-platform applications. Whether you are targeting mobile ecosystems (Android/iOS), browser-based web applications, or desktop PC software, this skill abstracts the technical complexity of Midscene API calls, enabling developers and QA engineers to generate robust test suites rapidly. It interprets user requirements to produce clean, maintainable YAML or TypeScript code that follows industry best practices for automation.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/wu-xiyou/nl2ms-ui
Ensure that your OpenClaw CLI is updated to the latest version to maintain compatibility with the underlying Midscene API.
Use Cases
- Cross-platform UI Testing: Seamlessly switch between generating test scenarios for web browsers, mobile apps, and desktop interfaces.
- Rapid Prototyping: Convert plain English requirements into initial automation boilerplate to accelerate test development.
- CI/CD Integration: Automatically generate regression scripts that can be injected into automated pipelines.
- Dynamic Test Maintenance: Update existing test flows by simply providing new natural language instructions, reducing the time spent manually refactoring code.
Example Prompts
- "Generate a Midscene TypeScript script for Android that logs into our app, navigates to the settings menu, and verifies the user profile name is correct."
- "Create a Web-based Midscene YAML script that adds items to a shopping cart on our ecommerce site and proceeds to checkout."
- "Write a PC-based automation script that opens the file explorer, creates a new directory, and ensures the folder creation is successful using an assertion."
Tips & Limitations
To ensure high-quality script generation, always be specific about the target platform and provide clear, sequential steps. While the tool is highly capable of generating complex logic, it performs best when users include descriptive element names and expected outcomes. For optimal reliability, prefer the use of aiWaitFor over arbitrary sleep intervals to handle UI loading states gracefully. Be aware that the generated scripts should always be reviewed by a human before deployment to production environments. Finally, ensure your .env file is properly configured with your API credentials before execution to avoid authentication errors during script generation.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-wu-xiyou-nl2ms-ui": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: code-execution, external-api