ワンクリックで
upgrade-playwright
Upgrade playwright-core and update effect-playwright to match new APIs and breaking changes.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Upgrade playwright-core and update effect-playwright to match new APIs and breaking changes.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Implement a Playwright method in effect-playwright by analyzing source code and mapping types
Analyze a Playwright method's source code to determine if it can throw errors (sync or async).
| name | upgrade-playwright |
| description | Upgrade playwright-core and update effect-playwright to match new APIs and breaking changes. |
This skill guides you through upgrading the playwright-core dependency and ensuring effect-playwright stays up to date with new APIs and breaking changes.
First, determine if an update is available and what the versions are.
Use pnpm outdated playwright-core for this.
Research the changes between the current version and the target version using the official raw markdown source for the best accuracy.
https://raw.githubusercontent.com/microsoft/playwright/main/docs/src/release-notes-js.mdBreaking Changes ⚠️, New APIs, and Deprecations.Page, Locator, BrowserContext).Update the version in package.json. Make sure to update BOTH playwright-core and the playwright dev dependency (if present) to the same version to ensure browser binaries match the library.
pnpm add playwright-core@latest
pnpm add -D playwright@latest
pnpm exec playwright install
rg to find usages.New APIs section of the release notes.Page, Browser, etc.), check if effect-playwright should expose it.ls src to find the corresponding wrapper file.rg to see if the method is already implemented.readonly consoleMessages: Effect<...>) now has options in Playwright, convert it to a method (e.g., readonly consoleMessages: (options?) => Effect<...>).Screencast), create a new file (e.g., src/screencast.ts) and expose it through the parent service.src/*.test.ts for any tests that broke due to API changes (especially property-to-method conversions).implement-playwright-method skill.pnpm exec biome check --write . to ensure code style and lint rules are followed.pnpm type-check.pnpm test to ensure no regressions.playwright-core but not playwright, or forgot to run pnpm exec playwright install.Page.screencast should be their own Service and Tag, following the pattern of PlaywrightClock or PlaywrightKeyboard.If upgrading to 1.60.0, the release notes mention:
locator.drop(): New method.browser.on('context'): New event.BrowserContext mirrors lifecycle events.Locator.ariaRef() removed.You would then:
rg "ariaRef" src to see if we wrapped it (and remove if so).implement-playwright-method to add drop to src/locator.ts.BrowserContext.