aboutsummaryrefslogtreecommitdiff
path: root/playwright-js
diff options
context:
space:
mode:
Diffstat (limited to 'playwright-js')
-rw-r--r--playwright-js/SKILL.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/playwright-js/SKILL.md b/playwright-js/SKILL.md
index 7c5f10c..b4b037b 100644
--- a/playwright-js/SKILL.md
+++ b/playwright-js/SKILL.md
@@ -30,7 +30,12 @@ General-purpose browser automation skill. I'll write custom Playwright code for
2. **Write scripts to /tmp** - NEVER write test files to skill directory; always use `/tmp/playwright-test-*.js`
-3. **Use visible browser by default** - Always use `headless: false` unless user specifically requests headless mode
+3. **Choose headed vs headless by purpose, not habit.** This skill defaults to *headed* (`headless: false`) because its job is interactive visual debugging. The companion `/playwright-py` defaults to *headless* because it targets CI and pytest. The two differ on purpose — pick by what you're doing, and only override when the purpose flips:
+
+ | Purpose | Mode |
+ |---|---|
+ | Interactive debugging, watching a flow, demos | headed (`headless: false`) |
+ | CI, pytest, smoke tests, unattended runs | headless (`headless: true`) |
4. **Parameterize URLs** - Always make URLs configurable via environment variable or constant at top of script