| name | e2e-reverse |
| description | Reverse-engineer live web applications into Gherkin specifications for E2E testing and recreation. Use when you need to document existing app behavior, create test scenarios from production apps, generate BDD specifications from live websites, or recreate app features based on observed interactions. Autonomous exploration via Ralph Loop with auto-validation and quality scoring. Requires Playwright MCP server for browser automation. |
| argument-hint | <setup|start|status|export|cancel|help> |
| compatibility | Requires Playwright MCP server |
E2E Reverse Engineering - Command Router
Parse the first argument to determine which subcommand to execute:
setup → Read and execute setup.md
start → Read and execute start.md
status → Read and execute status.md
export → Read and execute export.md
cancel → Read and execute cancel.md
help → Read and execute help.md
- No argument or invalid → Show quick start below
If a valid subcommand is detected, IMMEDIATELY read and execute that command file. Do not continue reading this file.
Quick Start
/e2e-reverse setup
/e2e-reverse start
/e2e-reverse export
Examples
E-commerce site:
/e2e-reverse setup
/e2e-reverse start --max-iterations 20
/e2e-reverse export --format html
SaaS dashboard:
/e2e-reverse start https://app.saas-platform.com
/e2e-reverse status
Mandatory Requirements
- BLOCKING: Validate Playwright MCP server availability before starting exploration.
- BLOCKING: Load and apply settings from
.claude/e2e-reverse.config.md.
- Follow Gherkin best practices (Given/When/Then, feature-oriented, proper tagging).
- Maintain session state with auto-checkpointing; enable resume on interruption.
- Prioritize quality over quantity (target 3+ scenarios per feature).
- Document device-specific behavior separately (do not merge desktop/mobile/tablet).
- Name feature files after functionality (
search.feature, not page1.feature).
- Capture screenshots for key states, organized by feature.
- Generate Gherkin specs detailed enough for recreation or test automation.
References
Configuration
Project config stored in .claude/e2e-reverse.config.md:
---
base_url: "https://example.com"
output_dir: "e2e/features"
screenshot_dir: "e2e/screenshots"
max_iterations: 15
language: "ko"
devices:
- name: desktop
width: 1920
height: 1080
- name: mobile
width: 375
height: 667
---
Run /e2e-reverse setup to create or update.