Communitygithub.com

LIKELION-CAPSULE/Landing_Page

為您正在開發的元件建立多個變體,協助您迭代並從中挑選一個。

Landing_Page 是什麼?

這個技能會根據您對一個 UI 元件的描述,自動生成三種在特定軸線上有意差異的變體,並將它們整合到真實頁面中,讓您可以透過一個切換器(picker)在它們之間切換、比較與選擇。它只產出候選方案而不對其排名,適合在設計初期快速探索方向。支援的軸線包括結構、密度、重點、字體與語調,每次只變化一個主要軸線,其他設計選擇依此連帶調整,以確保連貫性。每個變體在進入切換器前都必須通過一套嚴格的無障礙與可用性檢查(例如:焦點指示器、鍵盤可達性、對比度、色彩並非唯一意義來源等),並使用真實內容與產品式樣的資料。當您做出選擇後,技能會刪除所有未採用的變體與切換器,僅保留被選中的版本整合到專案中。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/LIKELION-CAPSULE/Landing_Page/tree/HEAD/.agents/skills/variant

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

變體

此技能會根據您描述的一個 UI 片段,建立三種在設計上有意差異的版本。它們會出現在真實頁面中的一個切換器背後,讓您可以在不同版本之間切換並做出選擇。

它僅產出候選方案,不對其排名。審視現有 UI 請使用 interface-review 與 better-interface,對某個元件進行壓力測試請使用 break,而處理元件的各種狀態則使用 state-machine。

不同的解答,而非不同的色調

每個變體都是對同一份需求的另一種解答,其差異處由這個技能所定義的軸線集合來主導:

軸線擁有者變化要素
結構better-layout分組方式、順序、欄數、何處收合
密度better-layout間距尺度、可容納多少內容
重點better-colors填充顏色放在何處、哪些元素退後
字體better-typography級距步進、字重對比、行長
語調better-writing標籤、語氣、文字量

選定 一個主要軸線,讓每個變體在其上佔據不同的位置。次要的設計選擇會從這個軸線連帶決定,而不是自行變化。一個密度較高的變體可能需要較小的字體級距,這是連貫性的表現,而非第二個軸線。

每個變體必須通過的基本門檻

在變體進入切換器之前,它必須通過 better-interface 所定義的升級觸發檢查,包括:

  • 每個控制項都具有可存取的命名與可見的焦點指示器。
  • 鍵盤可以到達滑鼠能到達的所有地方。
  • 動畫與自動播放的內容尊重 prefers-reduced-motion。
  • 在 320px 寬度或 200% 縮放下,沒有任何元素被裁剪、重疊或無法觸及。
  • 正文與控制項文字皆通過所需的對比度門檻。
  • 沒有任何狀態或意義僅依賴顏色,也沒有任何狀態變化僅依賴動畫。
  • 破壞性操作需有確認步驟、復原機制或顯著的差別化處理。
  • 被截斷的內容需有途徑查看完整數值。
  • 沒有任何內容隱藏在滾動邊緣之外或沒有可見提示的收合面板之後。
  • 每個錯誤訊息都需說明恢復方式。
  • 不使用語義顏色對抗其原本意義,例如在非破壞性操作上使用危險色調。

這個基本門檻在所有變體之間是相同的。它不是一個軸線,也永遠不會與軸線進行取捨。如果某個方向只有在違反此門檻時才能成立,請說明原因並放棄該方向。

1. 聚焦單一元件

每次只處理一個 UI 片段。「儀表板」不是一個片段,指標卡片才是。如果請求涵蓋多個片段,請列出候選項目並詢問要探索哪一個。

用一句話重新陳述需求:這個東西是什麼、它在哪裡渲染、它需要做什麼。

2. 了解背景

變體必須看起來像是明天就能出貨,因此需要閱讀它們所依賴的基礎:

  • 樣式系統、元件庫以及任何動畫庫。
  • 設計代碼:顏色、間距、圓角、字體級距、動畫曲線。
  • 產品的密度與語調。一個密集的專業工具會限制最大膽的變體能走多遠。
  • 這個片段會在哪裡渲染:在什麼背景上、旁邊有什麼鄰居、在哪些寬度下顯示。

如果沒有專案可供參考,請使用中性灰色、一個強調色以及系統字體堆疊,並說明您這樣做了。

3. 在撰寫程式碼之前命名軸線

預設建立三個變體。僅在被要求時才增加到五個。

先寫下清單:每個變體一個名稱和一個軸線位置。名稱要能說明方向,例如 Quiet、Editorial、Dense,絕不使用 Option A。

當沒有兩個變體佔據相同位置,且您能用一句話說出每個變體的軸線時,這個步驟才算完成。

4. 將其建置到真實頁面中

將變體放在實際上會包含該片段的頁面上,帶有真實的瀏覽器外框、真實的相鄰元件以及真實的資料。

使用 URL 搜尋參數進行選擇,例如 ?__variant=quiet,讓每個變體都可以透過連結分享。一個浮動的控制項會設定它;picker.md 中包含了完整的規範。

一次只渲染一個變體,且為完整尺寸。縮圖會扭曲間距與比例,而間距通常正是您要選擇的要素。

變體檔案可以匯入正式環境的元件。只有主頁面會匯入一個變體,其他任何地方都不會匯入測試用的程式碼。

如果沒有頁面可以承載,請建立一個自足的 HTML 檔案,並保留相同的切換器。

