技能 编程开发 浏览器会话轨迹录制

浏览器会话轨迹录制

v20261020
browser-record
开启带命名的可追踪浏览器会话,并将其绑定到 RVF 认知容器,把每一次操作记录为 ruvector 轨迹步骤。它是浏览器抽取、表单填写与测试等技能的基础原语,支持会话回放与后续分析。
获取技能
155 次下载
概览

Browser Record

Primitive on which every other browser skill composes. Opens a named browser session, allocates an RVF container for it, and binds every action to a ruvector trajectory step. You do not run a browser session in this plugin without invoking this skill (or one that wraps it).

When to use

  • Starting any browser interaction that is not a one-off throwaway probe.
  • Exploring a site interactively while preserving the trace for later replay or analysis.
  • Establishing a reusable session that downstream skills (browser-extract, browser-form-fill, browser-test) will compose.

Steps

  1. Allocate session id and RVF container:

```bash
SID="$(date +%Y%m%d-%H%M%S)-${TASK_SLUG:-record}"
npx -y ruvector@0.2.27 rvf create "$SID.rvf" --dimension 384
npx -y ruvector@0.2.27 hooks trajectory-begin --session-id "$SID" --task "$1"
```

  1. Open the browser via mcp__plugin_ruflo-core_ruflo__browser_open with the URL.
  2. Snapshot the initial state: browser_snapshot for the accessibility tree, browser_screenshot for a baseline image.
  3. For each interaction, record a trajectory step before and after:

```bash
npx -y ruvector@0.2.27 hooks trajectory-step \
--session-id "$SID" --action click --args '{"selector":"#login"}' --result ok
```

  1. End cleanly:

```bash
npx -y ruvector@0.2.27 hooks trajectory-end --session-id "$SID" --verdict pass
npx -y ruvector@0.2.27 rvf compact "$SID.rvf"
```

  1. Index in AgentDB under browser-sessions:

```bash
npx -y @claude-flow/cli@latest memory store --namespace browser-sessions \
--key "$SID" --value "{rvf_id:$SID,host:...,task:...,verdict:pass}"
```

Caveats

  • Until the browser_session_record MCP tool ships (ADR-0001 §7), this skill drives the lifecycle from inside its own bash steps. Do not call mcp__plugin_ruflo-core_ruflo__browser_open directly without these wrappers.
  • The session id format is fixed: <YYYYMMDD-HHMMSS>-<task-slug>. Downstream /ruflo-browser ls parses this.
  • --with-dom is expensive (full HTML dump per nav). Off by default.
  • AIDefence gates apply at extraction time, not at navigation time. browser-record is a primitive; redaction is the responsibility of skills that read content (browser-extract, browser-test).
信息
分类 编程开发
名称 browser-record
版本 v20261020
大小 2.87KB
更新时间 2026-10-21
语言