Skip to content

anbeime/skill / skills/chrome-automation/chrome-automation

chrome-automation

Flagged

网页开发工程师与运营专员在需要自动化现有 Chrome 浏览器时必用!通过 CDP 协议无缝接管当前浏览器,自动配置环境并实时可视化执行任务。完美保留登录状态,一键完成复杂网页自动化流程,让繁琐操作自动化。

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
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall