跳到正文
cccskills
免费在 GitHub 公开

browser-agent

Autonomous human-like browser control and professional QA/QC testing. Powered by agent-browser (Rust native CDP, zero Playwright) with ISTQB test matrix generation, automated testcase execution, console/network error tracing, and defect reporting.

中文简介正在准备中。当前显示原文说明。

集成工具Playwright
查看安装方法

包含的文件(6)

  • SKILL.md6.7 KB
  • scripts/init-qa.sh4.1 KB
  • templates/bug-report-template.md1.9 KB
  • templates/test-matrix-api-template.md3.1 KB
  • templates/test-matrix-fullstack-template.md2.8 KB
  • templates/test-matrix-template.md2.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

/supergraph:browser-agent

Autonomous human-like browser control and professional QA/QC testcase execution without Playwright. Powered by native Rust agent-browser (Chrome DevTools Protocol direct, zero bot-detection footprint).

Announce: "🌐 /supergraph:browser-agent — professional QA testing with real user emulation (Rust CDP)..."


Why Agent-Browser over Playwright?

  • Zero Bot Detection Footprint: Native Rust client communicating directly via CDP. Removes navigator.webdriver and disables Blink automation flags.
  • Human Input Mode (--input-mode human): Natural Bezier mouse curves, randomized typing cadence, natural dwell times.
  • Token Efficiency: Compact Accessibility Tree snapshots with @ref identifiers (~100-300 tokens vs 20,000 HTML tokens).
  • Session & Profile Reuse: Effortlessly attaches to your authenticated Chrome profile or --auto-connect to running Chrome on port 9222.

Available Tools / Commands

Can be invoked via MCP (mcp__supergraph-browser__*) or CLI (agent-browser):

ActionMCP ToolCLI CommandPurpose
Open URLagent_browser_openagent-browser open <url>Navigate to page
Read Stateagent_browser_snapshotagent-browser snapshot -iAccessibility tree with @ref
Find Targetagent_browser_findagent-browser find role button clickLocate elements semantically
Clickagent_browser_clickagent-browser click @refClick element by ref
Type/Fillagent_browser_fillagent-browser fill @ref <text>Fill input with human keystrokes
Key Pressagent_browser_pressagent-browser press EnterSend keyboard event
Waitagent_browser_wait_for_textagent-browser wait <ms>Wait for condition or pause
Screenshotagent_browser_screenshotagent-browser screenshot <path>Capture visual evidence
Console Logsagent_browser_evalagent-browser consoleView browser console errors
Page Errorsagent_browser_evalagent-browser errorsCatch unhandled exceptions
Network Requestsagent_browser_evalagent-browser network requestsInspect failed API calls
Closeagent_browser_closeagent-browser closeClose session

The 4-Step Human Interaction Loop

[1. Open] ───────> [2. Snapshot @refs] ───> [3. Human Action] ───> [4. Verify & Settle]
open <url>          snapshot -i               click @e2                 wait_for_text
                    find                      fill @e3 "text"           snapshot

1. Observe Before Acting (Never Guess Selectors)

Call snapshot to get verified element references (@e1, @e2, ...).

2. Bypassing Strict Bot Walls (Cloudflare, Akamai, CAPTCHA)

Connect directly to your active browser using either method:

Method A: Supergraph Chrome Relay Extension (Recommended - Zero restart, 100% human profile)

# 1. Start relay server
node plugins/supergraph/extensions/chrome-relay/relay-server.js
# 2. Attach agent
export SG_BROWSER_CDP="http://127.0.0.1:9333"

Method B: Chrome Remote Debugging Port

# Attach to existing Chrome
export SG_BROWSER_CDP="http://127.0.0.1:9222"
# Or auto-discover running Chrome instance
export SG_BROWSER_AUTO_CONNECT="true"

Uses your real user session, cookies, extensions, canvas fingerprints, and hardware profile.


Professional QA/Tester Workflow (ISTQB Standard)

When tasked with testing a feature or application, the agent acts as a Senior QA Automation Engineer:

Phase 0: Graph Context & Impact Prioritization

Before running test automation, query graph context to prioritize coverage on changed paths: Use CBM_PROJECT: call detect_changes, search_graph for changed routes/pages, then trace_path for inbound/outbound call and data-flow paths. Run validated test-gaps recipes. If results are unavailable, fall back to filesystem inspection.

Phase 1: Test Matrix Generation

