Plan browser editing

From BuilderIO/agent-native · View interactive version

Plan browser editing is an AI agent skill from the GitHub repository BuilderIO/agent-native. Which browser surfaces are directly editable and which patch op each one autosaves through — inline prose, local plan folders, review annotation mode, canvas/design elements, and branding. Use when changing plan prose, styles, or wireframe/prototype HTML.

How to use this skill

Skill file

Browser Editing

RichMarkdownEditor, autosaved through update-visual-plan with

contentPatches: [{ op: "update-rich-text", blockId, markdown }].

and expectedUpdatedAt, plus allowDestructive, because a block removed there

is the person's own edit. The live Yjs document plan:<planId> is the source of

truth for text: autosave sends pending Yjs updates first (flushUpdates), then

reads the blocks from the document, not from the last keystroke. A

save_conflict carries the newest saved content, so the save three-way merges

those blocks onto it by block id (core's saveWithMerge) and retries. Only

overlapping edits ask the person, with the shared prompt, and the version they

choose goes into the live document. The editor takes in content only when

contentUpdatedAt changes: an optimistic copy, or the saved copy a refetch

brings back over it, is nothing new. seed-plan-collab seeds the empty live

document once, so two editors opening together cannot duplicate the content.

repo-relative ?path=... use the same Notion-style browser editor, but

autosave through update-local-plan-folder so changes are written to

plan.mdx, canvas.mdx, and prototype.mdx without touching the Plan

database.

feedback. Leaving review mode restores inline prose editing.

comments, source patches, or structured content patches rather than direct

rich-text editing.

`contentPatches: [{ op: "update-design-element-style", frameId, blockId,

elementId, styles }]. Elements must have data-design-id` or

data-plan-design-id; use patch-wireframe-html / patch-prototype-html for

structural or text changes.

Branding

source-code request, not plan data: local Code mode edits templates/plan

source directly, while hosted/live surfaces route people to Desktop or

Builder for code customization.

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.