Web UI Autotest Generator
从前端和后端源码中生成可维护的 Web UI 自动化测试。适用于分析页面、路由、组件、接口、用户流程,生成 Playwright UI 测试,运行测试,生成中文报告,并自检页面功能和跨页面逻辑是否被独立测试资产覆盖。 Generate maintainable Web UI automated tests from frontend and backend source code. Use for analyzing pages, routes, components, APIs, and user flows; generating and running Playwright UI tests; producing Chinese test reports; and checking whether page features and cross-page logic are covered by independent test assets.
Install
npx skills add KunoLu/640-skills --skill web-ui-autotest-generatorgit clone --depth 1 https://github.com/KunoLu/640-skills.git /tmp/640-skills
mkdir -p ~/.claude/skills
cp -r /tmp/640-skills/sbtd-workflow-onboard/templates/skills/web-ui-autotest-generator ~/.claude/skills/web-ui-autotest-generatorPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Web UI 自动化测试生成器 使用本 skill 可以把一个 Web 项目整理成可执行、可复查、可持续维护的 UI 自动化测试套件。 目标不是只写几条临时脚本,而是先分析前端页面、后端接口、用户流程和 UI 状态,再生成 Playwright 测试、覆盖率清单、执行命令和中文报告。生成后的测试资产应能脱离本 skill 独立运行。 ## 默认技术栈 除非目标仓库已经明确使用其他 UI 测试框架,否则默认使用 Playwright + TypeScript。 默认输出结构: ```text tests/e2e/ pages/ # Page Object 模型 specs/ # 按页面或路由组织的测试用例 fixtures/ # 登录状态、测试数据、接口 mock utils/ # 通用辅助函数 reports/ # 测试报告和中文总结 playwright.config.ts ui-test-manifest.json ui-test-coverage.json ``` 内置资源: ```text scripts/generate_manifest.py # 源码扫描,生成 ui-test-manifest.json scripts/audit_selectors.py # 选择器稳定性审计,生成 ui-selector-audit.json scripts/check_coverage.py # 清单和用例覆盖率检查,生成 ui-test-coverage.json scripts/analyze_failures.py # Playwright JSON 报告分析,生成 ui-test-repair-plan.json assets/templates/ # Playwright 起始模板 assets/templates/summary.zh-CN.md.template # 中文覆盖率评估附录模板 ``` ## 工作流程 1. 检查项目结构和已有测试工具。 2. 分析前端路由、页面、组件、UI 控件、状态管理和接口调用。 3. 如存在后端代码、OpenAPI、Swagger 或 Apifox 文档,补充分析接口契约。 4. 生成页面、功能、接口和流程清单。 5. 审计选择器稳定性,并记录 `data-testid` 等改造建议。 6. 生成 Playwright Page Object、fixture、spec 和 CI 脚本。 7. 条件允许时在本地运行测试。 8. 如果测试失败,分析失败原因并修复生成的测试。 9. 按覆盖率规则自检生成结果并输出评分。 10. 生成中文测试报告,说明执行结果、覆盖缺口、选择器风险和后续动作。 生成或评审测试时,按需读取 `references/coverage-rubric.md`。 编写清单、覆盖率或报告时,按需读取 `references/output-contract.md`。 ## 脚本化初筛 先使用内置脚本得到稳定的基础扫描结果,再结合项目代码进行人工判断和修正。 生成初始清单:
Details
- Skill name
web-ui-autotest-generator- Repository
- KunoLu/640-skills
- Path
sbtd-workflow-onboard/templates/skills/web-ui-autotest-generator/SKILL.md- License
- Apache-2.0
- Repo updated
- 13 November 2026
FAQ
What does the Web UI Autotest Generator skill do?
从前端和后端源码中生成可维护的 Web UI 自动化测试。适用于分析页面、路由、组件、接口、用户流程,生成 Playwright UI 测试,运行测试,生成中文报告,并自检页面功能和跨页面逻辑是否被独立测试资产覆盖。 Generate maintainable Web UI automated tests from frontend and backend source code. Use for analyzing pages, routes, components, APIs, and user flows; generating and running Playwright UI tests; producing Chinese test reports; and checking whether page features and cross-page logic are covered by independent test assets.
How do I install the Web UI Autotest Generator skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add KunoLu/640-skills --skill web-ui-autotest-generator. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Web UI Autotest Generator popular?
It lives in KunoLu/640-skills, which has 559 GitHub stars and 13 forks.
Related skills
Handoff
559KunoLu/640-skills
Compact the current conversation into a handoff document for another agent to pick up.
Codebase Design
559KunoLu/640-skills
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
Diagnosing Bugs
559KunoLu/640-skills
Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.
Accessibility Compliance Accessibility Audit
514Dokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLI
You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive technology compatibility. Conduct audits, identify barriers, and provide remediation guidance.
Impeccable
559KunoLu/640-skills
Use to design, redesign, critique, audit, polish or animate a frontend: websites, landing pages, dashboards, app UI, components, native iOS/Android screens, or a design system (DESIGN.md).
Algolia Search
514Dokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLI
Expert patterns for Algolia search implementation, indexing strategies, React InstantSearch, and relevance tuning Use when: adding search to, algolia, instantsearch, search api, search functionality.
Browse the most popular Claude skills, all frontend & design skills, or write your own with the skills generator.