dev_skill
- TypeScript
- Official
3.7k
GitHub Stars
2
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill microsoft/playwright-cli --skill dev- roll.md1.6 KB
- SKILL.md261 B
Overview
This skill provides guidance for development workflows and maintenance tasks for the playwright-cli repository. It focuses on rolling the Playwright dependency, performing releases, and common repository upkeep to keep the CLI current and stable. Use it when you need step-by-step actions, checks, and recommended practices for repo maintenance.
How this skill works
It inspects the repository's TypeScript codebase, dependency declarations, CI configuration, and release scripts to determine the required steps for dependency updates and releases. The skill outlines the sequence: update dependency versions, run tests, adjust code for API changes, update changelogs, and push a release. It also highlights CI checks and local validation required before merging.
When to use it
- You need to roll the Playwright dependency to a newer version.
- Preparing a new release of the CLI (version bump, changelog, publish).
- Fixing breakages caused by upstream Playwright API changes.
- Updating CI, test fixtures, or recorder artifacts related to Playwright changes.
- Routine maintenance tasks like dependency cleanup or TypeScript upgrades.
Best practices
- Run the full test suite and recorder-generated scenarios locally before opening a PR.
- Pin the Playwright version in package manifests and update lockfiles atomically.
- Check CI matrix for Node versions and platform-specific behavior after a roll.
- Document API-incompatible changes in the changelog and link to upstream release notes.
- Perform incremental rolls if major API changes require staged fixes; avoid large monolithic updates.
Example use cases
- Roll Playwright from vX.Y.Z to vA.B.C: update package.json, regenerate lockfile, run tests, fix selector/recorder diffs, commit and open PR.
- Release a new CLI version: bump package version, update changelog with notable changes, run build, tag commit, and publish artifacts.
- Troubleshoot recorder or inspector regressions after an upstream change: reproduce locally, capture failing scenario, and add a test or hotfix.
- Update CI to test new Node versions when Playwright or TypeScript requires newer runtimes.
FAQ
Update the dependency in a feature branch, run tests to find incompatibilities, implement targeted fixes, and document breaking changes in the changelog. Prefer incremental rolls if many fixes are needed.
What validations should run before merging a dependency roll?
Run the full test suite, recorder-generated scenarios, linting, and CI matrix checks across supported Node versions and platforms. Confirm lockfile updates and ensure no new flaky tests appear.