li-xiu-qi

browser-cli

Control the user's current Chrome through the local browser-cli daemon and native CDP. Use when a task needs the already-open logged-in browser, daemon reuse, worker tabs, snapshots, clicks, typing, or low-friction current-browser automation instead of a fresh browser session.

li-xiu-qi 1 Updated 2mo ago

Resources

8
GitHub

Install

npx skillscat add li-xiu-qi/browser-cli

Install via the SkillsCat registry.

SKILL.md

browser-cli

Use this skill when the best browser path is the current Chrome session, not a fresh browser instance.

Preconditions

  1. Chrome is already running
  2. chrome://inspect/#remote-debugging has Allow remote debugging for this browser instance enabled
  3. browser-cli is available in this repo or local install

Default Workflow

  1. If a daemon is already running, inspect it first:
bin\browser-cli.cmd status --port 54000
  1. If no daemon is running, check reachability and start one:
bin\browser-cli.cmd doctor
bin\daemon-start.cmd 54000
  1. Open or reuse a worker tab:
bin\browser-cli.cmd tab-open --port 54000 --url https://example.com --id task-tab
  1. Keep sending actions through the same worker:
bin\browser-cli.cmd snapshot --port 54000 --worker task-tab
bin\browser-cli.cmd click --port 54000 --worker task-tab --json "{\"ref\":\"button.submit\"}"
bin\browser-cli.cmd type --port 54000 --worker task-tab --json "{\"ref\":\"input[name=q]\",\"text\":\"hello\"}"
  1. Stop the daemon when the task line is complete:
bin\daemon-stop.cmd 54000

Operating Rules

  • Prefer reusing the same daemon and the same worker for one task line.
  • Prefer status over repeated fresh doctor probes once a daemon is already attached.
  • Snapshot before high-risk click or type steps.
  • Treat current-browser mode as shared state.
  • Do not assume multi-agent parallel work is isolated just because different workers exist.
  • If doctor fails, troubleshoot the browser session first before redesigning the task.

What This Skill Does Not Try To Do

  • It does not replace full browser frameworks.
  • It does not provide a generic MCP server abstraction.
  • It does not hide the fact that current-browser mode shares state.
  • It does not bundle site-specific browsing strategies into the skill itself.

References