Browser automation

From alexei-led/cc-thingz · View interactive version

Browser automation is an AI agent skill from the GitHub repository alexei-led/cc-thingz. Browser automation for rendered UI exploration, validation, screenshots, recordings, and end-to-end flows. Use when a task needs an actual browser or rendered DOM: inspect UI state, click/fill forms, debug frontend behavior, capture evidence, verify a feature, or run/generate browser tests. NOT for

How to use this skill

Skill file

Browser Automation

Prove rendered behavior in a real browser and report pass, fail, or blocked with

evidence. Keep automation temporary unless the user asks for permanent tests.

Runtime

Use the cheapest runtime that proves the claim:

  1. Browser tools exposed in the current session. See

CODE0.

  1. The project's configured browser runner. Infer the package manager from the

lockfile; do not invent a runner.

  1. The bundled Playwright scripts in this skill's scripts/ directory. Read

CODE0 for setup, the script

skeleton, helpers, and custom headers.

  1. None available: report blocked and name the missing tool or package.

Rules

known. Ask when no server or several servers are found.

services. Credentials, production data, and destructive actions need explicit

user approval.

or accessibility snapshot. Never add fixed sleeps. For SPA or HTMX pages,

assert the DOM after swaps and client-side route changes.

use headless screenshots plus a manifest as visual evidence. Use headed mode

only when the user can see the browser.

the project only when the user asked for permanent tests, and never write into

the skill directory.

scoped attempts, save evidence, quote the failing line or UI state, and stop.

you changed, or you name each check that did not run and why.

Bundled Playwright scripts

Run them by absolute path from the caller's working directory, where

<skill-dir> is the directory that contains this SKILL.md. Prefer the

screenshot scripts over custom batch scripts:

node <skill-dir>/scripts/screenshot-url.js --url <url> --selector <ready-selector> \
  --out /tmp/playwright-page.png --json
node <skill-dir>/scripts/screenshot-sequence.js --url-template '<url/{n}>' --from 1 --to 10 \
  --selector <ready-selector> --out-dir /tmp/playwright-shots --json
node <skill-dir>/scripts/run.js --json /tmp/playwright-check.js

network failures, and HTTP responses with status >=400.

stderr. Pass --json or --quiet whenever stdout must carry only the

script's JSON: without them, a first-run Playwright install also writes to

stdout. Playwright globals such as chromium and helpers stay available when the script also

uses require("fs") or require("path").

Platform additions

No target-specific additions.

Output

## Browser Automation Result

Target: <page, feature, or flow>
Runtime: <built-in browser | project runner | bundled Playwright | blocked>
Actions: <commands or browser actions>
Result: <pass | fail | blocked>
Evidence: <screenshot, manifest, or trace paths, or the key observation>
Next fix: <only when failing or blocked>

Report blocked, not pass, when the check did not run.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.