優先順序與脈絡

定義持續進行的 UI 原型設計優先順序,校準工作區技能,並附加輔助脈絡檔案來引導程式碼庫分析。

在 Stitch 工作區中,優先事項不是像「把按鈕顏色改成藍色」這種一次性的錯誤回報單。它是一項常設的設計目標,告訴 Stitch 該在應用程式各路由中尋找哪一類 UX 改善機會。

工作區功能需要先在你的電腦上執行一次 stitch enable loop。設定方式請參閱連接儲存庫。

使用 /stitch 技能設定優先事項

當你用 /stitch 技能導入儲存庫時,代理程式會主動提議設定我們標準的 Scale Interactive Visual Prototyping 優先事項(ui-prototyping)。你也可以隨時請 /stitch 建立或調整優先事項:

PROMPT
/stitch Set up a UI prototyping priority focused on turning our /schedule and /venues tables into tactile, direct-manipulation views.

從終端機使用 UI 原型製作範本

CLI 內建範本登錄表,能一步建立你的常設優先事項,並校準工作區的遠端分析技能:

stitch create priority --template ui-prototyping

執行 stitch create priority --template ui-prototyping 會同時完成兩件事:

  • 建立你的常設優先事項,並設為 CREATE_SUGGESTIONS 自主模式,讓 Stitch 持續提出洞察、解決方案規格與畫布設計提示詞。
  • 同步三項工作區技能(design-synthesis、insight-guidelines 和 assessment-guidelines),引導 Stitch 的後端研究代理程式走向視覺化 UI 原型製作,而不是一般性的程式碼品質檢查。

如果你想鎖定應用程式中的特定路由或工作流程,請在搭配 --template ui-prototyping 時傳入 --objective,這樣既能自訂目標,又能保留 UI 原型製作的技能校準:

stitch create priority \
  --template ui-prototyping \
  --objective "Transform passive schedule and booking tables across /schedule and /venues into tactile, direct-manipulation surfaces."

撰寫以成果為導向的目標

最好的優先事項目標,描述的是橫跨多個路由的長期 UX 成果,而不是單一已完結的任務:

  • 以成果為目標:「評估 /feed 與 /schedule 的視覺節奏,讓行動裝置上的行程檢視一目瞭然且具觸感」,或 「把唯讀的預訂摘要,在 /venues 與 /checkout 轉變為可直接操作的表面」。
  • 略過瑣碎任務:像 「修正 /schedule 的表格內距」 或 「新增篩選下拉選單」 這種一句話就能交代的雜事,直接動手改比走一趟工作區綜合分析更快。

每當重心轉移,你都可以列出、檢視或更新目前啟用的優先事項:

stitch find priorities
stitch edit priority <priority-id> --objective "..."
stitch delete priority <priority-id>

附加輔助檔案與脈絡

如果你有應納入原型參考的產品需求、使用者研究筆記或架構檔案,請將它們附加到工作區。

用 stitch upload file 上傳 PDF、圖片或 Markdown 規格:

stitch upload file ./specs/checkout-prd.pdf
stitch find files

或者用 stitch create context 直接從終端機新增一則簡短筆記:

stitch create context \
  --title "Checkout Flow Goals" \
  --description "Reduce guest checkout from four separate steps to a single focused view."

stitch find contexts

原文: https://stitch.withgoogle.com/docs/cli/priorities-and-context/

本頁翻譯自 Google Stitch 官方文件,原文版權歸 Google LLC 所有。本站為獨立第三方翻譯,與 Google 無關聯。