frontend-testing-debugging
БесплатноБез исполняемых скриптовНе проверен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…
от openai★ 8 494 звезды на GitHubОб этом скилле
Frontend Testing Debugging
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 pluginuse the frontend dev plugin to polish this dashboarddebug this UI with the Build Web Apps plugintest 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:
- Identify the target flow.
- Choose the Browser path below.
- Make the smallest useful edit.
- Validate the rendered behavior.
- Reply with the QA final response report.
Choose The Browser Path
First classify Browser availability:
- Available: the Browser plugin and its
browserskill are listed in the session. Read and follow that skill before any browser action. - Absent: the Browser plugin or
browserskill is not listed. Use regular Playwright and recordBrowser 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:
- Load the Browser runtime exactly as the Browser skill instructs.
- Name the session with
agent.browser.nameSession("..."). - Acquire a tab with
agent.browser.tabs.selected()oragent.browser.tabs.new(). - Navigate with
tab.goto(url). - Run the required checks below.
- Interact with scoped
tab.playwrightlocators or Browser skill interaction APIs. - 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:
- Page identity:
await tab.url()andawait tab.title()match the intended page. - Not blank:
await tab.playwright.domSnapshot()contains meaningful app content, not an empty shell. - No framework overlay: the snapshot or screenshot does not show a Next.js, Vite, Webpack, or framework error overlay.
- Console health:
await tab.dev.logs({ levels: ["error", "warn"], limit: 50 })has no relevant app errors, or each relevant error is explained. - Screenshot evidence:
await display(await tab.playwright.screenshot({ fullPage: false }))supports visual claims. - 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:
- Find scripts in
package.json. - Start the app with the repo's package manager and keep the requested host exact.
- Prefer the repo's e2e script if present.
- Otherwise run
pnpm exec playwright testor the package-manager equivalent when Playwright is configured. - If there is no project Playwright workflow, verify Playwright with
pnpm exec playwright --version, then capture a screenshot withpnpm exec playwright screenshot <url> /tmp/frontend-check.png. - For deeper deb
Установить frontend-testing-debugging в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл frontend-testing-debugging?
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.
Как установить скилл frontend-testing-debugging?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл frontend-testing-debugging запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic