mas-e2e
БесплатноБез исполняемых скриптовНе проверенDesign, add, review, or run AUTO-MAS end-to-end flows that exercise the public MAS scheduling path, including isolated browser checks and author-local real…
от AUTO-MAS-Project★ 821 звезда на GitHubОб этом скилле
MAS E2E
Use this skill when a change needs an end-to-end proof of a user path, a PR-specific one-off flow, or a local real run through MAS scheduling.
Entry point
- Use
frontend/e2e/run.mjsas the only per-run Playwright launcher andfrontend/e2e/real-batch.mjsas the only multi-adapter launcher; both go throughrun.mjsper target.run.mjscreates the isolated data root, starts the backend and Vite, selects the requested grep, and removes the temporary root after the run. - Use
yarn e2e:checkbefore adding or changing a flow. Run browser flows fromfrontend/; useyarn e2e --grep '<regex>'for a selected tag andyarn e2e:real --grep '<regex>'for an author-local real run. - E2E is a local developer convenience tool, not a CI gate. Select only the flows relevant to the changed user path and run them before or during PR review.
Command matrix
Run from frontend/; the only launchers are run.mjs and real-batch.mjs. Never call playwright test directly.
| Need | Command |
|---|---|
| Harness contract + E2E typecheck | yarn e2e:check |
| All non-real flows | yarn e2e |
| Only the flows for the changed path | yarn e2e --grep '@queue|@scheduler' |
| Watch mode while editing | yarn e2e:ui |
| Keep the run root for debugging | $env:AUTO_MAS_E2E_KEEP_ROOT=1; yarn e2e |
| HTML report | yarn e2e:report |
| One real script/account/game run | yarn e2e:real |
| Every enabled adapter, sequentially | yarn e2e:real:all --list / yarn e2e:real:all / yarn e2e:real:all --only MaaConfig,SrcConfig |
Tags: @smoke @init @queue @scheduler @settings @history @recovery, plus @real for author-local runs. Real commands in a worktree need the developer's main checkout as the seed source (AUTO_MAS_E2E_TEMPLATE_ROOT). Batch results land in test-results/real-batch/<n>-<type>-<account>/.
After opening a PR: hand the tools to the developer
Opening or updating a PR is not the end of the task. While it waits for review, do this instead of waiting silently:
- Name the flows that cover what the PR changed and print them as concrete commands from the matrix above; never just "run the e2e suite".
- Say what each command produces (screenshots, HTML report,
real-e2e-summary.json, the kept run root) so the developer can attach evidence or debug. - Ask which one to run now, and run any non-real command yourself once the developer agrees.
- Separate what only the author can run:
@realneeds their emulator, game, and account. Never claim a real result you did not observe, and never treat "the code looks right" as coverage. - When the change touches
app/task/**, a script adapter, scheduling, or the emulator and no@realproof is attached yet, say so and name the missing command.
Repeat the offer after a later push when the changed path changed too.
Add a flow
- Start from the user action and the smallest observable assertion. Prefer the public UI, MAS HTTP/WebSocket contracts, task terminal status, and public user result.
- Put a stable cross-feature flow in
frontend/e2e/<scenario>.pw.ts; put a PR-only regression in the PR branch and remove it after verification unless it is a reusable contract. - Tag the flow with
test.describe('@<scope>', ...); real game side effects additionally require@real. Useapp.goto()andapp.evidence()fromfixtures.ts. - Wait for visible state, API responses, WebSocket events, or terminal task status with a timeout. Keep real startup and game delays separate from short injected debounce or retry delays.
- Attach only selected screenshots and
real-e2e-summary.jsonto a PR when useful. Record the commit SHA, dirty state, command, preconditions, result, evidence path, and uncovered branches.
Real-run contract
The author-local runner accepts a script UUID, enabled user UUID, and configured account name. Everything it needs comes from the developer's own machine — the repository ships no game resources, script installs, or test accounts; the "config" it uses is the developer's real MAS configuration. It copies only the selected public MAS configuration and opaque script data into a temporary root, removes notifications from the copied user, and leaves the source config/ and data/ untouched. The runner has an explicit allowlist for every current script config type; an unlisted type fails with an instruction for the script author to add its prerequisites and harness assertion. A script may bind an emulator; when it does, the real flow waits for the MAS emulator operation event and device readiness. A script without a binding skips emulator steps. BetterGI and other supported script lines use the same contract when their installation and configuration are available locally.
The real runner takes a machine-wide atomic lock so two local game runs cannot compete for one installation or emulator. If a forced termination leaves a lock file, confirm no real run is active before removing it manually.
Declare a new script
Установить mas-e2e в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл mas-e2e?
Design, add, review, or run AUTO-MAS end-to-end flows that exercise the public MAS scheduling path, including isolated browser checks and author-local real script, account, emulator, and game runs with evidence.
Как установить скилл mas-e2e?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mas-e2e запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic