visual-edit
БесплатноБез исполняемых скриптовНе проверенOpen and collaboratively edit a running local app in Design, with shared fallback previews and source handoff. Use when the user asks to inspect, share, or…
от BuilderIO★ 4 689 звёзд на GitHubОб этом скилле
Visual Edit
Use /visual-edit when the user wants to inspect or edit a real local app
visually instead of generating standalone Alpine HTML. The source of truth is
the running localhost app plus its route URLs. Design shows those routes as
iframe-backed screens on the infinite canvas.
The editor is hosted at https://design.agent-native.com. Never start local
Design; only the target app and bridge run locally.
See the Visual Edit guide for a worked onboarding-flow example.
Fast local startup
- Do not install this skill into the target app or start a local Design server. The skill belongs to the coding host; Design is always the hosted app above.
- If you need to start an Agent-Native framework app yourself, use
AUTH_DISABLED=1with its normal dev command. This is local-only and gives the visual editor the framework's dev identity without a user login. - If an agent-owned local server redirects a requested screen to
/sign-in, restart that server withAUTH_DISABLED=1and probe the route again before opening Design. Never present a sign-in page as the requested screen. - Before calling
open-visual-edit, verify the target URL responds. Start an agent-owned dev server with its normal command when it is down, and wait for the requested routes to respond before opening Design. Never leave a dead localhost URL in the canvas. - Preserve a server you did not start; use its existing authenticated browser session or explain that the target app, rather than Design, requires login.
- When the user gives explicit paths, skip route inventory and place those paths directly. Discover routes only when paths were not supplied.
Installation
npx @agent-native/core@latest skills add visual-edit installs the skill and
hosted Design MCP connector. npx skills@latest add BuilderIO/agent-native --skill visual-edit installs instructions only; page-capable WebMCP hosts need
no connector installation.
Put Design Beside The Chat
open-visual-edit accepts target: inline-browser (default MCP
App/page), system-browser, or desktop (registered
agentnative://open/agentnative-nightly://open). launch.status: "host-required"
returns browserUrl/desktopUrl for the local opener. Local CLI detects
handlers (stable first, launch.desktopProtocol); browsers cannot. dispatched confirms dispatch only;
desktop-not-detected, blocked, or failed require browser fallback.
These URLs transfer no capability; account editing needs sign-in and a paired bridge.
Copy prompt hands edits to the coding agent. openUrl is read-only.
Inline hosts use WebMCP at https://design.agent-native.com/visual-edit
without a connector. VS Code uses its webview; other hosts use authenticated
Design MCP.
Share The Canvas And Local Preview
Use signed-in Share permissions.
get-visual-edit-collaboration({designId}) returns shareUrl and
previews. For Share live preview, run ngrok or
cloudflared tunnel --url http://localhost:5173, then
update-visual-edit-preview({designId,fileId,tunnelUrl}) with public HTTPS
(null removes). Owner stays local; viewers see snapshots; Open live preview opens a new tab with its hostname. Keep credentials and private data off the public tunnel.
Existing canvas/frame pins handle comments; Suggest on snapshot feeds
get-visual-edit-pending and revision-based
acknowledge-visual-edit-pending after the owner's agent applies source edits.
Browser WebMCP (Default Without Connector)
Without a connected Design MCP, use a visible browser tab with a main-world
JavaScript evaluator. Prefer the host's inline browser; use external Chrome
only when requested or unavailable. Open
https://design.agent-native.com/visual-edit, keep it visible while tools
register, and read the title before work. Never enter, copy, or request
passwords, cookies, tokens, or codes. Signed-out loopback visual-edit works;
other pages that block tools behind sign-in still require a signed-in tab.
If the browser exposes CDP permissions, grant local-network-access to
https://design.agent-native.com before calling page tools; otherwise use the
page's Connect button and let the browser's permission prompt complete.
Use a native browser-session WebMCP bridge when the host provides one: list
once with list-browser-session-webmcp-tools and run with
run-browser-session-webmcp-tool, or use the list-host-webmcp-tools and
run-host-webmcp-tool pair. Preserve the exact discovered name, origin, and
args. Otherwise use the page-world API. Agent-Native pages expose this helper:
Example assumes signed-in or a bridge; signed out, add withoutBridge: true
and keep devServerUrl.
const an = window.__agentNativeWebMcp;
const status = await an.ready({ waitMs: 20_000 });
if (status.state !== "ready") throw new Error(status.error ?? status.state);
const tools = await an.tools("visual-edit");
if
Установить visual-edit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл visual-edit?
Open and collaboratively edit a running local app in Design, with shared fallback previews and source handoff. Use when the user asks to inspect, share, or edit a real local app in Design.
Как установить скилл visual-edit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл visual-edit запускает скрипты?
Нет, скилл состоит только из инструкций (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