playwright-config

Generate Playwright configuration files and npm scripts for test setups.

4|2|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/nickhou1983/UI-test-Demo --skill playwright-config
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-config
Source: https://github.com/nickhou1983/UI-test-Demo/tree/main/.github/skills/playwright-config
Command: npx skills add https://github.com/nickhou1983/UI-test-Demo --skill playwright-config

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate Playwright configuration files, npm scripts, and gitignore entries to bootstrap E2E, component, and visual testing setups quickly and consistently for local development and optional cloud scenarios.

Core Features & Use Cases

  • Template-driven generation of core Playwright config files such as playwright.config.ts, playwright-ct.config.ts, and optional service configs, along with reusable setup templates.
  • Automatic generation of package.json scripts to run e2e, visual, and CT tests, and guidance for .gitignore hygiene.
  • Quick-start scaffolding for local development and optional Azure or cloud-based test workflows, ensuring a consistent baseline.

Quick Start

Provide a brief input set (framework, build tool, base URL, dev command, and test modes) to generate the baseline Playwright configuration.

Frequently Asked Questions about playwright-config

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a Playwright config file for my project?

To generate a Playwright config, provide your framework, build tool, local base URL, start command, and test modes. This produces baseline configuration files like playwright.config.ts to bootstrap E2E, component, and visual testing setups.

Can I set up Playwright component testing alongside E2E tests?

Yes, you can set up Playwright component testing alongside E2E tests. Providing the desired test modes generates separate configuration files like playwright-ct.config.ts and reusable setup templates for your specific framework and build tool.

Does this Playwright setup support Azure cloud workflows?

Yes, the Playwright setup supports optional Azure cloud workflows. Providing optional Azure settings during configuration generation scaffolds the necessary service configs to run E2E and visual tests in the cloud.

What is the best way to bootstrap Playwright visual testing?

The best way to bootstrap Playwright visual testing is using a template-driven generator. Provide your framework, base URL, and visual test modes to automatically generate config files, npm scripts, and gitignore entries for consistent local development.

Do I need to manually configure package.json scripts for Playwright?

No, you do not need to manually configure package.json scripts for Playwright. The configuration generation automatically creates the necessary npm scripts to run E2E, visual, and component tests, along with guidance for gitignore hygiene.