Skip to main content

e2e-sweep:为多个项目补齐并验证端到端测试

协调 tester-army/e2e 为选定的个人项目建立端到端测试:每个项目一个编码子 Agent,每轮另设验证者。流程盘点用户操作、补测试,并修复发现的错误。

来源信息

仓库
rav4nn/skills
最近来源活动
2026年10月3日 06:49
检测到的 SKILL.md 语言
英语
星标
0
分支
0

必要前提

来源使用 Claude Code 子 Agent 和独立 worktree。安装、运行命令从 tester-army/e2e 的 README 读取;验证阶段还会使用 Playwright 等浏览器工具操作正在运行的应用。

操作说明

源文档给出的调用形式是:

/e2e-sweep [project ...]

指定要检查的项目。主 Agent 为各项目准备任务说明,分派实现工作,再把测试或浏览器操作中的失败交回编码 Agent,进入下一轮验证。

限制

不传项目参数时,会检查当前文件夹下每个 Git 仓库子目录。连续三轮验证失败后停止并重新检查设计。最终给出结果表;源文档要求不执行 push,也不创建 PR。

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
e2e-sweep
description
Add end-to-end tests to personal projects with tester-army/e2e, verify every flow, and fix the bugs found. One coding subagent per project, one verifier subagent per loop. Use when the user says "/e2e-sweep", "/e2e-sweep <project>", "add e2e tests to my projects", "verify all flows and write tests", or "run tester-army on my projects".
argument-hint
[project ...]
# e2e-sweep Install https://github.com/tester-army/e2e in each project. Verify every user flow. Write a test for each flow. Fix each bug found on the way. Scope: the projects named in `$ARGUMENTS`. If empty, use every git repo in the current folder (one subfolder per repo). ## Models | Job | Subagent call | | --- | --- | | Per-project work: install, flow list, tests, bug fixes | Strongest coding model, `isolation: "worktree"` | | Verification loop: run the tests, drive the app, report | Default (cheaper) model | The orchestrator is this session. It never edits project code. ## Steps 1. Read the README of `tester-army/e2e` once. Copy the install and run commands into the brief. Do not guess them. 2. List the projects in scope. For each one, read its README and docs for known flows and decisions. 3. Write one `brief.md` per project in `~/.claude/handoffs/<project>/<date>-e2e/`. It must state: - the install and run commands from step 1, - the secrets rule: load secrets from the environment or a secrets manager, never print a value, - the goal: every flow listed, one test per flow, every bug fixed with a test that fails before the fix, - the report: flows covered, bugs fixed, flows not testable and why. 4. Dispatch all coding agents in ONE message, in parallel, one per project. Prompt: "You are a coding agent. Your task is fully specified in `<dir>/brief.md`. Read it and implement everything in it." Use `isolation: "worktree"` and `run_in_background: true`. - If a brief has more than 5 flows, cut it into chunks of 3 to 5 flows. Run the chunks in sequence, one fresh agent each. 5. When a coding agent finishes, spawn one verifier for that project. Prompt: run the full e2e suite in the agent's worktree, then drive each flow in the running app with a browser tool such as Playwright. Report each flow as pass or fail with evidence. The verifier reports. It does not fix. 6. If the verifier reports a failure, send the failure list to the coding agent with `SendMessage`. Then run step 5 again. Stop after 3 loops. After 3 failed loops, stop and question the design. 7. When a project passes, diff the base branch against the agent's branch (three dots) and integrate it. Then remove the worktree and the branch. 8. Record each decision worth keeping in the project's docs. ## Report End with an outcome line and one table: project, flows, tests added, bugs fixed, loops used, status. Then stop. Do not push and do not open a PR. The user decides when to ship.
在 GitHub 查看