visual-edit
Skill này làm gì
Skill này mở một ứng dụng cục bộ bạn đang chạy trong một trình chỉnh sửa trực quan được host, nơi các route của nó hiển thị như màn hình trên một canvas. Skill dành cho người muốn xem hoặc sửa một ứng dụng thật một cách trực quan cùng agent.
Khi nào nên dùng
- ✓Khi bạn muốn kiểm tra một ứng dụng cục bộ đang chạy dưới dạng các màn hình thật.
- ✓Khi bạn muốn chia sẻ màn hình của ứng dụng cục bộ cho đồng đội để xem xét.
- ✓Khi bạn muốn chỉnh sửa ứng dụng một cách trực quan và đưa thay đổi trở lại mã nguồn.
Liên kết skill
https://github.com/BuilderIO/agent-native/blob/main/.agents/plugins/agent-native-design/skills/visual-edit/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể mở ứng dụng đang chạy của tôi trong trình chỉnh sửa trực quan để tôi xem các màn hình đăng ký và đăng nhập cùng nhau không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent kiểm tra các trang của ứng dụng có phản hồi không, rồi mở chúng trong trình chỉnh sửa trực quan được host. Ứng dụng cục bộ và cầu nối chạy trên máy bạn, còn trình chỉnh sửa được host trực tuyến.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Prefer the MCP App from open-visual-edit: it keeps Design beside
chat. Use Copy prompt to hand the visual edits to the coding agent; the host
may request conversation confirmation. Otherwise,
openUrl is a credential-free, read-only fallback; never claim it is editable.
- Inline-browser hosts should open
https://design.agent-native.com/visual-editand call itsopen-visual-editWebMCP tool. It works signed in or out; the one-time capability is not a Design account session. A page-capable browser controller is enough, so Claude-in-Chrome, Claude Code browser tools, the ChatGPT Chrome/browser extension, Puppeteer or Playwright MCP, CDP, and similar JavaScript-capable controllers do not need the hosted MCP connector. - VS Code uses its Design webview/deep link. Without page WebMCP, use the hosted Design MCP connector and its normal OAuth/device authorization. Never replace either path with a local Design server.
Inside Design, use Show/Hide UI from the Cmd K menu or press the
Shift \ shortcut to toggle all editing chrome so only the canvas remains.
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 existing bridge; fresh signed-out loopback must add
the locally held bridgeToken described below.
const an = window.__agentNativeWebMcp;
const status = await an.ready
Câu hỏi thường gặp
Trình chỉnh sửa có chạy trên máy tôi không?
Không. Trình chỉnh sửa được host trực tuyến, chỉ ứng dụng và một cầu nối là chạy cục bộ.
Nếu trang yêu cầu tôi đăng nhập thì sao?
Skill nói cần khởi động lại ứng dụng cục bộ với tính năng đăng nhập tắt cho môi trường phát triển, để màn hình thật được hiển thị.
Nó có thay đổi code của tôi không?
Skill có bao gồm việc đưa thay đổi trở lại nguồn, nên các thay đổi được thực hiện qua code.
Chi tiết
Mô tả gốc của tác giả
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.
repo: BuilderIO/agent-native
Độ phổ biến
- Sao GitHub
- 7.6k
- Vị trí xếp hạng
- #13122
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
design-exploration
7.6kGiúp agent của bạn khám phá nhiều hướng thiết kế giao diện song song, để bạn chọn một hướng rồi tinh chỉnh thiết kế đã chọn.
turn-into-app
7.6kBiến quy trình, bảng tính hoặc dự án thành ứng dụng trực quan có màn hình đầy đủ dữ liệu, với agent làm việc phía sau các điều khiển.
visual-plan
7.6kBiến một kế hoạch viết bằng văn bản thuần thành kế hoạch trực quan tương tác, có sơ đồ, bản đồ file, đoạn code và các câu hỏi còn mở.
visual-recap
7.6kBiến một pull request, nhánh hoặc commit thành bản tóm tắt trực quan có sơ đồ và bản đồ file, giúp người review thấy hình dạng của thay đổi.
Skill tương tự
canvas
394kCho phép agent của bạn hiện một widget trực quan được lưu trữ trên bảng Mac đã kết nối, rồi ẩn bảng hoặc chuyển nó sang trang khác.
control-ui
394kGiúp agent của bạn sắp xếp và khắc phục sự cố Control UI của OpenClaw, gồm các phiên, bảng điều khiển và Gateway đã kết nối.
diagram-maker
394kGiúp agent của bạn vẽ sơ đồ rõ ràng dạng SVG, HTML hoặc Excalidraw có thể sửa, cho quy trình, kiến trúc hệ thống và bản phác bảng trắng.