Skip to main content
TestOfficialCertifiedReviewed Jul 21, 2026

Browser Pilot

We earn commissions when you shop through the links below.

v2.0.1New

Install this skill

No account required. Pick your tool, then copy.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install browser-pilot

What this does: Deterministic browser automation for testing and scripted web flows using Playwright with accessibility-snapshot navigation. Triggers: you say "test this flow in the browser", "automate the signup flow", "click through the app", "drive the browser".

Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/browser-pilot/SKILL.md

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

You are an autonomous browser pilot. Do NOT ask the user questions. Execute the requested
flow in a real browser deterministically and deliver evidence for every step.

TARGET: $ARGUMENTS

Arguments describe the flow (e.g. "sign up, add an item to cart, check out") and optionally
a URL. If only a URL is given, run a smoke flow: load, check console, exercise primary
navigation. If no arguments are given, detect the project's dev URL and smoke the home
route plus every link in the primary nav.

=== PRE-FLIGHT ===

  1. Browser tooling available. Prefer Playwright MCP tools (browser_navigate,
    browser_snapshot, browser_click...). RECOVERY: if no MCP browser tools exist, check for
    a local Playwright install (npx playwright --version); if absent, run
    npm i -D playwright && npx playwright install chromium and drive it via a script.
  2. App reachable. Curl the target URL for a 200/3xx. RECOVERY: if unreachable and the repo
    has a dev command (package.json dev script, flutter run -d chrome, make dev), start
    it in the background, poll the port up to 60s, then proceed. If it never comes up, stop
    with the server's startup log tail.
  3. Test credentials. If the flow needs auth, look for seeded test users in the repo
    (seeds, fixtures, .env.example, README). RECOVERY: if none found, attempt a signup path
    with a fresh @example.com address; never use real personal accounts.
  4. Clean session. Start from a fresh browser context (no cookies/storage). RECOVERY: if
    context reuse is forced by tooling, clear cookies and localStorage before step 1.

=== PHASE 1: FLOW PLAN ===

  1. Translate the request into an ordered step list. Each step = one user action + one
    expected observable result (e.g. "click button 'Add to cart' -> cart badge shows 1").
  2. Mark key states: the 3-8 moments worth a screenshot (post-login, post-submit, final
    confirmation, every error state).
  3. Define the overall pass condition for the flow.

VALIDATION: every step has an expected result phrased as something checkable in the
accessibility tree, URL, or page text; no step says only "click X".
FALLBACK: for vague requests, derive expectations from the UI itself after the first
snapshot (button labels, headings) and record that expectations were inferred.

=== PHASE 2: SNAPSHOT-FIRST EXECUTION ===

For each planned step:

  1. SNAPSHOT: take an accessibility snapshot of the current page. Locate the target element
    by role + accessible name (e.g. button "Sign in", textbox "Email"). NEVER address
    elements by CSS class, nth-child, XPath, or pixel coordinates.
  2. ACT: perform the action using the snapshot ref (click, type, select, press key).
  3. RE-SNAPSHOT: after EVERY mutating action, take a fresh snapshot. Never reuse refs from
    before a mutation; the tree may have changed.
  4. ASSERT: check the step's expected result against the new snapshot, the URL, or visible
    text. Record PASS or FAIL with the actual observed state.
  5. WAIT DISCIPLINE: wait for a condition (element appears, network idle, URL change), never
    a fixed sleep, except a single bounded retry (re-snapshot up to 3 times over 5s) for
    slow renders.

VALIDATION: step asserted PASS, or FAIL recorded with the observed state quoted.
FALLBACK: if the target element is not in the snapshot, scroll and re-snapshot, check for
a dialog/overlay blocking it, and try one synonymous accessible name (e.g. "Log in" vs
"Sign in"). If still absent, mark the step FAIL BLOCKED, capture evidence, and decide:
skip dependent steps (mark SKIPPED) but continue any independent branches.

=== PHASE 3: EVIDENCE CAPTURE ===

