e2e-verify

e2e-verify is a skill for Claude Code, Codex from bifrost-proxy/bifrost. It costs 84 tokens per session (1,277 once invoked), scanned A, original, MIT.

A testing skill for Bifrost's administration interface and API. End-to-end testing checks complete user flows in a browser, while API testing checks the application's interfaces directly.

In plain words
What is it for?
Use it to test pages such as Traffic, Rules, Values, Scripts, and Settings, verify the /_bifrost/api interfaces, and investigate failures using snapshots and screenshots.
Why use it?
It provides existing scenarios and scripts for checking whether management pages and endpoints still work after changes.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/bifrost-proxy/bifrost/e2e-verify
Any agent
npx skills add bifrost-proxy/bifrost --skill e2e-verify
Clone the repo
git clone --depth 1 https://github.com/bifrost-proxy/bifrost

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for e2e-verify

README.md
[![agentmods](https://agentmods.dev/badge/skills/bifrost-proxy/bifrost/e2e-verify.svg)](https://agentmods.dev/skills/bifrost-proxy/bifrost/e2e-verify)
Your own site
<a href="https://agentmods.dev/skills/bifrost-proxy/bifrost/e2e-verify"><img src="https://agentmods.dev/badge/skills/bifrost-proxy/bifrost/e2e-verify.svg" alt="Measured on agentmods" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,277 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00084 $0.01277
Opus 5 $0.00042 $0.00639
Sonnet 5 $0.00017 $0.00255
Haiku 4.5 $0.00008 $0.00128

Measured 4d ago against content hash 02afdfdaff34, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

e2e-verify scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

The scan reads SKILL.md. This mod also ships 29 executable files (scripts/api-test.js, scripts/browser-test.js, scripts/examples/example-snapshot.js, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- `curl -sS http://127.0.0.1:9910/_bifrost/api/proxy/address`
.agents/skills/e2e-verify/SKILL.md · 124 lines

How it starts

The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.

E2E Verify

该技能用于验证 web/ 管理端和 /_bifrost/api 接口,优先使用已存在的场景与脚本,不要重新发明一套测试入口。

何时调用

  • 需要验证 Bifrost 管理端页面流程
  • 需要回归 TrafficRulesValuesScriptsSettings 等核心页面
  • 需要验证管理端 API 是否可用
  • 需要基于页面快照定位元素或调试场景失败

前置条件

  • 场景测试默认使用独立代理进程,不再复用共享 9900
  • browser-test.js scenario 会自动:
    • 分配独立代理端口
    • 创建独立 BIFROST_DATA_DIR
    • 在结束后停止该代理进程
  • 前端开发服务器用于手工调试时再单独启动:pnpm dev
  • 默认手工调试 UI 入口:http://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

目录

  • 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-sse
  • stream-ws
  • traffic-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

API 命令

node api-test.js --api /_bifrost/api/system/overview -p 9900 -v
node api-test.js --api /_bifrost/api/rules -p 9900

Read the full file on GitHub · 124 lines

Files

What ships with it

43 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 124 lines · 84 tokens per session scan A 02afdfdaff34

Subscribe to this mod's changes

e2e-verify is a skill published in the GitHub repository bifrost-proxy/bifrost (124 stars, last pushed 5d ago), licensed MIT. It adds 84 tokens to every session and 1,277 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.