Community생산성 & 협업github.com

browserbase/browser-trace

모든 브라우저 자동화의 전체 DevTools 프로토콜 추적(CDP 데이터, 스크린샷, DOM 덤프)을 캡처하고, 스트림을 페이지별 검색 가능한 버킷으로 분할합니다. 실패한 실행 디버깅, 네트워크/콘솔/DOM 활동 감사, 진행 중인 세션에 추적 첨부, 또는 에이전트 루프에 구조화된 페이지별 요약을 제공하여 다음 반복이 이전에서 학습하도록 할 때 사용합니다.

browser-trace란 무엇인가요?

browserbase/browser-trace는 브라우저 자동화(예: Playwright, Puppeteer)의 전체 DevTools 프로토콜(CDP) 추적을 캡처하고 이를 페이지별로 검색 가능한 버킷으로 분할하는 강력한 스킬입니다. CDP 데이터, 스크린샷, DOM 덤프를 포함한 전체 실행 기록을 제공하여 실패한 실행을 디버깅하거나 네트워크/콘솔/DOM 활동을 감사할 수 있습니다. 진행 중인 세션에 실시간으로 추적을 첨부하거나, 캡처된 추적을 Agent 루프에 구조화된 페이지별 요약으로 피드백하여 다음 반복이 이전 오류에서 학습할 수 있도록 지원합니다. Browserbase, Stagehand, Playwright, Puppeteer 등 다양한 플랫폼과 호환되며, 추적은 HAR(HTTP Archive), DOM 스냅샷, 콘솔/네트워크 오류, 성능 메트릭스 등을 포함하여 에이전트 디버깅 및 지속적 개선 워크플로우에 필수적입니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/browserbase/skills/tree/main/skills/browser-trace

Installed? Explore more 생산성 & 협업 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

browser-trace은(는) 무엇을 하나요?

모든 브라우저 자동화의 전체 DevTools 프로토콜 추적(CDP 데이터, 스크린샷, DOM 덤프)을 캡처하고, 스트림을 페이지별 검색 가능한 버킷으로 분할합니다. 사용자가 실패한 실행을 디버깅하거나, 네트워크/콘솔/DOM 활동을 감사하거나, 진행 중인 세션에 추적을 첨부하거나, 구조화된 페이지별 요약을 에이전트 루프에 제공하여 다음 반복이 이전에서 학습하도록 할 때 사용합니다.

개요

이 스킬은 브라우저 자동화 세션에서 발생하는 모든 DevTools 프로토콜(CDP) 이벤트, 스크린샷, DOM 덤프를 캡처합니다. 그런 다음 이 데이터 스트림을 각 페이지 방문별로 분할하여 개별적으로 검색하고 분석할 수 있는 버킷을 만듭니다.

사용 사례

  • 실패 디버깅: 자동화 실행이 실패한 경우, 추적을 검토하여 실패 지점을 정확히 찾아낼 수 있습니다.
  • 네트워크 감사: 모든 네트워크 요청, 응답, 및 오류를 검사합니다.
  • 콘솔 활동 모니터링: 모든 console.log, console.error 등을 확인합니다.
  • DOM 상태 검사: 각 지점의 전체 DOM 구조를 검사합니다.
  • 성능 분석: 페이지 로드 성능을 측정하고 병목 현상을 식별합니다.
  • 에이전트 학습: 에이전트 루프가 이전 실행의 실패로부터 학습할 수 있도록 구조화된 요약을 제공합니다.

지원 플랫폼

  • Browserbase
  • Stagehand
  • Playwright
  • Puppeteer
  • 기타 CDP 기반 도구

사용 방법

  1. 브라우저 자동화 세션을 시작합니다.
  2. CDP 세션을 통해 추적을 활성화합니다.
  3. 각 페이지 방문에서 스크린샷을 캡처하고 DOM을 덤프합니다.
  4. 모든 CDP 이벤트를 로그합니다.
  5. 추적을 페이지별 버킷으로 분할합니다.
  6. 버킷을 검색하고 분석하여 문제를 식별합니다.

예시

const trace = await captureTrace(browser, page);
await page.goto('https://example.com');
await trace.screenshot();
await trace.dumpDOM();
const buckets = await trace.bisect();
const page1Trace = buckets['page-1'];
console.log(page1Trace.requests); // 모든 네트워크 요청
console.log(page1Trace.console); // 모든 콘솔 로그
console.log(page1Trace.dom); // DOM 스냅샷

