close-loop-dev-setup
БесплатноЗапускает вложенные скриптыНе проверенUse when an agent cannot validate the product the way a human would — no browser or desktop harness, no screenshots, no vision check, or bmad-leader reports a…
от bmad-labs★ 20 звёзд на GitHubОб этом скилле
Close-Loop Dev Setup
Overview
Close-loop development means the agent drives the real product, captures what a human would see, and checks it. A green unit test is not that.
This skill sets up the smallest loop that proves a user-visible behavior. It does not build a test framework.
Core principle: one working journey, one screenshot, one proof that the loop fails. Add more only when a Story needs it.
The loop
Spec ---> Code ---> Test ---> UAT
^ |
| |
+--------- Fix Spec <----------+
A failure is not always a code defect. Decide which layer is wrong before editing:
| Evidence | Wrong layer | Fix |
|---|---|---|
| Code does what the spec says, result is wrong | Spec | Correct the spec first, then the code |
| Code contradicts a correct spec | Code | Fix the code |
| Test asserts the wrong thing | Test | Fix the test; prove it fails for the right reason |
| Result cannot be observed | Harness | Fix the harness, or mark UNOBSERVED |
Fixing code to satisfy a wrong spec hides the defect. Fix the spec first when the expectation is wrong.
1. Scan before installing
| Check | Find |
|---|---|
| Target | Web UI, desktop app, CLI/service, mobile |
| Run command | Exact command that starts the product, and its URL or window |
| Existing tools | Playwright, Cypress, Selenium, cua-driver, browser or computer MCP, emulator |
| Existing sandbox | tests/close-loop/README.md, tests/close-loop/docker/, tests/close-loop/mcp/, command -v docker tart tart-box |
| Runtime | Node, Python, browser installed, OS and version |
| Evidence path | Where screenshots and logs go, for example tests/close-loop/evidence/ |
| Access | Ports, credentials, system permissions |
Prefer a tool already in the repo. Do not add a second framework that does the same job.
2. Choose where to run
Ask the user before the first install or run in a session. Install nothing until they answer.
| Option | What it is | Recommended for | Setup |
|---|---|---|---|
cua-box |
Linux desktop in Docker, with cua-driver installed |
Linux desktop apps; web UI that must run in a desktop session | references/cua-box.md |
tart-box |
macOS in a Tart VM, with cua-driver installed |
macOS desktop apps; needs Apple Silicon | references/tart-box.md |
| Host machine | The user's own OS, browser and permissions | Only when the user picks it | Section 3 |
Recommend a sandbox. Every tool and permission goes inside it, so the host changes only by the runtime (Docker or Tart), the sandbox files and the MCP cache proxy.
Templates for both sandboxes and the proxy are in templates/. Copy them into the project, fill every <placeholder>, and keep them in the repo so every clone builds the same sandbox.
If tests/close-loop/README.md already names a sandbox, show its name and ask the user to confirm it. Reuse it; do not build a second one.
One sandbox per project, reused
- Build it once per project and keep it. Name it after the project:
<project>-boxor<project>-mac. - Install tools once and record their versions. Later runs check what is there, then reuse it.
- Start it before a run. Stop it after, pass or fail.
stopkeeps the container or VM with its tools, grants and files. - Never reset, delete or rebuild it unless the user asks. A rebuild loses installed tools, the browser profile and permission grants.
- No restart policy, login item or schedule on the host.
- Use the project's commands (
docker compose ... start|stop,tart-box start|stop), not ad hocdocker runortart run. - Connect the agent to
cua-driverthrough the MCP cache proxy (references/mcp-proxy.md). The tools then stay listed while the sandbox is off, and the tool list never changes mid-session.
Installing tools
The agent does the installs. The user's choice above sets where.
| Where | Agent installs | Confirm |
|---|---|---|
| Inside the sandbox | Everything the loop needs: cua-driver, the app and its runtime, browser, permission grants |
Once, with the sandbox plan |
| Host, sandbox chosen | Only Docker or Tart, uv, the sandbox files and the proxy entry in .mcp.json |
Show the exact commands and files; run after a yes |
| Host, host chosen | Project dev dependencies; each system tool and permission | A yes for each system tool and permission |
Rules for every install:
- Pin every version: the version the repo already uses, or the current release. Never
@latestor:latest. Record it in the capability note (section 9). - Prefer a package manager or a release artifact (
npm,pip,apt,brew, a release binary) over an install script. Check a downloaded artifact against the vendor's SHA-256 (sha256sum -c), as thecua-boxDockerfile does. - When a vendor ships only an install script: download it to a file, never pipe it into
Установить close-loop-dev-setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл close-loop-dev-setup?
Use when an agent cannot validate the product the way a human would — no browser or desktop harness, no screenshots, no vision check, or bmad-leader reports a UAT level as NOT RUN; also when the user says "set up screenshot testing", "let the agent see the UI", "drive the app with Playwright" or asks for a visual check, or to set up a cua-box or tart-box sandbox. Sets up a minimal drive-and-observe loop, by default in a per-project sandbox (Docker or Tart VM), and proves it can fail.
Как установить скилл close-loop-dev-setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл close-loop-dev-setup запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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