Frontend Testing Debugging 是什么?
针对已渲染前端的交互、布局、控制台错误和回归,先明确一条用户流程,做必要局部修改后在真实浏览器复测。它优先当前可用的Browser插件,缺失时才按来源规则使用Playwright并记录原因。
中文说明由本站依据来源整理;英文原文保留在页面下方。
来源已说明的能力
- 前端功能与视觉问题复现、修复和验收
怎么接入你的 Agent?
- 定位完整 Skill 目录
打开本项目来源,核对
SKILL.md及其引用的脚本和资料。 - 交给你正在用的 Agent
在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。
- 确认识别,再做具体任务
让 Agent 回报安装目录和识别到的名称
frontend-testing-debugging,然后按本页使用示例提供材料。
展开并复制给 Codex 的安装指令
安装并检查 Frontend Testing Debugging
请在 Codex 的当前工作环境中安装并检查 Frontend Testing Debugging 这个 Skill。
项目身份:openai/plugins / frontend-testing-debugging
来源:https://github.com/openai/plugins/blob/d420d13051bffe4543ed39e30fa46b87148e47dd/plugins/build-web-apps/skills/frontend-testing-debugging/SKILL.md
已定位的源文件:plugins/build-web-apps/skills/frontend-testing-debugging/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Claude Code 的安装指令
安装并检查 Frontend Testing Debugging
请在 Claude Code 的当前工作环境中安装并检查 Frontend Testing Debugging 这个 Skill。
项目身份:openai/plugins / frontend-testing-debugging
来源:https://github.com/openai/plugins/blob/d420d13051bffe4543ed39e30fa46b87148e47dd/plugins/build-web-apps/skills/frontend-testing-debugging/SKILL.md
已定位的源文件:plugins/build-web-apps/skills/frontend-testing-debugging/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Cursor 的安装指令
安装并检查 Frontend Testing Debugging
请在 Cursor Agent 的当前工作环境中安装并检查 Frontend Testing Debugging 这个 Skill。
项目身份:openai/plugins / frontend-testing-debugging
来源:https://github.com/openai/plugins/blob/d420d13051bffe4543ed39e30fa46b87148e47dd/plugins/build-web-apps/skills/frontend-testing-debugging/SKILL.md
已定位的源文件:plugins/build-web-apps/skills/frontend-testing-debugging/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 当前 Agent 的安装指令
安装并检查 Frontend Testing Debugging
请在 当前 Agent 的当前工作环境中安装并检查 Frontend Testing Debugging 这个 Skill。
项目身份:openai/plugins / frontend-testing-debugging
来源:https://github.com/openai/plugins/blob/d420d13051bffe4543ed39e30fa46b87148e47dd/plugins/build-web-apps/skills/frontend-testing-debugging/SKILL.md
已定位的源文件:plugins/build-web-apps/skills/frontend-testing-debugging/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。装好以后,具体怎么用?
准备哪些材料
- 可运行的前端项目或明确URL,说明目标动作与预期结果;浏览器路径以本次会话真实工具为准。
会得到什么
- 具体缺陷与修改、实际交互结果和视觉证据,以及浏览器路径和检查限制。
实际使用顺序
- 从项目脚本和本地端口确认目标页面,定义入口→动作→预期结果。
- 按来源检查Browser可用性,记录所用路径;确认页面身份、有效内容、错误覆盖层和相关控制台错误。
- 修复后重新加载并重做原交互,观察真实状态,再检查桌面与窄屏截图;报告证据和未覆盖流程,不能只凭build通过。
从一个具体任务开始
本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。
复制一个具体任务
教学示例:用frontend-testing-debugging检查本地搜索框输入中文后结果不更新的问题。先确认URL与输入流程,检查实际DOM和控制台,定位后只改相关代码;修复后重做中文搜索、清空和无结果三种状态,并检查390px布局。不重设计整个页面、不操作外部服务。预期有可复现问题和修复后同路径的结果;本站未执行该例。
使用条件与边界
- 此版本要求独立记录浏览器路径失败与回退,工具可用不能只靠名称猜;视觉检查范围与功能检查范围分别报告。
- 正文保留项目原有任务说明;未运行启用、连接账号或交付流程,不能视为安装成功证明。
常见问题
构建通过可以省略浏览器吗?
不能。渲染与交互问题需要看实际页面,build不能证明按钮或搜索更新正确。
会顺便改整页视觉风格吗?
来源针对目标流程做最小有用修改,整体重设计属于另一类任务。
来源原文与资料状态
- 源文件
- 已保存 SKILL.md,抓取于 2026-11-17T10:51:03.279Z
- 中文使用说明
- 已针对下方源文件版本整理用途、用法和常见问题
- 安装与任务测试
- 本站未执行安装或任务测试
- 来源复核
- 本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料
plugins/build-web-apps/skills/frontend-testing-debugging/SKILL.md · 抓取时间 2026-11-17T10:51:03.279Z
以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。
抓取成功不代表已完成安装或任务测试。
Use when testing, debugging, or making targeted improvements to rendered frontend apps through the Build Web Apps or web dev plugin: local dev servers, UI regressions, interaction bugs, console errors, responsive layout, and visual QA. Check whether the Browser plugin is available and use it first when it is; otherwise use regular Playwright with the recorded reason.
查看源文件章节 / Source sections
- 原文:Frontend Testing Debugging
- 原文:Invocation Contract
- 原文:Choose The Browser Path
- 原文:Target Flow
- 原文:Browser Plugin Loop
- 原文:Required Browser Checks
- 原文:Playwright Loop
- 原文:Validation Checklist
- 原文:QA Final Response Report
- 原文:Related Skills
- 原文:Final Response
原文:Invocation Contract
This skill should work from normal user prompts. Do not require the user to spell out Browser routing, screenshots, report shape, or fallback policy. Use this skill when the user asks to use the Build Web Apps plugin, web dev plugin, frontend dev plugin, or frontend testing/debugging skill for a rendered frontend change, test, or bug investigation. Examples that should trigger this full workflow: - `please make an improvement to the web dashboard transaction search area and use the web dev plugin` - `use the frontend dev plugin to polish this dashboard` - `debug this UI with the Build Web Apps plugin` - `test this localhost app and fix the broken interaction` From a brief prompt, infer the target surface from the repo, currently open app/browser URL, nearby files, or running dev server. If the target URL is unclear, inspect the repo scripts and running local ports before asking the user. For any code change to a rendered frontend surface, do the validation loop by default: 1. Identify the target flow. 2. Choose the Browser path below. 3. Make the smallest useful edit. 4. Validate the rendered behavior. 5. Reply with the QA final response report.
原文:Choose The Browser Path
First classify Browser availability: - **Available**: the Browser plugin and its `browser` skill are listed in the session. Read and follow that skill before any browser action. - **Absent**: the Browser plugin or `browser` skill is not listed. Use regular Playwright and record `Browser plugin not available`. - **Invocation failed**: Browser appears available, but the skill/runtime, Node REPL JavaScript setup, tab acquisition, or navigation fails. Treat this as a Browser-path blocker. Do not use regular Playwright, external Chrome, or shell `open` first when Browser is available. Only switch from a failed Browser invocation to regular Playwright if the user already allowed fallback or the task explicitly permits non-Browser validation. In that case, report the exact Browser failure and the fallback decision.
原文:Target Flow
Before browser validation, define the target flow in one sentence: `The flow under test is: [entry route] -> [user action or state] -> [expected rendered result].` If the user asked for general smoke testing, use: `The flow under test is: app loads -> first meaningful screen renders -> primary visible controls respond without runtime errors.`
原文:Browser Plugin Loop
Run Browser commands through the Node REPL JavaScript tool described by the Browser skill. Do not invent a separate browser setup path. Keep using the same tab binding unless the Browser skill says otherwise. Required sequence: 1. Load the Browser runtime exactly as the Browser skill instructs. 2. Name the session with `agent.browser.nameSession("...")`. 3. Acquire a tab with `agent.browser.tabs.selected()` or `agent.browser.tabs.new()`. 4. Navigate with `tab.goto(url)`. 5. Run the required checks below. 6. Interact with scoped `tab.playwright` locators or Browser skill interaction APIs. 7. After edits, call `await tab.reload()`, then repeat the checks and the failing interaction. For each UI-changing action, collect the cheapest proof that the next state is correct: fresh DOM snapshot, visible text/state, URL change, focused control, toast, modal, screenshot, or console log.
原文:Required Browser Checks
Run these checks before claiming the rendered app works: 1. **Page identity**: `await tab.url()` and `await tab.title()` match the intended page. 2. **Not blank**: `await tab.playwright.domSnapshot()` contains meaningful app content, not an empty shell. 3. **No framework overlay**: the snapshot or screenshot does not show a Next.js, Vite, Webpack, or framework error overlay. 4. **Console health**: `await tab.dev.logs({ levels: ["error", "warn"], limit: 50 })` has no relevant app errors, or each relevant error is explained. 5. **Screenshot evidence**: `await display(await tab.playwright.screenshot({ fullPage: false }))` supports visual claims. 6. **Interaction proof**: at least one target-flow interaction is exercised and followed by a state check. For visual work, add desktop plus one mobile-sized viewport when practical. For reference-driven work, keep a short mismatch ledger: reference evidence, rendered evidence, fix or intentional deviation.
原文:Playwright Loop
Use this branch when Browser is not available, or when the user has allowed fallback after a Browser invocation failure. Use this order: 1. Find scripts in `package.json`. 2. Start the app with the repo's package manager and keep the requested host exact. 3. Prefer the repo's e2e script if present. 4. Otherwise run `pnpm exec playwright test` or the package-manager equivalent when Playwright is configured. 5. If there is no project Playwright workflow, verify Playwright with `pnpm exec playwright --version`, then capture a screenshot with `pnpm exec playwright screenshot <url> /tmp/frontend-check.png`. 6. For deeper debugging, create a small temporary Playwright script outside committed source that opens the URL, captures console errors, screenshots, and runs the target interaction. 7. After edits, rerun the same command or script. Do not install new browser dependencies unless the task requires it and the user has allowed dependency changes.
文件 SHA256:03724620cf7e7de425b607a5492f572d867b1cf5d9c92c74bf50d057d7415e0b
仓库许可证记录:未提供;not-established,查看来源。
围绕本地前端的真实交互、控制台、响应式布局和视觉回归形成验证闭环。
历史收录数据
| 来源仓库 | openai/plugins |
|---|---|
| Skill标识 | frontend-testing-debugging |
原资料输入
- 可运行的本地应用
- 目标流程和视口
- 预期结果或缺陷证据
原资料使用步骤
- 选择浏览器路径
- 运行目标流程
- 检查控制台与网络
- 跨视口复验
- 保存证据
原资料输出
- 复现步骤和原因
- 修复后的浏览器证据、日志与截图
到来源目录核对完整Skill与插件依赖;此页不提供未经核实的安装命令。
