scaffold-page-object
Given a URL + page name + optional storageState, this skill produces a draft Page Object class file at src/pages/<Name>.ts (or scratch/<Name>.ts for experimentation). The output follows the framework's POM-by-component conventions: readonly locator fields, constructor wiring, action methods inferred from the live page, and composition of framework components detected on the page.
How to use it
Tell Claude what you want:
Use the scaffold-page-object skill to create a
CheckoutCompletePagefromhttps://www.saucedemo.com/checkout-complete.htmlusingauth/standard.json.
Or for experimentation, send the output to scratch/:
Use the scaffold-page-object skill to create a
LoginPagefromhttps://www.saucedemo.com— no auth needed. Write toscratch/LoginPage.ts.
Workflow
The full 12-step procedural workflow is in references/workflow.md. Read that file before executing the skill.
References
references/workflow.md— the 12-step procedural workflowreferences/page-object-template.md— canonical TS template for generated filesreferences/component-detection.md— signatures for recognizing framework components in a page
Scripts
scripts/check-component-signatures.sh— reconcilessrc/components/*.tsagainst the signature table in both directions, and prints the detection set. Used by workflow Step 4; see ADR-0025.scripts/typecheck-generated.sh— typechecks a generated Page Object against the project's owntsconfig.json, path aliases included, resolvingtscfromnode_modules/.binonly. Used by workflow Step 11.
See also
docs/scaffold-page-object.md— learning guide with worked examples- ADR-0008 — why custom skills follow this layout
- ADR index (origin repo) — rationale for every
ADR-NNNNcited above. Paths likedocs/…andsrc/…are relative to that repo, not to this skill.