Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/aiqualitylab-cypress-ai-test-generation
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
cypress-ai-test-generation- Description
- None
- License
- AGPL-3.0
- Instructions
- 160 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- missing YAML frontmatter
- name: missing
- description: missing
Files (2)
- SKILL.md
- skill.json
SKILL.md (first lines)
# Cypress AI Test Generation Skill
An AI-powered skill for generating Cypress end-to-end tests from natural language requirements, featuring cy.prompt() self-healing capabilities.
## Overview
This skill leverages OpenAI GPT-4o-mini, LangChain, and LangGraph to automatically generate comprehensive Cypress test suites from simple natural language descriptions, with support for both traditional and cy.prompt() powered tests.
## Features
- **Natural Language Processing**: Convert plain English test requirements into executable Cypress tests
- **cy.prompt() Support**: Generate self-healing tests that adapt to UI changes
- **AI Failure Analysis**: Automatically diagnose and fix test failures with intelligent suggestions
- **Pattern Learning**: Build and reuse test patterns for consistent, high-quality test generation
- **Dual Modes**: Traditional Cypress tests and cy.prompt() powered tests
## Usage
### Basic Test Generation
```bash
python qa_automation.py "Test user login with valid credentials" --framework cypress --url https://example.com
```
### cy.prompt() Mode
```bash
python qa_automation.py "Test user login with valid credentials" --framework cypress --url https://example.com --use-prompt
```
### Multiple Test Cases
```bash
python qa_automation.py \
"Test successful login" \
"Test login with invalid password" \
"Test form validation" \
--framework cypress --url https://example.com
```
### Run Generated Tests
```bash
# Traditional tests
npx cypress run --spec 'cypress/e2e/generated/**/*.cy.js'
# cy.prompt() tests
npx cypress run --spec 'cypress/e2e/prompt-powered/**/*.cy.js'
```
### AI Failure Analysis
```bash
python qa_automation.py --analyze "CypressError: cy.get('#username') failed because the element was not found"
```
## Architecture
The skill uses a sophisticated LangGraph workflow:
1. **Initialize Vector Store**: Load existing test patterns
2. **Fetch Test Data**: Analyze target URL and extract selectors
3. **Search Similar Patterns**: Find relevant test patterns from history
4. **Generate Tests**: Use AI to create Cypress tests with context
5. **Run Tests**: Execute tests and provide feedback
## Dependencies
- Python 3.11+
- Node.js 20+
- Cypress 15.8.1+
- OpenAI API access
- LangChain & LangGraph
## Configuration
Set your OpenAI API key:
```bash
export OPENAI_API_KEY="your-api-key-here"
```
Enable cy.prompt() in cypress.config.js:
```javascript
export default defineConfig({
experimentalPromptCommand: true,
// ... other config
})
```
Fixture shape note:
- `selectors` entries can be objects with `cypress`, `playwright`, and `fallback_css`
- Cypress generation should resolve selector objects using `fallback_css`
- Test values can be nested under `test_cases[*].field_name`
## Output Structure
### Traditional Tests
Saved in `cypress/e2e/generated/` with the pattern:
```
{sequence}_{slugified-requirement}_{timestamp}.cy.js
```
### cy.prompt() Tests
Saved in `cypress/e2e/prompt-powered/` with the same naming pattern.
Example: `01_test-user-login_20250103_142530.cy.js`
## Capabilities
- **Selector Strategies**: Intelligent element selection using multiple strategies
- **Wait Management**: Automatic wait handling for dynamic content
- **Assertion Generation**: Smart assertion creation based on page content
- **Error Handling**: Robust error handling and recovery
- **Self-Healing**: cy.prompt() tests adapt to UI changes automatically
## cy.prompt() Mode
cy.prompt() tests use natural language descriptions instead of hardcoded selectors:
```javascript
it('should login successfully', function () {
cy.visit(this.testData.url);
cy.prompt('Fill in the username field with a valid username');
cy.prompt('Fill in the password field with a valid password');
cy.prompt('Click the login button');From aiqualitylab/ai-natural-language-tests, AGPL-3.0.
More from aiqualitylab/ai-natural-language-tests
- 0.642score
playwright-ai-test-generation
AI Quality Lab
Generate Playwright tests for this repository using async await, context-driven selectors, and resilient assertions.
SkillAFreshness: A★ 25Claude Code +9 - 0.642score
cypress-ai-test-generation
AI Quality Lab
Generate Cypress tests for this repository using fixture-driven selectors, function syntax for this.testData, and resilient assertions.
SkillAFreshness: A★ 25Claude Code +9 - 0.638score
langgraph-workflow-development
aiqualitylab
Guide for LangGraph workflows in AI-powered test automation
SkillAFreshness: A★ 25Claude Code +9 - 0.354score
playwright-ai-test-generation
aiqualitylab
No description from the publisher yet.
SkillAFreshness: A★ 25Claude Code +9
Signals
- Stars
- 25
- Forks
- 8
- Open issues
- 9
- Last commit (this folder)
- Mar 11, 2026 (7 months ago)
- Last release
- Oct 10, 2026 (17 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- AGPL-3.0
- Website
- tests.aiqualitylab.org/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from aiqualitylab
Cite this page
cypress-ai-test-generation skill. Agent Mart. https://agentmart.dev/skills/aiqualitylab-cypress-ai-test-generation (last updated 2026-10-24)