askill
playwright-browser

playwright-browserSafety 90Repository

Use when automating browsers, testing pages, taking screenshots, checking UI, verifying login flows, or testing responsive behavior

16 stars
1.2k downloads
Updated 1/30/2026

Package Files

Loading files...
SKILL.md
node $SKILL_DIR/run.js /tmp/playwright-task.js

For inline code (variables are auto-injected, see below):

node $SKILL_DIR/run.js "const b = await chromium.launch(); const p = await b.newPage(); await p.goto('http://localhost:3000'); console.log(await p.title()); await b.close();"

$SKILL_DIR is where you loaded this file from.

Use { headless: false } when user wants to see the browser. You know when that is.

  • BASE_URL - from PLAYWRIGHT_BASE_URL env var
  • CI_ARGS - browser args for CI (['--no-sandbox', '--disable-setuid-sandbox'])
  • EXTRA_HEADERS - from PW_HEADER_NAME/VALUE or PW_EXTRA_HEADERS
  • chromium, firefox, webkit, devices - from playwright

Example:

node $SKILL_DIR/run.js "
const browser = await chromium.launch({ args: CI_ARGS });
const page = await browser.newPage();
await page.goto(BASE_URL || 'http://localhost:3000');
console.log(await page.title());
await browser.close();
"

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

83/100Analyzed 2/20/2026

Well-structured Playwright browser automation skill with clear execution instructions, comprehensive variable injection system, and good discoverability through triggers. Provides practical examples for both inline code and script execution. Points to external API reference for advanced patterns. Slightly deducts for completeness as it relies on external docs and lacks troubleshooting info. Good balance of actionability and reusability."

90
82
78
72
85

Metadata

Licenseunknown
Version1.1.0
Updated1/30/2026
PublisherTechNickAI

Tags

apici-cdsecurity