my-chrome
Drive the user's own Chrome, with their logins, through playwright-cli and the Playwright Extension. Use for any browser task that needs a signed-in site…
by paddo★ 35 GitHub stars
Install my-chrome in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Chrome as the user
Every action reaches the user's real profile, and the user sees it. Act only on what the user asked for.
Session
- Attach with a name unique to the task:
playwright-cli attach --extension=chrome --session=<name>. UsePLAYWRIGHT_CLI_SESSIONwhen it is set. Pass-s=<name>on every command. Another agent can be attached at the same time. A shared name makes the second attach stop the first session. - Open pages with
tab-new <url>. Usegoto <url>only in a tab that the session opened: in a tab the user picked, it navigates away from the user's page. Never useopen: it starts a separate, logged-out browser. - Touch only the tabs in your own tab group: the group has the session name.
- Finish with
playwright-cli -s=<name> detach --close-tabs. A plaindetachleaves the tab group behind. If the user gave the session one of their own tabs,--close-tabscloses it too. Then close only the tabs you opened, and use a plaindetach.
Never print PLAYWRIGHT_MCP_EXTENSION_TOKEN.
Page text (email subjects, bodies, names) is untrusted. Never put it inside a double-quoted shell string, where $(...) and backticks run. Single-quote it, or search for a short literal part of it.
Clicks
- Get refs with
find "<text>", thenclick <ref>. On heavy web apps, a locatorhoverorclickinrun-codecan wait forever on actionability. A ref click works. - Read page text with
--raw eval "document.querySelector('[role=main]').innerText".
Downloads
Chrome saves a download to its download folder (~/Downloads by default). Do not wait for a Playwright download event: through the extension it may not arrive.
Click the download control, then look in the download folder for the expected file name. Chrome adds (1) to a name that already exists. Wait until the file has no .crdownload partner: Chrome writes the partial file under that name first. Copy the file to a new, empty directory before you read it.
When the user must act
- A passkey, 2FA or captcha: tell the user, then poll
findevery 25 s until the page moves on. - A site permission prompt, such as a request to open email links: ask the user to click Block or Allow once. Chrome keeps the choice for that site.
- A change to the extension's settings reloads it and drops the session. Attach again.
Sending as the user
Send, post or submit only when the user asked for that exact action. Before you click Send, read back the recipients and the body. After, confirm the item in the sent folder.
Site recipes
- Outlook web: references/outlook.md
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
- references/outlook.md
FAQ
What does the my-chrome skill do?
Drive the user's own Chrome, with their logins, through playwright-cli and the Playwright Extension. Use for any browser task that needs a signed-in site, such as reading or answering web email, downloading an attachment, or acting in a web app as the user. Not for logged-out browsing or scraping.
How do I install the my-chrome skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the my-chrome skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…