Agent skill

Browser Inspect

by ntorga in ntorga/agent-starter-kit

Browser inspection and interaction for verifying rendered web UI during development.

MITAuto-check passedProductivity & Automation

Install Browser Inspect

skills CLI
$ npx skills add ntorga/agent-starter-kit --skill browser-inspect -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ntorga/agent-starter-kit browser-inspect --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ntorga/agent-starter-kit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/browser-inspect .claude/skills/browser-inspect && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
browser-inspect
GitHub stars
146
Token cost
~2k tokens
SKILL.md length
861 words
Files
1
Skills in repo
21
Repo updated
First seen
Licence
MIT

At a glance

Browser inspection and interaction for verifying rendered web UI during development.

  • Works in 5 steps: Tool selection → The verification loop → Inspection with agent-browser → …
  • Tasks that involve Frontend development
  • SKILL.md covers Purpose, Procedure and Guardrails
  • Calls npm

What it does

Browser Inspect is an agent skill from ntorga/agent-starter-kit. Browser inspection and interaction for verifying rendered web UI during development.

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Productivity & Automation, covering Frontend development and Browser automation. It works with Model Context Protocol and Chrome DevTools. The repository describes itself as: The scaffold for your multi-model, personalized Natural Language AI Harness (NLAH) . The licence is MIT.

When your agent uses it

  • Tasks that involve Frontend development
  • Tasks that involve Browser automation

Example prompts

  • “/browser-inspect”

Requirements

  • Node.js

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Tool selection
  2. The verification loop
  3. Inspection with agent-browser
  4. Interaction with agent-browser
  5. Inspection with Chrome DevTools MCP

What it can do on your machine

Read from SKILL.md and the folder at commit 851e942. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Browser Inspect loads about 2k tokens when it runs. Until then it costs about 25 tokens; SKILL.md has 861 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~25
When it runs · the whole SKILL.md, loaded when a task matches
~2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ntorga/agent-starter-kit at commit 851e942, republished under its MIT licence (© ntorga). 861 words, ~2,048 tokens.

