Download Latest Version v4.1.0 source code.tar.gz (20.4 kB)
Email in envelope

Get an email when there's a new version of Playwright Skill for Claude Code

Home / v4.0.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-10-19 2.6 kB
v4.0.0 - Auto-Detection _ Smart Test Management source code.tar.gz 2025-10-19 19.2 kB
v4.0.0 - Auto-Detection _ Smart Test Management source code.zip 2025-10-19 24.9 kB
Totals: 3 Items   46.7 kB 0

๐ŸŽ‰ Major Release: Auto-Detection & Smart Test Management

Version 4.0.0 brings significant workflow improvements that eliminate common friction points when testing with Playwright.

โœจ What's New

๐Ÿ” Auto-Detect Dev Servers

  • Automatically scans common ports (3000, 3001, 3002, 5173, 8080, 8000, 4200, 5000, 9000, 1234)
  • Smart workflow:
  • 1 server found โ†’ Uses automatically
  • Multiple servers โ†’ Asks which one to test
  • No servers โ†’ Asks for URL or offers to help start one
  • No more hardcoded URLs or manual edits!

๐Ÿงน Clean Test Management

  • All test scripts now written to /tmp/playwright-test-*.js
  • Automatic cleanup by OS (no project clutter)
  • No more test files polluting your skill directory

๐Ÿ”— URL Parameterization

  • Every example includes TARGET_URL constant at the top
  • Easy to modify if auto-detection picks wrong server
  • Consistent pattern across all code examples

๐Ÿ“š Inline Execution Support

  • Quick one-off tasks can be executed inline
  • No file creation for simple screenshots or checks
  • Documentation on when to use inline vs files

๐Ÿ”ง Technical Changes

New Functions:

  • detectDevServers() in lib/helpers.js - Scans for running servers

Documentation:

  • Complete rewrite of SKILL.md with critical workflow section
  • Updated all examples to use /tmp and parameterized URLs
  • New execution pattern showing server detection flow
  • Enhanced tips section with best practices

๐Ÿ“Š Impact

Before v4.0.0 (from real user transcript):

  • โŒ Hardcoded localhost:3000
  • โŒ Server was on port 3001 โ†’ required 3 manual edits
  • โŒ No server detection
  • โŒ Test files cluttered skill directory
  • โŒ Hook errors from writing to wrong location

After v4.0.0:

  • โœ… Auto-detects port 3001
  • โœ… Zero manual edits needed
  • โœ… Proactive server detection
  • โœ… All files in /tmp (clean)
  • โœ… No hook errors

๐Ÿš€ Upgrade Notes

This is a major version bump due to workflow changes:

Breaking Changes:

  • Skill now expects to run server detection before localhost testing
  • Test files are written to /tmp instead of skill directory

Migration:

  • No action needed - skill handles everything automatically
  • Old test files in skill directory can be safely deleted

๐Ÿ“– Documentation

Updated examples show the new workflow:

  1. Auto-detect servers
  2. Write test to /tmp with parameterized URL
  3. Execute and enjoy clean results

See SKILL.md for complete details and examples.


Full Changelog: https://github.com/lackeyjb/playwright-skill/compare/v3.2.0...v4.0.0

Source: README.md, updated 2025-10-19