skills sourced live from GitHub · all skills listed are free · each skill is provided under its author's license.
home / Browser Automation / Playwright Skill Skill by @lackeyjb
The skill is the skills/playwright-skill folder inside that repository. Copy it into the folder your agent loads skills from; check your agent's documentation for where that is.
Complete browser automation with Playwright.
Gives an agent practical Playwright abilities: it detects running dev servers, writes reusable test scripts, and handles screenshots, responsive checks, login flows and link checking. The aim is that you can say what to verify and get a script back.
The original SKILL.md is organised into these sections:
Written and maintained by @lackeyjb. It is published under the MIT license, which allows reuse with attribution. See the author profile. SkillDirectory does not claim authorship: this page adds our own review and links back to the original, and the skill's text belongs to its author.
# Playwright Browser Automation
Write and execute focused Playwright scripts for the user's request. Prefer the
skill's executor and helpers, but use the full Playwright API when needed.
## Path resolution
This skill can be installed in several locations, so resolve its directory
first. Set `SKILL_DIR` to the directory containing this SKILL.md file, then run
the commands below as written:
```bash
export SKILL_DIR=<absolute path of the directory containing this SKILL.md>
export TMP_DIR="$(node -p 'require("node:os").tmpdir()')"
```
If shell state does not persist between commands, substitute the literal paths
for `$SKILL_DIR` and `$TMP_DIR` in each command instead.
Common installation paths:
- Plugin system: `~/.claude/plugins/marketplaces/playwright-skill/skills/playwright-skill`
- Manual global: `~/.claude/skills/playwright-skill`
- Project-specific: `<project>/.claude/skills/playwright-skill`
## Workflow
1. For localhost work, detect running servers before writing a URL:
…
Excerpt only, quoted from the author's repository. Open the repository for the complete file.