{"data":{"slug":"github-microsoft-playwright-claude-skills-api-review-00f482065d8d","title":"Review API Changes for Playwright","summary":"Produce the 'Playwright 1.xx API Review' artifact for a specified range of commits, identifying public API additions, breaking changes, and behavior changes that affect existing users. The review includes changes to the Node.js package, Python, Java, and .NET ports.","url":"https:\/\/skillshunter.net\/skills\/github-microsoft-playwright-claude-skills-api-review-00f482065d8d","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-microsoft-playwright-claude-skills-api-review-00f482065d8d","markdown_url":"https:\/\/skillshunter.net\/skills\/github-microsoft-playwright-claude-skills-api-review-00f482065d8d.md","download_url":"https:\/\/skillshunter.net\/skills\/github-microsoft-playwright-claude-skills-api-review-00f482065d8d\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before running the API review, ensure that the current checkout is clean and that no changes are committed. The review process requires access to the Playwright repository and the ability to fetch tags and run Git commands. If reviewing since the last API review, locate the most recent 'Playwright 1.xx API Review' artifact and extract the range from its `.meta` line.","instructions":"---\nname: api-review\ndescription: Produce the \"Playwright 1.xx API Review\" artifact for a range of commits - the public API additions and the breaking or behavior changes that affect existing users since the last API review or since the last release, ordered by impact, each with links, before\/after snippets and a documentation check. Covers microsoft\/playwright (Node.js) and the Python, Java and .NET ports. Use when asked for an API review, to review API changes, or to check what changed in the public API since a release or since the last review.\nuser_invocable: true\n---\n\n# API review\n\n`\/api-review [python|java|dotnet] [range]`\n\nWithout a language, review microsoft\/playwright (the Node.js package, the test runner, MCP and the CLI).\nWith a language, review that port: see \"Language ports\" at the end, which changes the range, the\nsources and the composition; everything else applies as written.\n\nProduce one artifact (an HTML page published with the Artifact tool) that a maintainer reads before a\nrelease. It lists the changes in the range that **change the public API or affect existing users**,\nordered by impact, and checks that each one is documented. The reviewer types feedback into the page\nand copies a GitHub issue draft from it.\n\nThe review is not a changelog. A change is in because a user has to learn a new API, or because an\nexisting test suite may start behaving differently. A fix that makes Playwright more correct in a\ncorner case is not in, even though some user somewhere will notice it.\n\nWork in the current checkout only. Do not commit anything.\n\n## 1. Choose the range\n\nIn order of preference:\n\n1. **Explicit range** from the argument, for example `v1.64.0..main` or `abc1234..main`.\n2. **Since the last API review.** List the user's artifacts (`Artifact` tool, `action: \"list\"`) and\n   take the newest one titled `Playwright 1.xx API Review`. Read it; the `.meta` line records\n   `Range: <base>..main (<n> commits, head <sha>)`. The new range is `<sha>..main`. Use this when the\n   user says \"since the last review\" or when a review for the current version already exists.\n3. **Since the last release.** `git fetch --tags`, then the newest `v1.xx.0` tag\n   (`git tag --sort=-creatordate | grep -v beta | head`). The range is `v1.xx.0..main`.\n   Point releases cherry-pick from main: list `git log --oneline v1.xx.0..v1.xx.y` and exclude those\n   PR numbers, since they are already released. Say so in the `.meta` line.\n\nRead the version under review from `package.json` (`1.65.0-next` means `1.65`).\n\n## 2. Collect candidates\n\nRun these and keep a list of candidate commits with their PR numbers. Run independent commands in parallel.\n\n- `git log --oneline --no-merges <range>`, dropping `chore(deps`, browser rolls, `devops(`, and\n  `test(` commits. Everything else is a candidate until it is ruled out.\n- `grep -rn -B3 \"since: v1.xx\" docs\/src\/` for new API entries.\n- `git diff --stat <range> -- docs\/src` and then the content diff of `docs\/src\/test-api`,\n  `docs\/src\/test-reporter-api`, the changed guides (`docs\/src\/*-js.md`, `docs\/src\/*.md`) and the\n  changed `docs\/src\/api\/class-*.md`. Filter out type-rendering noise (lines that start with\n  `- type:` or `` - `name` ``) to find real text changes.\n- Public types: `git diff <range> -- packages\/playwright\/types\/test.d.ts\n  packages\/playwright\/types\/testReporter.d.ts packages\/playwright-core\/types\/types.d.ts`, keeping\n  only non-comment added or removed lines.\n- CLI and MCP options: diff of `packages\/playwright\/src\/program.ts`,\n  `packages\/playwright-core\/src\/tools\/cli-daemon\/commands.ts`,\n  `packages\/playwright-core\/src\/tools\/mcp\/program.ts` and `packages\/playwright-core\/src\/tools\/mcp\/config.d.ts`.\n- Environment variables: grep the range diff for added `process.env.PLAYWRIGHT_` and `PW_` names.\n- Reverts: a `Revert \"...\"` commit of a change that shipped in the last release is a breaking change\n  against that release. Check with `git merge-base --is-ancestor <original sha> v1.xx.0`.\n\nFor each candidate, get the PR body and linked issues in one loop:\n`gh pr view <n> --repo microsoft\/playwright --json title,body,closingIssuesReferences`. Squashed\ncommit messages have no bodies; the PR body is where the rationale and the issue links are. Then\n`git show --stat <sha> -- docs` tells which docs the PR touched.\n\n## 3. Decide what is in\n\nTwo questions decide it. Does the change add, remove or rename something in the public API? Does it\nchange what existing user tests do, broadly enough that a maintainer would list it under \"Breaking\nChanges\" in the release notes? One yes is enough. Two noes and the change is out, however visible.\n\n**Include:**\n\n- New public API: classes, methods, options, events, test and config options, fixtures, reporters\n  and reporter options, CLI flags and commands, documented environment variables, MCP tools, tool\n  parameters, MCP config and flags, `playwright-cli` commands and options.\n- Breaking changes: functionality removed or renamed, defaults changed, a documented behavior changed\n  so that existing user tests can fail or pass differently. Reverts of behavior that shipped in the\n  last release count, even when the revert restores older behavior.\n- Behavior changes that are not bug fixes: a stricter check, a new exit code, a new wait, a changed\n  output location or format that other tools read.\n- A bug fix only when it clears the impact bar: a common pattern in existing tests changes outcome,\n  for example a passing action now waits and times out, a throwing action now succeeds, or a CI run\n  exits with a different code. Corrections in corner cases do not clear the bar, even when they\n  change observable behavior: cookie matching rules for subdomains, which credentials answer which\n  auth challenge, encoding details, internal browser implementation swaps with an escape hatch.\n\n**Exclude**, and list in \"Examined and not included\" with the reason:\n\n- Bug fixes that restore documented or intended behavior, including regression fixes and fixes that\n  align one browser with the others, and bug fixes that do not clear the impact bar above.\n- Changes added and removed within the same range.\n- Protocol or `LocalUtils` additions that only language ports use; note which port must act.\n- Internal removals that were never in the previous release's public types or docs. Check with\n  `git show v1.xx.0:packages\/playwright\/types\/testReporter.d.ts | grep <name>`.\n- Docs-only commits, refactors, test infrastructure. Mention a docs-only commit only when it changes\n  `since:` markers for other languages.\n\nWhen unsure, ask: would a typical existing test suite notice, and would a user need to change code\nor config? If yes to either, include it as \"Behavior\". If the honest answer is \"only a test that\ndepends on this exact edge case\", exclude it and name it in \"Examined and not included\". Security\nhardening with no API surface is excluded. Prefer a shorter review with every item worth a decision\nover a complete one.\n\n## 3a. Order by impact\n\nItems are ordered by impact, most impactful first, in the summary table and on the page. No grouping\nby area. Use these tiers, then order within a tier by how many users hit it: library and test runner\nbefore MCP and CLI, changes that happen without opting in before opt-in features.\n\n1. Breaking changes users meet at runtime with no compiler or lint hint: removed or renamed API,\n   changed defaults, actionability or locator semantics that change which elements match or whether\n   an action proceeds.\n2. Behavior shipped in the last release that is reverted or changed again, and behavior changes that\n   change a CI exit code or a report's contents.\n3. Other behavior changes that can flip a test from failing to passing or the reverse.\n4. New API most users will adopt: test runner options, library methods and options.\n5. New options and flags with a narrow audience: CLI flags, MCP config, environment variables.\n\nA bug fix that clears the impact bar sits in tier 2 or 3, never above a breaking change.\n\n## 4. Check the documentation\n\nFor each included item, find the pages on `https:\/\/playwright.dev\/docs\/next\/`:\n\n| Source | URL |\n|---|---|\n| `docs\/src\/<page>-js.md`, `docs\/src\/<page>.md` | `\/docs\/next\/<page>` |\n| `docs\/src\/api\/class-<x>.md` | `\/docs\/next\/api\/class-<x>#<class>-<method>` (kebab-case, options as `#<class>-<method>-option-<name>`) |\n| `docs\/src\/test-api\/class-<x>.md`, `docs\/src\/test-reporter-api\/class-<x>.md` | `\/docs\/next\/api\/class-<x>` |\n| `packages\/playwright-core\/src\/tools\/skills\/playwright-cli\/` | `https:\/\/playwright.dev\/agent-cli\/introduction`, the CLI skill reference |\n| MCP flags, tools and config | README in `microsoft\/playwright-mcp`, regenerated at release by `update-readme.js`; fetch it with `gh api repos\/microsoft\/playwright-mcp\/contents\/README.md --jq .content \\| base64 -d` and `config.d.ts` doc comments |\n\nGrep the docs for the new name. Heading anchors come from `## method:` and `### option:` lines and from\nguide headings (`### Report only failures` is `#report-only-failures`).\n\nAlso check `docs\/src\/release-notes-js.md`: if there is no `## Version 1.xx` section yet, say so in the\nnote at the top and mark every Breaking and Behavior item as needing a release-notes line.\n\nDocs status vocabulary, one badge per item:\n\n| Badge | Class | Meaning |\n|---|---|---|\n| OK | `b-ok` | Reference and guide cover the change |\n| Partial | `b-partial` | Covered in one place, missing in another that users will read |\n| Needs notes | `b-partial` | Docs are fine, the release notes must flag it (breaking) |\n| README stale | `b-partial` | Documented in `config.d.ts` or tool schema, README regenerates at release |\n| None | `b-partial` | Nothing documented and nothing needed |\n| Internal | `b-partial` | Deliberately undocumented escape hatch |\n| Missing | `b-missing` | Users will look for it and not find it |\n\nThe \"Docs status\" sentence becomes the `- [ ] Docs:` task in the issue draft for every badge except\nOK and None, so write it as an instruction: what to add and on which page.\n\n## 5. Write the page\n\nCopy `template.html` from this skill's directory into the scratchpad as `api-review-1.xx.html` and fill\nit. Keep the CSS, the class names and the script unchanged: the issue-draft generator reads\n`header .num`, `h3`, the `Links` and `Docs status` fields and the feedback textarea of each\n`section.card`.\n\n- Replace every `{{PLACEHOLDER}}`. Delete the sample card, sample rows and sample excluded entry.\n- Order items by impact (step 3a). Number them `c1`, `c2`, ... in that order; the summary table has\n  the same order and links to them, and the numbers must match. The `Area` column in the table\n  (Library, Test runner, MCP, CLI) replaces grouping.\n- Keep the MCP README note under the \"Changes\" heading only when the review has MCP or CLI items.\n- Kind badges: `New API`, `New option` (`b-new`); `Breaking`, `Breaking vs 1.xx` (`b-breaking`);\n  `Behavior` (`b-behavior`). An item can carry two.\n- Description: two to five sentences in plain language. Name the escape hatch if there is one. Note\n  when the PR title and the shipped name differ.\n- Links: PR, linked issues, the original and revert PRs for relands and reverts, earlier attempts\n  when the PR lists them. Issues in other repos (`playwright-mcp`, `playwright-cli`, `playwright-java`)\n  are linked with the repo name.\n- Before and after: real test, config or CLI snippets, three to eight lines each. Omit \"Before\" when\n  there was no way to do it before; keep \"After\". For a behavior change, show the same code with the\n  old and new outcome as a comment.\n- Only state what you verified. Check which browsers a change touched with `git show --stat` before\n  naming them. Do not quote a version number you did not look up.\n- Escape `<`, `>` and `&` as `&lt;`, `&gt;` and `&amp;` in every snippet, title and description.\n  Snippets often contain HTML such as `<button>` or `<dialog>`; unescaped, the browser renders it as\n  real elements inside the page. After writing the file, check with\n  `grep -n '<pre><code>' <file> | grep -v '&lt;'` and read the `<pre>` blocks for raw tags.\n\nPut the one-line summary of the whole review in the top `.note`: release notes state, which items\nneed a breaking callout.\n\n## 6. Publish and report\n\nPublish with the Artifact tool (first publish: `icon: \"review\"`, a one-sentence `description`).\nA later review for the same version is a new artifact; do not overwrite the previous one, the\nreviewer's feedback lives in their browser against that page.\n\nIn the reply, give the link, the range, how many items, and the two or three items that need a\ndecision (breaking changes, reverts of shipped behavior, missing docs). Do not repeat the page.\n\n## Language ports: Python, Java and .NET\n\nA port review covers two streams: the port's own repository, and the core changes that reach the\nport through its driver. The port repositories are not checked out; read them with `gh`.\n\n| Port | Repository | Package docs | Release notes | Driver pin |\n|---|---|---|---|---|\n| Python | `microsoft\/playwright-python` | `https:\/\/playwright.dev\/python\/docs\/` | `docs\/src\/release-notes-python.md` | `DRIVER_VERSION` (a microsoft\/playwright commit) |\n| Java | `microsoft\/playwright-java` | `https:\/\/playwright.dev\/java\/docs\/` | `docs\/src\/release-notes-java.md` | search the repo for the driver version file |\n| .NET | `microsoft\/playwright-dotnet` | `https:\/\/playwright.dev\/dotnet\/docs\/` | `docs\/src\/release-notes-csharp.md` | search the repo for the driver version file |\n\n**Range.** Tags are `v1.xx.y` in every port. \"Since the last release\" is `v1.xx.0...main` in the\nport repository; exclude the commits of `v1.xx.0...v1.xx.y` point releases. \"Since the last review\"\nreads the head from the previous port review artifact, as for core. The driver stream is the core\nrange from the driver commit the port shipped with to the driver commit at the port's head; the roll\nPRs (`chore: roll Playwright to ...`) name both commits. State both ranges in the `.meta` line.\n\n```bash\ngh api repos\/microsoft\/playwright-python\/tags --jq '.[0:6][].name'\ngh api \"repos\/microsoft\/playwright-python\/compare\/v1.xx.0...main\" --paginate \\\n  --jq '.commits[] | .sha[0:9] + \" \" + (.commit.message | split(\"\\n\")[0])'\ngh pr view <n> --repo microsoft\/playwright-python --json title,body,closingIssuesReferences\ngh api -H \"Accept: application\/vnd.github.raw\" \"repos\/microsoft\/playwright-python\/contents\/<path>?ref=<tag or main>\"\n```\n\n**Port stream.** Candidates are the port's own PRs: fixes to the generated API (`fix(assertions): ...`),\npackaging and distribution (wheels, sdist, Maven artifacts, NuGet packages, bundled Node.js),\nsupported runtimes (`requires-python` and classifiers in `pyproject.toml`, Java versions in `pom.xml`,\ntarget frameworks in the `.csproj`), dependencies, client rewrites and error messages. Compare the\nbuild files and the README between the two tags with the raw contents API. A client rewrite is in even\nwhen the public API is unchanged: say what private module paths and observable behaviors changed,\nsince users import private modules. Roll PRs are not items themselves, but their bodies say whether\n\"API comparison\" produced changes and list the upstream commits; read them.\n\n**Driver stream.** Take the library items from the core review of the same version when one exists\n(link its artifact) and keep only those that apply to the port: entries whose docs carry `* langs: js`\nare out, entries with no `langs` line or with the port's language are in. The test runner, UI mode,\nthe HTML report, MCP and `playwright-cli` do not ship with the ports; leave them out and say so in the\nexcluded list. Verify that the port's generated API has the new member before listing it as new API:\ngrep the port's generated source, for example `playwright\/sync_api\/_generated.py` for Python, because\na roll can lag the docs. Write the snippets in the port's language and link the port's docs pages.\nWhen no core review exists for the version, run steps 2 to 4 on the core range of the driver stream\nfirst.\n\n**Docs for a port.** The reference is shared with core and rendered per language, so an API entry is\ndocumented when the core docs have it without a `* langs:` line that excludes the language. Entries\nmarked `* langs: python` (or `java`, `csharp`) are language-specific signatures; a docs-only PR that\nadds them is excluded but worth one line in \"Examined and not included\". Port-specific guides are\n`docs\/src\/intro-<lang>.md`, `docs\/src\/library-<lang>.md` and `docs\/src\/test-runners-<lang>.md`; the\nport README covers installation and browser versions.\n\n**Composition.** Title the page `Playwright <Language> 1.xx API Review`. The `Area` column takes\n`Client`, `Packaging`, `Library` and `Docs` instead of the core areas. Core library items get a shorter\ndescription with a link to the core review item, the port-language snippet and the port docs link.\nOrder by impact as in step 3a; a client rewrite that changes private module paths or error behavior\nis tier 1 or 2 depending on whether code must change.\n","use_cases":["Review API changes between two specific commits.","Review changes since the last API review.","Review changes since the last release."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/microsoft\/playwright\/blob\/b4d016aadc5cbd2b898a284307975fe73e05483d\/.claude\/skills\/api-review\/SKILL.md","source_commit":"b4d016aadc5cbd2b898a284307975fe73e05483d","license":null,"version":null,"listing_approved_at":"2026-11-21","created_at":"2026-11-20T13:29:44.000000Z","updated_at":"2026-11-21T09:43:53.000000Z","seo_title":"Review Playwright API Changes","seo_description":"Produce the 'Playwright 1.xx API Review' artifact for a specified range of commits, identifying public API additions, breaking changes, and behavior changes that affect\u73b0\u6709","seo_keywords":["review playwright api changes","playwright api review","api change analysis","playwright breaking changes","playwright api additions"]}}