v4.0.0 - Auto-Detection & Smart Test Management
π 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_URLconstant 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()inlib/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
/tmpinstead 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:
- Auto-detect servers
- Write test to /tmp with parameterized URL
- Execute and enjoy clean results
See SKILL.md for complete details and examples.
Full Changelog: v3.2.0...v4.0.0