Adtech / Other

Playwright VS Code Loop for Codex

Orchestrate Playwright planner, generator, and healer workflows from Codex with VS Code loop execution for reusable web UX QA.

DocumentationAgent instructionsRequirements & limits

Use when Codex is orchestrating a VS Code-compatible Playwright planner, generator, and healer loop.

Inputs

  • app_dir (for monorepos, explicit app subdirectory)
  • playwright_config_path
  • base_url and/or local web command
  • smoke routes and high-risk interactions
  • sample detail page route

Outputs

  • Test plan
  • Generated spec
  • Healing notes

Before you begin

  • Reading and copying the procedure require no terminal setup. Check requirements for any packaged programs separately.

Try this first

Read the procedure and supply its documented inputs. Use the full text in an agent app or chat that supports pasted instructions, following that host's guidance.

Limits for this step
  • Instruction package only; it does not provide or authorize an executable runtime capability.
  • May run local QA workflows and propose test updates; require human approval before accepting broad healing changes.
  • Packaged programs have independent setup and verification requirements. Reading or copying this procedure does not verify their execution.
Read full instructionsHide full instructionsSKILL.md · v0.1.0

Playwright VS Code Loop for Codex

When to use

Use when you want Codex to run repeatable UX smoke/regression loops while delegating Playwright agent execution to a VS Code-compatible loop.

Inputs required

  • app_dir (for monorepos, explicit app subdirectory)
  • playwright_config_path
  • base_url and/or local web command
  • smoke routes and high-risk interactions
  • sample detail page route

Workflow

  1. Planner phase
    • Confirm target routes and pass criteria.
    • Keep first scope to smoke tests only.
  2. Generator phase
    • Generate or update Playwright specs with stable locators (role/text/test-id).
    • Ensure config has explicit testDir, outputDir, and webServer.cwd.
  3. Runner phase
    • Run Playwright tests and collect traces/report artifacts.
  4. Healer phase
    • Apply the smallest safe selector/flow patch for failures.
    • Re-run and summarize behavioral changes.
  5. Promote phase
    • Keep a reusable baseline suite for all future web feature PRs.

VS Code loop execution notes

  • Codex remains the orchestrator and decision-maker.
  • Use VS Code loop tooling for the Playwright agent cycle where supported.
  • If loop tooling is unavailable, run equivalent planner/generator/healer steps manually with Playwright tests.

Global Codex usage

  • Keep this skill in your global Codex skills directory for cross-project reuse.
  • Suggested install target: $CODEX_HOME/skills/playwright-vscode-loop-codex.
  • In each project, pass explicit monorepo paths before generation.

Output format

  • Test Plan
  • Generated/Updated Files
  • Run Summary
  • Healing Notes
  • Residual Risk

Guardrails

  • Never claim passing coverage for untested flows.
  • Do not widen scope automatically from smoke to full regression.
  • Do not auto-delete failing tests; heal with minimal changes.
  • Prefer robust user-facing locators over brittle CSS selectors.
View file metadata
---
name: playwright-vscode-loop-codex
description: Use Codex as orchestrator for Playwright planner, generator, and healer loops executed through VS Code-compatible Playwright agent flow.
---

Summary sources · Catalogue metadata, skill.yaml, SKILL.md · v0.1.0 · Release package

Install instruction files

These commands copy guidance into the selected runtime directories. Confirm that your agent app discovers it. Any packaged programs need separate setup and verification.

Install (Codex)

./bin/skills-hub install adtech/[email protected] --runtime codex

Install (Claude)

./bin/skills-hub install adtech/[email protected] --runtime claude

Install (Generic)

./bin/skills-hub install adtech/[email protected] --runtime generic --target ./my-agent/skills

How You Can Use This

Documentation

Resource form: Agent instructions

Read or copy the guidance. Any packaged programs have separate execution requirements and evidence.

First run: Read SKILL.md and follow the documented workflow.

Current limits

  • Instruction package only; it does not provide or authorize an executable runtime capability.

Packaged executable helpers

Each program has its own setup requirements and operational evidence. Reading or copying the instructions does not verify these programs.

scripts/install-global-codex.sh · Not verified · Local program

First run: Review scripts/install-global-codex.sh and its destination before running it.

  • Packaged helper exists, but current clean-client executable evidence is not recorded.
  • The installer replaces an existing skill at the resolved Codex skills destination.
What installation and verification mean
File installation
Places package files and generated configuration in the selected directories.
Native discovery
Your agent app finds and accepts the instructions, tools or plugin registrations.
Mock execution
Exercises sample fixtures. Connected data and provider effects need a separate check.
Connected operation
Requires current configuration, provider authentication, scoped permissions and a successful operation in your intended environment.

Declared compatibility

Compatibility unknown: versions and capabilities have not been declared.

Classification: declared

Technical details and release files

Operational Summary

Execution mode: may-run-local-verification

Approval boundary: May run local QA workflows and propose test updates; require human approval before accepting broad healing changes.

Review and lifecycle

Review maturity: Experimental

Security review declaration: Not declared

Lifecycle: Active

These release declarations are separate from evidence that a workflow operates in your environment.

Runtime & Dependencies

ID: adtech/playwright-vscode-loop-codex

Tags: qa, playwright, codex, vscode, ux-testing

Runtimes: codex, claude, generic

Tool dependencies: 3

API dependencies: 0

Dependencies

Tools: node, npx, playwright

APIs: Not documented

Outputs

  • Test plan
  • Generated spec
  • Healing notes