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.
npx agentmods add commands/cfrs2005/claude-init/e2egit clone --depth 1 https://github.com/cfrs2005/claude-initWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00033 | $0.02982 |
| Opus 5 | $0.00016 | $0.01491 |
| Sonnet 5 | $0.00007 | $0.00596 |
| Haiku 4.5 | $0.00003 | $0.00298 |
Grade A, and why
e2e scanned grade A with 0 findings 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 2d ago.
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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
Copies of this mod
8 near-identical copies found in the catalogue:
How it starts
The opening of the file, as written. The whole thing — 368 lines — stays where its author put it; the contents beside it link to each section on GitHub.
E2E 指令 (E2E Command)
此指令调用 E2E 运行者 (e2e-runner) 智能体,使用 Playwright 生成、维护和执行端到端测试。
此指令的功能
- 生成测试旅程 - 为用户流程创建 Playwright 测试
- 运行 E2E 测试 - 跨浏览器执行测试
- 捕获工件 - 在失败时捕获截图、视频和追踪
- 上传结果 - 生成 HTML 报告和 JUnit XML
- 识别不稳定测试 - 隔离不稳定的测试 (Flaky Tests)
何时使用
在以下情况使用 /e2e:
- 测试关键用户旅程(登录、交易、支付)
- 验证多步骤流程是否端到端端正常工作
- 测试 UI 交互和导航
- 验证前端和后端之间的集成
- 准备生产部署时
工作原理
E2E 运行者智能体将:
- 分析用户流程 并识别测试场景
- 生成 Playwright 测试 使用页面对象模型 (Page Object Model) 模式
- 运行测试 跨多个浏览器 (Chrome, Firefox, Safari)
- 捕获失败 包含截图、视频和追踪
- 生成报告 包含结果和工件
- 识别不稳定测试 并推荐修复方案
使用示例
User: /e2e Test the market search and view flow
(用户:/e2e 测试市场搜索和查看流程)
Agent (e2e-runner):
# E2E Test Generation: Market Search and View Flow
(E2E 测试生成:市场搜索和查看流程)
## Test Scenario Identified (识别的测试场景)
**User Journey (用户旅程):** Market Search (市场搜索) → View Results (查看结果) → Click Market (点击市场) → View Details (查看详情)
**Test Coverage (测试覆盖):**
1. Navigate to markets page (导航到市场页面)
2. Perform semantic search (执行语义搜索)
3. Verify search results (验证搜索结果)
4. Click on first result (点击第一个结果)
5. Verify market details page loads (验证市场详情页加载)
6. Verify chart renders (验证图表渲染)
## Generated Test Code (生成的测试代码)
```typescript
// tests/e2e/markets/search-and-view.spec.ts
import { test, expect } from '@playwright/test'
import { MarketsPage } from '../../pages/MarketsPage'
import { MarketDetailsPage } from '../../pages/MarketDetailsPage'
test.describe('Market Search and View Flow', () => {
test('user can search markets and view details', async ({ page }) => {
// 1. Navigate to markets page
const marketsPage = new MarketsPage(page)
await marketsPage.goto()
// Verify page loaded
await expect(page).toHaveTitle(/Markets/)
await expect(page.locator('h1')).toContainText('Markets')
// 2. Perform semantic search
await marketsPage.searchMarkets('election')
// Wait for API response
await page.waitForResponse(resp =>
resp.url().includes('/api/markets/search') && resp.status() === 200
)
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.
- 2d ago First seen · 368 lines · 33 tokens per session scan A fa036e0d25bc
e2e is a command published in the GitHub repository cfrs2005/claude-init (1,364 stars, last pushed 5mo ago), licensed MIT. It adds 33 tokens to every session and 2,982 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
gen-browsertests
Generate browser tests for a diff from trunk.
test-locally
Build everything and bring up a local Docker deployment with all components so you can test a connector in the UI.
playwright
Write or update Playwright E2E tests following project conventions.
artifacts
Command "artifacts" from openclaw/crabbox, covering artifacts, collect, video, gif and template.
qawolf-cli
Manage QA Wolf through the qawolf CLI. Use when asked to create, update, or list coverage requests, bug reports, or maintenance reports; start a run of flows or tags on the QA Wolf platform or read a run's results; list, set, or delete environment variables; manage environments, flows, or tags; request automation of…
run-tests
Run XCUITests and parse results using the test-runner agent.