When to choose it
Browser tasks where you want the automation script as an inspectable, reusable result.
Choose it if: you want a script you can inspect and run again.
Look elsewhere if: you only need the tool interface of an existing Playwright MCP integration.
What the source describes
- Creates focused JavaScript browser scripts and runs them through the Skill’s executor.
- Documents local-server discovery, screenshots and temporary or preserved script output.
Requirements
- Skill runtime: Node.js 20+ and npm. The reviewed skills CLI 1.7.1 installer requires Node.js 22.20.0+.
- Initial network access to download Playwright and Chromium.
- A target URL or running development server; visible mode needs a display.
A focused automation Skill with a local executor. It is distinct from the Playwright MCP wrapper already in this directory.
Install the focused Skill
- Choose the intended project. Run the focused install below from the intended project. The reviewed, published skills CLI 1.7.1 requires Node.js 22.20.0+ and npm. Review the installation scope and symlink or copy prompt. The npx skills command resolves the npm release available when you run it; a later release may differ from this review.
- Check discovery. Run the project-scope list from the same project. If you installed globally, check that scope separately with npx skills list --global --agent claude-code. The reviewed 1.7.1 list implementation defaults to project scope.Shell • setup check
npx skills list --agent claude-code - Install browser dependencies. Locate the actual installed directory containing SKILL.md, run.js and package.json. Run npm run setup there: its source expands to npm install followed by npx playwright install chromium. The Skill declares Node.js >=20.0.0 and Playwright ^1.62.0; the focused installer has the higher Node.js >=22.20.0 requirement. The dependency range is not an exact resolved-version guarantee.Shell • setup check
npm run setup - Choose a safe target. Use a local preview or authorized test site with test accounts and data. Inspect generated scripts before execution.
- Separate setup from the test working directory. After dependency setup, return to the project whose reviewed test script you want to run. The executor preserves the caller’s working directory, so relative script and artifact paths are not resolved from the Skill’s install directory.
Run this command from the intended project folder after reviewing the source. The skills CLI targets Claude Code and defaults to project scope. Review its scope and symlink or copy prompt; use --global only if you want a user-wide installation.
npx skills add lackeyjb/playwright-skill --skill playwright-skill --agent claude-codeHow to use it
Ask for a concrete test. The documented executor is the Skill’s run.js; avoid running generated files as unrelated Node scripts.
Replace the directory with your actual Skill installation and supply an existing, inspected script at ./qa/homepage-check.js. Run from its project. run.js resolves Playwright from the Skill and copies the input script into PW_SCRIPT_DIR; PW_ARTIFACT_DIR controls the upstream screenshot helper, so a script using page.screenshot directly must choose and prepare its own path.
PLAYWRIGHT_SKILL_DIR="/absolute/path/to/installed/playwright-skill"
PW_SCRIPT_DIR="./qa-scripts" PW_ARTIFACT_DIR="./qa-artifacts" node "$PLAYWRIGHT_SKILL_DIR/run.js" "./qa/homepage-check.js"An original example for a bounded task. This request example is written by ClaudeStack; it is not a transcript of a tested session.
Write a read-only homepage check for my confirmed local preview URL. Use separate desktop 1440x900 and mobile 390x844 viewports, check the visible main heading and navigation, and save screenshots through the Skill helper. Show the script first, keep the browser cleanup in finally, and do not submit forms or accept optional analytics.The external skills CLI collects installation telemetry and makes public-repository security-audit requests. Its README documents DISABLE_TELEMETRY=1 or DO_NOT_TRACK=1 to disable both. ClaudeStack did not run this installer.
The upstream plugin alternative is playwright-skill@playwright-skill after adding lackeyjb/playwright-skill as a marketplace; the same dependency setup is required.
What to expect
The reviewed source describes these observations. ClaudeStack has not loaded or run this extension.
- An inspectable JavaScript script, actual assertion results and artifact paths after separately authorized execution.
- File execution through run.js uses the caller’s working directory while resolving Playwright from the installed Skill. PW_SCRIPT_DIR preserves a copy; it does not change the target site.
- The screenshot helper writes to PW_ARTIFACT_DIR, or the OS temporary directory when it is unset. Direct Playwright screenshot calls follow the paths specified in the script.
Self-check: Verify the actual target URL, completed assertions, screenshot files and browser cleanup. Confirm that any headless setting matches the launch code: PW_HEADLESS is read by helpers.launchBrowser, while a direct chromium.launch call follows its own options. A generated script or a saved script copy is not evidence that assertions passed.
Troubleshooting
Playwright or Chromium is missing
Run npm run setup from the installed Skill’s actual directory.
Node cannot resolve Playwright
Use the Skill’s run.js executor, which resolves dependencies from its own installation.
No visible browser appears
Check headless mode and display availability. The optional install-all-browsers script is for additional Firefox or WebKit downloads.
Artifacts are saved in an unexpected folder
Inspect whether the script uses helpers.takeScreenshot or page.screenshot directly. PW_ARTIFACT_DIR applies to the helper. Relative paths are resolved from the project where you invoked run.js; create a directory before a direct screenshot call if that script requires it.
Headless mode is ignored
PW_HEADLESS=true affects helpers.launchBrowser. A script that calls chromium.launch({headless: false}) directly ignores that helper setting; inspect and change the launch options only for the intended environment.
The local preview is not found automatically
The source probes a limited default port list, not every listener. Supply the confirmed target URL, or pass your preview port to detectDevServers. An unrelated server on a default port is not evidence that it is your application.
Disable or remove it
- For a project installation, run npx skills remove playwright-skill --agent claude-code from the same project. Add --global only when removing a global installation.
- Review any edits and generated artifacts separately; removing the Skill does not revert its work.
- For the plugin alternative, uninstall playwright-skill in /plugin. Upstream does not document removal of separately downloaded browser caches.
Limitations & considerations
- Generated JavaScript can submit forms and change real websites; inspect the script and target first.
- Separate browser downloads and caches are not removed by uninstalling the Skill.
Source & review record
Our description is based on public documentation and manifests available on 2026-10-07. Installation formats were checked against Claude Code and the relevant installer documentation. No extension code was executed: this is a source review, not a runtime compatibility test or security audit.
- Original source and documentation
- Reviewed definition source
- License of the reviewed source
- Official plugin installation documentation
Repository last pushed at the time of review: 2026-10-01T07:39:15Z. This date does not prove that the extension works with a particular Claude Code release.
Usage guide sources
Upstream revision checked for this guide: dd47a6a023e249eb1b36e9e943eab89d0900865d. Command names and behavior in this guide are documentation and registration-source findings, not runtime verification.
- README and setup ↗
- Skill workflow ↗
- Plugin manifest ↗
- License ↗
- Claude Code: Skill discovery and invocation ↗
- Skills CLI 1.7.1: install, scope, removal and telemetry ↗
- Skills CLI 1.7.1: declared Node requirement ↗
- Skills CLI 1.7.1: actual project/global listing behavior ↗
- npm-published skills 1.7.1 metadata ↗
- Runtime engines, Playwright range and browser setup commands ↗
- Executor: working directory, module resolution and saved script copies ↗
- Helpers: launch settings, artifacts and limited server detection ↗