PluginBench
Skill
Review
Audit score 70

browserstack

alirezarezvani/claude-skills

Run Playwright tests on BrowserStack's cloud grid for cross-browser and cross-device testing.

What is browserstack?

Integrates Playwright with BrowserStack to execute tests across multiple browsers and operating systems in the cloud. Use this when you need to validate application behavior on Safari, Firefox, Chrome, or specific OS versions without maintaining local test infrastructure.

  • Configure Playwright to connect to BrowserStack's cloud grid
  • Run tests across Chrome, Firefox, and WebKit on Windows and macOS
  • Retrieve build results with per-browser pass/fail status and video links
  • List available browser and OS combinations for testing
  • Set up local tunneling for testing localhost or staging environments
  • Query test session details including logs and screenshots

How to install browserstack

npx skills add https://github.com/alirezarezvani/claude-skills --skill browserstack
Prerequisites
  • BrowserStack account with valid credentials
  • BROWSERSTACK_USERNAME environment variable set
  • BROWSERSTACK_ACCESS_KEY environment variable set (from browserstack.com/accounts/settings)
  • Playwright test suite already configured
Claude Code
Cursor
Windsurf
Cline

How to use browserstack

  1. 1.Run `/pw:browserstack setup` to add BrowserStack connection options to playwright.config.ts
  2. 2.Set BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY environment variables
  3. 3.Run `/pw:browserstack run` to execute tests on BrowserStack cloud grid
  4. 4.Use `/pw:browserstack results` to fetch build results with video and log links
  5. 5.Use `/pw:browserstack browsers` to see available browser/OS combinations
  6. 6.Optionally run `/pw:browserstack local` to enable testing of localhost behind firewalls

Use cases

Good for
  • Verify cross-browser compatibility before release across Windows 11, macOS Ventura, and multiple browser versions
  • Run Safari tests on macOS without owning Apple hardware
  • Automate browser matrix testing in CI/CD pipelines
  • Debug browser-specific failures with video recordings and network logs
  • Test web applications on real cloud-hosted browsers instead of local emulation
Who it's for
  • QA engineers running cross-browser test suites
  • Frontend developers validating compatibility across Safari, Firefox, and Chrome
  • CI/CD pipeline maintainers automating browser testing
  • Teams without access to physical Safari or macOS devices

browserstack FAQ

What browsers and OS versions does BrowserStack support for Playwright?

Chrome, Firefox, and WebKit (Safari) on Windows 11 and macOS Ventura are pre-configured. Use `/pw:browserstack browsers` to see the full list of available combinations.

How do I get my BrowserStack credentials?

Visit browserstack.com/accounts/settings to find your username and access key. Set them as BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY environment variables.

Can I test localhost or staging servers?

Yes. Run `/pw:browserstack local` to install and configure BrowserStack Local, which creates a secure tunnel for testing applications behind firewalls.

How do I access test videos and logs?

Run `/pw:browserstack results` to get a summary table with links to the BrowserStack dashboard, where you can view videos, screenshots, and detailed logs for each session.

What happens if credentials are not set?

The skill will inform you how to obtain them from browserstack.com/accounts/settings and stop execution until they are configured.

Full instructions (SKILL.md)

Source of truth, from alirezarezvani/claude-skills.


name: "browserstack" description: >- Run tests on BrowserStack. Use when user mentions "browserstack", "cross-browser", "cloud testing", "browser matrix", "test on safari", "test on firefox", or "browser compatibility".

BrowserStack Integration

Run Playwright tests on BrowserStack's cloud grid for cross-browser and cross-device testing.

Prerequisites

Environment variables must be set:

  • BROWSERSTACK_USERNAME — your BrowserStack username
  • BROWSERSTACK_ACCESS_KEY — your access key

If not set, inform the user how to get them from browserstack.com/accounts/settings and stop.

Capabilities

1. Configure for BrowserStack

/pw:browserstack setup

Steps:

  1. Check current playwright.config.ts
  2. Add BrowserStack connect options:
// Add to playwright.config.ts
import { defineConfig } from '@playwright/test';

const isBS = !!process.env.BROWSERSTACK_USERNAME;

