playwright-pom-scaffolder
This skill creates a complete, production-ready Playwright TypeScript/JavaScript automation framework from scratch using the Page Object Model (POM) pattern.
Skill by maruf-sherikar
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/maruf-sherikar-playwright-pom-scaffolder
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/playwright-pom-scaffolder
What's inside
- Skill name
playwright-pom-scaffolder- Description
- This skill creates a complete, production-ready Playwright TypeScript/JavaScript automation framework from scratch using the Page Object Model (POM) pattern. It includes custom reporters, best practices, and automated scaffolding based on user-provided domains and instructions.
- License
- MIT
- Instructions
- 120 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Agent Skills spec issues
- name: "playwright-pom-scaffolder" does not match folder "playwright-pom-framework"
Files (5)
- README.md
- SKILL.md
- BasePage.ts · examples/
- config-template.ts · examples/
- custom-reporter.ts · examples/
SKILL.md (first lines)
# Playwright POM Scaffolder
## Purpose
To automate the creation of a professional-grade Playwright automation framework. This skill transforms a simple domain name and a set of automation goals into a fully structured project following industry best practices: Page Object Model (POM), strict TypeScript configuration, custom reporters, and modular design.
## When to Use
Use this skill when:
- You need to start a new web automation project from scratch.
- You want to ensure the project follows the Page Object Model (POM) pattern.
- You need a custom reporter setup (e.g., HTML + JSON + Console).
- You want to standardize testing infrastructure across teams.
## Core Capabilities
1. **Framework Scaffolding**: Automatically creates directories for `pages`, `tests`, `utils`, and `reporters`.
2. **POM Implementation**: Generates BasePage classes and specific Page Objects based on the target site.
3. **Configuration Generation**: Creates a robust `playwright.config.ts` with multi-browser support, tracing, and custom reporting.
4. **Environment Setup**: Initializes `package.json` and installs necessary dependencies (`@playwright/test`, `typescript`, etc.).
5. **Instructional Integration**: Converts natural language automation requirements into actual test cases.
## Workflow
### Phase 1: Requirement Gathering
The assistant must first ask the user for:
1. **Target Domain/URL**: e.g., `https://example.com`
2. **Automation Goals**: e.g., "Login flow, checkout process, and contact form validation."
3. **Preferred Language**: TypeScript (recommended) or JavaScript.
### Phase 2: Project Initialization
Execute these steps to set up the foundation:
```bash
# 1. Create project directory
mkdir playwright-automation
cd playwright-automation
# 2. Initialize npm
npm init -y
# 3. Install Playwright
npm install -D @playwright/test typescript @types/node
npx playwright install chromium
```
### Phase 3: Directory Structure
Create a clean, modular structure:
```bash
mkdir -p pages tests utils reporters
```
### Phase 4: Scaffolding Configuration
The assistant generates a `playwright.config.ts` that includes:
- Parallel execution settings.
- Retries and timeouts.
- Base URL configuration.
- Custom reporter integration.
### Phase 5: POM Generation
1. **BasePage**: A shared class for common actions (click, type, wait).
2. **Page Objects**: Specific classes for each main page/section of the site (e.g., `LoginPage`, `DashboardPage`).
### Phase 6: Test Generation
Generates `.spec.ts` files that:
- Import Page Objects.
- Follow the Arrange-Act-Assert pattern.
- Use descriptive `test.step()` blocks for clean reporting.
## Best Practices Followed
- **Strict Locators**: Prefers `getByRole`, `getByText`, and `getByTestId`.
- **Automatic Waiting**: Leverages Playwright's built-in auto-waiting rather than hard sleeps.
- **Independence**: Each test is isolated and can run in parallel.
- **Reporting**: Configures custom reporters for better CI/CD visibility.
- **Clean Code**: Uses DRY (Don't Repeat Yourself) via the `utils` folder and shared components.
## Example Generated Structure
```text
playwright-automation/
├── playwright.config.ts
├── package.json
├── tsconfig.json
├── pages/
│ ├── BasePage.ts
│ ├── LoginPage.ts
│ └── DashboardPage.ts
├── tests/
│ └── auth.spec.ts
├── utils/
│ └── test-data.ts
└── reporters/
└── custom-reporter.ts
```
## Quality Standards
The generated framework must:
1. Pass `npx tsc` if using TypeScript.
2. Be immediately runnable with `npx playwright test`.
3. Contain a `README.md` with clear execution and maintenance instructions.
4. Use environment variables for sensitive data like credentials.
---
## References
- **Playwright Official POM Guide**: https://playwright.dev/docs/pom
- **Best Practices**: https://playwright.dev/docs/best-practices
- **Custom Reporters**: https://playwright.dev/docs/test-reporters#custom-reportersFrom maruf-sherikar/Antigravity-skills, MIT.
More from maruf-sherikar/Antigravity-skills
- 0.402score
test-plan-creator
maruf-sherikar
This skill helps QA engineers and Product Owners generate professional, industry-standard 1-page test plans based on a specific high-quality template.
SkillDFreshness: D★ 1Claude Code +9 - 0.239score
test-case-generator
maruf-sherikar
Generates comprehensive, high-quality test cases for any domain or scenario.
SkillDFreshness: D★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Feb 13, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from maruf-sherikar
Cite this page
playwright-pom-scaffolder skill. Agent Mart. https://agentmart.dev/skills/maruf-sherikar-playwright-pom-scaffolder (last updated 2026-10-24)