ワンクリックで
e2e-verify
面向 Bifrost 管理端的端到端 UI 与 API 验证工具。 适用于浏览器测试、场景回归、管理端接口验证与页面快照排查。 Use when: 端到端验证、功能验证、E2E 测试、UI 测试、浏览器测试、API 测试、接口验证
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
面向 Bifrost 管理端的端到端 UI 与 API 验证工具。 适用于浏览器测试、场景回归、管理端接口验证与页面快照排查。 Use when: 端到端验证、功能验证、E2E 测试、UI 测试、浏览器测试、API 测试、接口验证
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
使用 bifrost 命令行工具管理代理生命周期、规则、Group 规则、证书、脚本、系统代理、运行时配置与流量查询(含 JSONPath/header 等值/时间窗高级过滤、search --include 直接挂 body/headers、traffic 批量 get、auth-status JWT/Cookie 诊断、export curl/fetch/HAR、replay + JSON Patch、capture wait 等下一条请求、status --format json),以及远程调用(remote shell 执行、授权管理、远程流量排查)。当用户提到以下任意场景时触发:1) 启动/停止/检查 bifrost 代理;2) 配置 TLS 拦截(域名白名单、应用白名单);3) 调试或管理规则/Group 规则/脚本;4) 查看流量记录、搜索请求;5) 通过一个少于 6 位的数字 ID 获取请求详情(如「获取 57544 的详情」「获取 47544 请求的内容」「查看 12345」等);6) 修改 values/config/CA 证书/系统代理;7) 远程调用:连接/断开远端 Bifrost、远程执行命令(shell exec)、管理 Shell Access 策略与 Profile、管理远程授权(grant);8) 诊断 JWT/Cookie 过期/重放请求/导出 curl/fetch/HAR/等待下一条匹配请求/批量取多条 traffic。常见触发表述:'使用 bifrost 获取 xxxxx 的详情''获取 xxxxx 的请求内容''查看 xxxxx 的内容''bifrost traffic get xxxxx''导出 xxxxx 为 curl''重放 xxxxx 这条请求''看下 xxxxx 的 JWT 还有效吗''等下一条 POST xxxxx 的请求''远程执行命令''管理远程授权' 等、远程文件操作(file.read/list/stat/glob/search/hash/upload/download)。
创建和执行 Bifrost 代理的端到端测试;在添加新功能或修复 bug 后用于验证。必须优先于 rust-project-validate 技能执行。
Use when changing Bifrost WebUI, desktop shell UI, public site, docs visual style, interaction patterns, layout, copy density, colors, typography, spacing, or component styling. Reads DESIGN.md as the product design contract and validates it with @google/design.md.
Open a target website, wait for user login, verify login with required cookies plus an HTTP probe, and save cookies into .env for later automation. Use this when a site needs controlled browser login, cookie persistence, and automatic login-state checks.
Inspect Codex async task progress from the correct data directory. Use when the user asks to check Codex status, inspect async task progress, summarize task state, or determine whether local Codex workers are still running. Always detect the active Codex data dir first: prefer CODEX_HOME when set, otherwise fall back to $HOME/.codex; only use repo .codex-tasks when the user explicitly targets it.
用 Personal Access Token 通过 GitHub REST API 分析 Actions CI 的失败 run/job/step、拉取日志、轮询运行状态、做 PR code review,并驱动 fix → push → watch → iterate 的闭环。Token 只从 GITHUB_TOKEN 环境变量读取,不落盘、不回显。适合在 bifrost remote / CI 调度器 / 无头环境里跑。仓库锁定在 AGENTS.md 或调用处通过 GH_REPO 显式指定。
| name | e2e-verify |
| description | 面向 Bifrost 管理端的端到端 UI 与 API 验证工具。 适用于浏览器测试、场景回归、管理端接口验证与页面快照排查。 Use when: 端到端验证、功能验证、E2E 测试、UI 测试、浏览器测试、API 测试、接口验证 |
该技能用于验证 web/ 管理端和 /_bifrost/api 接口,优先使用已存在的场景与脚本,不要重新发明一套测试入口。
Traffic、Rules、Values、Scripts、Settings 等核心页面9900browser-test.js scenario 会自动:
BIFROST_DATA_DIRpnpm devhttp://localhost:3000/_bifrost/--no-system-proxy:除非测试目标明确涉及系统代理功能,否则所有启动命令必须携带 --no-system-proxy,避免修改系统代理配置导致网络中断。CARGO_TARGET_DIR=./.bifrost-ui-target cargo build --bin bifrost
BIFROST_DATA_DIR=./.bifrost-e2e-ui ./.bifrost-ui-target/debug/bifrost start -p 9910 --unsafe-ssl --no-system-proxy
启动后必须确认:
lsof -nP -iTCP:9910 -sTCP:LISTENcurl -sS http://127.0.0.1:9910/_bifrost/api/proxy/address路由定义查看 web/src/App.tsx
API 说明查看 crates/bifrost-admin/ADMIN_API.md
scripts/browser-test.js:UI 测试主入口scripts/api-test.js:API 测试主入口scripts/push-debug.js:最小化 push / websocket 排查工具scripts/scenarios/:内置场景logs/:快照和调试输出screenshots/:截图输出cd .trae/skills/e2e-verify/scripts
pnpm install
先查看可用场景:
node browser-test.js scenario --list
当前内置场景:
stream-ssestream-wstraffic-delete运行场景:
node browser-test.js scenario stream-sse
node browser-test.js scenario stream-ws --headless --verbose
node browser-test.js scenario traffic-delete --actions
--shared-proxy--base-url <url>node browser-test.js launch http://localhost:3000/_bifrost/ -i
node browser-test.js watch http://localhost:3000/_bifrost/
node browser-test.js sessions
node browser-test.js tools snapshot
node api-test.js --api /_bifrost/api/system/overview -p 9900 -v
node api-test.js --api /_bifrost/api/rules -p 9900
node push-debug.js -p 9900
node push-debug.js -p 9900 --duration 8000 --headful
node push-debug.js -p 9900 --seed http
node push-debug.js -p 9900 --seed connect --duration 8000
node push-debug.js -p 9900 --page /_bifrost/rules --no-expect-traffic-subscription
launch -i 或 watch 查看快照api-test.js 单独确认scripts/scenarios/ 下补 JSON/api/push websocket frame,确认是“后端没推”还是“页面没订阅/没消费”--shared-proxypush-debug.js,先拿到 websocket 和 API 证据,再决定是否进入完整 Playwright 用例browser-test.js help 与本技能文档必须保持同步。若后续新增 CLI 参数或场景 schema,必须同时更新这两个位置。