anbeime/skill / skills/chrome-automation/chrome-automation
chrome-automation
Flagged网页开发工程师与运营专员在需要自动化现有 Chrome 浏览器时必用!通过 CDP 协议无缝接管当前浏览器,自动配置环境并实时可视化执行任务。完美保留登录状态,一键完成复杂网页自动化流程,让繁琐操作自动化。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 21.0 KB |
| references/commands.md | markdown | 11.5 KB |
| references/setup-mac.md | markdown | 6.2 KB |
| references/setup-windows.md | markdown | 9.5 KB |
| references/troubleshooting.md | markdown | 10.2 KB |
| scripts/README.md | markdown | 3.0 KB |
| scripts/auto-install-mac.sh | script | 2.5 KB |
| scripts/auto-install-windows.ps1 | script | 3.8 KB |
| scripts/connect_chrome.sh | script | 1.5 KB |
| scripts/install-scripts.md | markdown | 9.2 KB |
| scripts/setup.sh | script | 1.6 KB |
| scripts/start-chrome-mac.sh | script | 3.4 KB |
| scripts/start-chrome-windows.ps1 | script | 5.0 KB |
scripts/auto-install-mac.sh
View on GitHub#!/bin/bash
# Auto-install script for agent-browser on macOS
# This script checks and installs all required dependencies automatically
set -e
echo "🔍 Checking agent-browser installation..."
# Define paths
AB_HOME="$HOME/Documents/agent-browser"
AB_BIN="$AB_HOME/bin/agent-browser"
# Check if agent-browser binary exists
if [ -f "$AB_BIN" ]; then
echo "✓ agent-browser binary found"
# Test if it works
cd "$AB_HOME"
if AGENT_BROWSER_HOME="$AB_HOME" "$AB_BIN" --version 2>/dev/null; then
echo "✓ agent-browser is working correctly"
exit 0
else
echo "⚠️ agent-browser binary exists but not working, rebuilding..."
fi
fi
# Check if repository exists
if [ ! -d "$AB_HOME" ]; then
echo "📦 Cloning agent-browser repository..."
cd "$HOME/Documents"
git clone https://github.com/vercel-labs/agent-browser.git
cd agent-browser
else
echo "✓ Repository found"
cd "$AB_HOME"
fi
# Check Node.js
if ! command -v node &> /dev/null; then
echo "❌ Node.js not found. Please install Node.js first."
exit 1
fi
echo "✓ Node.js found: $(node --version)"
# Check pnpm
if ! command -v pnpm &> /dev/null; then
echo "📦 Installing pnpm..."
npm install -g pnpm
fi
echo "✓ pnpm found: $(pnpm --version)"
# Install dependencies
echo "📦 Installing dependencies..."
pnpm install
# Install Playwright Chromium
echo "📦 Installing Playwright Chromium..."
npx playwright install chromium
# Check Rust/Cargo
if ! command -v cargo &> /dev/null; then
# Check if cargo exists in default location
if [ -f "$HOME/.cargo/bin/cargo" ]; then
echo "✓ Cargo found in ~/.cargo/bin, adding to PATH"
export PATH="$HOME/.cargo/bin:$PATH"
else
echo "❌ Rust/Cargo not found. Installing rustup..."
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path
export PATH="$HOME/.cargo/bin:$PATH"
fi
fi
# Ensure cargo is in PATH
export PATH="$HOME/.cargo/bin:$PATH"
# Check if default toolchain is set
if ! rustup default 2>/dev/null | grep -q "stable"; then
echo "📦 Setting up Rust stable toolchain..."
rustup default stable
fi
echo "✓ Rust found: $(rustc --version)"
# Build agent-browser
echo "🔨 Building agent-browser..."
npm run build:native
# Verify installation
if [ -f "$AB_BIN" ]; then
echo "✅ agent-browser installed successfully!"
echo "Binary location: $AB_BIN"
else
echo "❌ Installation failed - binary not found"
exit 1
fi
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |