e2e-gen
Generate Playwright/Cypress E2E tests from user flows
Why use this skill?
Instantly generate professional Playwright and Cypress E2E tests from natural language prompts. Streamline your QA workflow and save hours of manual coding effort.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/lxgicstudios/ai-e2e-genWhat This Skill Does
The e2e-gen skill acts as an intelligent automation assistant designed to streamline the software quality assurance process by generating production-ready end-to-end (E2E) test suites. By interpreting natural language descriptions of user journeys, this tool eliminates the tedious manual boilerplate required for frameworks like Playwright and Cypress. It intelligently constructs test steps, implements asynchronous waiting strategies, and prioritizes resilient selector patterns such as data-testids. Whether you are building a new application or retrofitting tests onto legacy features, this agent serves as a force multiplier for development teams, reducing the time spent on writing test infrastructure from hours to seconds.
Installation
To integrate this skill into your environment, use the OpenClaw CLI tool. Ensure you have Node.js 18 or higher installed on your system. Run the following command in your terminal:
clawhub install openclaw/skills/skills/lxgicstudios/ai-e2e-gen
Ensure that you have set your OPENAI_API_KEY in your environment variables, as the skill requires this to power its generative logic.
Use Cases
This skill is ideal for rapid prototyping, CI/CD pipeline setup, and regression suite expansion. It is particularly effective for teams following Behavior-Driven Development (BDD) practices, allowing non-technical stakeholders to describe flows that the skill converts into executable code. It is also excellent for generating boilerplate for complex flows like multi-step checkout processes, authentication hurdles, or complex dashboard interactions that are often error-prone when coded manually.
Example Prompts
- "Generate a Playwright test for a user registering a new account and then logging in immediately after."
- "Create a Cypress test that navigates to the admin panel, deletes a user, and verifies that the success message appears."
- "Analyze the page at http://localhost:3000/settings and generate a test script to update user profile information."
Tips & Limitations
To get the best results, provide specific details regarding unique identifiers or non-standard DOM elements in your prompt. While the skill is highly capable, remember that generated code should always be reviewed by a human before being committed to a production branch. Complex interactions involving iframes, shadow DOMs, or third-party OAuth providers may require minor manual adjustments. Always verify that your application has the necessary test hooks (data-testids) to ensure maximum test stability across different environments.
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-lxgicstudios-ai-e2e-gen": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: external-api, code-execution
Related Skills
script-gen
Generate package.json scripts with AI. Use when setting up npm scripts.
email-template-gen
Generate responsive email templates. Use when building transactional emails.
branch-namer
Generate descriptive git branch names from plain English. Use when you need a branch name that follows conventions.
cloudflare-gen
Generate Cloudflare Workers configuration and code. Use when building on the edge.
adr-writer
Generate Architecture Decision Records with AI. Use when documenting technical decisions.