agentleFS
fnayoufnayou/agent-skills/skills/agent-browser/SKILL.md

agent-browser

Skill4 starsChanged 37 days agoMITView on GitHub

Drive a web browser through the agent-only MCP servers playwright, playwright-auth, and safari-mcp. Use when a task needs a browser (open, test, or screenshot a page, check layout at a viewport), when a site needs the user's login, for Safari compatibility checks, or to check or set up these servers.

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use community-led-growth, ph-community-outreach and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • nicepkgSkill

    community-led-growth

    Expert in community-led growth (CLG) - leveraging user communities to drive acquisition, retention, and expansion. Covers building developer communities, user groups, ambassador programs, and turning customers into advocates. Knows the difference between community as a feature vs community as a growth engine, and how to measure community ROI. Use when "community-led, CLG, ambassador program, champion program, user community, developer community, word of mouth, user group, " mentioned.

    Also in 5 projects that use this

  • nicepkgSkill

    ph-community-outreach

    Engage Reddit, Indie Hackers, Hacker News and other communities for Product Hunt launches. Use this skill to identify relevant communities, craft appropriate posts, and drive cross-platform engagement without appearing spammy.

    Also in 5 projects that use this

  • Recepay6358Skill

    time-skill

    Display the current time in Pakistan Standard Time (PKT, UTC+5). Use when the user asks for the current time, Pakistan time, or PKT.

    Also in 7 projects that use this

  • axiom-desuSkill

    dep-refs

    Use when needs to inspect TypeScript export references in the z-code workspace, list exports from a file, verify whether an export is unused before deletion, investigate who imports a symbol during refactors, or combine pnpm knip unused-export results with pnpm dep:refs symbol-level reference tracing.

    Also in 6 projects that use this

  • axiom-desuSkill

    feature-boundary-planner

    Map a ZCode behavior change to current UI surfaces, state owners, protocol commands, persistence, and validation. Use for impact analysis, product-boundary planning, or an implementation handoff grounded in the checked-out source.

    Also in 6 projects that use this

  • Recepay6358Skill

    weather-svg-creator

    Creates an SVG weather card showing the current temperature for Dubai. Writes the SVG to orchestration-workflow/weather.svg and updates orchestration-workflow/output.md.

    Also in 7 projects that use this

  • +4 more from nicepkg

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 172 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Look for the chosen server's tools in this session.

    line 23
  2. Very specific:

    When the tools are absent, or before the first playwright-auth use in a session, run scripts/check.

    line 28
  3. Very specific:

    Only playwright-auth carries a login.

    line 53
  4. Very specific:

    Read setup when a server is missing from a client, when changing the package pin, browser, or profile location, or before the user's first …

    line 71

“Common” is measured: kept by at least 6 in 10 of the 172 edited versions of this file we could read. “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

Agent Browser

Three MCP servers give agents a browser that is never the user's own. Pick the narrowest one for the task, prove it is reachable, then work.

ServerBrowserUse for
playwrightHeadless, in-memory profile, gone when the browser closesThe default: public pages, local dev servers, layout and viewport checks. Safe to run from many agents at once.
playwright-authHeaded, persistent agent-only profileOnly sites that need the user's login. One agent at a time.
safari-mcpSafari's built-in MCP server, in a window Safari marks as agent-controlledOnly Safari-specific compatibility checks. One session at a time.

Both Playwright servers start through scripts/agent-browser-mcp, so the package pin and browser binary live in one place.

Preflight

  1. Look for the chosen server's tools in this session. Clients name them differently: mcp__playwright__browser_navigate, playwright/browser_navigate, or tools reached through a code-mode or tool-search tool that searches by server name. Tools present means the server is connected; skip to the work.
  2. When the tools are absent, or before the first playwright-auth use in a session, run scripts/check. It is read-only and prints OK, WARN, or FAIL per fact and one READY line per server.
  3. Report each FAIL and each WARN that blocks the chosen server, with the fix the line names. Preflight is done when the chosen server is READY yes and its tools are callable, or when the user has the blocker in hand.

A server added to a client's config reaches a session only after the client restarts or reloads its MCP servers.

Logged-in sites

The user owns the login. When playwright-auth opens on a login page, stop and ask the user to sign in, including any 2FA, in the browser window, then continue once they confirm. Credentials and codes stay out of the chat, since anything the agent types is recorded in transcripts and logs.

  • scripts/check reports profile.lock in use: another agent holds the profile. Wait or ask; a second browser on the same profile fails.
  • Page snapshots and screenshots of a logged-in page carry the user's private data. Keep what reaches the reply to what the task needs.
  • The agent acts as the user. Confirm with the user before every irreversible action: submit, pay, delete, send, publish, change settings.
  • Session expired: ask the user to sign in again, the same way.
  • The agent never types the password or the code, and never asks for them in chat. A passkey, CAPTCHA, or device-trust prompt is the user's too: stop and ask, never work around it.
  • Only playwright-auth carries a login. playwright is isolated and in-memory, so a site that needs a login opens on its login page there.

Safari

A session error that names "Allow remote automation" means the setting is off: ask the user to tick Safari > Settings > Developer > "Allow remote automation and external agents". Navigate before any tab tool; tab calls issued before the first navigation can fail.

Layout checks

Resize to each requested viewport, then measure before judging: compare document.documentElement.scrollWidth with innerWidth for horizontal overflow, and take a full-page screenshot. Report each viewport's size, overflow, and visible defects, with the screenshot paths.

Setup and changes

Read setup when a server is missing from a client, when changing the package pin, browser, or profile location, or before the user's first playwright-auth login.

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.