everything-claude-code-zh is a Chinese translation of a collection of configurations for Claude Code and other AI coding agents. It provides agents, skills, hooks, commands, rules, and MCP configurations intended to support development workflows such as memory persistence, security scanning, evaluation, and research-first work. The catalogue includes commands, skills, agents, instructions, and a plugin from this configuration set.
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/xu-xiang/everything-claude-code-zh/e2egit clone --depth 1 https://github.com/xu-xiang/everything-claude-code-zhWrote 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.
[](https://agentmods.dev/commands/xu-xiang/everything-claude-code-zh/e2e)<a href="https://agentmods.dev/commands/xu-xiang/everything-claude-code-zh/e2e"><img src="https://agentmods.dev/badge/commands/xu-xiang/everything-claude-code-zh/e2e.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00018 | $0.00776 |
| Opus 5 | $0.00009 | $0.00388 |
| Sonnet 5 | $0.00004 | $0.00155 |
| Haiku 4.5 | $0.00002 | $0.00078 |
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 5d 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.
What it actually says
E2E 命令 (E2E Command)
使用 Playwright 生成并运行端到端(End-to-End, E2E)测试:$ARGUMENTS
你的任务 (Your Task)
- 分析用户流 (Analyze user flow) 以进行测试
- 使用 Playwright 创建测试旅程 (Create test journey)
- 运行测试 (Run tests) 并捕获产物 (Artifacts)
- 报告结果 (Report results),包括截图/视频
测试结构 (Test Structure)
import { test, expect } from '@playwright/test'
test.describe('功能:[名称]', () => {
test.beforeEach(async ({ page }) => {
// 设置:导航、身份验证、准备状态
})
test('应该 [预期行为]', async ({ page }) => {
// 安排 (Arrange):设置测试数据
// 执行 (Act):执行用户操作
await page.click('[data-testid="button"]')
await page.fill('[data-testid="input"]', 'value')
// 断言 (Assert):验证结果
await expect(page.locator('[data-testid="result"]')).toBeVisible()
})
test.afterEach(async ({ page }, testInfo) => {
// 失败时捕获截图
if (testInfo.status !== 'passed') {
await page.screenshot({ path: `test-results/${testInfo.title}.png` })
}
})
})
最佳实践 (Best Practices)
选择器 (Selectors)
- 优先使用
data-testid属性 - 避免使用 CSS 类(它们经常变动)
- 使用语义化选择器(角色 roles、标签 labels)
等待 (Waits)
- 使用 Playwright 的自动等待 (Auto-waiting)
- 避免使用
page.waitForTimeout() - 使用
expect().toBeVisible()进行断言
测试隔离 (Test Isolation)
- 每个测试都应保持独立
- 测试完成后清理测试数据
- 不要依赖测试执行顺序
需捕获的产物 (Artifacts to Capture)
- 失败时的截图
- 用于调试的视频
- 用于详细分析的追踪文件 (Trace files)
- 相关的网络日志 (Network logs)
测试类别 (Test Categories)
-
关键用户流 (Critical User Flows)
- 身份验证(登录、注销、注册)
- 核心功能的主路径 (Happy paths)
- 支付/结账流程
-
边界情况 (Edge Cases)
- 网络故障
- 无效输入
- 会话过期
-
跨浏览器 (Cross-Browser)
- Chrome, Firefox, Safari
- 移动端视口 (Mobile viewports)
报告格式 (Report Format)
E2E 测试结果
================
✅ 通过: X
❌ 失败: Y
⏭️ 跳过: Z
失败的测试:
- 测试名称: 错误消息
截图: path/to/screenshot.png
视频: path/to/video.webm
提示 (TIP):运行调试时可使用 --headed 参数:npx playwright test --headed
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.
- 5d ago First seen · 106 lines · 18 tokens per session scan A 96b075eaf74a
e2e is a command published in the GitHub repository xu-xiang/everything-claude-code-zh (1,929 stars, last pushed 6mo ago), licensed MIT. It adds 18 tokens to every session and 776 once invoked, about $0.0001 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
e2e
Generate and run E2E tests with Playwright.
verify
Grade work that already exists and decide whether it can merge. Runs the project's current unit, integration, and E2E suites plus security scanning and type checking, scores every dimension 0-10, and returns a merge verdict with a VERIFIED-vs-CLAIMED evidence manifest. Writes no test files and edits no source. Use…
expect
Diff-aware AI browser testing — reads the git diff, maps changes to affected pages via the route map, generates a targeted test plan, and executes it via agent-browser (Rust daemon + CDP, ARIA-tree-first) with pass/fail reporting. Use when testing UI changes, verifying PRs before merge, or running regression checks on…
cover
Generate tests that do not exist yet. Analyzes coverage gaps, then writes and runs new test files across three tiers (unit, integration via testcontainers, Playwright E2E), one test-generator agent per tier, healing failures for up to 3 iterations. Use when code has no tests or when raising coverage after…
fire-verify-uat
Conversational User Acceptance Testing with automatic parallel diagnosis on failures.
explore-release
Model tier: opus — Opus session for the orchestrator. Charter agents run as parallel general-purpose background Tasks; tier them by cost (sonnet is usually sufficient for a single charter's execution).