Skip to content

Browser automation skill that auto-detects dev servers and runs custom Playwright scripts for testing and automation.

CCM score
61 of 100
skills.sh installs
320
GitHub stars
7.2K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full browser testing workflow: dev server detection, script generation in /tmp, and execution through run.js
  • Includes example patterns for responsive viewports, login flows, form submission, broken-link checks, and error-handled screenshots
  • Enforces a visible browser by default (headless: false) and parameterized target URLs at the top of each script
  • Designed for testing websites and automating browser tasks, with network inspection left to chrome-devtools

Install

$ npx -y skills add tech-leads-club/agent-skills --skill playwright-skill -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

IMPORTANT - Path Resolution: This skill can be installed in different locations (plugin system, manual installation, global, or project-specific). Before executing any commands, determine the skill directory based on where you loaded this SKILL.md file, and use that path in all commands below. Replace $SKILL_DIR with the actual discovered path.

Playwright Browser Automation

General-purpose browser automation skill. I'll write custom Playwright code for any automation task you request and execute it via the universal executor.

CRITICAL WORKFLOW - Follow these steps in order:

  1. Auto-detect dev servers - For localhost testing, ALWAYS run server detection FIRST:

    cd $SKILL_DIR && node -e "require('./lib/helpers').detectDevServers().then(servers => console.log(JSON.stringify(servers)))"
    
    • If 1 server found: Use it automatically, inform user
    • If multiple servers found: Ask user which one to test
    • If no servers found: Ask for URL or offer to help start dev server
  2. Write scripts to /tmp - NEVER write test files to skill directory; always use /tmp/playwright-test-*.js

Details

Repository
github.com/tech-leads-club/agent-skills
Categories
Browser Automation & Scraping, Testing & QA
First seen
Jun 3, 2026

Questions

What does the playwright-skill do for an agent?

It gives the agent complete browser automation with Playwright, including testing pages, filling forms, taking screenshots, checking responsive design, validating UX, testing login flows and checking links. It auto-detects running dev servers and writes its test scripts to /tmp so your project stays clean.

How do I install playwright-skill?

Run npx -y skills add tech-leads-club/agent-skills --skill playwright-skill -y in your project. After that, the agent can write and run browser scripts for any browser-based testing or automation task.

Should I use playwright-skill or chrome-devtools for page debugging?

Use chrome-devtools for quick page debugging or network inspection, since the playwright-skill description says not to use it for those tasks. Choose playwright-skill when you want to test websites, automate browser interactions or validate web functionality.

Which other browser skills sit alongside playwright-skill?

It is listed in the Browser Automation & Scraping category next to agent-browser, playwright-cli, anti-detect-browser and browser-act. Its focus is on Playwright-based testing and automation of any browser task.

More from tech-leads-club/agent-skills

All 22

Similar to Playwright Skill

More Browser Automation & Scraping