본문으로 건너뛰기
cccskills
무료GitHub에 공개

playwright-pro

End-to-end testing with Playwright: test generation, page objects, locator strategy, flaky- test diagnosis, visual regression, and CI integration. Use when writing E2E tests, fixing flaky tests, or migrating from Cypress/Selenium.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구GitHubPlaywright
설치 방법 보기

포함된 파일(19)

  • SKILL.md8.0 KB
  • references/core-rules-and-patterns.md7.2 KB
  • references/diagnosis-migration-and-ci.md8.7 KB
  • references/playwright-patterns.md4.5 KB
  • scripts/coverage_mapper.py10.5 KB
  • scripts/flaky_detector.py10.6 KB
  • scripts/page_object_generator.py14.8 KB
  • scripts/test_analyzer.py12.3 KB
  • scripts/test_generator.py10.9 KB
  • scripts/test_report_parser.py14.8 KB
  • skills/browserstack.md2.4 KB
  • skills/coverage.md1.9 KB
  • skills/fix.md2.6 KB
  • skills/generate.md2.4 KB
  • skills/init.md2.1 KB
  • skills/migrate.md2.5 KB
  • skills/report.md2.0 KB
  • skills/review.md2.2 KB
  • skills/testrail.md2.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Playwright Pro

Production-grade end-to-end testing with Playwright. Generate tests from user stories, implement the Page Object pattern for maintainability, apply the correct locator strategy for resilient tests, diagnose and fix flaky tests, migrate from Cypress or Selenium, integrate with CI/CD, run visual regression tests, and perform accessibility audits. Enforces the 10 golden rules that eliminate 90% of E2E test failures.

Core Capabilities

  • Resilient authoring — getByRole/getByLabel/getByText locator priority, web-first auto-retrying assertions, and the 10 golden rules.
  • Page Object Model — centralize locators, expose user-intent methods, generate POM classes from HTML/selectors.
  • Test generation — produce specs from user stories with happy-path and error-path coverage.
  • Flaky-test diagnosis — trace analysis, headed/debug runs, race-condition and shared-state fixes.
  • Migration — Cypress/Selenium → Playwright command mapping and auth-setup patterns.
  • CI integration — GitHub Actions, sharding, conditional browser installs, trace/screenshot artifacts.
  • Visual regression & accessibility — toHaveScreenshot baselines and Axe WCAG AA gates.

When to Use

  • Writing or organizing E2E tests for web apps.
  • Fixing flaky tests or diagnosing CI-only failures.
  • Migrating a suite from Cypress or Selenium.
  • Adding visual regression or WCAG accessibility gates.
  • Setting up Playwright CI integration and reporting.

Clarify First

Before generating tests, confirm these inputs. If any is unknown or vague, ASK — do not assume:

  • Task / sub-skill — init, generate, fix-flaky, migrate, or review (routes the entire workflow)
  • User story or flow to cover — the happy + error paths the spec must assert (drives test generation)
  • Locator surface — whether the app exposes roles/labels/data-testid (sets locator strategy and POM resilience)
  • Source framework (if migrating) — Cypress or Selenium (selects the command-mapping table)

Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the artifact.

Sub-Skills

This skill uses compound sub-skill architecture. Each sub-skill in skills/ handles a specific workflow:

Sub-SkillFilePurpose
Initskills/init.mdBootstrap Playwright in a project -- install, configure, create first test
Generateskills/generate.mdGenerate test files from user stories or page descriptions
Fixskills/fix.mdDiagnose and fix failing or flaky tests using trace analysis
Migrateskills/migrate.mdMigrate from Cypress or Selenium to Playwright
Reviewskills/review.mdAudit test quality, coverage gaps, and flaky test indicators
Reportskills/report.mdGenerate execution reports from Playwright JSON output
Coverageskills/coverage.mdMap tests to user stories, identify coverage gaps
BrowserStackskills/browserstack.mdBrowserStack cloud integration for cross-browser testing
TestRailskills/testrail.mdTestRail integration for test case management

Sub-skill flow: Init → Generate → Review → Fix (if needed); Coverage → Generate (fill gaps); Report → BrowserStack / TestRail.

Tools

ToolPurposeCommand
test_generator.pyGenerate Playwright test code from user story descriptionspython scripts/test_generator.py --story "..." --page LoginPage --output tests/
flaky_detector.pyAnalyze multiple CI runs to detect flaky test patternspython scripts/flaky_detector.py --results-dir results/ --runs 10 --threshold 0.05
coverage_mapper.pyMap tests to user flows and identify coverage gapspython scripts/coverage_mapper.py --tests tests/ --flows flows.json --gaps-only
page_object_generator.pyGenerate Page Object classes from HTML or selector listspython scripts/page_object_generator.py --html page.html --name LoginPage --route /login
test_analyzer.pyScan test files for anti-patterns and quality issuespython scripts/test_analyzer.py tests/ --severity high
test_report_parser.pyParse Playwright JSON reports into summariespython scripts/test_report_parser.py report.json --top-slow 10

