use-my-browser ยท diff
git:20260407.da6e657 to git:20260407.ce1dee0
80 added, 185 removed. Audit A to A.
What this update changes in the checks
No check changed: every fixed check gives the same answer before and after this update.
A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.
---
name: use-my-browser
- description: Use when the user wants browser automation, page inspection, or web research and you need to choose between public-web tools, the live browser session, or a separate browser context, especially for signed-in, dynamic, social, or DevTools-driven pages.
- compatibility: Environment with chrome-devtools, web, playwright, shell_command, and multi_tool_use.parallel available.
+ description: Use when work depends on the user's live browser session or visible rendered state rather than static fetches, especially for browser debugging contexts or DevTools-selected elements or requests, logged-in dashboards or CMS flows, localhost apps, forms, uploads, downloads, media inspection, DOM or iframe inspection, Shadow DOM, or browser failures that look like soft 404s, auth walls, anti-bot checks, or rate limits.
---
- This is the main browser automation strategy skill for nontrivial web work. It teaches the agent when to stay on public-web tools, when to use the live browser session, and when to fall back to a separate browser or raw-fetch path.
-
- Despite the name, it covers more than "use my current browser." It also teaches a broader browsing philosophy: define the goal first, choose the right network layer, treat results as evidence, prefer primary sources over recycled summaries, and keep live-session work minimally intrusive.
-
- ## When to Use
-
- Use this skill when any of these are true:
-
- - The user wants public-web research, source verification, or page inspection and the choice of tool matters.
- - The task depends on the user's current sign-in state or cookies.
- - The user already has the relevant page, element, or failing request open in Chrome DevTools.
- - The target is a social platform, anti-bot-heavy site, or other dynamic page where static fetches are likely to miss the real content.
- - The target page is dynamic, authenticated, or difficult to inspect with search and raw fetch alone.
- - The task needs the current DOM, console, network activity, performance data, file upload, or rendered media from the live browser session.
- - The user wants the agent to take over a debugging flow they already started manually in Chrome.
-
- Do not use this skill when:
-
- - The task is purely local and does not involve the web at all.
- - A separate clean browser context is safer than touching the live browsing session.
- - The user explicitly asks not to use their live browser session.
-
- ## Preflight
-
- Before choosing a browsing layer:
-
- - If the task is public and citation-heavy, start with `web`.
- - If the task needs the live browser session, confirm the Chrome DevTools connection is usable before depending on it.
- - If a domain note exists under `references/site-patterns/`, read it before browsing that site.
- - Use [`references/session-playbook.md`](./references/session-playbook.md) for live-browser-session fallback and recovery rules.
-
- ## First Principles
-
- ### 1. Define success before choosing tools
-
- Start with the outcome, not the tool. Clarify what would count as done:
-
- - What information or action does the user actually need?
- - Does the task require the user's current browser state?
- - Is the answer expected to be citation-heavy, interaction-heavy, or debugging-heavy?
-
- ### 2. Start with the cheapest layer that can plausibly succeed
-
- Use the lowest-cost layer that can still reach the goal:
-
- - public-web tools for discovery, citations, and normal page reads
- - processed or raw reads when you need cheaper content extraction or source-level response data
- - browser tools when the task depends on live state, interaction, or rendered evidence
-
- Use [`references/tool-matrix.md`](./references/tool-matrix.md) for the detailed routing rules.
-
- ### 3. Treat every result as evidence
-
- Do not repeat the same failed tactic blindly. Each step should update the plan:
-
- - Search results may show the target is public, missing, or hidden behind login.
- - A snapshot may reveal the data is already in the DOM and does not need OCR.
- - A missing DOM node may mean the site is lazy-loaded, virtualized, gated by interaction, or simply on the wrong page.
- - A platform saying "not found" may reflect an access path problem rather than a true absence.
-
- ### 4. Preserve the user's session
-
- The live browser session is valuable. Use it carefully:
-
- - Prefer the already connected Chrome DevTools session when the task depends on current state.
- - Avoid closing or hijacking tabs you did not open.
- - Prefer your own tab for exploration unless the point of the task is the already selected page, element, or request.
- - Leave the session cleaner than you found it.
-
- ### 5. Search helps you find sources, not prove claims
-
- Search engines and aggregators are discovery tools. When the task is about truth or verification:
-
- - Use search to locate the likely source
- - Read the source directly before making a strong claim
- - Prefer official docs, official pages, raw announcements, and original content over repeated summaries
-
- ### 6. Prefer site-native URLs and complete parameters
-
- If a site already exposes a link in the DOM, prefer that full URL over a hand-constructed guess. Query parameters, tokens, and generated paths often carry real session or routing context.
-
- ## Session Boundaries and Safety
-
- The official Chrome DevTools MCP docs matter here:
-
- - Live-session access can expose all open windows in the selected Chrome profile.
- - `--autoConnect` is the safe modern pattern for sharing a real Chrome session with an MCP client.
- - `--browser-url` is a fallback for explicit remote-debug-port setups, but it should not be recommended against the user's normal browsing profile.
- - A manual remote debugging port on a default profile is riskier than the normal live browser session flow because any local app can connect while the port is open.
-
- Treat these as background rules:
-
- - Prefer the current DevTools connection if it already exists.
- - Mention `--autoConnect` and `--browser-url` only as configuration context or troubleshooting guidance.
- - Do not steer the user toward remote-debug-port workflows unless the current environment genuinely needs that fallback.
-
- ## Core Workflow
-
- ### Goal-first browsing loop
-
- 1. Define the success condition.
- 2. Choose the cheapest promising layer.
- 3. Inspect the result for evidence.
- 4. Escalate only when the current layer cannot reach the goal.
- 5. Stop when the goal is met, not when every possible path has been explored.
-
- ### Default live browser session workflow
-
- When a task depends on the user's current browser session:
-
- 1. Inspect available pages with `list_pages`.
- 2. Reuse the selected page if the user's active context is the task.
- 3. Otherwise open or select a dedicated page before exploring.
- 4. Use `take_snapshot` before screenshots whenever structured page data might be enough.
- 5. Use `evaluate_script`, network tools, console tools, and performance tools as the primary evidence sources.
- 6. Use screenshots only when the visual state itself matters or the DOM does not expose enough information.
-
- Read [`references/browser-recipes.md`](./references/browser-recipes.md) for concrete tool mappings and equivalent browser operations.
-
- ## Chrome DevTools Handoff Patterns
-
- ### Continue from a selected element
-
- If the user already selected something in the Elements panel:
+ Do not treat this skill as a generic browsing default. Route from the evidence you need, not from tool preference.
- - `take_snapshot` can surface the current selection context.
- - `evaluate_script` is usually the next best tool for reading computed values, attributes, state, or nearby DOM.
- - Use `click`, `fill`, `hover`, and related tools only after confirming the current structure.
+ Every task must be classified before you choose a route:
- ### Continue from a selected network request
+ - `static-capable`: the evidence can be produced without live browser state, visible confirmation, or page interaction
+ - `browser-required`: the evidence depends on rendered state, interaction, live session behavior, or browser-only structures
- If the user already highlighted a failing request in the Network panel:
+ Only `static-capable` tasks may fall back to static retrieval, `curl`, or other non-browser paths. Once a task is `browser-required`, stay on the browser path and mark missing capability as `blocked` instead of silently downgrading.
- - Call `get_network_request` without a `reqid` first.
- - Inspect request and response bodies, headers, status, timing, and failure shape before looking for broader patterns.
- - Use `list_network_requests` only when you need surrounding context or need to compare multiple requests.
+ ## Prerequisite check
- ### Continue from an active debugging page
+ This skill is for work inside the user's live browser session, not for launching a separate fresh automation browser.
- If the user is already on the problem page:
+ Before doing browser automation, confirm that your environment already has access to a live browser stack that can provide the capabilities the task depends on, such as page inventory, task-owned page creation, page selection, snapshots or visible-state reads, DOM inspection, text or form input, uploads, dialogs, console inspection, and network inspection. The exact stack does not matter here: confirm capability, not brand.
- - Start from that page instead of opening a parallel isolated copy.
- - Preserve the state they already set up unless the user asks for a fresh reproduction.
- - If you need a second tab for safe experimentation, create one yourself and keep the original page intact.
+ If the live browser stack is unavailable, do not attempt browser automation through this skill. Only `static-capable` work may fall back to static retrieval.
- ## Extraction and Interaction Rules
+ Live browser automation can trigger anti-bot or anti-automation defenses on some sites. Use browser interaction only when the task truly needs it, and avoid unnecessary repetitive actions once the needed evidence has been obtained.
- Read [`references/session-playbook.md`](./references/session-playbook.md) for the detailed patterns. The short version:
+ ## Experience loop
- - Prefer DOM and network evidence over OCR.
- - Prefer `take_snapshot` over `take_screenshot` for interaction planning.
- - Prefer `evaluate_script` when the data likely exists but is not visible.
- - Switch between direct extraction and GUI-style interaction based on what the site actually responds to.
- - Treat screenshots, reconstructed URLs, and "not found" pages as things to verify, not things to trust immediately.
+ Treat site patterns as part of the browser protocol, not as optional background reading.
- ## Public Web vs Live Session
+ For `browser-required` work, run this loop:
- This skill should not collapse into "always use the browser."
+ 1. As soon as the target domain is known, check whether a matching note already exists under [`references/site-patterns/`](./references/site-patterns/).
+ 2. If a note exists, read it before the first meaningful browser mutation on that domain.
+ 3. During the run, watch for verified site-specific facts that would change how a future run should operate.
+ 4. Before you consider the task complete, decide whether the run produced a reusable fact, disproved an existing fact, or produced no reusable site-specific learning.
+ 5. If the run verified something reusable or disproved an existing claim, update the matching note before finishing.
- - Public-web tasks still belong to this skill when the main question is "which layer should I use first?"
- - Start with public-web tools for citation-heavy work and escalate only when the cheaper path cannot reach the goal.
- - Use [`references/tool-matrix.md`](./references/tool-matrix.md) for the routing decision and [`references/browser-recipes.md`](./references/browser-recipes.md) for the concrete operations.
+ Do not create a domain note for one-off noise. Do not skip the end-of-run review just because the task itself succeeded.
- ## Parallel Research Policy
+ Writeback is expected when a run verifies any of the following:
- For multiple independent public research targets:
+ - a stable route shape or required query parameter
+ - a login, session inheritance, or `isolatedContext` quirk
+ - a reliable interaction primitive such as hover, keyboard entry, upload sequencing, or a selector bridge pattern
+ - a domain where DOM-generated links are reliable but hand-built URLs are not
+ - predictable anti-automation friction or a misleading platform error state
+ - a reusable media extraction or iframe / Shadow DOM access pattern
- - Batch `web.search_query` requests in one call when possible.
- - Batch `web.open` calls when reading several sources.
- - Use `multi_tool_use.parallel` for independent shell or local-doc reads, not for browser steps that depend on the same selected page state.
- - Use [`references/session-playbook.md`](./references/session-playbook.md) for the rules on when agent-level parallelism is worth it and how to frame it safely.
+ ## Decision guide
- ## Red Flags
+ Start with the outcome, not the tool. Make the user's goal explicit, define what counts as done, and choose the cheapest route that can still produce the right evidence.
- Stop and change approach if you notice any of these:
+ Use this routing order:
- - You are about to use the live browser session for a task that only needs public citations.
- - You are about to close, reload, or navigate a page the user may still be using.
- - You reached for screenshots before checking whether the DOM or network already contains the answer.
- - You are ignoring a currently selected DevTools request or element and starting from scratch.
- - You are hand-constructing site URLs even though the page already exposes the real link with parameters.
- - You are treating a platform "not found" message as definitive before checking whether the access path itself is wrong.
- - You are about to recommend remote debugging on the user's normal browsing profile.
- - You are using Playwright by habit even though the goal depends on the user's current signed-in Chrome state.
+ 1. Decide whether the task is `static-capable` or `browser-required`.
+ 2. If the task is `static-capable`, load [`references/task-routing.md`](./references/task-routing.md) and stay on the cheapest route that still satisfies the evidence target.
+ 3. If the task is `browser-required`, load [`references/browser-playbook.md`](./references/browser-playbook.md).
+ 4. If browser-required capability is uncertain in a fresh host session, also load [`references/browser-capability-matrix.md`](./references/browser-capability-matrix.md).
+ 5. If the user already has an active browser debugging context, such as a selected inspector element or network request, also load [`references/debug-handoff.md`](./references/debug-handoff.md).
+ 6. If the browser-required task touches a logged-in dashboard, admin surface, CMS, editor, or any save / publish / update flow, also load [`references/control-plane-workflows.md`](./references/control-plane-workflows.md).
+ 7. If the current failure shape suggests a soft 404, content-unavailable state, suspicious no-op interaction, auth wall, rate limit, or anti-automation defense, also load [`references/anti-automation-friction.md`](./references/anti-automation-friction.md).
+ 8. If the browser-required task includes iframe, Shadow DOM, collapsed content, or lazy-loaded evidence, also load [`references/deep-dom.md`](./references/deep-dom.md).
+ 9. If the important evidence lives in an image, audio clip, or video, also load [`references/media-inspection.md`](./references/media-inspection.md).
+ 10. If browser work can be divided across independent page owners or sub-agents, also load [`references/parallel-browser-ownership.md`](./references/parallel-browser-ownership.md).
+ 11. If you already know a reliable selector but need an MCP-native `uid` target, also load [`references/selector-bridge.md`](./references/selector-bridge.md).
+ 12. If page actions leave state ambiguous, a page unexpectedly navigates, an old `uid` may have gone stale, or console / network inspection is now needed to explain the next browser decision, also load [`references/browser-recovery.md`](./references/browser-recovery.md).
+ 13. If the target site already has a matching domain note under [`references/site-patterns/`](./references/site-patterns/), read that note before operating on the site.
- ## Examples
+ Treat the following as `browser-required` by default:
- **Use this skill**
+ - `localhost`, `127.0.0.1`, or benchmark-style local fixtures
+ - uploads, downloads, drag-and-drop, hover, keyboard-native entry, or visible confirmation states
+ - same-origin iframe inspection, Shadow DOM inspection, `details` / collapsed evidence, or lazy-loaded content
+ - any task where "what the page visibly shows" is itself the evidence
- - "I already have the failing request selected in DevTools. Explain why it returns 403."
- - "Check this dashboard in my logged-in browser without making me sign in again."
- - "I clicked into the broken component in Elements. Figure out why the layout is wrong."
- - "Pull the real image or video source from this lazy-loaded page."
- - "Read this public doc and tell me the structured metadata without opening a browser if a fetch is enough."
- - "Compare these three public sources, cite them, and only touch the browser if the static path fails."
- - "Go through this social site and find the real content even if search results and direct fetches are weak."
+ The normal happy path for a common task is this entrypoint plus one or two references, not the entire reference set.
- **Do not use this skill**
+ ## Hard rules
- - "Rename these local files and update the import paths."
- - "Refactor this parser and run the unit tests."
- - "Open a clean browser and test the unauthenticated signup flow."
+ - Use browser interaction only when live browser state is part of the evidence or required action.
+ - Once a task is `browser-required`, do not silently downgrade.
+ - Treat this file as the entrypoint and each reference file as a single-purpose authority. Do not duplicate rules across files.
+ - Keep reference loading one level deep. Decide the next file from this entrypoint instead of turning one reference into a hub that links to more references.
+ - Do not ask the user to log in just because a page looks restricted. First confirm whether the target content or action is actually blocked.
+ - Prefer site-generated DOM links over hand-built URLs once the page has shown you the path it expects.
+ - Prefer MCP-native actions over script-driven interaction when the task is genuinely an in-browser action.
+ - Only close pages you created.
+ - Prefer primary sources over aggregators or repeated secondary reporting.
+ - If a matching site pattern note exists, read it before the first meaningful browser mutation on that domain.
+ - Do not finish a `browser-required` task without explicitly checking whether the run should create, update, downgrade, or remove a site-pattern claim.
+ - If an existing site-pattern claim fails under comparable conditions, stop trusting it, fall back to the generic workflow, and update the note instead of retrying the stale assumption.
+ - Do not use `curl`, `Invoke-WebRequest`, or shell HTTP fetches for `browser-required` tasks.
+ - Do not treat a generic page-opening tool as evidence that localhost deep interaction is available.
+ - Do not switch routes just because a browser capability probe failed. Record the missing capability and stop.
+ - When the user indicates an active browser debugging context, prefer handoff from that current context over fresh reproduction from scratch.
- ## Reference Files
+ ## Reference index
- - [`references/tool-matrix.md`](./references/tool-matrix.md): choose between `web`, `chrome-devtools`, `playwright`, and raw-fetch paths.
- - [`references/session-playbook.md`](./references/session-playbook.md): tab hygiene, DOM/media extraction, login handling, and fallback tactics.
- - [`references/browser-recipes.md`](./references/browser-recipes.md): concrete browser operations for tab control, extraction, interaction, and audits.
- - [`references/site-patterns/README.md`](./references/site-patterns/README.md): format for validated domain-specific notes.
+ - [`references/task-routing.md`](./references/task-routing.md): static retrieval vs live browser routing
+ - [`references/browser-playbook.md`](./references/browser-playbook.md): core page-action protocol and base browser loop
+ - [`references/browser-capability-matrix.md`](./references/browser-capability-matrix.md): capability proof for uncertain host sessions
+ - [`references/debug-handoff.md`](./references/debug-handoff.md): active debugging-context handoff
+ - [`references/control-plane-workflows.md`](./references/control-plane-workflows.md): logged-in dashboard / CMS save-publish discipline
+ - [`references/anti-automation-friction.md`](./references/anti-automation-friction.md): soft 404 / auth / anti-automation classification
+ - [`references/deep-dom.md`](./references/deep-dom.md): iframe, Shadow DOM, collapsed, or lazy-loaded evidence
+ - [`references/media-inspection.md`](./references/media-inspection.md): image, audio, and video evidence
+ - [`references/parallel-browser-ownership.md`](./references/parallel-browser-ownership.md): multi-owner browser coordination
+ - [`references/selector-bridge.md`](./references/selector-bridge.md): selector-to-`uid` bridging
+ - [`references/browser-recovery.md`](./references/browser-recovery.md): stale `uid`, navigation drift, and console / network escalation
+ - [`references/site-patterns/README.md`](./references/site-patterns/README.md): site-pattern note maintenance rules
+ - [site-patterns/{domain}.md](./references/site-patterns/): existing domain-specific operating knowledge