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- 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
How to use browserstack
- 1.Run `/pw:browserstack setup` to add BrowserStack connection options to playwright.config.ts
- 2.Set BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY environment variables
- 3.Run `/pw:browserstack run` to execute tests on BrowserStack cloud grid
- 4.Use `/pw:browserstack results` to fetch build results with video and log links
- 5.Use `/pw:browserstack browsers` to see available browser/OS combinations
- 6.Optionally run `/pw:browserstack local` to enable testing of localhost behind firewalls
Use cases
- 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
- 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
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.
Visit browserstack.com/accounts/settings to find your username and access key. Set them as BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY environment variables.
Yes. Run `/pw:browserstack local` to install and configure BrowserStack Local, which creates a secure tunnel for testing applications behind firewalls.
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.
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 usernameBROWSERSTACK_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:
- Check current
playwright.config.ts - 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
],
});
- Add npm script:
"test:e2e:cloud": "npx playwright test --project='chrome@*' --project='firefox@*' --project='webkit@*'"
2. Run Tests on BrowserStack
/pw:browserstack run
Steps:
- Verify credentials are set
- Run tests with BrowserStack projects:
BROWSERSTACK_USERNAME=$BROWSERSTACK_USERNAME \ BROWSERSTACK_ACCESS_KEY=$BROWSERSTACK_ACCESS_KEY \ npx playwright test --project='chrome@*' --project='firefox@*' - Monitor execution
- Report results per browser
3. Get Build Results
/pw:browserstack results
Steps:
- Call
browserstack_get_buildsMCP tool - Get latest build's sessions
- For each session:
- Status (pass/fail)
- Browser and OS
- Duration
- Video URL
- Log URLs
- Format as summary table
4. Check Available Browsers
/pw:browserstack browsers
Steps:
- Call
browserstack_get_browsersMCP tool - Filter for Playwright-compatible browsers
- Display available browser/OS combinations
5. Local Testing
/pw:browserstack local
For testing localhost or staging behind firewall:
- Install BrowserStack Local:
npm install -D browserstack-local - Add local tunnel to config
- Provide setup instructions
MCP Tools Used
| Tool | When |
|---|---|
browserstack_get_plan | Check account limits |
browserstack_get_browsers | List available browsers |
browserstack_get_builds | List recent builds |
browserstack_get_sessions | Get sessions in a build |
browserstack_get_session | Get session details (video, logs) |
browserstack_update_session | Mark pass/fail |
browserstack_get_logs | Get 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.

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

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

campaign-analytics
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.

capa-officer
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.

ceo-advisor
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.

cfo-advisor
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.