The complete implementation guide for the Agentic Playwright Scaffold.
27 pages, six chapters, and every snippet is real code from the scaffold, annotated with the reasoning behind it, the alternatives it beat, and the pitfalls that cost me weeks so they do not cost you any.
This is the full edition. The free LITE version tells you what the pieces are. This one shows you how they are built and why each one won.
The six chapters
- The Architecture at a Glance. Three layers: an always-loaded Constitution, 17 file-scoped skills, and a code layout so regular that guessing wrong is hard work.
- One Import, Every Capability. Fixture composition with mergeTests: three fixture families, one import point, dependency injection the agent cannot half-adopt.
- Look Before You Locate. Explore Before Generate: the agent inspects the live page before writing a single selector, and a filesystem marker gate proves it did.
- The Contract Is the Test. Strict Zod schemas, error envelopes, and the parse assertion that catches unexpected fields instead of silently stripping them.
- Data With a Place to Live. Faker factories, typed static data, enums, env plumbing, and refactors that cannot break silently.
- The Router and the Confidence Gate. The 8-phase workflow that makes the agent ask for missing input instead of building on hallucinated assumptions.
How it reads
- Every code block carries its repo path. Adopt a pattern, open that file, read the reasoning in place.
- Every chapter ends with a checklist you can run against your own suite this week.
- "Why this beats the alternatives" and "Pitfalls" boxes throughout. I stepped on most of these rakes personally. You are welcome.
Who this is for
QA engineers and SDETs who write Playwright already and want AI agents producing code they would approve in review. No selector tutorials, no "what is a fixture" recap.
Pay what you want. $0 is a valid answer, and if it saves you a weekend, $20 is the suggested one.