Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问许可证需确认审计通过

testing-browser-compatibility测试浏览器兼容性

Agent Skill

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

总安装

636

周安装

26

GitHub Stars

2,094

下载量

204
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:testing-browser-compatibility(测试浏览器兼容性)
来源仓库:https://github.com/jeremylongshore/claude-code-plugins-plus-skills
仓库路径:skills/testing-browser-compatibility
安装命令:
npx skills add https://github.com/jeremylongshore/claude-code-plugins-plus-skills --skill testing-browser-compatibility
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/jeremylongshore/claude-code-plugins-plus-skills --skill testing-browser-compatibility

简介

用于检测网页在不同浏览器中的渲染与功能表现。

  • 适合识别 CSS、JS 兼容性问题并提供修复建议。
  • 支持主流版本浏览器的矩阵式测试覆盖。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 需明确目标用户群体以确定兼容性优先级。
  • testing-browser-compatibility 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Browser Compatibility Tester

Table of Contents

Overview | Instructions (Local / Cloud) | Examples | Error Handling | Output | Resources

Overview

Test web applications across multiple browsers, rendering engines, and real devices. Validates CSS rendering, JavaScript API support, layout consistency, and interactive behavior across Chromium (Chrome, Edge), Gecko (Firefox), and WebKit (Safari) -- locally with Playwright or on real devices via BrowserStack, Sauce Labs, LambdaTest, or Kobiton.

Prerequisites

  • Playwright installed (npx playwright install --with-deps) and application running at a test URL
  • For cloud testing: provider credentials in environment variables (see ${CLAUDE_SKILL_DIR}/references/cloud-providers.md)

Instructions

Mode 1: Local Testing (Playwright)

Default mode. Zero cloud accounts needed.

  1. Define the browser matrix from project browserslist config or use defaults:

- Desktop: Chrome (latest), Firefox (latest), Safari (latest), Edge (latest) - Mobile: iPhone 14 (WebKit), Pixel 7 (Chromium) - Viewports: 375px, 768px, 1280px, 1920px

  1. Scan the codebase for compatibility risks:

- Grep for modern JS APIs (IntersectionObserver, structuredClone, Array.at(), Promise.withResolvers()) - Grep for modern CSS (container queries, has(), @layer, subgrid, color-mix()) - Cross-reference against caniuse data; flag usage without polyfills or @supports

  1. Write compatibility-focused tests:

- Layout: key elements render at expected positions/sizes per viewport - CSS features: modern features degrade gracefully behind @supports - JS APIs: polyfills load in older browsers; form inputs (date, color, range) across engines - Accessibility: run axe-core per browser (@axe-core/playwright)

  1. Execute and capture results:

- npx playwright test --project=chromium --project=firefox --project=webkit - Screenshots per browser for visual comparison - Video traces for failing tests

Mode 2: Cloud Real-Device Testing

Applies when real physical devices, broader OS coverage, or carrier network conditions are required beyond what Playwright emulation can replicate. Read ${CLAUDE_SKILL_DIR}/references/cloud-providers.md for full auth, API, and capabilities details.

Provider selection:

NeedProvider
Broadest browser/OS matrix (3,000+ combos)BrowserStack
Enterprise CI/CD, Sauce Connect tunnelSauce Labs
Auto-healing selectors, smart testingLambdaTest
Real physical devices, scriptless automationKobiton

Never hardcode credentials. Set provider env vars (BROWSERSTACK_USERNAME/ACCESS_KEY, SAUCE_USERNAME/ACCESS_KEY, LT_USERNAME/ACCESS_KEY, KOBITON_USERNAME/API_KEY).

  1. Verify credentials are set for the chosen provider
  2. Query available devices/browsers via provider API
  3. Configure WebDriver or Appium capabilities (see ${CLAUDE_SKILL_DIR}/references/cloud-providers.md)
  4. Execute tests against cloud grid
  5. Retrieve session artifacts (screenshots, video, logs, network HAR)
  6. Aggregate results into compatibility report (CI/CD patterns: ${CLAUDE_SKILL_DIR}/references/ci-cd-integration.md)

Browser-Specific Checks

  • Safari: date input formatting, scroll behavior, backdrop-filter, PWA manifest, position: sticky in overflow
  • Firefox: scrollbar styling, gap in flexbox, subpixel rendering, print stylesheets
  • Mobile: touch events, viewport meta, safe area insets, virtual keyboard resize

Pre-built device matrices: ${CLAUDE_SKILL_DIR}/references/device-matrix.md (top 10, mobile-first, enterprise, Kobiton real-device).

Examples

Playwright multi-browser config:

import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
  projects: [
    { name: 'chromium', use: { ...devices['Desktop Chrome'] } },
    { name: 'firefox', use: { ...devices['Desktop Firefox'] } },
    { name: 'webkit', use: { ...devices['Desktop Safari'] } },
    { name: 'mobile-chrome', use: { ...devices['Pixel 7'] } },
    { name: 'mobile-safari', use: { ...devices['iPhone 14'] } },
  ],
});

Cross-browser layout test:

test('nav renders correctly across browsers', async ({ page }) => {
  await page.goto('/');
  const nav = page.locator('nav');
  await expect(nav).toBeVisible();
  const box = await nav.boundingBox();
  expect(box.width).toBeGreaterThan(300);
});

Kobiton real-device capabilities:

{
  "platformName": "iOS",
  "appium:deviceName": "iPhone 15 Pro",
  "appium:platformVersion": "17",
  "browserName": "Safari",
  "kobiton:options": {
    "sessionName": "Safari Compat Test",
    "deviceGroup": "KOBITON",
    "captureScreenshots": true
  }
}

Error Handling

ErrorCauseSolution
WebKit fails, Chromium passesCSS property unsupported in SafariAdd -webkit- prefix or @supports fallback
Date input renders differentlyBrowsers implement <input type="date"> differentlyUse custom date picker component
Test passes locally, fails on cloudReal device rendering differs from emulationRun critical paths on real devices for final validation
Kobiton device unavailableDevice in use or offlineQuery GET /v1/devices for online devices; use deviceGroup for flexible matching
Cloud session timeoutLong test on slow deviceIncrease sessionTimeout; split into smaller test files

Output

  • Playwright config with multi-browser projects and test files in tests/compatibility/
  • Compatibility matrix report (pass/fail per browser, viewport, device)
  • Screenshots per browser for visual diff; unsupported API list with polyfill recommendations
  • Cloud session URLs with video replay links (when using cloud providers)

Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.62%
按下载量换算75

Claude

29.65%
按下载量换算60

Cursor

19.44%
按下载量换算40

Gemini CLI

8.63%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills