/playwright-pom-harness:utility-classesfrom playwright-pom-harness
Use when writing, extending, or reviewing anything in utils/ — a technical facade like ApiActions/DbActions, report logging, Allure attachments, secret redaction, connection/pool handling, retries — the root-level globalSetup/globalTeardown lifecycle scripts (honorary utils for run hygiene and report generation) — or when deciding whether complex code (a loop, conditional, or try/catch) belongs in utils versus a business class.
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.
utils/ — the technical layer)Resolve this skill to its real path before following references. Read the package and consumer boundaries; mutable state belongs to the consumer.
utils/ is the framework's only technically complex layer. It hosts facades
(ApiActions, DbActions) that make every external interaction visible in the Allure
report, redact selected credential headers/structured keys, and guarantee that reporting failures never alter a test's
outcome. Business meaning never enters this layer. The root-level global-setup.ts /
global-teardown.ts lifecycle scripts are honorary members — run hygiene only
(playbook practices 14–17).
The living canonical models are src/utils/ApiActions.ts, src/utils/DbActions.ts
and src/utils/UiActions.ts. Pattern-match new facades on them and use
src/utils/Logger.ts for console output. UiActions.ts owns ordinary locator actions
and bounded retries for controls that initialize asynchronously.
Other examples include PdfDocuments.ts (an external-library facade — transport and parsing stay out
of business/page classes, same shape as ApiActions/DbActions but wrapping a parsing
library instead of a network/DB driver), and IdentityNumbers.ts (format-constrained
synthetic-data generation — a checksum-valid value that isn't externally registry-checked
and gets consumed permanently on use, so it's generated fresh per run instead of drawn
from a reused pool).
For shared-runtime outcomes, follow reporting. Attach the validated JSON/HTML through attachResult(test, result) inside the technical step, inspect its delivery status, and keep reporting failures separate from test outcomes. Generate Allure only after native execution and reporter flush; never infer a harness verdict from native test counts.
The example uses src/utils/AllureReport.ts in reporter onExit with the pinned
Node-based Allure 3 generator; do not generate during globalTeardown. Register
this reporter before the HTML viewer, which can keep its onExit hook open.
Ordinary, standalone and verification invocations publish current HTML at
reports/allure-report/index.html, with older HTML only in reports/allure-history/.
Keep immutable capture/HTML/receipts under .harness/runs/allure/ and harness QA
reports separate. Publish only after completion. Allure video attachments are opt-in;
Playwright recording and native attachment arrays remain independent.
Apis<Domain>, Dbs<Domain> classes) →
service-classesexpect() assertions and verify* methods → validation-methodsWhat SKILL.md sets; muted values are Claude Code's defaults
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.Other plugins' skills for the same job