Download SKILL.mdSave it as .claude/skills/browser-inspect/SKILL.md (or your agent's skills folder).
name
browser-inspect
description
Browser inspection and interaction for verifying rendered web UI during development.
usedBy
coder
relatedTo
agent-browser, chrome-devtools-mcp
version
0.1.0
lastUpdated
2026-09-12

Purpose

An agent editing UI code cannot confirm that the result is correct by reading source files alone. CSS can be purged or overridden, client-side JS only runs in the browser, and server-rendered markup may differ from what the template suggests. Without looking at the live page, an agent is guessing. This skill codifies how to inspect, interact with, and verify rendered web UI using two complementary tools that serve different purposes.

Procedure

1. Tool selection

Two tools exist for browser work. They are not interchangeable — the distinction is which browser instance you connect to.

  • agent-browser: Spins up its own fresh session. Use for autonomous tasks: testing, form automation, screenshots, clean-state QA.
  • Chrome DevTools MCP: Attaches to the user's live browser. Use for collaborative debugging: inspecting existing state, auth sessions, HMR.

agent-browser is a free CLI tool — harness-agnostic, works everywhere, no API key:

bash
npm install -g agent-browser
agent-browser install   # downloads Chrome for Testing (first time only)

Verify it before use: run command -v agent-browser. If it is missing, show the user the two install commands above and stop. Installing a global npm package and downloading a browser are system changes — the user runs them or explicitly approves them first. Once installed, continue.

Always use --engine chrome. Lightpanda has no rendering engine and cannot display visual output.

Chrome DevTools MCP is an MCP server — requires registration in the harness's MCP config. If the MCP server is not available, ask the user to add it to opencode.json (project) or ~/.config/opencode/opencode.json (global):

json
{
  "mcp": {
    "chrome-devtools": {
      "type": "local",
      "command": ["npx", "-y", "chrome-devtools-mcp@latest"]
    }
  }
}

The harness must be restarted after adding the config. The MCP server starts Chrome automatically on first tool use.

When to use which:

  • agent-browser for clean-state verification: "does this component render correctly from scratch?" Fresh context, no cookies, no auth, no prior state. Good for automated testing loops and screenshots.
  • Chrome DevTools MCP for live-state debugging: "why does this look wrong in my browser right now?" Inherits the user's session — auth, localStorage, cookies, in-flight HMR state. The user and agent see the same tab simultaneously. Returns structured CDP responses directly, fewer round-trips for tight debugging loops.

Default to agent-browser for autonomous work. Switch to Chrome DevTools MCP when the user asks you to inspect something they're already looking at, or when reproducing the bug requires state that's hard to reconstruct.

2. The verification loop

After every UI change, run this cycle:

  1. Edit the source file(s).
  2. Rebuild / let the watcher handle it.
  3. Server reloads and serves at localhost:<port>.
  4. Inspect the rendered result (CSS, console, DOM state).
  5. Interact with the component (click, fill, navigate).
  6. Read the screenshot to visually confirm. Fix issues, repeat.

Never assume a component is correct without looking at it in the browser.

3. Inspection with agent-browser

CSS. Check whether classes are actually applied to rendered elements:

bash
agent-browser get styles "h1"
agent-browser get styles "@e3"          # use refs from a prior snapshot

Diagnose: missing classes (purged or misspelled), specificity conflicts, responsive breakpoint issues, or dynamic classes that weren't generated.

Console errors. After any UI change, always check for runtime errors:

bash
agent-browser console                   # view console logs
agent-browser errors                    # view page errors only

Network traffic. When the UI makes server requests, inspect them:

bash
agent-browser network requests          # list captured requests

DOM state. Evaluate client-side state via JS when the framework exposes it:

bash
agent-browser eval "document.title"
agent-browser eval "document.querySelectorAll('.my-class').length"
Show full SKILL.md (361 more words)Show less
4. Interaction with agent-browser

Core workflow: snapshot, ref, interact. Always follow this sequence:

bash
# 1. Navigate to the page
agent-browser open http://localhost:3000/page

# 2. Get the accessibility snapshot with interactive element refs
agent-browser snapshot -i

# 3. Interact using stable refs (@e1, @e2, etc.)
agent-browser click @e3

# 4. Re-snapshot after any state change
agent-browser snapshot -i

# 5. Capture an annotated screenshot
agent-browser screenshot --annotate /tmp/component-state.png

Refs are scoped to the current snapshot. After any navigation, client-side state change, or DOM update, take a new snapshot before using refs. Never reuse refs across page states.

Forms. Fill fields and trigger blur/validation:

bash
agent-browser snapshot -i
agent-browser fill @e2 "test value"
agent-browser press Tab                  # trigger blur/validation events
agent-browser snapshot -i
agent-browser screenshot --annotate /tmp/input-filled.png

Dropdowns and modals. Hidden content (via display: none, visibility: hidden, or conditional rendering) won't appear until triggered. Click the trigger first, then re-snapshot to get refs for the now-visible elements:

bash
agent-browser click @e4              # open dropdown/modal
agent-browser snapshot -i            # get refs for visible content
agent-browser click @e7              # select an option
agent-browser snapshot -i            # verify state updated

Waiting for async operations. After triggering a server request or animation, wait before re-snapshotting:

bash
agent-browser click @e5              # trigger a request
agent-browser wait networkidle       # wait for network to settle
agent-browser snapshot -i
agent-browser screenshot --annotate /tmp/result.png

Responsive testing. Compare viewport sizes to verify responsive behavior:

bash
agent-browser set viewport 375 812
agent-browser screenshot --annotate /tmp/mobile.png

agent-browser set viewport 1280 800
agent-browser screenshot --annotate /tmp/desktop.png

Reading screenshots. After taking an annotated screenshot, always read the file to close the loop. The annotation overlay shows element refs on top of the rendered page — both visual layout and interactive targets are visible together.

5. Inspection with Chrome DevTools MCP

When using Chrome DevTools MCP (attached to the user's live browser), the MCP tools provide direct access to CSS, console, network, and DOM state without navigation — you're already on the page the user is looking at.

Use it for: checking computed styles on an element the user is pointing out, reading console errors from a sequence they just triggered, evaluating Alpine/React/Vue state in the live session, or inspecting network responses from an interaction they just performed.

The MCP tools return structured CDP responses. There is no snapshot/ref workflow — you identify elements by CSS selector or coordinate, same as you would in DevTools.

Guardrails

  • Never assume a rendered component is correct from source code alone. Styling, client-side behavior, and server interactions can only be verified in the browser.
  • Never reuse agent-browser refs across page states. Any navigation, state change, or DOM update invalidates existing refs — always re-snapshot first.
  • Never use Lightpanda — it has no rendering engine and cannot display visual output.
  • Never use Chrome DevTools MCP for autonomous testing workflows — it depends on the user's browser state which may not be reproducible. Use agent-browser for clean-state verification.
  • Never use agent-browser to debug a live user session — it spins up a fresh browser and cannot access the user's cookies, auth state, or in-flight application state. Use Chrome DevTools MCP instead.

© ntorga, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/browser-inspect of ntorga/agent-starter-kit.

Open the folder on GitHubat commit 851e942

Compare with similar skills

Browser Inspect next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Browser Inspect compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Browser Inspect this skillntorga/agent-starter-kit146—~2kAutomated safety check: PassMIT
Control Browserzai-org/ZCode7.5k—~4.6kAutomated safety check: PassApache-2.0
Browseragutinbaigo28/financial-agent-api1281 repos~480Automated safety check: PassNone
Electron Devtools Testingankitvgupta/exo496—~2.4kAutomated safety check: PassCustom licence
Browser NavigationFactory-AI/factory-plugins110—~2.7kAutomated safety check: PassNone
Browser UseQwenLM/qwen-code-examples143—~451Automated safety check: PassNone

Similar skills

  • Control Browser

    zai-org/ZCode

    A skill your agent uses when opening, navigating, inspecting, testing, clicking, typing, filling, screenshotting, or verifying web pages and local HTTP targets (localhost, 127.0.0.1, ::1) inside…

    7.5k GitHub stars~4.6k tokensUpdated 9 days ago
    Productivity & AutomationAuto-check passed
  • Browser

    agutinbaigo28/financial-agent-api

    This skill should be used for browser automation tasks using Chrome DevTools Protocol (CDP).

    128 GitHub starsUsed in 1 repo~480 tokens
    Productivity & AutomationAuto-check passed
  • Test the Electron app interactively using Chrome DevTools Protocol.

    496 GitHub stars~2.4k tokensUpdated 1 mo ago
    Productivity & AutomationAuto-check passed
  • Browser Navigation

    Factory-AI/factory-plugins

    Automate browser interactions for web testing, form filling, screenshots, and data extraction.

    110 GitHub stars~2.7k tokensUpdated yesterday
    Productivity & AutomationAuto-check passed
  • Browser Use

    QwenLM/qwen-code-examples

    Control browser pages using the Playwright MCP server. An agent skill from QwenLM/qwen-code-examples.

    143 GitHub stars~451 tokensUpdated 4 mo ago
    Productivity & AutomationAuto-check passed
  • Cdp Connect

    adobe/skills

    Connect Claude Code to an existing Chrome browser via CDP (Chrome DevTools Protocol).

    196 GitHub stars~847 tokensUpdated today
    Productivity & AutomationAuto-check passed

More from ntorga/agent-starter-kit

All 21 skills in this repo
  • Agent Decision

    ntorga/agent-starter-kit

    Deterministic self-evaluation rubric for decision escalations — scored every run using the FRAME framework.

    146 GitHub stars~1.7k tokensUpdated 25 days ago
    Auto-check passed
  • Agent Memory

    ntorga/agent-starter-kit

    Long-term and session memory across sessions. An agent skill from ntorga/agent-starter-kit.

    146 GitHub stars~2.7k tokensUpdated 25 days ago
    Auto-check passed
  • Architect Design Tree

    ntorga/agent-starter-kit

    Builds the design tree for the grill — decisions mapped as nodes with dependencies, recommendations, and impact, pruned by path.

    146 GitHub stars~1.2k tokensUpdated 25 days ago
    Auto-check passed
  • Architect Impl Grounding

    ntorga/agent-starter-kit

    Grounds the grill's settled decisions in the codebase — annotates impl.md with file paths, signatures, reference files, test specs, and LOC; re-grounds the next epic after each landing.

    146 GitHub stars~944 tokensUpdated 25 days ago
    Auto-check passed
  • Boot

    ntorga/agent-starter-kit

    Session startup — gitignore, auto-update, memory, rules, context, CLI config, and greet.

    146 GitHub stars~937 tokensUpdated 25 days ago
    Auto-check passed
  • Code Coherence Review

    ntorga/agent-starter-kit

    Reviews code and plans for logic coherence, correctness, and structural integrity.

    146 GitHub stars~2.8k tokensUpdated 25 days ago
    Auto-check passed

Questions about Browser Inspect

What does Browser Inspect do?

Browser inspection and interaction for verifying rendered web UI during development. Browser Inspect is an agent skill from ntorga/agent-starter-kit. Browser inspection and interaction for verifying rendered web UI during development.

When should I use Browser Inspect?

Browser Inspect fits situations like: tasks that involve Frontend development; tasks that involve Browser automation.

How do I install Browser Inspect in Claude Code?

Run `npx skills add ntorga/agent-starter-kit --skill browser-inspect -a claude-code`. Or copy the skill folder (skills/browser-inspect in ntorga/agent-starter-kit) into .claude/skills/browser-inspect in your project. Claude Code loads it when a task matches its description.

How do I install Browser Inspect in Codex?

Run `npx skills add ntorga/agent-starter-kit --skill browser-inspect -a codex`. Or copy the skill folder (skills/browser-inspect in ntorga/agent-starter-kit) into .agents/skills/browser-inspect in your project. Codex loads it when a task matches its description.

Can I use Browser Inspect in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ntorga/agent-starter-kit --skill browser-inspect -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/browser-inspect, .gemini/skills/browser-inspect, .github/skills/browser-inspect and .opencode/skills/browser-inspect in your project.

What does Browser Inspect need to run?

Going by SKILL.md and its folder, Browser Inspect needs the command-line tools its instructions call (npm). Our summary lists: Node.js.

Does Browser Inspect access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Browser Inspect safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Browser Inspect use?

Browser Inspect is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Browser Inspect use?

About 2k tokens (SKILL.md is roughly 8.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Browser Inspect?

Skills that share tags, products or a category with Browser Inspect: Control Browser (zai-org/ZCode, 7.5k stars), Browser (agutinbaigo28/financial-agent-api, 128 stars), Electron Devtools Testing (ankitvgupta/exo, 496 stars) and Browser Navigation (Factory-AI/factory-plugins, 110 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Browser Inspect?

ntorga (a GitHub user) maintains it in ntorga/agent-starter-kit, which has 146 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on September 12, 2026.

Source: ntorga/agent-starter-kit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.