建立新 UI · 修改既有 UI
把畫面設計清楚。
讓 Agent 按規格實作。
從 Material 範本建立新 UI,或保留既有專案的元件與樣式進行修改。預覽響應式畫面、套用 DESIGN.md,交付精確 Blueprint,再檢查實作證據。
資料留在本機 · 不需 API key · 分享單一設計快照 · 使用外部 coding agent
建立新 UI
從 Material 範本到 Agent 交付
- 選擇「建立新 UI」,直接編輯設定頁範本。
- 套用 DESIGN.md、選擇元件樣式,預覽桌面、平板與手機。
- 檢視分享內容並複製連結,或下載完整交付包。
- 將交付包交給 Agent,檢查其實作報告;截圖不等於驗收通過。
黃金流程
五分鐘從既有 route 到可交給 Agent 的 PR 工作
-
1
從你的 app 啟動
在既有專案根目錄執行 npx aub-workspace,不需要 clone AUB。
-
2
掃描並產範本
偵測 routes、components、layout 線索與自訂元件候選。
-
3
審核合約
打開 candidate template,確認 mapping,調整 Blueprint。
-
4
交給 Agent
複製包含 active Blueprint、route、preview URL 與 MCP tools 的指令。
-
5
把關 PR
AUB GitHub Action 會拒絕漂移、遺漏 mapping、驗收失敗與未解決事項。
為實作而設計
不是另一套 app builder,而是真實 codebase 的控制層
AI app builder 最佳化速度;AUB 保護既有產品 UI,讓 Agent 在真實 repo、正式元件、既有 route 與可審查驗收證據之間工作。
可版本化的唯一真實來源
JSON Schema、語意驗證、migration、diff 與 lock snapshot。
重用正式元件
將語意類型對應到既有 framework 元件,而不是重新製作相似品。
Agent-neutral 執行
Codex、Claude Code、Copilot 與通用 Agent 取得相同合約。
需要證據,不靠信心
Implementation report 與 PR check 會讓未完成工作清楚可見。
Before / After
差異會直接出現在 PR review
沒有 AUB
Issue 只叫 Agent 改善某個頁面。PR 也許看起來合理,但 reviewer 仍要猜它有沒有重用正式元件、有沒有保留響應式行為、有沒有破壞互動。
有 AUB
Issue 會引用 Blueprint、已核准 component mapping、preview URL、acceptance id、evidence,以及含 evidence matrix 的 PR Safety Score comment。Review 從主觀喜好變成可驗證風險。
競品定位
AUB 不應該去當另一套 app builder
App builder 更適合新專案
v0、Lovable、Bolt 更適合空白生成。AUB 只有在既有 repo 需要保留正式 route 與元件時才有優勢。
Coding agent 仍需要合約
Codex、Copilot、Claude Code 能改程式,但純文字無法證明元件重用、響應式安全與驗收覆蓋。
設計工具不會關閉 PR loop
Figma 很適合設計協作。AUB 的位置是把 UI 意圖帶到 source control 與實作證據。
整合合約
不要讓 Agent 發明你的 design system
自訂 registry 可指定正式 package、export symbol、source file、Storybook、文件,以及精確的 Blueprint-to-prop mapping。
- 避免建立相似但不同的元件
- 保留 repository 原生 token 與行為
- 支援多種 framework 實作
{
"name": "acme:insight_card",
"isContainer": true,
"implementations": [{
"id": "react",
"framework": "react",
"module": "@acme/analytics-ui",
"export": "InsightCard",
"props": {
"title": { "from": "content.title" }
}
}]
}
連接並驗證
GitHub issue 變成可交給 Agent 的 UI 工單
使用 AUB issue template 定義 route、Blueprint、元件重用規則、preview URL 與 acceptance criteria。Copilot、Codex 或其他 Agent 依同一份合約實作,並把 evidence 回寫到 PR Safety Score comment。
uses: HenryLau1103/AUB@main
驗證合約與實作證據