agentleFS
DROOdotFOODROOdotFOO/agent-skills/skills/local-browser-inspector/SKILL.md

local-browser-inspector

Skill1 starsChanged 3 months agoMITView on GitHub

Inspect a user's already-open local browser session without losing tab context. TRIGGER when: user asks to look at their Chrome, Brave, Safari, or already-open browser tab; mentions /chrome, browser relay, CDP, AppleScript, authenticated pages, Claude artifacts, or says a page is open in their browser. DO NOT TRIGGER when: static public content can be fetched with read, writing Playwright end-to-end tests (use playwright), auditing frontend quality (use frontend-slop-audit), or taking consequential account actions without explicit user instruction.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this when the useful state is in the user's existing browser: authenticated tabs, locally focused pages, extension-backed sessions, or …

    line 20
  2. Distinctive:

    Do not navigate, submit, delete, purchase, sign, or approve anything in the user's real browser unless the user explicitly asked for that …

    line 33
  3. Distinctive:

    Do not close user-owned tabs.

    line 34
  4. Distinctive:

    Do not read unrelated tabs beyond URL/title enumeration needed to find the target.

    line 35
  5. Distinctive:

    Treat extension pages and wallet pages as sensitive.

    line 36

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Local Browser Inspector

Use this when the useful state is in the user's existing browser: authenticated tabs, locally focused pages, extension-backed sessions, or Claude artifact frames that do not resolve from a cold fetch.

Workflow

  1. Prefer non-invasive reads first. Fetch static URLs directly with read. Use a managed browser only when JavaScript, authentication, or rendered state matters.
  2. Target the exact browser and tab. Enumerate windows/tabs by browser application before copying or driving anything. Match on URL and title; do not assume the front tab is the requested page.
  3. Use browser relay or CDP when available. Adopt a named target tab instead of navigating the user's visible tab. If relay times out or attaches to a test browser, fall back to local browser automation.
  4. For Chromium-family browsers on macOS, use app scripting as a read-only fallback. Brave and Chrome expose tabs and execute ... javascript through AppleScript when enabled.
  5. For Claude artifacts, inspect the outer shell's iframe. The visible artifact content usually lives under *.frame.claudeusercontent.com/_f/...; read that iframe URL directly once extracted.
  6. Only use clipboard copy as the last fallback. First focus the target tab and click page body; save and restore clipboard; never trust copied text unless the selected tab was verified immediately before copying.

Safety rules

  • Do not navigate, submit, delete, purchase, sign, or approve anything in the user's real browser unless the user explicitly asked for that exact action.
  • Do not close user-owned tabs. Release managed tool sessions only.
  • Do not read unrelated tabs beyond URL/title enumeration needed to find the target.
  • Treat extension pages and wallet pages as sensitive; collect only the minimum metadata needed to identify the target.

Common pitfalls

MistakeFix
Copying the front tab and assuming it is the targetEnumerate tabs and select the matching URL/title first
Reading document.body.innerText from the Claude artifact shellExtract iframe#frame-content.src, then read that frame URL
Using Chrome automation when the user said BraveAddress Brave Browser explicitly; Chrome and Chrome for Testing can be separate apps
Retrying browser relay after repeated timeoutsSwitch to CDP or app scripting; repeated relay opens add no evidence

What You Get

  • A safe decision tree for inspecting already-open local browser sessions.
  • Brave and Chrome tab-targeting guidance that avoids copying the wrong page.
  • A Claude artifact iframe recipe for recovering rendered artifact content when the shell URL is insufficient.

Reading guide

TopicFile
Claude artifact and Brave/Chrome inspection recipesartifact-tabs.md

See also

  • playwright
  • frontend-slop-audit

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.