AGENT SKILL

webapp-testing-current

Verify local web application behavior with Playwright, observable readiness, controlled test targets, meaningful assertions, and accurate failure reporting. Use for browser regressions, UI workflows, screenshots, or console diagnosis; use the project's existing test runner when it already provides these contracts.

使用场景测试与质量
License 许可
Apache-2.0
最近更新
2026-11-11
Stars
★ 1
Forks
0

01 前言 Front Matter

name
webapp-testing-current
license
Apache-2.0
metadata
{ "source": "anthropics/skills", "revision-status": "experimental-unbenchmarked" }
description
Verify local web application behavior with Playwright, observable readiness, controlled test targets, meaningful assertions, and accurate failure reporting. Use for browser regressions, UI workflows, screenshots, or console diagnosis; use the project's existing test runner when it already provides these contracts.
compatibility
Requires a qualified Playwright installation and matching browser; use the repository's declared Python or JavaScript runtime. Linux server-helper findings do not establish Windows process lifecycle behavior.

02 资源文件 4

03 SKILL.md 正文

Verify observable browser outcomes

Resolve the requested workflow, intended local target and relevant application tests before choosing a script. Reuse the existing runner, fixtures and package graph. An open port or one detected service does not establish the application's identity or authorize its mutations. Use disposable test data and a known test account for state-changing flows.

Establish runtime and server readiness

Check installed package and browser versions against their current stable release metadata. Provision dependencies explicitly in an isolated workspace from a complete lockfile. Keep the original skill package unchanged. Avoid implicit installation during test execution.

Prefer the project's server lifecycle integration. If starting a server, retain its process identity, drain or redirect both output streams, bound startup, and check that the launched process remains alive. Verify an application-specific HTTP or UI condition before testing; a successful TCP connection alone is insufficient. Record ownership before stopping processes and clean up the whole owned process tree with a mechanism qualified for the operating system.

Read a helper's interface before invocation and inspect its implementation when assessing its fitness or diagnosing failure. The original bundled server helper has reproduced readiness, log-draining and child-cleanup defects; it is not a qualified general server supervisor.

Act and assert

Navigate to the explicit target and wait for the relevant rendered condition. Prefer accessible roles, labels and stable test IDs. Use retrying assertions for dynamic state. Network idle and fixed sleeps do not prove UI readiness.

Arm response, download or popup waits before the triggering action. Match the request identity and expected status, then assert the user-visible outcome. Treat navigation or authentication failures as failures. Do not blindly retry an action whose effect may already have occurred; first inspect the resulting state or use a controlled idempotent fixture.

Use isolated contexts and the project's viewport/device matrix. A screenshot is evidence to inspect, not a correctness verdict. Distinguish functional, accessibility and visual coverage. Control clocks, animations and data for image comparisons and review baseline changes independently.

Preserve evidence and cleanup

Use portable output paths and unique run directories. Register console and page-error capture before navigation; keep diagnostics within the task's data boundaries. Traces and authentication state can contain sensitive information. Close contexts and browsers in finally blocks so artifacts finish even when assertions fail. Preserve the command's actual status and failed attempts.

Report tested outcomes, failed/skipped/not-run checks, exact versions and artifact paths. Do not count swallowed errors, retries or screenshot creation as passing behavior. See qualified controls and limits.

04 同仓库更多 Skills

strmt7
strmt7/ai_skills_collection_benchmarked

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

测试与质量前端开发
★ 1
strmt7
strmt7/ai_skills_collection_benchmarked

skill-creator

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

Skill与智能体开发
★ 1
strmt7
strmt7/ai_skills_collection_benchmarked

playwright-skill

Complete browser automation with Playwright. Auto-detects dev servers, writes reusable test scripts, and supports screenshots, responsive checks, UX validation, login flows, link checks, and arbitrary browser automation. Use when the user wants to test a website, automate browser interactions, validate web functionality, or perform browser-based testing.

测试与质量Skill与智能体开发
★ 1
strmt7
strmt7/ai_skills_collection_benchmarked

web-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 for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

前端开发
★ 1
strmt7
strmt7/ai_skills_collection_benchmarked

frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

设计师前端开发视觉设计
★ 1
strmt7
strmt7/ai_skills_collection_benchmarked

zarr-python

Chunked N-D arrays for cloud storage. Compressed arrays, parallel I/O, S3/GCS integration, NumPy/Dask/Xarray compatible, for large-scale scientific computing pipelines.

★ 1