playwright-interactive

Installation
Summary

Persistent browser and Electron debugging with live session handles across code iterations.

  • Maintains the same Playwright handles (browser, context, page) across multiple js_repl cells, eliminating restart overhead during iterative UI testing and QA.
  • Supports desktop web (explicit viewport or native-window mode), mobile web emulation, and Electron app debugging from a single persistent session.
  • Includes structured QA workflow: write a coverage inventory upfront, run functional tests with real user input, then run separate visual QA with screenshot capture and viewport-fit validation.
  • Provides reload helpers for renderer-only changes and restart paths for main-process or startup changes, with explicit guidance on when to reload versus relaunch.
  • Built-in screenshot normalization for CSS-pixel alignment (web and Electron), clipped region capture, and coordinate-based follow-up actions for model-assisted debugging.
SKILL.md

Playwright Interactive Skill

Use a persistent js_repl Playwright session to debug local web or Electron apps, keep the same handles alive across iterations, and run functional plus visual QA without restarting the whole toolchain unless the process ownership changed.

Preconditions

  • js_repl must be enabled for this skill.
  • If js_repl is missing, enable it in ~/.codex/config.toml:
[features]
js_repl = true
  • You can also start a new session with --enable js_repl (equivalent to -c features.js_repl=true).
  • After enabling js_repl, start a new Codex session so the tool list refreshes.
  • For now, run this workflow with sandboxing disabled: start Codex with --sandbox danger-full-access (or the equivalent config for sandbox_mode=danger-full-access). This is a temporary requirement while js_repl + Playwright support inside the sandbox is still being completed.
  • Run setup from the same project directory you need to debug.
  • Treat js_repl_reset as a recovery tool, not routine cleanup. Resetting the kernel destroys your Playwright handles.
Related skills

More from openai/skills

Installs
2.1K
Repository
openai/skills
GitHub Stars
18.9K
First Seen
Mar 5, 2026