Skip to content
Skills Library
Programming · Testing

drive-browser

/drive-browser

Drive headless Chromium from the shell for screenshots, screen recordings, PDFs, and e2e browser checks of any URL or local dev server. Use to verify user-visible web changes against the dev server, and whenever a screenshot, screen recording/video, or e2e/browser check is wanted.

Repository
t45 ↗
Licence
MIT
Last repository change
13.11.2026

Assessment and security

95/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content30 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
1
HTML comments
0
URLs in SKILL.md
3
Deprecation

No signals detected. Repository changed on 13.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/browser.mjs

What it does and when to use it

Drive headless Chromium from the shell for screenshots, screen recordings, PDFs, and e2e browser checks of any URL or local dev server. Use to verify user-visible web changes against the dev server, and whenever a screenshot, screen recording/video, or e2e/browser check is wanted.

Original author description

Drive headless Chromium from the shell for screenshots, screen recordings, PDFs, and e2e browser checks of any URL or local dev server. Use to verify user-visible web changes against the dev server, and whenever a screenshot, screen recording/video, or e2e/browser check is wanted.

How it works

  1. Capture
  2. Steps modules
  3. Show the evidence
Original SKILL.md headings · 61 lines, 424 words
SKILL.md preview
---
name: drive-browser
description: Drive headless Chromium from the shell for screenshots, screen recordings, PDFs, and e2e browser checks of any URL or local dev server. Use to verify user-visible web changes against the dev server, and whenever a screenshot, screen recording/video, or e2e/browser check is wanted.
---

# Drive a headless browser

Capture screenshots and videos, print PDFs, and run e2e checks against any URL
with the headless Chromium builds already on this machine. No display, no root,
no browser install: the helper reuses T3's own `chrome-headless-shell` and
bootstraps `playwright-core` into `~/.cache/t45-drive-browser` on first run
(about a second, network required once). Video also downloads a small ffmpeg
once. Nothing is installed into the repository.

## Capture

Run from the repository root; the helper prints the absolute output path.

```sh
S=.agents/skills/drive-browser/scripts/browser.mjs
node "$S" shot https://example.com --out /tmp/t3-drive/example.png
node "$S" shot "$WEB_URL" --full --wait-ms 2000 --out /tmp/t3-drive/app.png
node "$S" shot "$URL" --selector '[data-testid=sidebar]' --size 390x844 --out /tmp/t3-drive/mobile.png
node "$S" video "$WEB_URL" --steps /tmp/t3-drive/steps.mjs --out /tmp/t3-drive/flow.webm
node "$S" pdf https://example.com --out /tmp/t3-drive/example.pdf
```

- `--size WxH` sets the viewport (default `1280x800`); `--wait-ms` settles
  after load, before `--steps`; `--full` captures the whole page.
- Videos are `.webm`, which the T3 chat renders directly. Recording starts at
  navigation, so the steps capture the whole flow.

## Steps modules

`--steps` points at a module whose default export receives the live session:

```js
// /tmp/t3-drive/steps.mjs
import assert from "node:assert/strict";

export default async ({ page }) => {
  await page.getByRole("button", { name: "New chat" }).click();
  await page.getByRole("textbox").fill("hello");
  await page.keyboard.press("Enter");
  assert.match(await page.locator("[data-slot=message]").last().innerText(), /hello/);
};
```

Any thrown error (including a failing assertion) exits non-zero with the failure
on stderr, so the same command doubles as an e2e check. `page`, `context`,
`browser`, `url`, and `out` are available; use Playwright's normal API.

For authenticated T45 checks, start `vp run dev --home-dir /tmp/t45-browser` and wait for the web server to be ready. Run `vp run browser --email alice@example.test --steps /tmp/t3-drive/steps.mjs`. The browser command uses `http://localhost:5733`. It opens a fresh headless profile, signs in through the normal login form, and calls the module's default function with `{ page, context, browser, url }`. It closes the browser when the steps finish and exits nonzero on failure. Capture screenshots or PDFs from those steps using Playwright's API; keep artifacts under `/tmp`. The first user names the organization; subsequent users await approval. Omit `--steps` to leave a headed browser open for manual exploration. See [Development](../../../docs/operations/development.md#signing-in-and-browser-checks).

## Show the evidence

Reference the printed path as markdown so the user sees it inline in the chat:

```md
![settings after save](/tmp/t3-drive/20261012113200-shot.png)
[screen recording of the flow](/tmp/t3-drive/flow.webm)
```

Keep artifacts out of the repository (defaults live in `/tmp/t3-drive`). The generic capture helper starts with a fresh logged-out profile; supply sign-in steps when needed. For T45, use the authenticated browser command above. `T45_BROWSER_PATH` overrides browser discovery only for the generic capture helper.
Files in this package (2)
  • SKILL.md 4 KB
  • scripts/browser.mjs 9 KB

Versions

RepositoryScoreLicence
This page · enricopolanski/t4595MIT
pandysp/claude-plugins90MIT

Database snapshot: 13.11.2026 · package version 90e6aadd017a (SHA-256 digest of the entire package)

Downloads in the last 30 days: 3 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100browser-driver
    Drive a web application in a real headless Chromium browser via a persistent Playwright REPL under tmux. Use when asked to start the dev server and verify a UI change end-to-end, take screenshots across viewports and themes, click around and inspect DOM/geometry, or check…
  • 100qa-screenshot
    Screenshot a page (deploy preview or a dev server on localhost) in the sandbox's headless Chromium, look at it, and embed it in a task comment. Use to verify a visual change or record before/after evidence.
  • 100agent-browser
    Drive a real browser with the agent-browser CLI (headless Chromium over CDP). Use for any browser task: verifying a UI change, taking a screenshot, walking a web page, filling a form, extracting page text, reproducing a frontend bug, or attaching UI evidence to a PR, issue,…
  • 98playwright-harness
    Drive a real browser with Playwright on any OS and gate on what you observe: write a script, launch Chromium (headless by default; a shared headed window when a human must watch or drive), drive the page, and assert on screenshots plus collected page errors. The operational…
  • 100browser
    Browse the web in a real Chromium: open pages, read them, click, fill forms, take screenshots. Use when a page needs JavaScript, interaction or a screenshot (plain reading of static pages is `web_fetch`).
  • 91dev-browser
    Browser automation with persistent named pages via the dev-browser CLI. Use when users ask to navigate websites, fill forms, take screenshots, extract web data, test web apps, log into sites, or automate browser workflows. Trigger phrases include "go to [url]", "click on", "fill…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.