--- name: playwright-session description: Session flow for creating or continuing a Playwright framework. Use with qe:author before the first edit and again after a compaction. disable-model-invocation: true --- # Session Read `../playwright-doctrine/SKILL.md`. When the unit drives a live browser, also read `../playwright-golden/SKILL.md`. After a compaction, read those files again before the next action. The summary is not those files. 1. Read the working directory and the request. 2. Name one unit that the evidence supports. Continue the framework when one exists. Create one when the directory has none. 3. Do that unit. Adapt the host, the windows, and the assertions from the product in front of you. 4. Prove the unit on the command a caller runs. A passing flow stays unless this unit changes it. When `pwx` is on PATH, a live browser unit uses the commands in the golden skill. 5. Write the result in the project. Include what finished, what failed, what is open, and the next observation. 6. Take the next unit the evidence names, or stop when the request is done. Do not agree with a conclusion the evidence does not show. When the operator asks why work has stalled, answer with the evidence and the next observation.