Scaffold page object
Skill Diegocortes15/playwright-ia-automation-framework-saucedemo/.claude/skills/scaffold-page-object
Generate a draft Page Object class from a live page snapshot, composing framework components when detected.From its SKILL.md
npx -y skills add Diegocortes15/playwright-ia-automation-framework-saucedemo --skill scaffold-page-objectAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 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.
SKILL.md
1.8 KB, 344 tokens by cl100k_base, as published. Nobody here has run it
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
CheckoutCompletePagefrom https://www.saucedemo.com/checkout-complete.html usingauth/standard.json.
Or for experimentation, send the output to scratch/:
Use the scaffold-page-object skill to create a
LoginPagefrom https://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
See also
docs/scaffold-page-object.md— learning guide with worked examplesdocs/adr/0008-custom-skills-pattern.md— why custom skills follow this layout
What ships with it: 3 files
15.9 KB alongside SKILL.md
references/
- component-detection.md3.3 KB
- page-object-template.md4.2 KB
- workflow.md8.4 KB