Skip to content
Agentmart
Submit a tool

ck:browser-automation

Browser automation and web scraping with agent-browser, Playwright, or Puppeteer

Skill by forgekit

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/duy-nguyen-2006-ck-browser-automation

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Browser automation and web scraping with agent-browser, Playwright, or Puppeteer

Use cases: testing, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/ck-browser-automation

What's inside

Skill name
ck:browser-automation
Description
Browser automation and web scraping with agent-browser, Playwright, or Puppeteer
License
MIT
Metadata
author: forgekit · version: 1.1.0
Instructions
149 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • name: only lowercase letters, digits and single hyphens allowed
  • name: "ck:browser-automation" does not match folder "browser-automation"

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Browser Automation

Browser automation & web scraping — agent-browser, Playwright, Puppeteer. Tập trung scrape/crawl, không phải test.

## Khi nào load

- User yêu cầu scrape/crawl/headless browser
- Data extraction từ website
- Screenshot automation
- Form filling automation
- Web monitoring
- User yêu cầu agent-browser cho automation tasks

## Không dùng khi

- E2E test (→ web-testing)
- Unit/integration test (→ test)
- Chỉ cần HTTP API call (→ backend-development)

## agent-browser Pattern (Primary for ForgeCode)

agent-browser is a Rust-based headless browser automation CLI designed for AI agents. It's the **recommended primary tool** for browser automation in ForgeCode workflows because:

1. **Accessibility tree snapshots** — Returns structured accessibility tree instead of raw DOM, far better for AI parsing and data extraction
2. **CLI-native** — Natural fit for ForgeCode terminal environment, no Node.js runtime needed
3. **Ref-based interaction** — Elements get refs (@e1, @e2) for precise, reliable interaction
4. **Screenshot + eval** — Full screenshot and JavaScript evaluation support
5. **Data extraction** — Extract structured data directly from accessibility tree

### Basic Usage
```bash
# Navigate and get accessibility tree snapshot
agent-browser navigate "https://example.com"
agent-browser snapshot
# Returns: accessibility tree with refs like @e1, @e2, @e3...

# Extract data by interacting with elements
agent-browser click @e5
agent-browser type @e3 "search query"

# Screenshot
agent-browser screenshot --output page.png

# JavaScript evaluation
agent-browser eval "document.querySelectorAll('.item').length"

# Natural language browser control
agent-browser chat "Go to the products page and extract all product names"
```

### Scrape Pattern
```bash
#!/bin/bash
# scrape-products.sh
agent-browser navigate "https://shop.example.com/products"
agent-browser snapshot
# Parse accessibility tree output for structured data
agent-browser eval "JSON.stringify(Array.from(document.querySelectorAll('.product')).map(el => ({name: el.querySelector('h2')?.textContent, price: el.querySelector('.price')?.textContent})))"
```

### Crawl Pattern
```bash
#!/bin/bash
# crawl-links.sh
agent-browser navigate "https://example.com"
agent-browser eval "JSON.stringify(Array.from(document.querySelectorAll('a')).map(a => ({text: a.textContent, href: a.href})))"
# Follow links using agent-browser navigate for each URL
```

### Why agent-browser for ForgeCode
| Feature | agent-browser | Playwright | Puppeteer |
|---|---|---|---|
| Installation | Single binary | Node.js + browser | Node.js + Chrome |
| Output | Accessibility tree (AI-native) | DOM/HTML | DOM/HTML |
| CLI-native | Yes | No (library) | No (library) |
| ForgeCode fit | Perfect (terminal-based) | Needs Node script | Needs Node script |
| Ref selectors | @e1, @e2 | CSS/XPath | CSS/XPath |
| Cloud browsers | Browserless, Browserbase | Browserless | Browserless |

## Playwright Pattern

### Basic Scrape
```typescript
import { chromium } from 'playwright';

const browser = await chromium.launch();
const page = await browser.newPage();
await page.goto('https://example.com');

// Extract data
const data = await page.evaluate(() => {
  const items = document.querySelectorAll('.item');
  return Array.from(items).map(el => ({
    title: el.querySelector('h2')?.textContent,
    price: el.querySelector('.price')?.textContent,
  }));
});
await browser.close();
```

### Screenshot
```typescript
await page.screenshot({ path: 'screenshot.png', fullPage: true });
```

### Wait Strategies
- `await page.waitForSelector('.loaded')`
- `await page.waitForLoadState('networkidle')`
- `await page.waitForTimeout(1000)` — last resort

### Anti-Detection
- `headless: false` cho sites detect headless
- Random delays giữa requests
- Rotate user-agent
- Respect robots.txt và rate limits

## Puppeteer Pattern

```bash

From Duy-Nguyen-2006/ForgeKit, MIT.

Compare and alternatives

    Featured in

    Signals

    Stars
    0
    Forks
    0
    Open issues
    0
    Last commit (this folder)
    May 12, 2026 (5 months ago)

    From GitHub (fetched Oct 24, 2026).

    Details

    Version
    1.1.0
    License
    MIT
    First seen
    Oct 24, 2026
    Last checked
    Oct 24, 2026

    More from forgekit

    Cite this page

    ck:browser-automation skill. Agent Mart. https://agentmart.dev/skills/duy-nguyen-2006-ck-browser-automation (last updated 2026-10-24)