一键导入
e2e-ui-research
Research UI E2E test targets and generate test scenario documentation. Use to analyze a frontend app and create comprehensive E2E test plans.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Research UI E2E test targets and generate test scenario documentation. Use to analyze a frontend app and create comprehensive E2E test plans.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | e2e-ui-research |
| description | Research UI E2E test targets and generate test scenario documentation. Use to analyze a frontend app and create comprehensive E2E test plans. |
| context | fork |
| agent | general-purpose |
$ARGUMENTS
Consider any additional context from user input (if not empty). Port and base URL will be extracted from playwright.config.ts.
This command performs comprehensive UI E2E test research including actual browser exploration via Playwright MCP.
Read playwright.config.ts (or .js) and package.json together:
From playwright.config.ts:
webServer.url or use.baseURL)testDir or testMatch)From package.json (in same directory as playwright.config.ts):
next, react, vue, svelte, @angular/core, etc.vite, webpack, turbopack, etc.Use playwright.config.ts to locate test files:
testDir or testMatch from playwright.config to find test locationtests/e2e/**/*.spec.ts)Analyze existing tests:
Frontend Structure Analysis:
This is the most important step! Code analysis alone cannot reveal actual user experience.
Get base URL from playwright.config.ts:
webServer.url or use.baseURL to get the application URLbrowser_navigate: {baseURL from config}
browser_snapshot: Capture initial page DOM structure
Based on route list identified from code:
browser_navigate: {baseURL}/{route}
browser_snapshot: Capture page DOM structure
Simulate main workflows:
Integrate Code Analysis + Browser Exploration Results:
Mark source for each scenario:
After defining test scenarios, cross-check with existing E2E tests:
Prioritize (Critical/High/Medium):
Files to Create:
docs/e2e-ui/test-targets.ko.md (Korean)docs/e2e-ui/test-targets.md (English)Important - Existing Document Handling:
playwright.config.ts and package.jsonDo:
Avoid:
Important: Even if bugs are found during Playwright MCP browser exploration:
DON'T:
DO:
After research completion, provide summary to user:
## UI E2E Test Research Complete
### Findings
- **Framework**: {React/Next.js/Vue/etc}
- **Pages Explored**: {X count}
- **User Flows Found**: {Y count}
- **Existing UI E2E Tests**: {Z count}
### Test Scenarios
- **Critical**: {N count}
- **High**: {M count}
- **Medium**: {K count}
- **Total**: {N+M+K count}
### Generated Documents
- `docs/e2e-ui/test-targets.ko.md` (Korean)
- `docs/e2e-ui/test-targets.md` (English)
### Coverage Gaps
- {main gap 1}
- {main gap 2}
### Next Steps
You can implement test scenarios as actual Playwright tests with `/e2e-ui-execute` command.
Start working according to the guidelines above.
Transform verbose natural language requests into structured bilingual documentation (Korean for review + English for AI prompts). Use when you need to clarify and structure a complex request before implementation.
Review current git changes or latest commit using code-reviewer and architect-reviewer agents. Use after completing code changes to get comprehensive quality feedback.
Review comments and suggest cleanup (identify unnecessary comments, recommend improvements). Use to aggressively clean up comment debt in code.
Identify and safely remove dead code, deprecated code, and unused exports from codebase. Use when you need to clean up unused or obsolete code.
Generate business rule documentation from domain knowledge and requirements. Use when you need to document complex business logic or domain rules.
Implement UI E2E tests sequentially using Playwright MCP, stop on bug discovery. Use after e2e-ui-research to implement the planned test scenarios.