lielingai/zhishi/agent-browser
Claude Code and agent skill by lielingai/zhishi
- community
Checking that the SKILL.md file is still in the repository.
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.
Install
npx vskill@latest install lielingai/zhishi/agent-browserSKILL.md
Browser Automation with agent-browser
First-time Setup
The CLI is not pre-installed with the app — install it on first use, then download Chromium. Always run this self-check before issuing any agent-browser command in a fresh environment.
Step 1: Verify or install the CLI
The install lands in ~/.zhishi/npm-global/bin/agent-browser, which sits earlier in PATH than any legacy wrapper. ZhiShi exposes ZHISHI_NPM_GLOBAL_PREFIX for this command-local install instead of setting npm_config_prefix on the whole shell, so nvm-based user shells stay quiet. Subsequent agent-browser … calls find the new binary automatically.
Tell the user once that you're installing the browser tool (~few seconds the first time, instant afterward), then proceed.
If npm install -g fails
If the install fails (network blocked, registry unreachable, EACCES on a locked-down system Node), invoke the CLI via npx inline on every command — Bash aliases do not persist across separate tool calls in this environment, so each command must carry the prefix:
This is slower (~1s overhead per call) but works without an install step.
Step 2: Download Chromium (~160MB, one-time)
Inform the user this download may take a minute on slow connections.
Troubleshooting
| Symptom | Fix | |
|---|---|---|
agent-browser runs but shows "cannot find file" | Stale wrapper from a previous app version is shadowing the new install. The new install at ~/.zhishi/npm-global/bin/ should win on PATH; if it doesn't, run which agent-browser to see which path resolves first, then either remove the stale path or invoke the new binary by its absolute path. | |
npm install -g exits with the registry blocked / network error | Use the npx inline fallback above. If npx also fails, the user's network is blocking the npm registry — ask them about proxy / VPN. | |
agent-browser install fails to download Chromium | Network issue / GFW. User may need a proxy or VPN. Ask the user. | |
Executable doesn't exist mid-task | Chromium got deleted or the install never finished. Re-run agent-browser install. |
Core Workflow
Every browser automation follows this pattern:
- Navigate:
agent-browser open <url> - Snapshot:
agent-browser snapshot -i(get element refs like@e1,@e2) - Interact: Use refs to click, fill, select
- Re-snapshot: After navigation or DOM changes, get fresh refs
Command Chaining
Commands can be chained with && in a single shell invocation. The browser persists between commands via a background daemon, so chaining is safe and more efficient than separate calls.
When to chain: Use && when you don't need to read the output of an intermediate command before proceeding (e.g., open + wait + screenshot). Run commands separately when you need to parse the output first (e.g., snapshot to discover refs, then interact using those refs).
Essential Commands
Common Patterns
Form Submission
Authentication with Auth Vault (Recommended)
Authentication with State Persistence
Session Persistence
Data Extraction
Parallel Sessions
Connect to Existing Chrome
Color Scheme (Dark Mode)
Visual Browser (Debugging)
Local Files (PDFs, HTML)
iOS Simulator (Mobile Safari)
Requirements: macOS with Xcode, Appium (npm_config_prefix="${ZHISHI_NPM_GLOBAL_PREFIX:-$HOME/.zhishi/npm-global}" npm install -g appium && appium driver install xcuitest)
Real devices: Works with physical iOS devices if pre-configured. Use --device "<UDID>" where UDID is from xcrun xctrace list devices.
Security
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingbundled-skills/agent-browser/SKILL.md
Popularity
- Repository stars
- 92
- Repository forks
- 5
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/lielingai/zhishi/agent-browser)