export default defineConfig({
  // ... existing config
  projects: isBS ? [
    {
      name: "chromelatestwindows-11",
      use: {
        connectOptions: {
          wsEndpoint: `wss://cdp.browserstack.com/playwright?caps=${encodeURIComponent(JSON.stringify({
            'browser': 'chrome',
            'browser_version': 'latest',
            'os': 'Windows',
            'os_version': '11',
            'browserstack.username': process.env.BROWSERSTACK_USERNAME,
            'browserstack.accessKey': process.env.BROWSERSTACK_ACCESS_KEY,
          }))}`,
        },
      },
    },
    {
      name: "firefoxlatestwindows-11",
      use: {
        connectOptions: {
          wsEndpoint: `wss://cdp.browserstack.com/playwright?caps=${encodeURIComponent(JSON.stringify({
            'browser': 'playwright-firefox',
            'browser_version': 'latest',
            'os': 'Windows',
            'os_version': '11',
            'browserstack.username': process.env.BROWSERSTACK_USERNAME,
            'browserstack.accessKey': process.env.BROWSERSTACK_ACCESS_KEY,
          }))}`,
        },
      },
    },
    {
      name: "webkitlatestos-x-ventura",
      use: {
        connectOptions: {
          wsEndpoint: `wss://cdp.browserstack.com/playwright?caps=${encodeURIComponent(JSON.stringify({
            'browser': 'playwright-webkit',
            'browser_version': 'latest',
            'os': 'OS X',
            'os_version': 'Ventura',
            'browserstack.username': process.env.BROWSERSTACK_USERNAME,
            'browserstack.accessKey': process.env.BROWSERSTACK_ACCESS_KEY,
          }))}`,
        },
      },
    },
  ] : [
    // ... local projects fallback
  ],
});
  1. Add npm script: "test:e2e:cloud": "npx playwright test --project='chrome@*' --project='firefox@*' --project='webkit@*'"

2. Run Tests on BrowserStack

/pw:browserstack run

Steps:

  1. Verify credentials are set
  2. Run tests with BrowserStack projects:
    BROWSERSTACK_USERNAME=$BROWSERSTACK_USERNAME \
    BROWSERSTACK_ACCESS_KEY=$BROWSERSTACK_ACCESS_KEY \
    npx playwright test --project='chrome@*' --project='firefox@*'
    
  3. Monitor execution
  4. Report results per browser

3. Get Build Results

/pw:browserstack results

Steps:

  1. Call browserstack_get_builds MCP tool
  2. Get latest build's sessions
  3. For each session:
    • Status (pass/fail)
    • Browser and OS
    • Duration
    • Video URL
    • Log URLs
  4. Format as summary table

4. Check Available Browsers

/pw:browserstack browsers

Steps:

  1. Call browserstack_get_browsers MCP tool
  2. Filter for Playwright-compatible browsers
  3. Display available browser/OS combinations

5. Local Testing

/pw:browserstack local

For testing localhost or staging behind firewall:

  1. Install BrowserStack Local: npm install -D browserstack-local
  2. Add local tunnel to config
  3. Provide setup instructions

MCP Tools Used

ToolWhen
browserstack_get_planCheck account limits
browserstack_get_browsersList available browsers
browserstack_get_buildsList recent builds
browserstack_get_sessionsGet sessions in a build
browserstack_get_sessionGet session details (video, logs)
browserstack_update_sessionMark pass/fail
browserstack_get_logsGet text/network logs

Output

  • Cross-browser test results table
  • Per-browser pass/fail status
  • Links to BrowserStack dashboard for video/screenshots
  • Any browser-specific failures highlighted

Related skills

More from alirezarezvani/claude-skills and the wider catalog.

BUbusiness-growth-skills logo

business-growth-skills

alirezarezvani/claude-skills

Router for 4 business & growth skills: customer success, sales engineering, revenue ops, and contracts.

2.0k installs
CLc-level-advisor logo

c-level-advisor

alirezarezvani/claude-skills

Virtual board of directors for founders: 10 C-level roles with structured decision support and multi-role board meetings.

1.8k installs
CAcampaign-analytics logo

campaign-analytics

alirezarezvani/claude-skills

Analyzes campaign performance with multi-touch attribution, funnel conversion analysis, and ROI calculation for marketing optimization. Use when analyzing marketing campaigns, ad performance, attribution models, conversion rates, or calculating marketing ROI, ROAS, CPA, and campaign metrics across channels.

700 installs
CAcapa-officer logo

capa-officer

alirezarezvani/claude-skills

CAPA system management for medical device QMS. Covers root cause analysis, corrective action planning, effectiveness verification, and CAPA metrics. Use when running CAPA investigations, 5-Why analysis, fishbone diagrams, root cause determination, corrective action tracking, effectiveness verification, or CAPA program optimization.

749 installs
CEceo-advisor logo

ceo-advisor

alirezarezvani/claude-skills

Executive leadership guidance for strategic decision-making, organizational development, and stakeholder management. Use when planning strategy, preparing board presentations, managing investors, developing organizational culture, making executive decisions, fundraising, or when user mentions CEO, strategic planning, board meetings, investor updates, organizational leadership, or executive strategy.

861 installs
CFcfo-advisor logo

cfo-advisor

alirezarezvani/claude-skills

Financial leadership for startups and scaling companies. Financial modeling, unit economics, fundraising strategy, cash management, and board financial packages. Use when building financial models, analyzing unit economics, planning fundraising, managing cash runway, preparing board materials, or when user mentions CFO, burn rate, runway, fundraising, unit economics, LTV, CAC, term sheets, or financial strategy.

614 installs