zf-browser-e2e-contract
Prepare or review a contracted Docker/Playwright browser check in a clean checkout. Use when the project selects this runner or requests the ZaoFu Docker…
от uisee-ai★ 36 звёзд на GitHub
Установить zf-browser-e2e-contract в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
ZaoFu Browser E2E Contract
Overview
Use this method for the project's authorized Docker/Playwright browser gate.
For CLI, library, service or hardware E2E, follow the contracted entry point
and evidence obligation. A browser project using another runner keeps that runner.
This skill covers Docker/Playwright command shape and clean-checkout setup. Hard
correctness still belongs in task_map validation, workflow runtime, and
deterministic gates.
Division of labor (avoid dual-source drift):
- This skill: Docker/Playwright command shape,
--user/ host-networking / bounded-install environment rules, clean-checkout + pin-commit setup. verify-reviewskill (canonical:yoke/verify-review/SKILL.md): the runner-vs-product failure taxonomy and the structured report contract (coverage matrix, gap findings, evidence refs). When this skill mentions classification or report fields,verify-reviewis the source of truth — cite it, do not fork a second copy of the taxonomy here.
Core Rules
For a Candidate Reader, first follow the shared-host-evidence step in
zf-harness-verification-checklist. Apply the Docker commands below when the assigned obligation needs a new execution and the dispatch provides its execution route. The signed observation's approval identifies its producer.Preserve an exact browser command or security boundary supplied by the canonical Task, PRD, or owner contract byte-for-byte. That run-scoped contract takes precedence over this skill's generic command pattern.
Treat the host-network /
mcp/playwright:latestpattern below as a fallback only when the canonical contract does not provide an exact command. Never replace a contract-pinned image, bridge network, read-only mount, ortmpfsboundary with the fallback image, host network, writable mount, or install sequence.Respect
zf.yamlandproject.state_dir; do not hard-code.zf.When the project uses the ZaoFu Docker browser convention, resolve the image and runner from its contract or repository instructions. Use the fallback below only where that convention permits it.
Start local API/UI services on
0.0.0.0when a container must reach them.Declare the exact owner-facing service URL and origin in the Task/real-E2E matrix. A pass on
http://localhostdoes not prove behavior onhttp://<LAN-IP>or another delivery origin.Use host networking for local service smoke tests only when the canonical contract does not pin a different network boundary.
Run the container with the host UID/GID so mounted workdirs remain writable.
Bound browser install commands with
timeout; never leaveplaywright install chromiumunbounded.Do not wrap an existing Docker Playwright command in another Docker command.
The
mcp/playwright:latestimage has an MCP CLI entrypoint. A browser command MUST either use--entrypoint bash -lc(as in the fallback below) or explicitly invoke the image's documented runner; never appendnode,npm, orplaywrightdirectly after the image name. That form is parsed as MCP options (for exampleunknown option --test) and is a runner failure, not product evidence.Do not downgrade a runner/setup failure into product rework.
Command Pattern
For an authorized Docker/Playwright fallback, set playwright_bin and
playwright_config to the project's executable and config paths relative to
the mounted checkout. The example assumes the browser is provisioned. If setup is required and
authorized, run the project setup first and bound any browser install with
timeout.
docker run --rm --network host \
--user "$(id -u):$(id -g)" \
--entrypoint bash \
-v "$PWD:/work" -w /work \
mcp/playwright:latest \
-lc 'set -euo pipefail; "$1" test --config "$2"' bash "$playwright_bin" "$playwright_config"
Adapt paths to the current task_map; keep the runner flags intact. When an
exact command is supplied, preserve it instead of adapting this fallback.
The
mcp/playwright:latestimage name, theINSTALLATION_COMPLETEmarker referenced below, and this exact command shape are skill-owned convention (no kernel validator) — the kernel does not parse or enforce them; they are operator/agent discipline.
Task Map Checklist
- Keep verification commands machine-readable. If
verificationis a list, each item must be a standalone command; never stringify a Python list into a contract field. - Planning readiness is not execution success. Before implementation, missing screenshots, traces, or browser receipts are expected future outputs, not an environment blocker. Keep the plan dispatchable when it names a runnable Docker Playwright command and assigns the runner/config/test/evidence paths to a producer task. Mark the plan blocked only when the declared runner itself is unavailable or forbidden and no sanctioned equivalent exists.
- A browser acceptance criterion must be bound be
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл zf-browser-e2e-contract?
Prepare or review a contracted Docker/Playwright browser check in a clean checkout. Use when the project selects this runner or requests the ZaoFu Docker browser convention.
Как установить скилл zf-browser-e2e-contract?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл zf-browser-e2e-contract запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…