Throughout execution, collect into an evidence bundle directory
(.claude/browser-pilot/<date>-<flow-slug>/):

  1. Screenshot at every key state marked in Phase 1 and at every FAIL, named
    NN-<state>.png.
  2. Console log: every console error and warning with the step during which it appeared.
  3. Network failures: every request that returned >= 400 or failed, with method, URL,
    status, and the triggering step.
  4. Final URL and page title per step in the transcript.

VALIDATION: every FAIL step has at least one screenshot and its console/network context.
FALLBACK: if screenshots are unavailable in the current tooling, save the accessibility
snapshot text as the visual evidence and note the limitation.

=== PHASE 4: VERDICT ===

  1. Compute flow verdict: PASS (all steps pass), PARTIAL (failures but flow goal reached),
    FAIL (flow goal not reached).
  2. For each FAIL, write one line of diagnosis grounded in evidence (console error, failed
    request, missing element), not speculation.
  3. Stop any dev server you started; leave servers you found running untouched.

VALIDATION: verdict is consistent with the transcript; no PASS verdict with a failed
goal-critical step.
FALLBACK: none; the verdict must reflect the evidence exactly.

=== OUTPUT ===

Browser Pilot Transcript

Flow: | URL: | Verdict: PASS / PARTIAL / FAIL

#Action (role + name)ExpectedObservedResultEvidence

Console Errors

step, message (or "none").

Failed Network Calls

step, method, URL, status (or "none").

Evidence Bundle

Absolute path to the bundle directory and file list.

Diagnosis

One evidence-grounded line per failure, plus the single most likely fix location.

=== SELF-REVIEW ===

Score Complete, Robust, Clean 1-5. Complete: every planned step executed or explicitly
SKIPPED with cause. Robust: zero CSS/XPath selectors used; every wait was condition-based.
Clean: evidence bundle is navigable and screenshots match their labels. If any score < 4,
fix in-run (e.g. re-capture a missing screenshot), else state the gap as a known
limitation in the transcript.

=== LEARNINGS CAPTURE ===

Append to ~/.claude/skills/browser-pilot/LEARNINGS.md: date + app + flow, what worked,
what was awkward (flaky waits, tooling gaps), suggested patch to this skill, verdict
[Smooth | Minor friction | Major friction].

=== STRICT RULES ===

  1. Never use CSS selectors, XPath, nth-child, or coordinates; role + accessible name only.
  2. Never reuse an element ref after a mutation; re-snapshot first.
  3. Never use fixed sleeps as the primary wait; wait on conditions.
  4. Never report a step PASS without an assertion against observed state.
  5. Never fabricate evidence; every screenshot and log line must come from the actual run.
  6. Never use real personal credentials; test accounts and @example.com only.
  7. Never leave a dev server you started still running after the run.
  8. Always continue independent steps after a failure instead of aborting the whole flow.
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
design-animateAdd purposeful motion with modern CSS (scroll-driven animations, view transitions, @starting-style) or Flutter implicit animations, with reduced-motion support. Triggers: add animation, animate, add motion, transitions, scroll animation.86 installsdesign-auditRead-only design quality audit (WCAG 2.2 accessibility, performance, theming, responsive, anti-patterns) with scored, prioritized fixes. Triggers: 'audit design', 'check accessibility', 'a11y audit', 'design review', 'UI quality check'.64 installsdiagramGenerate Mermaid architecture diagrams from the codebase: C4 context/container, sequence diagrams for key flows, ER from schemas, module dependency graphs. Triggers: 'architecture diagram', 'ERD', 'sequence diagram', 'dependency graph', 'C4 diagram'.63 installssecureRead-only full-stack security posture assessment with a 0-100 risk score: dependency CVEs, dangerous code patterns, auth gaps, config and secrets, PII handling; routes to deeper skills. Triggers: 'security posture', 'how secure is this', 'security scan', 'risk score'.62 installsdesign-polishFinal quality pass before shipping: fixes alignment, spacing, type hierarchy, color consistency, interactive states and motion timing to match the existing design language. Triggers: 'polish the UI', 'make it pixel perfect', 'final design pass'.60 installscode-smellScan a codebase for Fowler's code smells (god classes, long methods, feature envy, data clumps, primitive obsession, shotgun surgery, message chains) and rank refactorings by impact. Triggers: 'code feels messy', 'before a refactor', 'find maintainability problems'.53 installs

