Playwright Safe
Use this skill for Playwright browser work when host churn sensitivity matters.
Workflow
- Run preflight to enforce no-assets policy for this skill package.
- Run browser tasks through Playwright CLI commands.
- Store outputs in task folders, not in the skill folder.
- Keep commands deterministic and short.
Preflight
Run this before automation tasks:
python3 "$CODEX_HOME/skills/playwright-safe/scripts/playwright_safe_preflight.py" \
--skill-root "$CODEX_HOME/skills/playwright-safe" \
--json-out /tmp/playwright-safe-preflight.json
Command Patterns
Check runtime:
playwright --version
Install browser dependencies if needed:
playwright install chromium
Run a script:
node /path/to/script.js
Guardrails
- Do not add
assets/to this skill. - Do not add image/icon files (
*.png,*.svg,*.jpg,*.jpeg,*.gif,*.ico) to this skill. - Keep outputs outside
$CODEX_HOME/skills/playwright-safe. - If churn is observed, rerun preflight and remove added assets immediately.
Scope Boundary
Use this skill only for the playwright-safe lane and workflow defined in this file and its references.
Do not use this skill for unrelated lanes; route those through $skill-hub and the most specific matching skill.
References
references/no-churn-rules.md
Loopback
If this lane is unresolved, blocked, or ambiguous:
- Capture current evidence and failure context.
- Route back through
$skill-hubfor chain recalculation. - Resume only after the updated chain returns a deterministic next step.