/playwright-pom-harness:pom-architecturefrom playwright-pom-harness
Use when designing, structuring, extending, or reviewing anything in this Playwright/TypeScript test framework — folder layout, POM layering, naming conventions, business-vs-technical separation, Allure reporting strategy, updating existing ADO test-case content, or deciding where new code belongs. Also use when asked to "automate", "script", or "create scripts for" a test case, test suite, user story, or an Azure DevOps suite/test-case id — that request spans layers and starts here. This is the entry point and router — start here, then follow the specialist skill it routes you to.
Ships in playwright-pom-harness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Resolve this skill to its real path before following references. Read the package and consumer boundaries; mutable state belongs to the consumer.
This framework implements the Page Object Model with no base classes, a strict business / technical split, and Allure-first reporting. Every structural or convention question is answered by one authority chain:
For a specific item on a list page, follow record targeting (§4b): observe suitable search and its scope, verify the exact row identity before acting, and preserve scenario-intent exceptions. Do not infer search capability from a generic input.
tests/ → spec files: orchestrate business flows, carry Allure metadata. Zero logic.
(top-level by design — specs are consumers of src/, not part of it)
One folder deep when specs are grouped by suite/initiative — e.g.
tests/<Suite Folder>/<Feature>Tests.spec.ts, folder named exactly like
the grouping it represents (spaces kept; quote the path in shells) — see
the 2026-09-14 Decision-records ruling in design-conventions.md
src/pages/ → GUI business layer: page classes (locators + actions + validations)
src/apis/ → API business layer: Apis<Domain> service classes
src/dbs/ → DB business layer: Dbs<Domain> service classes
src/utils/ → technical layer: ApiActions / DbActions facades — technical complexity lives here; small domain cleanup guards stay in services
src/config/ → environment & DB coordinates, values from .harness/targets.json or process.env (formerly resources/config/)
resources/ → testData/ (one JSON per spec, per-case tc<id> clusters) + Queries/ (supplied and reviewed discovered DB-query knowledge — derive-only, see service-classes) + apisCollections/ (team API-collection knowledge library — derive-only, harness-curated on import, see service-classes)
playwright.config.ts → baseURL, reporters (Allure/HTML/JSON/CTRF), projects, global setup/teardown
global-setup.ts / global-teardown.ts → run lifecycle (technical family): run hygiene only, details in utility-classes
.github/workflows/playwright.yml → CI: checkout → setup-node → npm ci → npx playwright install --with-deps → AUTO_ALLURE_OPEN=false npx playwright test → upload report artifacts; branch filter must match the repo's default branch
Bare layer names (pages/, apis/, dbs/, utils/, config/) anywhere in the skill
library are shorthand for these src/ locations (2026-09-01 layout ruling).
Dependencies point strictly downward: tests call business classes; business classes call
utils; nothing reaches upward or skips a layer (a spec never calls page.locator() or
request.fetch() directly).
| Working on | Specialist skill |
|---|---|
| Requirements/story analysis, editable chat review and confirmed story comments with requested team mentions | requirements-analysis |
| Plan a testing cycle's objectives, risk-based scope, strategy, feasibility and measurable criteria | test-planning |
| Design or revise source-grounded test cases, review complete coverage in chat and optionally publish approved create/update/reuse proposals | test-case-design |
| Draft/review a bug from selected story context, a user description or verified execution evidence, including project-specific fields and approved attachments | bug-report |
| Identify affected areas and recommend regression scope for a selected story, bug fix or requirement/application/framework change | impact-analysis |
| Automating story-linked cases, an ADO suite or local scenarios into durable POM code | automate-test |
| Executing ADO manual cases interactively, with reports and optional bug/result delivery | execute-test |
| Updating existing ADO case titles, actions, expected results or ordinary-step ordering | Case editing |
| Diagnose only or diagnose and fix failed/flaky/changed/blocked tests, including combined analysis-and-repair requests and requested workflow resumption | maintain-test |
| A page class (new page, header/footer/skeleton area, refactor) | page-classes |
| Finding, naming, or repairing an element locator | element-locators |
| A spec file's skeleton — describe block, hooks, wiring | test-classes |
| An individual test case — title, metadata, flow, scope | test-methods |
| An action method on a page/service class | action-methods |
| A validation/assertion method | validation-methods |
| Test data files, expected values, environment data | test-data |
An Apis<Domain> or Dbs<Domain> service class | service-classes |
Technical plumbing in utils/ (logging, attachments, connections) | utility-classes |
| Installing, updating or configuring the harness itself — environments, targets, secrets, CI | harness-setup |
| Explicitly invoke snapshot-only Q&A; ordinary questions do not activate it | context-qa |
| Build or update selected business context with saved or new criteria | project-context |
| Refresh saved business sources and discover new criteria matches | context-update |
Select the workflow by the requested outcome. A story/bug ID or failure report alone does not select maintenance. Impact-only requests produce recommendations without diagnosis, test execution or repairs; maintenance reuses the shared impact procedure inside its existing assessment/history.
Cycle planning is optional and distinct from actual progress tracking. An accepted plan can inform scoped design/execution; it does not create cases, accept unstated expectations or replace execution, review, verification or repair gates.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (itestflow/itestflow-harness) — no native marketplace selected
npx claudepluginhub p/mahmoudelsharkawy-playwright-pom-harness24 skills in this plugin
/action-methodsUse when writing, refactoring, or reviewing an action method on a page or service class — naming a business operation, wrapping it in its Allure step, choosing what to interpolate into the step title, deciding parameters and return type, judging granularity (compose vs split), handling native dialogs, file uploads, and per-control interaction verbs, or checking an existing action for redundancy./automate-testAutomate test cases from a user story, an ADO suite or local scenarios into durable POM code through observed execution, independent review and two scoped green runs./bug-reportDraft, refine, review and optionally file a bug from a selected story and the user's description or existing execution evidence. Supports editable bug details, project-specific required/custom fields, proportionate reproduction and verified attachments./context-qaAnswer business questions from selected saved work items and documents, only when explicitly invoked. Continue explicitly invoked follow-ups with readable explanations and short citations. Ordinary messages do not activate this skill./context-updateRefresh saved business context using its selected documents, exact work-item IDs or saved criteria. Discover newly matching items, update changed evidence and preserve history. Ordinary questions do not trigger refresh./element-locatorsChoose or repair Playwright POM locators, including selector priority, field naming, dynamic locators, strict-mode ambiguity, and locator review.