More from Skills Hub

View source →
security-reviewEvidence-based security audit of a codebase: auth and authz gaps, IDOR, JWT/OAuth flaws, injection, data exposure, secrets and session issues, with exploit scenarios and fixes. Triggers: security review, audit auth, find vulnerabilities.207 installsunit-testFind untested code, write unit tests covering edge cases, error paths and boundaries in the project's own style, run them and fix failures. Triggers: add unit tests, increase coverage, test edge cases, test error handling.178 installshumanizerRewrite AI-drafted content so it reads human: cut filler and hedging, vary sentence length, curb em dashes, add specifics and voice. Triggers: humanize this, remove AI tells, sounds like ChatGPT, make it sound human.145 installsweb-gameScaffold a production-ready browser game (Phaser, PixiJS or Three.js) with Vite, TypeScript, input, audio, saves, responsive canvas and itch.io/PWA deploy. Triggers: web game, browser game, html5 game, phaser game, pixi game, three.js game.145 installsdesign-to-codeTurn a design into production frontend code in four phases: design-system tokens and components, responsive layout, dark mode, then a UX audit that fixes what it finds. Triggers: implement this design, Figma to code, design to code, build the UI from this.134 installsflutterBuild a complete Flutter app from a video, screenshots, description or /mvp output, matching the observed UI and flows, with tests. Triggers: flutter app, build a mobile app, build from video/screenshots, clone this app, make an app like, recreate this UI.131 installs

More Test skills

Browse category →
integration-testGenerate integration tests for APIs, databases, and external services. Triggers: you need to test API endpoints end-to-end, verify database operations, test service interactions.26 installstest-genGenerate comprehensive tests for existing code — unit, integration, and edge cases. Detects framework, matches project conventions, and achieves meaningful coverage.19 installse2eAuto-detects any tech stack, generates and runs exhaustive end-to-end tests. Triggered by "end-to-end tests", "e2e tests", "integration tests", "test the whole app", "generate tests", "test coverage", "write e2e", "run e2e", "full test suite". Use when a feature is complete and needs full-journey coverage, or before a release when unit tests alone are not enough.19 installsload-testGenerate and run load tests with k6, Locust, or Artillery. Auto-detects API framework, creates realistic user behavior flows (browsing, authenticated CRUD, search-heavy), runs ramp-up, sustained, spike, and stress test profiles with defined latency and error-rate thresholds. Use when the user asks if their API can handle traffic, wants a load, stress, or spike test, or mentions k6, Locust, Artillery, or latency under load.12 installstest-suiteAnalyze and score test coverage across all testing dimensions -- unit, integration, E2E, load, visual regression, contract, and accessibility. Triggers: you need a test health overview, want to find coverage gaps, need to prioritize which tests to write next.12 installsaccessibility-testAutomated WCAG 2.1 AA accessibility testing with axe-core and Lighthouse CI. Triggers: adding a11y testing, auditing accessibility compliance, fixing contrast issues.12 installs

Frequently asked questions about browser-pilot

What does the browser-pilot skill do?

Deterministic browser automation for testing and scripted web flows using Playwright with accessibility-snapshot navigation. Triggers: you say "test this flow in the browser", "automate the signup flow", "click through the app", "drive the browser". It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the browser-pilot skill?

Run `npx @skills-hub-ai/cli install browser-pilot` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/browser-pilot/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does browser-pilot work with?

browser-pilot runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the browser-pilot skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use browser-pilot after installing it?

In Claude Code, type `/browser-pilot` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the browser-pilot skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.