Playwright skill
Skill jovd83/playwright-skill
End-to-end Playwright skill pack for planning, authoring, debugging, documenting, and operationalizing test automation.
npx -y skills add jovd83/playwright-skillAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Flagship Playwright skill pack for planning, authoring, debugging, documenting, and operationalizing Playwright. Routes E2E, API, component, visual, accessibility, CI/CD, coverage, docs, CLI automation, and handoff workflows.
SKILL.md
7.8 KB, as published. Nobody here has run it
Playwright Skill Pack
Author: jovd83 | Version: 2.1.1
Use this root skill as the package entrypoint for general Playwright requests. It is responsible for routing work to the smallest useful subskill, applying the shared standards of this repository, and keeping the package boundaries clear.
Do not load every guide by default. Read only the subskill and reference files that materially help with the current task.
Responsibilities
- Route broad or ambiguous Playwright requests to the right subskill.
- Apply the shared testing standards used across this repository.
- Keep core testing guidance separate from optional planning, documentation, and handoff workflows.
Boundaries
- Do not duplicate deep implementation guidance that already lives in a focused subskill.
- Do not treat this repository as shared-memory infrastructure. If durable cross-agent knowledge is needed beyond one repo or skill, integrate an external shared-memory skill instead of storing it here implicitly.
Dispatcher Integration
Use skill-dispatcher as the primary integration layer whenever this package needs help from another skill or when a broader orchestrator is deciding whether Playwright is the right execution layer.
- Prefer dispatcher-led routing by intent, especially for tasks such as
implement_ui_confirmation_test,render_test_artifact, andgenerate_test_data. - Prefer the repository's native browser automation stack over Playwright when repo evidence points elsewhere.
- Use Playwright as the default browser automation choice only when the repository supports it already, the user asks for it, or dispatcher policy explicitly selects it.
- Treat direct paths to sibling skills as a compatibility fallback, not as the primary routing contract.
Routing Map
| Need | Use |
|---|---|
| Generic Playwright request or unclear starting point | orchestrator/SKILL.md |
| Writing or fixing Playwright tests | core/SKILL.md |
| CI, sharding, artifacts, containerized execution | ci/SKILL.md |
| Page object structure or fixture-vs-helper decisions | pom/SKILL.md |
| Cypress or Selenium migration | migration/SKILL.md |
| CLI browser automation | playwright-cli/SKILL.md |
| Requirements extraction | analysis/SKILL.md |
| Coverage planning | coverage_plan/generation/SKILL.md and coverage_plan/review/SKILL.md |
| Coverage-plan maintenance | coverage_plan/auto-sync/SKILL.md |
| Narrative test documentation or format conversion | Dispatch render_test_artifact through skill-dispatcher; fall back to C:\projects\skills\test-artifact-export-skill\SKILL.md when needed |
| Automation-code documentation or failure diagnosis | documentation/tests/SKILL.md or documentation/root_cause/SKILL.md |
| Human or agent handoff workflows | documentation/handover/SKILL.md and documentation/session-state/SKILL.md |
| Test-case export to Xray, Zephyr, TestLink, or TestRail | Dispatch render_test_artifact through skill-dispatcher; fall back to C:\projects\skills\test-artifact-export-skill\SKILL.md when needed |
| Test-management integrations after export exists | mappers/, and reporters/ subskills |
| IDE-specific setup help | installers/ subskills |
Operating Workflow
- Inspect the existing repository, tests, and requirements before prescribing structure.
- Infer the user's intent when it is clear; ask for clarification only when the decision would materially change the artifact or scope.
- Choose the smallest subskill that can complete the task well.
- Load only the relevant reference guides or scripts for that path.
- Produce concrete outputs such as code, plans, documentation, or validation results instead of generic advice.
Shared Standards
- Prefer user-facing locators and web-first assertions.
- Avoid placeholder tests, placeholder assertions, and fake completion claims.
- Keep state in fixtures, UI behavior in page objects when repetition or complexity justifies them, and helpers stateless.
- Mock external dependencies selectively; do not hide the behavior of the system under test behind unnecessary mocks.
- Keep requirements, plans, documentation, and executable tests traceable to one another when the workflow includes planning or documentation.
Gotchas
- Context Weight: This is a large skill pack. Avoid loading the full file registry or the root skill for simple tasks; jump straight to the smallest relevant subskill (e.g.,
core/) to keep reasoning sharp. - Path Resolution: When providing file paths to subskills, ensure they are absolute or clearly relative to the project root. Subskills often have their own local standards for where they look for tests.
- Statelessness: Unless you use the
documentation/session-state/workflow, assume each agent interaction is stateless. If you need to "resume" work, you must explicitly read the previous session's artifacts or handoffs. - Playwright-Specific Pitfalls: For detailed technical gotchas regarding nested locators, async races, and flaky tests, always refer to core/common-pitfalls.md.
Memory Model
- Runtime memory: ephemeral reasoning and task state for the current thread.
- Project-local persistent memory: artifacts such as coverage plans, handovers, and session-state files created inside the target repository.
- Shared memory: optional and external. Promote information into shared memory only when it is stable, reusable across tasks, and belongs outside this skill pack.
Package Shape
core/,ci/,pom/,migration/, andplaywright-cli/are the reusable testing foundation.analysis/,coverage_plan/, anddocumentation/add planning and traceability workflows.documentation/handover/anddocumentation/session-state/are optional operational workflows for multi-session or multi-operator work.mappers/,reporters/,reporting/, andinstallers/are optional extensions, not prerequisites for ordinary Playwright authoring.- The standalone
test-artifact-export-skillskill remains the canonical formatter/exporter for narrative test cases and tool-ready artifacts, but reach it throughskill-dispatcherfirst when cross-skill routing is available.
Use the Root Skill Well
- Stay at the root only for routing, package discovery, or repo-wide standards.
- Move into a focused subskill as soon as the task is specific enough.
- Keep the package coherent: update the README, changelog, metadata, and validation artifacts when repo-level behavior changes.