跳到正文
Skillpedia
界面(UI/UX)7.6k · #13122

visual-edit

它能做什么

这项技能在托管的可视化编辑器中打开你正在运行的本地应用,其中的路由会以画布上的界面形式呈现。适合希望与智能体一起以可视化方式审查或编辑真实应用的人。

适用场景

  • ✓当你想把正在运行的本地应用当作真实界面来检查的时候。
  • ✓当你想与团队成员分享本地应用的界面进行审查的时候。
  • ✓当你想以可视化方式编辑应用,并把修改交回源代码的时候。

技能链接

https://github.com/BuilderIO/agent-native/blob/main/.agents/plugins/agent-native-design/skills/visual-edit/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/BuilderIO/agent-native/blob/main/.agents/plugins/agent-native-design/skills/visual-edit/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“你能在可视化编辑器中打开我正在运行的应用,让我一起查看注册和登录界面吗?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体检查应用的页面是否有响应,然后在托管的可视化编辑器中打开它们。本地应用和桥接程序在你的电脑上运行,而编辑器托管在线上。

技术内容(原始 SKILL.md)

作者在 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=1 with 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 with AUTH_DISABLED=1 and 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-edit and call its open-visual-edit WebMCP 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
常见问题

这是在我的电脑上运行编辑器吗?

不是。编辑器托管在线上,只有你的应用和一个桥接程序在本地运行。

如果页面要求我登录怎么办?

技能说明应以禁用登录的开发模式重启本地应用,以便显示真实界面。

它会修改我的代码吗?

技能涵盖把编辑交回源代码的方式,因此修改是通过代码完成的。

详情

作者的原始描述

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

热度

GitHub 星标
7.6k
排名
#13122
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能