추적 콘텐츠

  • HAR(HTTP Archive): 모든 네트워크 요청 및 응답
  • DOM 스냅샷: 각 지점의 완전한 DOM 구조
  • 콘솔 출력: 모든 console.log, console.error 등
  • 네트워크 오류: 실패한 요청 및 응답
  • 성능 메트릭스: 페이지 로드 시간, 리소스 타이밍
  • 사용자 상호작용: 클릭, 입력, 스크롤 등

모범 사례

  • 중요한 작업 전후에 추적을 캡처합니다.
  • 추적을 정기적으로 버킷으로 분할하여 관리를 용이하게 합니다.
  • 에이전트 루프에 피드백하여 지속적 개선을 가능하게 합니다.
  • 추적을 사용하여 회귀를 감지하고 회귀 테스트를 구축합니다.

Individual skills in this repo

This repo contains 10 individual skills — each has its own dedicated page.

browserbase/autobrowse

Self-improving browser automation via the auto-research loop. Iteratively runs a browsing task, reads the trace, and improves the navigation skill (strategy.md) until it reliably passes. Supports parallel runs across multiple tasks using sub-agents. Use when you want to build or improve browser automation skills for specific website tasks.

browserbase/browser

Automate web browser interactions using natural language via CLI commands. Use when the user asks to browse websites, navigate web pages, extract data from websites, take screenshots, fill forms, click buttons, or interact with web applications. Supports remote Browserbase sessions with Browserbase Identity, Verified browsers, automatic CAPTCHA solving, and residential proxies — ideal for protected websites and JavaScript-heavy pages.

browserbase/browserbase-cli

Use the Browserbase CLI (`browse`) for Browserbase Functions and platform API workflows. Use when the user asks to run `browse`, deploy or invoke functions, manage sessions, projects, contexts, or extensions, fetch a page through the Browserbase Fetch API, search the web through the Browserbase Search API, or scaffold starter templates. Prefer the Browser skill for interactive browsing; use the top-level `browse` driver commands (`browse open`, `browse get`, etc.) only when the user explicitly wants the CLI path.

browserbase/browser-to-api

Turn a website's observable HTTP traffic into a best-effort OpenAPI 3.1 spec by analyzing a `browser-trace` capture. Use when the user wants to discover/extract API endpoints from a browser session, build an OpenAPI doc from network traffic, or document a third-party site's XHR/fetch surface for client integration.

browserbase/cookie-sync

Sync cookies from local Chrome to a Browserbase persistent context so the browse CLI can access authenticated sites. Use when the user wants to browse as themselves, sync cookies, or log into sites via Browserbase.

browserbase/event-prospecting

Event prospecting skill. Takes a conference / event speakers URL, extracts the people, filters their companies against the user's ICP, then deep-researches only the speakers at ICP-fit companies. Outputs a person-first HTML report where each card answers "why should the AE talk to this person?" with all public links and a one-click DM opener. Use when the user wants to: (1) find leads at a specific conference, (2) prep for an event, (3) research event speakers, (4) build a target list from a sponsor/exhibitor page, (5) scrape conference speakers and rank by ICP fit. Triggers: "find leads at {event}", "research speakers at", "prospect this conference", "stripe sessions leads", "ai engineer summit prospects", "event prospecting", "scrape conference speakers", "who should I meet at".

browserbase/fetch

Use this skill when the user wants to retrieve a URL without a full browser session: fetch HTML or JSON from static pages, inspect status codes or headers, follow redirects, or get page source for simple scraping. Prefer it over a browser when JavaScript rendering and page interaction are not needed. Supports proxies and redirect control.

browserbase/functions

Deploy serverless browser automation as cloud functions using Browserbase. Use when the user wants to deploy browser automation to run on a schedule or cron, create a webhook endpoint for browser tasks, run automation in the cloud instead of locally, or asks about Browserbase Functions.

browserbase/safe-browser

Build local constrained-browser agents with a safe_browser tool that owns CDP, enforces a domain allowlist with Fetch interception, and lets a runtime Claude Agent SDK agent complete browsing tasks without raw browser, shell, or CDP access. Use when the user wants an agent to browse or scrape while staying on approved domains, demo blocked off-domain navigation, or generate a safe browser client.

browserbase/ui-test

AI-powered adversarial UI testing via the browse CLI. Analyzes git diffs to test only what changed, or explores the full app to find bugs. Tests functional correctness, accessibility, responsive layout, and UX heuristics. Use when the user asks to test UI changes, QA a pull request, audit accessibility, or run exploratory testing. Supports local browser (localhost) and remote Browserbase (deployed sites).

관련 스킬