playwright-vision-low-resource

playwright-vision-low-resource is a skill for Claude Code from chf3198/copilot-governance. It costs 62 tokens per session (2,513 once invoked), scanned A, original, MIT.

A low-memory setup guide for using Playwright, a browser automation tool, with Claude Vision, which analyzes screenshots. It adjusts browser and image-checking work for machines with limited memory.

In plain words
What is it for?
Use it when running browser tests on a small machine, after browser-context failures, or when checking screenshots reliably with limited resources.
Why use it?
It helps prevent browser crashes, out-of-memory errors, and endless retries during automated visual checks.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is DEPLOY_TARGET=uat USE_SYSTEM_CHROME=0 node scripts/publish-to-squarespace.js.

Good fit Use it when running browser tests on a small machine, after browser-context failures, or when checking screenshots reliably with limited resources.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/chf3198/copilot-governance
agentmods
npx agentmods add skills/chf3198/copilot-governance/playwright-vision-low-resource

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for playwright-vision-low-resource

README.md
[![agentmods](https://agentmods.dev/badge/skills/chf3198/copilot-governance/playwright-vision-low-resource/github.svg)](https://agentmods.dev/skills/chf3198/copilot-governance/playwright-vision-low-resource)
Your own site
<a href="https://agentmods.dev/skills/chf3198/copilot-governance/playwright-vision-low-resource"><img src="https://agentmods.dev/badge/skills/chf3198/copilot-governance/playwright-vision-low-resource/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for playwright-vision-low-resource

Your own site · 80×15
<a href="https://agentmods.dev/skills/chf3198/copilot-governance/playwright-vision-low-resource"><img src="https://agentmods.dev/badge/skills/chf3198/copilot-governance/playwright-vision-low-resource.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,513 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.02513
Opus 5.5 $0.00025 $0.01005
Sonnet 5.5 $0.00012 $0.00503
Haiku 4.5 $0.00006 $0.00251

Measured 3mo ago against content hash d5172d63ab00, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

playwright-vision-low-resource scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/apply-workspace-lowram.sh, scripts/preflight-playwright-mcp.sh, templates/playwright.low-resource.config.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/playwright-vision-low-resource/SKILL.md · 292 lines

How it starts

The opening of the file, as written. The whole thing — 292 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Playwright + Vision Low-Resource Profile

Purpose

Stabilize browser automation and visual analysis on low-memory environments without sacrificing verification quality.

This skill is global (user-level) and intended for reuse across all repositories.

Trigger conditions

Use this skill when any of the following apply:

  • RAM <= 8 GB total
  • Repeated error: Target page, context or browser has been closed
  • VS Code extension host instability or OOM events
  • Need reliable visual checks with constrained local resources

Hard constraints

  1. No unbounded retries.
  2. Max browser-context retries: 2.
  3. Prefer workers=1 for local runs.
  4. Prefer single-browser project (Chromium) locally.
  5. Collect heavy artifacts only on failure/retry.

Standard operating profile

1) Environment preflight (always first)

Run:

  • ~/.copilot/skills/playwright-vision-low-resource/scripts/preflight-playwright-mcp.sh

If available memory is low (< 1.5 GB), do not start headed or multi-worker runs.

2) MCP profile (workspace)

For .vscode/mcp.json prefer:

  • --headless
  • --isolated
  • --no-sandbox
  • bounded --timeout-navigation and --timeout-action
  • file output mode and explicit output dir

Template: ./templates/mcp.low-resource.jsonc

3) Playwright profile (workspace)

For local constrained runs:

  • workers: 1
  • maxFailures: 1
  • single local project (chromium)
  • trace: 'on-first-retry'
  • video: 'retain-on-failure'
  • screenshot: 'only-on-failure'

Template: ./templates/playwright.low-resource.config.ts

4) Vision profile

For Claude vision calls:

  • Prefer image long edge <= 1568 px
  • Avoid tiny images (< 200 px edge)
  • Use 1-3 targeted screenshots per question (not full dumps)
  • Prefer viewport/element screenshots over full-page unless layout context is required

5) Failure protocol

If browser-context loss occurs twice in a row:

  • Stop browser retries
  • Switch to deterministic fallback:
    • HTML fetch / DOM inspection
    • targeted CSS/JS edits
    • CI/quality-gate verification
  • Mark visual verification as deferred/manual if required

Read the full file on GitHub · 292 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 292 lines · 62 tokens per session scan A d5172d63ab00

Subscribe to this mod's changes

playwright-vision-low-resource is a skill published in the GitHub repository chf3198/copilot-governance (2 stars, last pushed 7d ago), licensed MIT. It adds 62 tokens to every session and 2,513 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

playwright-vision-low-resource compared with skills from other repositories

playwright-vision-low-resource next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
playwright-vision-low-resourcechf3198/copilot-governanceSkill27d agoMITA62Claude Code
pinchtab-mcppinchtab/pinchtabSkill11k8d agoMITA52Claude Code, Codex
azure-messaging-webpubsub-javamicrosoft/skillsSkill3.3ktodayMITA43Claude Code
cua-driverdavidondrej/skillsSkill4.4k5d agoMITA68Claude Code, Codex
open-design-browsercompozy/compozySkill2.9kyesterdayMITA56Claude Code, Codex
southwestborski/travel-hacking-toolkitSkill1.1k2d agoMITA40Claude Code
browser-skillzeenie-ai/OpenCompanySkill1.1kyesterdayMITA53Claude Code