e2e

e2e is a command for Claude Code from zhukunpenglinyutong/ai-max. It costs 34 tokens per session (2,766 once invoked), scanned A, a copy of e2e, MIT.

A command that uses Playwright to create and run end-to-end tests, which check complete user journeys through an application.

In plain words
What is it for?
Use it to generate tests, run them in Chrome, Firefox, and Safari, capture failure screenshots, videos, and traces, and produce HTML or JUnit reports.
Why use it?
It helps verify that connected steps such as searching, navigation, login, payments, or other UI flows work together across browsers.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: reads .claude/ paths.

Good fit Use it to generate tests, run them in Chrome, Firefox, and Safari, capture failure screenshots, videos, and traces, and produce HTML or JUnit reports.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/zhukunpenglinyutong/ai-max/e2e
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.

Clone the repo
git clone --depth 1 https://github.com/zhukunpenglinyutong/ai-max

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/zhukunpenglinyutong/ai-max/e2e/github.svg)](https://agentmods.dev/commands/zhukunpenglinyutong/ai-max/e2e)
Your own site
<a href="https://agentmods.dev/commands/zhukunpenglinyutong/ai-max/e2e"><img src="https://agentmods.dev/badge/commands/zhukunpenglinyutong/ai-max/e2e/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for e2e

Your own site · 80×15
<a href="https://agentmods.dev/commands/zhukunpenglinyutong/ai-max/e2e"><img src="https://agentmods.dev/badge/commands/zhukunpenglinyutong/ai-max/e2e.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,766 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 89% copy Near-identical to another mod 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.1 $0.00034 $0.02766
Opus 5 $0.00017 $0.01383
Sonnet 5 $0.00007 $0.00553
Haiku 4.5 $0.00003 $0.00277

Measured 10d ago against content hash 6487455bfc2d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

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 10d 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.

Origin

This is a copy

89% identical to e2e — 226 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

commands/e2e.md · 364 lines

How it starts

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

E2E 命令

此命令调用 e2e-runner 代理来使用 Playwright 生成、维护和执行端到端测试。

此命令的功能

  1. 生成测试流程 - 为用户操作流程创建 Playwright 测试
  2. 运行 E2E 测试 - 跨浏览器执行测试
  3. 捕获测试产物 - 失败时捕获截图、视频、追踪记录
  4. 上传结果 - HTML 报告和 JUnit XML
  5. 识别不稳定测试 - 隔离不稳定的测试

何时使用

在以下情况使用 /aimax:e2e

  • 测试关键用户流程(登录、交易、支付)
  • 验证多步骤流程的端到端工作
  • 测试 UI 交互和导航
  • 验证前后端之间的集成
  • 准备生产环境部署

工作原理

e2e-runner 代理将:

  1. 分析用户流程并识别测试场景
  2. 生成 Playwright 测试,使用页面对象模型(Page Object Model)模式
  3. 跨多个浏览器运行测试(Chrome、Firefox、Safari)
  4. 捕获失败,包括截图、视频和追踪记录
  5. 生成报告,包含结果和测试产物
  6. 识别不稳定测试并推荐修复方案

使用示例

用户:/aimax:e2e 测试市场搜索和查看流程

代理(e2e-runner):
# E2E 测试生成:市场搜索和查看流程

## 已识别的测试场景

**用户流程:** 市场搜索 → 查看结果 → 点击市场 → 查看详情

**测试覆盖:**
1. 导航到市场页面
2. 执行语义搜索
3. 验证搜索结果
4. 点击第一个结果
5. 验证市场详情页面加载
6. 验证图表渲染

## 生成的测试代码

```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
    )

    // 3. Verify search results
    const marketCards = marketsPage.marketCards
    await expect(marketCards.first()).toBeVisible()
    const resultCount = await marketCards.count()
    expect(resultCount).toBeGreaterThan(0)

    // Take screenshot of search results
    await page.screenshot({ path: 'artifacts/search-results.png' })

    // 4. Click on first result
    const firstMarketTitle = await marketCards.first().textContent()
    await marketCards.first().click()

Read the full file on GitHub · 364 lines

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. 10d ago First seen · 364 lines · 34 tokens per session scan A 6487455bfc2d

Subscribe to this mod's changes

e2e is a command published in the GitHub repository zhukunpenglinyutong/ai-max (335 stars, last pushed 7mo ago), licensed MIT. It adds 34 tokens to every session and 2,766 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 89% identical to e2e, differing in 226 lines, and is treated as a copy.