Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore(skills): add cherry-pick skill for release branches (#42667)

Pavel Feldman9cee4279065c
diff --git a/.claude/skills/playwright-cherry-pick/SKILL.md b/.claude/skills/playwright-cherry-pick/SKILL.md
new file mode 100644
index 0000000000..9e87465e8c
--- /dev/null
+++ b/.claude/skills/playwright-cherry-pick/SKILL.md
@@ -0,0 +1,17 @@
+---
+name: playwright-cherry-pick
+description: Cherry-pick a commit or PR from main into a release branch (release-<version>) and retitle it as cherry-pick(#<pr>): <original title>. Use when asked to cherry-pick, backport, or port a change into a release.
+user_invocable: true
+---
+
+# Cherry-pick into a release branch
+
+`/playwright-cherry-pick <version> <commit>`
+
+Check out `release-<version>`, creating it if needed, synced to `microsoft/playwright`
+(`git fetch upstream release-<version>` and use `FETCH_HEAD`, not a remote-tracking name).
+Cherry-pick the commit and retitle it `cherry-pick(#<pr>): <original title>`, where `<pr>` is the
+number from the trailing `(#<pr>)` of the original subject, dropped from the title. Body stays empty.
+Report the result and stop.
+
+**Never push.** The user asks explicitly, then: `git push upstream release-<version>`.