Best for
- Use when the user asks to inspect, compare, or edit a real local app visually in Design.
BuilderIO/skills/skills/visual-edit/SKILL.md
Open a running local app in Design overview mode as URL-backed iframe screens for visual editing, flow review, duplication, and route-state exploration. Use when the user asks to inspect, compare, or edit a real local app visually in Design.
Decision brief
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.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/BuilderIO/skills --skill "skills/visual-edit"Inspect the Agent Skill "visual-edit" from https://github.com/BuilderIO/skills/blob/5f76017788f3595811f2dbdaa89c23cd911e0c89/skills/visual-edit/SKILL.md at commit 5f76017788f3595811f2dbdaa89c23cd911e0c89. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
Treat the running app as the truth. Preserve its component language, tokens,
list-localhost-connections returns the expected connection and routes.
The hosted install path (npx @agent-native/core@latest skills add visual-edit, or design for the full Design bundle) installs the exported instructions and registers the hosted Design MCP connector together. The open Skills CLI path (npx skills@latest add BuilderIO/agent-native…
Prefer the interactive MCP App returned by open-visual-edit when the coding host renders it. The user gets the Design canvas beside the conversation, and Apply design updates can submit the bounded source-edit handoff back to the current host conversation through the standard MC…
Each screen is a URL-backed iframe, not copied HTML.
Permission review
The documentation asks the agent to create, modify, or delete local files.
`apply-source-edit`, `write-source`, `write-local-file`, `edit-design`, or anyThe documentation asks the agent to read local files, directories, or repositories.
`/read-file`, `/write-file`). Get them to match by letting theThe documentation asks the agent to create, modify, or delete local files.
`/read-file`, `/write-file`). Get them to match by letting theThe documentation includes network, browsing, or remote request actions.
npx @agent-native/core@latest design connect --url http://localhost:5173 --root . --jsonThe documentation asks the agent to run terminal commands or scripts.
npx @agent-native/core@latest design connect --url http://localhost:5173 --root . --jsonThe documentation includes network, browsing, or remote request actions.
pnpm dev:cli design connect --url http://localhost:5173 --root templates/<app> --jsonThe documentation asks the agent to run terminal commands or scripts.
pnpm dev:cli design connect --url http://localhost:5173 --root templates/<app> --jsonThe documentation asks the agent to read local files, directories, or repositories.
(`list-local-files` / `read-local-file`); build output, `node_modules`,Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 87/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 3,907 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
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 hosted install path
(npx @agent-native/core@latest skills add visual-edit, or design for the
full Design bundle) installs the exported instructions and registers the
hosted Design MCP connector together. The open Skills CLI path
(npx skills@latest add BuilderIO/agent-native --skill visual-edit) installs
exported instructions only, with no MCP connector registration.
Prefer the interactive MCP App returned by open-visual-edit when the coding
host renders it. The user gets the Design canvas beside the conversation, and
Apply design updates can submit the bounded source-edit handoff back to the
current host conversation through the standard MCP Apps message bridge. The
host may ask the user to confirm the current conversation or choose a new one.
Otherwise, openUrl is a credential-free, read-only fallback that is safe to
show in model text or retain in logs. Do not claim that fallback is editable:
the edit capability is intentionally available only to the host-managed MCP App
launcher, where it is hidden from the model and redeemed once.
openUrl only when a read-only fallback is acceptable.openUrl in the Browser pane only as the read-only fallback.Prefer the MCP App surface for a connected Design plugin, then the host's browser/preview tool as the universal fallback. Keep the canvas beside chat when the host supports rearrangeable panes.
Inside Design, use Show/Hide UI from the Cmd+K menu or press Figma's
Shift+\ shortcut to toggle all editing chrome so only the canvas remains.
The same action is available from Design's empty-canvas context menu.
connectionId, routeId, path,
url, bridgeUrl, title, and viewport size./snapshot fetch feeds the editable source model only
and must never be rendered in the frame./visual-edit skill needs no Design account sign-in.
open-visual-edit mints a five-minute, single-use capability for the exact
/visual-edit/:designId local-editor route. The MCP host redeems it outside
model-visible text, then opens the existing editor with localhost edit access.
This capability is not an account session: /_agent-native/session remains
signed out, and account-backed save/share/generate actions remain denied.pnpm action open-visual-edit. When that CLI
has no account session, the action uses a stable, workspace-scoped local
principal to register the bridge, create/reuse the local design, and place
screens. That principal exists only inside the in-process CLI call; it is not
a browser login and cannot be selected by an HTTP, MCP, or tunneled caller./visual-edit/:designId or
/design/:designId URL carries no capability and must never release the
connection's previewToken./checkout?step=shipping,
/checkout?step=payment, /checkout?step=done, etc.localhost:1234/onboarding/1 means
http://localhost:1234/onboarding/1.Translate the user's requested review into the smallest useful set of frames:
Do not expand every discovered route or every viewport unless the user asks for an exhaustive audit. Preserve the user's labels and sequence so the canvas reads like the workflow they described.
When a chat message begins with [Reprompt selection], the selected subtree is
a hard write boundary. The only mutation path is propose-node-rewrite with
the exact repromptId, target, and baseVersionHash captured in
design-reprompt-pending:<designId>:<fileId>. Never use apply-visual-edit,
apply-source-edit, write-source, write-local-file, edit-design, or any
other content-writing action for that request. Clarifying questions are allowed,
but a requested change must remain a proposal.
Produce one variant by default. Produce two or three only when the instruction
asks for options. A retry includes priorProposalId; keep the same target and
base version, incorporate the feedback, and call propose-node-rewrite again.
The UI previews the returned subtree without persisting it.
Use resolve-node-rewrite for the accept/reject lifecycle. Accept applies the
chosen variant as one version-checked inline/Yjs content transaction so one
undo restores the prior structure; reject clears the proposal without changing
content. For conversational resolution such as "apply the second one," call
view-screen, read the active design.reprompt.proposal, and pass its
proposalId plus the zero-based variantIndex to resolve-node-rewrite.
/visual-edit/:id is the dedicated local-editor surface. The one-time
handoff returned by open-visual-edit opens it with edit access without a
Design login. A copied or bare /visual-edit/:id URL is read-only because it
does not carry the capability./design/:id links stay read-only without a signed-in owner/editor
session. Never use the local capability to upgrade that ordinary sharing
surface./_agent-native/open deep links.
Do not surface URLs with _session= tokens or hand-build capability URLs.open-visual-edit CLI call may register its bridge, create or
reuse its workspace-owned local design, and place screens without an account.
Direct source-file action writes, generation, saving into an account, and
sharing still require an authenticated action caller. If a signed-out visitor
wants those durable account operations, send them through the framework
sign-in return flow first.The live-edit bridge is unlocked by a shared secret (the "bridge token") that
must match on two sides: the local bridge process, and the user's connection row
in Design (which the browser reads to authorize /live-edit-bridge,
/read-file, /write-file). Get them to match by letting the
open-visual-edit action mint the token, then starting the
bridge with it. This is the only ordering that works for the remote-MCP flow —
the bridge cannot push its own token to the server without a CLI auth token, so
the server mints instead and the bridge adopts.
From the target app repo, make sure its dev server is running, then:
1. Discover routes without starting a durable bridge (one-shot, exits):
npx @agent-native/core@latest design connect --url http://localhost:5173 --root . --json
This prints the manifest (routes + capabilities). Parse it to build
routeManifest for the next step. (Skip this if the user already gave explicit
paths/URLs to place.)
Inside the agent-native monorepo itself, use the workspace CLI instead of
npx — npx installs the last published @agent-native/core, which will not
contain local changes and costs a slow install on every call:
pnpm dev:cli design connect --url http://localhost:5173 --root templates/<app> --json
2. Call open-visual-edit (see Action Flow below) with NO bridgeToken.
The server mints one, stores it on the user's connection row, copies it into the
placed screens' metadata, and returns it to you as bridgeToken. Capture it.
3. Start the persistent bridge adopting that token (single line; prefer the
env var so the secret does not appear in ps):
AGENT_NATIVE_BRIDGE_TOKEN="<bridgeToken from step 2>" npx @agent-native/core@latest design connect --url http://localhost:5173 --root . --daemon
(Equivalently, pass --bridge-token <token>.) This starts a detached bridge on
http://127.0.0.1:7331, adopts the server-minted token — so bridge and row
agree and live-edit authorizes with no self-registration — and stays alive after
the command exits.
For a manual health/manifest check on the running bridge:
curl http://127.0.0.1:7331/health
/health needs no token. The full manifest at /manifest.json is
preview-token protected, so an unauthenticated curl of it returns
{"ok":false,"error":"invalid or missing preview token"} — that response means
the bridge is up, not that it is broken.
Only use --json for the step-1 route probe. Never use --json, --once,
or --dry-run for the durable step-3 bridge: they print the manifest and exit,
so Design falls back to a non-editable live iframe.
The bridge listens on a single fixed port (7331) and refuses to start for a
second, different app. It is detached with no log file, so if --daemon reports
a timeout, check for a stale process (lsof -ti:7331) before retrying.
Prefer the single open-visual-edit action. It registers or
refreshes the localhost bridge connection, mints and stores the bridge token,
creates or reuses a Design project, places URL-backed screens, stores the active
visual-edit context, and navigates to overview mode in one call. This avoids
creating a private design under a synthetic CLI user and then handing the browser
a tokenized URL that may be shadowed by an existing session.
Call it BEFORE starting the durable bridge (step 3 above): it does not contact
the bridge, so the bridge need not be running yet, and you need its returned
bridgeToken to start the bridge with a matching secret. Omit bridgeToken
on the call so the server mints one.
pnpm action open-visual-edit '{
"title": "Docs homepage visual edit",
"devServerUrl": "http://localhost:5173",
"bridgeUrl": "http://127.0.0.1:7331",
"rootPath": "/absolute/path/to/app",
"routeManifest": { "...": "from /manifest.json" },
"paths": ["/", "/pricing", "/checkout?step=payment"]
}'
The action returns designId, connectionId, bridgeToken, screens,
urlPath, and a credential-free openUrl. Its MCP App metadata separately
carries the one-time editor launcher so the host can redeem it without showing
the capability to the model or retaining it in the action link. Keep
designId/connectionId in the chat context for follow-ups, and pass
bridgeToken to design connect (step 3) to start the bridge. On follow-up
calls reusing an existing connectionId, the same token is returned (it is
minted once and reused), so the running bridge stays valid.
Pass viewports to place every requested route once per viewport. Frames lay
out as a grid: one row per route, one column per viewport. Presets are
desktop (1280x900), laptop (1440x900), tablet (834x1112), and mobile
(390x844); an explicit { "label": "...", "width": N, "height": N } also works.
pnpm action open-visual-edit '{
"title": "Tasks responsive visual edit",
"devServerUrl": "http://localhost:5173",
"bridgeUrl": "http://127.0.0.1:7331",
"rootPath": "/absolute/path/to/app",
"paths": ["/tasks", "/inbox"],
"viewports": ["desktop", "mobile"]
}'
Prefer this over two separate calls with defaultWidth/defaultHeight: it
keeps each route's viewports aligned in a row and titles them
Tasks — Desktop / Tasks — Mobile so the canvas reads clearly. viewports
overrides defaultWidth/defaultHeight. With no routes/paths, it expands
every route in the localhost manifest, which is usually far more frames than
the user wants — name the paths.
Call open-visual-edit again with the same designId and connectionId and
only the new paths. Existing frames for the same route and viewport are
refreshed in place rather than duplicated, and a frame the user has dragged or
resized keeps its position unless you explicitly pass x/y/width/height.
pnpm action open-visual-edit '{
"designId": "<existing-design-id>",
"connectionId": "<existing-connection-id>",
"devServerUrl": "http://localhost:5173",
"paths": ["/settings", "/team"],
"startY": 2200
}'
Do NOT add defaultWidth/defaultHeight just to restate the default size:
supplying either one marks the viewport as explicitly requested, which
overwrites frame sizes the user has already adjusted on the canvas.
For a numbered flow the user describes in chat, keep the labels and order:
pnpm action open-visual-edit '{
"designId": "<existing-design-id>",
"connectionId": "<existing-connection-id>",
"devServerUrl": "http://localhost:1234",
"routes": [
{ "url": "localhost:1234/onboarding/1", "title": "Screen 1" },
{ "url": "localhost:1234/onboarding/2", "title": "Screen 2" },
{ "url": "localhost:1234/onboarding/3", "title": "Screen 3" }
]
}'
If no routes or paths are supplied, open-visual-edit uses every route
from the localhost manifest.
Fallback, only when open-visual-edit is unavailable:
connect-localhost, passing the
/manifest.json result as routeManifest and capabilities.create-design.add-localhost-screens.navigate.link, deepLink, or MCP App embed returned by Design actions so
the user sees the canvas. Follow Put Design Beside The Chat: prefer the
MCP App; otherwise surface the credential-free Open design link.openUrl / action link
is the safe read-only fallback; never build a capability URL yourself./design/:id?_session=... URL.vscode://builder.agent-native/open?url=<encoded-design-url>. Its
Agent Native: Open Design Canvas command also starts the local bridge and
opens hosted Design in the VS Code side panel.open-visual-edit, confirm the Design editor is in overview mode
with the requested URL-backed frames visible, and that they render the app
rather than a spinner. Do not stop at "screens added" when the user asked to
inspect or edit visually.Canvas edits on a localhost screen do not write source as you make them. They accumulate as pending edits and the editor shows an Apply design updates button on the canvas. In an MCP App, clicking it hands the bounded structured prompt to the current host coding conversation. In an ordinary browser or standalone Design page, it falls back to the local Design agent. The dropdown's Copy prompt to your agent action is the universal manual fallback.
.jsx/.tsx routes — those must go through the agent path above.Keep localhost screens as URL files plus screenMetadata[fileId]. Do not
replace them with copied srcdoc HTML unless the user explicitly asks for a
frozen snapshot. To change a state, rerun open-visual-edit with the new
path/query or duplicate the screen and update the copy's URL metadata.
Once a connection is registered, the design editor's Code panel (left rail →
Code, or navigate --view editor --designId <id> --leftPanel code) shows a
local-files workspace root for that connection next to the design's own files.
Treat that root like VS Code opened at the connected project directory: file
tree, search, open/edit, and save are backed by the real local files. It lists
the connected app's text/code files through the bridge
(list-local-files / read-local-file); build output, node_modules,
.git, and secret-looking paths (.env*, key files) are always excluded.
write-local-file: the first save opens the
write-consent dialog (an 8-hour, folder-scoped grant) and retries
automatically once granted. Only text/code files are writable; secret paths
are always blocked.write-local-file directly (not through a UI save) and it
fails with "no write-consent grant", call request-localhost-write-consent.
It opens the write-consent dialog in the editor, or reports alreadyGranted
if one already exists. Granting is human-only —
grant-localhost-write-consent is hidden from agents, so you cannot approve
it yourself. Tell the user to click "Allow writes", then retry
write-local-file once. Do not keep retrying blindly: the write stays
blocked until the user approves.positionPrecision on every anchor before you trust line/column.
authored means those are the real JSX coordinates. transformed means they
are the dev server's own output coordinates — React 19 removed _debugSource
and exposes only an owner stack, so this is the normal case on a Vite/Next
dev server, and the line will not match the file. unknown means no tier was
reported. On anything but authored, use the file and component to find the
element by its JSX shape and re-derive the line from the file you read; never
edit at the reported line.className/class edit, or flat
literal style={{ ... }} property may use apply-visual-edit with a
local-file source and a complete target.sourceAnchor. Forward the
anchor's positionPrecision with it — the action refuses a transformed
anchor with status: "needsAgent" instead of seeking to a line that means
something else in the authored file. Preview first (omit persist), inspect
proposedDiff, then call with persist: true..map() instances, shared components, breakpoint-scoped edits, and
cross-file changes go through the coding agent with complete subject/target
anchors and their runtime relationship. apply-visual-edit refuses these
with status: "needsAgent" rather than guessing.versionHash to
write-local-file with requireExpectedVersionHash: true; on conflict,
re-read and re-plan. Keep the optimistic preview until HMR/runtime confirms
the result. Human write consent remains mandatory and agents cannot grant it.list-localhost-connections returns the expected connection and routes.src, not a srcdoc. A localhost screen with a
srcdoc is a bug, not a slow load — check it in the browser devtools before
reporting the canvas as working.Alternatives
coreyhaines31/marketingskills
When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program
JasonColapietro/suede-creator-skills
Suede-owned experimentation discipline for hypotheses, sample sizing, test duration, significance, and repeatable experiment programs. Use when comparing variants, deciding whether a result is reliable, or building an experiment backlog and cadence. NOT FOR: analytics instrumentation (use suede-analytics), post-click conversion diagnosis (use suede-site-alchemy), or writing the variant copy itself (use suede-copy).
narrative-io/narrative-skills-marketplace
Translate a fuzzy analytical question into a rigorous investigation plan. Interrogates the ask, grounds the plan in the available data dictionary, applies analytical best practices, and produces a structured brief of query specifications for a downstream query-writing skill. Plans, does not write SQL. Use when: "why did X drop", "is there a relationship between A and B", "who are our highest-value customers", "what's driving the change in Y", "investigate this trend", "design an analysis for", "
event4u-app/agent-config
Use BEFORE writing or editing any non-trivial UI — inventories components, design tokens, shadcn primitives, and reusable patterns into state.ui_audit. Hard gate for the ui directive set.