Generate a comprehensive test matrix covering 5 dimensions and save to docs/qa/test-matrix-<feature>.md (scaffold quickly with scripts/init-qa.sh matrix <feature> [ui|api|fullstack] [target-url] from templates/):

  1. Happy Path: Expected valid user flow / 200 OK API contract from entrance to success.
  2. Negative Path: Missing required fields, invalid credentials, malformed emails/JSON, schema violations.
  3. Boundary Value Analysis: 0 chars, 1 char, limit max chars, SQLi/XSS probe strings (<script>, ' OR 1=1).
  4. Network & Fault Resilience: Simulating 500 API errors, timeout, offline state, DB rollback verification.
  5. RBAC & Authorization: Guest/User attempting to access restricted routes or perform unauthorized operations (401/403/IDOR).

Phase 2: Autonomous Execution & Verification

For each testcase in the matrix:

  1. Navigate to target URL (agent-browser open <url>).
  2. Input test data with human cadence (agent-browser fill @ref <data>).
  3. Trigger action (agent-browser click @ref).
  4. Assert outcome:
    • Check URL transition: agent-browser get url
    • Check UI feedback: agent-browser is visible <selector> or agent-browser get text @ref
    • Capture evidence on failure: agent-browser screenshot docs/qa/evidence/TC-xxx.png

Phase 3: Console & Network Diagnostics

Assert that no silent runtime bugs were introduced:

  • agent-browser console --clear → Detect React hydration warnings, runtime console.error.
  • agent-browser errors → Unhandled Promise rejections.
  • agent-browser network requests → Identify failed HTTP 4xx/500 endpoints.

Phase 4: Structured Defect Reporting

If defects are found, generate a formal Bug Report at docs/qa/bug-report-<timestamp>.md (scaffold quickly with scripts/init-qa.sh bug <feature> <defect-id> <defect-title> from templates/bug-report-template.md):

  • Defect ID & Title: e.g., BUG-AUTH-001: Missing password validation triggers unhandled 500 error.
  • Severity: Blocker / Critical / Major / Minor.
  • Preconditions & Environment: Browser profile, viewport, user state.
  • Steps to Reproduce: Exact command sequence or clicks.
  • Expected vs Actual Result: Clear contrast.
  • Evidence: Attached screenshot link + Console/Network error dump.

CLI Quick Examples (in bash)

agent-browser open https://example.com
agent-browser snapshot -i
agent-browser click @e1
agent-browser fill @e2 "user@example.com"
agent-browser screenshot docs/qa/evidence/verify.png
agent-browser close

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

analyze

免费

Risk analysis and approach selection before planning. Use when requirements are ambiguous, approaches vary, or work touches hub/bridge nodes. Skip for typo fixes.

中文简介正在准备中。当前显示原文说明。

datit309/supergraph212026年10月18日 更新

Proactive architecture review — explore codebase structure, generate a self-contained HTML report with Mermaid diagrams and candidate improvements, then grill the findings. Use when planning a large refactor, onboarding to an unfamiliar codebase, or before a major architectural change.

中文简介正在准备中。当前显示原文说明。

datit309/supergraph212026年10月18日 更新

caveman

免费

Persistent token-compression mode (~75% reduction) — now always-on by default. Strips filler while keeping code exact.

中文简介正在准备中。当前显示原文说明。

datit309/supergraph212026年10月18日 更新

Database migration best practices for schema changes, data migrations, rollbacks, and zero-downtime deployments across PostgreSQL, MySQL, and common ORMs (Prisma, Drizzle, Kysely, Django, TypeORM, golang-migrate).

中文简介正在准备中。当前显示原文说明。

datit309/supergraph212026年10月18日 更新

Anti-slop frontend skill for landing pages, portfolios, and redesigns. The agent reads the brief, infers the right design direction, and ships interfaces that do not look templated. Real design systems when applicable, audit-first on redesigns, strict pre-flight check.

中文简介正在准备中。当前显示原文说明。

datit309/supergraph212026年10月18日 更新

diagnose

免费

Structured 6-phase debugging. Build feedback loop first, reproduce deterministically, hypothesize with ranked falsifiable theories, instrument one variable at a time, fix with regression test, cleanup. Use when a bug exists, tests fail unexpectedly, or behavior is wrong and cause is unknown.

中文简介正在准备中。当前显示原文说明。

datit309/supergraph212026年10月18日 更新

查看 datit309 的全部技能

报告此技能的问题