本文へ移動
cccskills
無料GitHub で公開

common-web-visual-testing

Standardizes visual audits, responsive design, and behavioral testing for web apps. Use to verify a web UI fix or cross-browser behavior; defer backend API refactors, Playwright installation/tooling setup, and Appium/mobile automation.

インストール方法を見る

含まれるファイル(6)

  • SKILL.md3.0 KB
  • evals/evals.json1.5 KB
  • references/diagnostic-decoder.md5.3 KB
  • references/dom-snapshot-vs-screenshot.md3.4 KB
  • references/login-and-test-data.md3.7 KB
  • references/scenarios.md3.5 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

🌐 Web Visual & Behavioral Testing

Priority: P1 (HIGH)

[!IMPORTANT] Tier 2 (Methodology): Strategy web UI/UX audit. Tier 3 (Domain): Responsive, A11y (WCAG), Browser Engine quirk.

🧪 Testing Mindset (Comparative Audit)

Visual test best as Comparative Audit loop:

  1. Baseline (Before): Capture snapshot --aria + screenshot prod/main.
  2. Implementation (After): Capture same local/feature.
  3. Audit: Compare state for regression, CLS, Aria drift.

Responses must label the two captures as Before and After (or Baseline and Fixed) and include the diff and neighboring-element side-effect check.

📋 Scenario Matrix

Change TypeScenarios to Run
CSS/LayoutResponsive Audit + Hover + CLS Check
Forms/InputValidation Msg + Focus State + Error Boundary
NavigationURL Sync + Sticky Header + Back-Button Persistence
Assets/FontsLazy Load + Icon Check + LCP Audit
AccessibilityTab Order + Aria-Snapshot + Color Contrast

🚫 Anti-Patterns

  • Single-Viewport: Never verify Desktop only. Check Mobile (375px) + Tablet (768px).
  • Ignore Layout Shift: Check loading state (skeleton) → no page jump.
  • Unmasked Dynamic: MUST mask timestamp/balance via --mask or JS (opacity: 0). Avoid "False Regression".
  • Blind Assertion: Use playwright-cli snapshot --aria (CLI) or browser_snapshot (Playwright MCP) verify state before done.

📁 Evidence

Before/After pairs live in .playwright-cli/<session>/ as <AC|step>-before.png / <AC|step>-after.png plus matching .aria.txt. Driver rung and dir go in the walkthrough driver: / evidence_dir: lines.

  • External Dependency: Mock/bypass 3rd-party (Chat, Analytics) → prevent flakiness.

🔗 References

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Upgrade an Android project to Android Gradle Plugin (AGP) 9. Use when migrating to AGP 9, updating Gradle build files, migrating to built-in Kotlin, or adopting the new AGP DSL.

日本語の概要は準備中です。原文の説明を表示しています。

HoangNguyen0403/agent-skills-standard5732026年10月12日 更新

Apply Clean Architecture layering, modularization, and Unidirectional Data Flow in Android projects. Use when setting up project structure, placing code in layers, configuring feature/core modules, or implementing UDF patterns; defer Compose state and ViewModel/StateFlow implementation to their specific skills.

日本語の概要は準備中です。原文の説明を表示しています。

HoangNguyen0403/agent-skills-standard5732026年10月12日 更新

Implement WorkManager and background processing correctly on Android. Use when creating Worker classes, scheduling tasks, choosing between WorkManager and Foreground Services, or setting up Hilt in workers; defer FCM and notification delivery to android-notifications.

日本語の概要は準備中です。原文の説明を表示しています。

HoangNguyen0403/agent-skills-standard5732026年10月12日 更新

Build high-performance declarative UI with Jetpack Compose. Use when writing Composable functions, optimizing recomposition, hoisting state, or working with LazyColumn and side effects; defer deep-link and navigation routing to android-navigation.

日本語の概要は準備中です。原文の説明を表示しています。

HoangNguyen0403/agent-skills-standard5732026年10月12日 更新

Migrate an Android XML View to Jetpack Compose following a structured 10-step workflow. Use when converting XML layouts to Compose, setting up Compose in an existing View-based project, or incrementally adopting Compose.

日本語の概要は準備中です。原文の説明を表示しています。

HoangNguyen0403/agent-skills-standard5732026年10月12日 更新

Write correct coroutine scopes, lifecycle collection, and dispatcher injection in Android production code. Use for suspend functions, coroutine scopes, and dispatcher mechanics; defer ViewModel StateFlow/LiveData architecture, Fragment lifecycle recipes, persistence/notifications, and unit-test recipes to their specific skills.

日本語の概要は準備中です。原文の説明を表示しています。

HoangNguyen0403/agent-skills-standard5732026年10月12日 更新

HoangNguyen0403 のスキルをすべて見る

このスキルの問題を報告する