為每個變體提供真實的內容:符合產品風格的文字、合理的名稱,以及頁面實際會顯示的項目數量。使用 Lorem ipsum 和三行資料會讓每個結構看起來都很好。

5. 呈現取捨並停止

在已開啟的瀏覽器中載入頁面,瀏覽每個變體。每個變體都能正常渲染、每個互動都有回應,且主控台無錯誤。如果沒有可用的瀏覽器,請說明情況並將 URL 交給使用者檢查。

然後將決定權交給使用者:

變體軸線位置適合時機代價
Quiet最低的視覺重量頁面為每日使用最不令人印象深刻
Editorial最大的字體,最多的空間該時刻需要重量感佔用垂直空間

說明切換器正在哪裡執行、哪個鍵可以切換,以及您是在哪個寬度下判斷的。答案在 375px 和 1440px 之間可能會有所不同。

絕對不要在表格中標示偏好。如果被直接問到,請根據該片段被看到的頻率以及產品的個性來回答,而不是根據您喜歡哪一個來回答。

6. 選擇一個,刪除其餘

一旦做出選擇,將該變體按照專案自身的慣例,正確地建置到它應該在的位置。然後刪除其他變體、切換器以及受保護的匯入。搜尋變體名稱和 __variant 參數,確認差異中沒有留下任何測試用程式碼。

如果要求進行另一輪迭代,則保留測試用程式碼,並重新執行 在撰寫程式碼之前命名軸線,針對您傾向的方向,在新的位置上進行調整。

完成之前

錯誤修正方式
變體僅在強調色或文字上有所不同將其中一個移動到主要軸線上的不同位置,或者直接刪除它
每個軸線都同時變化只變化一個軸線;讓其他軸線從中連帶決定
在空白路徑上判斷將它們放在實際會包含該片段的頁面上
使用 Lorem ipsum、三行資料與「王小明」使用真實的文字和頁面實際會顯示的項目數量
最大膽的變體跳過了鍵盤或焦點通過基本門檻,否則放棄該方向
表格中標示了偏好說明每個變體的成本,讓使用者選擇
切換器使用了專案的設計代碼重新樣式化保持它在視覺上獨立於設計系統之外
推廣之後留下了測試用程式碼刪除它,並搜尋名稱與參數

Individual skills in this repo

This repo contains 14 individual skills — each has its own dedicated page.

LIKELION-CAPSULE/Landing_Page

Reviews and fixes keyboard and focus behavior, ARIA, accessible names, forms, screen-reader announcements, motion and zoom in your project against WCAG 2.2.

LIKELION-CAPSULE/Landing_Page

Helps you build and check a color system for your project. It generates palettes, names semantic tokens, converts between formats and measures contrast.

LIKELION-CAPSULE/Landing_Page

Combines all of the `better-*` skills into a single review across accessibility, layout, writing, typography, color and UI polish.

LIKELION-CAPSULE/Landing_Page

Helps with grouping, alignment, reading order, responsive structure and room for translated text, so a layout holds up when it is resized, translated or mirrored.

LIKELION-CAPSULE/Landing_Page

Sets and reviews how text renders in your product, from the type scale and spacing to font features, wrapping, truncation and punctuation.

LIKELION-CAPSULE/Landing_Page

Polishes the surfaces, icons and motion in your project with exact values for border radius, optical alignment, shadows, icon states and animation.

LIKELION-CAPSULE/Landing_Page

Writes and reviews your interface copy, from labels and errors to empty states and confirmations, so it matches your product's voice and tells people what to do next.

LIKELION-CAPSULE/Landing_Page

Renders a component you choose under every scenario that can reach it on a temporary page and stress tests it.

LIKELION-CAPSULE/Landing_Page

Try to break a piece of UI by feeding it worst-case data — long names, unbreakable emails, one-letter names, missing fields, huge counts, zero items, long labels, non-Latin text, emoji, extreme numbers — then render it behind a "Demo data / Worst case" toggle and report everything that broke, with the fix for each. Use when the user asks to stress-test, break, or find edge cases in a component or screen, or to "try the worst case". For visual design critique use emil-design-eng; for motion use review-animations.

LIKELION-CAPSULE/Landing_Page

Builds UI from a Figma file or a design image so it matches the design, using your project's existing tokens and components.

LIKELION-CAPSULE/Landing_Page

Explains how a website, a visual effect or an animation was built, from a live URL or a screenshot.

LIKELION-CAPSULE/Landing_Page

Reviews a branch, pull request or uncommitted change for the interface problems it introduced or regressed, across accessibility, layout, writing, typography, color and UI.

LIKELION-CAPSULE/Landing_Page

Make a web app feel native on a phone — the small CSS and meta-tag fixes that separate "a website in a browser" from something that feels installed. Covers sticky hover states, tap highlight flashes, the 100vh bug, inputs that zoom the page, laggy taps, pull-to-refresh hijacking scroll, content under the notch, long-press selecting button text, carousels that scroll the wrong way, mismatched status bars, and the rule that you test on real hardware. Use when a web app is being built for or reviewed on mobile, when something "works in Chrome but feels wrong on my phone", when building a PWA, a bottom sheet, a carousel, a full-screen layout, or any touch interaction. For motion itself use animate; for React Native use animate-expo.

LIKELION-CAPSULE/Landing_Page

Renders every state of a component you choose on a throwaway page, with mock data and a switcher, so you can work on each state.

相關技能