References

Load the reference that matches the task — keep this file lean and pull detail on demand:

  • references/core-rules-and-patterns.md — the 10 golden rules, locator priority, playwright.config.ts, Page Object Model classes, test generation from user stories, and shared-auth setup. Read when authoring tests or configuring a project.
  • references/playwright-patterns.md — locator decision tree, web-first vs non-retrying assertion patterns, custom/worker fixtures, network mocking, anti-pattern quick reference, and CI sharding patterns. Read when choosing locators, mocking APIs, or building fixtures.
  • references/diagnosis-migration-and-ci.md — flaky-test causes/fixes and diagnosis commands, Cypress→Playwright migration table, GitHub Actions CI, visual regression, accessibility testing, common pitfalls, best practices, troubleshooting table, and the success-criteria bar. Read when fixing flaky tests, migrating, wiring CI, or auditing a suite.

Scope & Limitations

This skill covers:

  • End-to-end test authoring, organization, and maintenance with Playwright
  • Page Object Model architecture and locator strategy best practices
  • Flaky test diagnosis, CI integration, and trace-based debugging
  • Visual regression testing and WCAG accessibility auditing

This skill does NOT cover:

  • Unit testing or component testing in isolation (see engineering/testing-strategy for test pyramid guidance)
  • API contract testing or load/performance testing (see api-test-suite-builder for API-focused testing)
  • Test data management, database seeding, or factory patterns for test fixtures
  • Mobile native app testing (Appium, Detox); this skill targets web browsers only

Integration Points

SkillIntegrationData Flow
ci-cd-pipeline-builderE2E tests run as a pipeline stage after build and unit testsPipeline config triggers playwright test; artifacts (traces, screenshots) upload on failure
api-test-suite-builderAPI tests validate backend contracts; Playwright tests validate UI flows end-to-endAPI test results confirm endpoint stability before E2E suite runs against the same environment
pr-review-expertPR reviews check for test coverage on UI changes and flag missing E2E specsReview checklist references Playwright Pro golden rules; flags waitForTimeout or raw CSS selectors
performance-profilerPerformance budgets complement E2E tests to catch regressionsProfiler identifies slow pages; Playwright tests add networkidle waits or performance assertions for flagged routes
observability-designerTest failures feed into observability dashboards for flake trackingCI test results export JSON reports; observability pipelines ingest pass/fail/flake metrics over time
release-managerE2E suite is a release gate; green suite required before deployment proceedsRelease workflow calls Playwright CI job; blocks release tag creation on any test failure

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

This skill should be used when the user asks to "check accessibility", "audit WCAG compliance", "scan HTML for a11y issues", "check color contrast", or "find accessibility violations in web pages".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

borghei/Claude-Skills9482026년 10월 7일 업데이트

Design and run statistically rigorous A/B tests and experiments. Use when planning experiments, calculating sample sizes, designing test variants, selecting metrics, analyzing results, or when someone says "let's test that."

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

borghei/Claude-Skills9482026년 10월 7일 업데이트

Design and analyze A/B tests: sample size, test duration, and statistical significance for conversion experiments. Use when setting up an A/B test, calculating sample size, designing an experiment, or analyzing results.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

borghei/Claude-Skills9482026년 10월 7일 업데이트

Sales execution across pipeline, discovery, demos, negotiation, and closing. Use when qualifying opportunities, running MEDDIC discovery, building account plans, handling objections, structuring proposals, or forecasting pipeline.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

borghei/Claude-Skills9482026년 10월 7일 업데이트

Design ad creative across Google, Meta, LinkedIn, Twitter/X, and TikTok with platform format specs, headline formulas, and A/B testing. Use when writing ad copy, generating headline variations, creating ad sets, or validating creative.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

borghei/Claude-Skills9482026년 10월 7일 업데이트

aeo

무료

Answer Engine Optimization (AEO): optimize content to be cited by LLMs (ChatGPT, Claude, Perplexity, Gemini) in their answers. Use when designing content for LLM citation, auditing citability, or structuring Q&A schema.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

borghei/Claude-Skills9482026년 10월 7일 업데이트

borghei의 스킬 모두 보기

이 스킬의 문제 신고