Communitygithub.com

leonxlnx/taste-skill

用於著陸頁、作品集和重新設計的「反模板」前端技能。代理人會閱讀需求摘要,推斷正確的設計方向,並產出看起來不像是套版的使用者介面。必要時使用真正的設計系統,先審計再重新設計,並執行嚴格的開始前檢查。

taste-skill 是什麼?

tasteskill 是一個專門的前端技能,旨在幫助 AI 代理人生產「非模板化」的使用者介面,適用於著陸頁、作品集和網站重新設計等場景。它的核心是防止大型語言模型預設輸出 AI 風格模板,例如紫色漸層、置中英雄區塊和泛用的玻璃態效果。該技能提供了一套結構化的工作流程,從需求推斷開始,要求代理人先閱讀完整的需求摘要,然後設定三個關鍵設計旋鈕:設計變異度、動畫強度和視覺密度。這些旋鈕會根據不同的美感風格(如極簡主義、高級消費品或公共利益)進行調整,以驅動具體的佈局、動畫和資訊密度決策。 技能明確區分了使用官方設計系統(例如針對微軟生態系的 Fluent UI、針對 IBM 的 Carbon、針對 Shopify 的 Polaris)與僅需原生 CSS 或 Tailwind CSS 來達成特定美學風格(如玻璃態、極簡主義或編輯器風格)的場景。它提供了詳細的預設架構(以 React 或 Next.js 為基礎,搭配 Tailwind v4 與 Motion 動畫庫),並透過嚴格的規則來修正 AI 常見的偏差,例如禁止將 "Inter" 字體當作預設、非常不鼓勵使用襯線字體,以及禁止使用 `h-screen`(改用 `min-h-[100dvh]`)來避免手機上的版面跳動。此外,tasteskill 還包含詳細的版面設計規則、互動元素庫、重新設計流程指南以及一套嚴格的「開始前檢查」,確保產出符合無障礙、效能與品牌一致性等要求。簡而言之,tasteskill 透過一系列客觀的設計邏輯,取代了 AI 主觀的美感選擇,幫助開發者與設計師創作出更具辨識度、更專業的使用者介面。

相容平台~Claude Code✓Codex CLI✓Cursor
npx skills add https://github.com/leonxlnx/taste-skill/tree/main/skills/taste-skill

在你喜歡的 AI 中提問

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

說明文件

tasteskill:反模板前端技能

適用於著陸頁、作品集和重新設計。不適用於儀表板、資料表格或多步驟產品介面。 以下每一條規則都是根據上下文而定的。沒有一條規則會自動觸發。先閱讀需求摘要,然後只提取符合的規則。


0. 需求推斷(在動手之前,先讀懂語境)

在接觸程式碼或調整參數之前,先推斷使用者真正想要的是什麼。大多數大型語言模型的設計輸出之所以糟糕,是因為模型跳到了預設的美感,而不是先讀懂語境。

0.A 優先讀取這些訊號

  1. 頁面類型 - 著陸頁(SaaS / 消費型 / 代理商 / 活動)、作品集(開發者 / 設計師 / 創意工作室)、重新設計(保留 vs. 全面翻新)、編輯部 / 部落格。
  2. 使用者使用的氛圍詞 - "極簡主義"、"平靜"、"Linear 風格"、"Awwwards"、"粗獷主義"、"高級消費品"、"Apple 風格"、"活潑"、"嚴肅 B2B"、"編輯器風格"、"代理商風格"、"玻璃態"、"暗黑科技"。
  3. 參考訊號 - 他們連結的網址、貼上的螢幕截圖、提到的產品、競爭的品牌。
  4. 受眾 - B2B 採購小組 vs. 重視設計的消費者 vs. 正在瀏覽作品集的招募人員。受眾決定美感,而不是你的個人品味。
  5. 已存在的品牌資產 - Logo、顏色、字體、攝影作品。對於重新設計,這些是起點材料,而不是可選輸入(請參閱第 11 節)。
  6. 隱性限制 - 以無障礙為主的受眾、公共部門、受監管行業、信任優先的商業、兒童產品。這些限制會覆蓋美學偏好。

0.B 在生成任何程式碼前,輸出一行「設計解讀」

在任何程式碼之前,用一行話陳述:「將其解讀為:<頁面類型>,目標受眾為 <受眾>,帶有 <氛圍> 的語言,傾向於 <設計系統或美感家族>。」

範例解讀:

  • 「將其解讀為:B2B SaaS 著陸頁,目標為技術買家,帶有 Linear 風格的極簡主義語言,傾向於使用 Tailwind 實用程式 + Geist 字體 + 克制動畫。」
  • 「將其解讀為:個人設計師作品集,目標為招募經理,帶有編輯器 / 動態排版語言,傾向於使用原生 CSS + 滾動驅動動畫 + 自訂字體。」
  • 「將其解讀為:公共服務網站的重新設計,帶有信任優先的語言,傾向於使用 GOV.UK Frontend 或 USWDS。」

0.C 如果需求不明確,問一個問題,不要猜測

只問一個釐清問題——絕對不要一次丟出一堆問題——而且只有在設計解讀確實出現分歧時才問。範例:「這應該更接近 Linear 風格的乾淨,還是 Awwwards 風格的實驗性?」

如果你能根據上下文自信地推斷出來,就不要問。直接宣告設計解讀並繼續。

0.D 反預設規範

不要預設使用:AI 紫色漸層、置中英雄區塊配上深色網格、三個等分的功能卡片、在所有東西上使用泛用的玻璃態效果、無所不在的無限循環微動畫、Inter 字體加上 slate-900。這些是大型語言模型的預設值。根據設計解讀,刻意地超越它們。


1. 三個旋鈕(核心設定)

在完成設計解讀後,設定三個旋鈕。以下每一項佈局、動畫和密度決策都由這些旋鈕決定。

  • DESIGN_VARIANCE: 8 - 1 = 完美對稱,10 = 藝術混亂
  • MOTION_INTENSITY: 6 - 1 = 靜態,10 = 電影感 / 物理模擬
  • VISUAL_DENSITY: 4 - 1 = 藝廊 / 寬敞通透,10 = 駕駛艙 / 塞滿資料

基準值: 8 / 6 / 4。除非設計解讀覆蓋了這些值,否則使用它們。不要讓使用者編輯這個檔案——覆蓋操作是透過對話進行的。

1.A 旋鈕推斷(設計解讀 → 旋鈕值)

訊號VARIANCEMOTIONDENSITY
"極簡主義 / 乾淨 / 平靜 / 編輯器風格 / Linear 風格"5-63-42-3
"高級消費品 / Apple 風格 / 奢華 / 品牌"7-85-73-4
"活潑 / 狂野 / Dribbble / Awwwards / 實驗性 / 代理商"9-108-103-4
"著陸頁 / 作品集 / 行銷網站(預設)"7-96-83-5
"信任優先 / 公共部門 / 受監管 / 無障礙關鍵"3-42-34-5
"重新設計 - 保留"符合現有+1符合現有
"重新設計 - 全面翻新"+2+2符合現有

1.B 使用案例預設

使用案例VARIANCEMOTIONDENSITY
著陸頁(SaaS, 主流)764
著陸頁(代理商 / 創意)983
著陸頁(高級消費品)763
作品集(設計師 / 工作室)873
作品集(開發者)654
編輯部 / 部落格643
公共服務325
重新設計 - 保留符合符合+1符合
重新設計 - 全面翻新+2+2符合

1.C 旋鈕如何驅動輸出

將這些值(或使用者覆蓋後的值)當作全域變數使用。貫穿本文檔的交叉引用都指向這些確切的變數名稱——絕對不要發明像 LAYOUT_VARIANCE 或 ANIM_LEVEL 之類的別名。


2. 需求摘要 → 設計系統對應

一旦你有了設計解讀(第 0 節)和旋鈕值(第 1 節),選擇正確的基礎框架。不要為那些已有官方套件的東西發明 CSS。不要把一種美學趨勢假裝成一個官方系統。

2.A 何時使用真正的設計系統(使用官方套件)

需求解讀為...選擇原因
微軟 / 企業 SaaS / 儀表板@fluentui/react-components 或 @fluentui/web-components官方 Fluent UI,微軟標記,無障礙完善
Google 風格介面,Material 風格產品@material/web + Material 3 tokens官方,可透過 Material Theming 設定主題
IBM 風格 B2B / 企業分析@carbon/react + @carbon/styles官方 Carbon,成熟的資料密度模式
Shopify 應用程式表面polaris.js web components / Polaris ReactShopify 管理員介面所需
Atlassian / Jira 風格產品@atlaskit/* + @atlaskit/tokens官方 Atlassian 設計系統
GitHub 風格開發工具 / 社群頁面@primer/css 或 @primer/react-brand官方 Primer;Brand 變體用於行銷
英國公共服務govuk-frontend法律 / 法規上預期使用
美國公共服務 / 信任優先uswds同上
快速本地商家 / 代理商 MVPBootstrap 5.3無聊、快速、可用
現代無障礙 React 基礎@radix-ui/themes基本元素 + 打磨過的主題
現代 SaaS,你擁有所有元件shadcn/ui (npx shadcn@latest add ...)你擁有程式碼,易於自訂;永遠不要交付預設狀態
基於 Tailwind 的現代 SaaS / AI 行銷Tailwind v4 utilities + dark: variant獨立開發者和小團隊構建的預設選項

誠實原則: 如果需求解讀為上述系統之一,請安裝並使用官方套件。不要手動重新建立其 CSS。不要導入一個系統的標記,然後又覆蓋掉其中的 90%。

每個專案只使用一個系統。 不要在同一個樹狀結構中混用 Fluent React 和 Carbon。不要將 shadcn/ui 元件導入到 Material 3 應用程式中。

2.B 當需求是一種美感,而不是一個系統時

對於這些方向,沒有單一的官方套件。使用原生 CSS + Tailwind + 一個有維護的元件庫來建構。在程式碼註解中誠實地說明哪些是借鑒的靈感,哪些是官方素材。

美感誠實的實作方式
玻璃態 / "磨砂玻璃"backdrop-filter、分層邊框、高光疊層。為 prefers-reduced-transparency 提供純色填充備援方案。
Bento(Apple 風格的網格)使用混合單元格大小的 CSS Grid。沒有任何單一庫擁有這個。
粗獷主義原生 CSS、等寬字體、原始邊框。無需函式庫。
編輯器風格 / 雜誌風格襯線字體、不對稱網格、大量留白。無需函式庫。
暗黑科技 / 駭客風格等寬字體 + 重點霓虹色、終端機主題。無需函式庫。
極光 / 網格漸層SVG 或分層徑向漸層。無需函式庫。
動態排版原生 CSS 動畫、滾動驅動動畫、使用 GSAP 進行高級操作。無需函式庫。
Apple Liquid GlassApple 僅為 Apple 平台記錄了這個效果。沒有官方的 liquid-glass.css。 網頁實作需使用 backdrop-filter + 分層邊框 + 高光的近似方案。明確標示為近似方案。

3. 預設架構與慣例

除非設計解讀選擇了一個真正的設計系統(第 2.A 節),否則使用以下預設值:

3.A 技術棧

  • 框架: React 或 Next.js。預設為伺服器元件。
    • RSC 安全性: 全域狀態僅能在用戶端元件中運作。在 Next.js 中,將 providers 包裹在一個設有 "use client" 的元件中。
    • 互動隔離: 任何使用 Motion、滾動監聽器或指針物理效果的元件,都必須是隔離的葉節點,並在頂部加上 'use client'。伺服器元件僅渲染靜態佈局。
  • 樣式: Tailwind v4(預設)。僅在現有專案要求時使用 Tailwind v3。
    • 對於 v4:不要在 postcss.config.js 中使用 tailwindcss 插件。請使用 @tailwindcss/postcss 或 Vite 插件。
  • 動畫: Motion(前身為 Framer Motion 的函式庫)。從 motion/react 導入(import { motion } from "motion/react")。framer-motion 套件仍可作為舊版別名使用——但在新程式碼中優先使用 motion/react。
  • 字體: 始終使用 next/font(Next.js)或使用 @font-face + font-display: swap 自行託管。絕不在生產環境中透過 <link> 連結 Google Fonts。

3.B 狀態管理

  • 使用區域 useState / useReducer 管理隔離的 UI 狀態。
  • 僅在需要深度傳遞 props 時才使用全域狀態——使用 Zustand、Jotai 或 React context。
  • 絕對不要使用 useState 來追蹤由使用者輸入驅動的連續值(滑鼠位置、滾動進度、指針物理、磁性懸停)。請使用 Motion 的 useMotionValue / useTransform / useScroll。useState 會在每次變化時重新渲染整個 React 樹,並在行動裝置上崩潰。

3.C 圖示

  • 允許的函式庫(優先順序): @phosphor-icons/react、hugeicons-react、@radix-ui/react-icons、@tabler/icons-react。
  • 不鼓勵: lucide-react。僅在使用者明確要求或專案已依賴它時才可接受。
  • 絕對不要手寫 SVG 圖示。 如果缺少某個圖案,請安裝第二個函式庫或從基本元素組合——不要從頭開始繪製圖示路徑。
  • 每個專案只使用一個圖示家族。 不要在同一個元件樹中混用 Phosphor 和 Lucide。
  • 全域標準化 strokeWidth(例如 1.5 或 2.0)。

3.D Emoji 政策

預設不鼓勵在程式碼、標記和可見文字中使用表情符號。用圖示庫中的圖案取代符號。覆蓋: 僅在使用者明確要求活潑 / 聊天風格 / 社群原生氛圍時才允許使用表情符號——即使如此,也要有目的地節制使用。

3.E 響應式設計與佈局機制

  • 標準化中斷點(sm 640, md 768, lg 1024, xl 1280, 2xl 1536)。
  • 使用 max-w-[1400px] mx-auto 或 max-w-7xl 來約束頁面佈局。
  • 視口穩定性: 絕對不要對全高英雄區塊使用 h-screen。始終使用 min-h-[100dvh] 以防止在行動裝置上(iOS Safari 網址列)出現佈局跳動。
  • 使用 Grid 而非 Flex 數學計算: 絕對不要使用複雜的 flexbox 百分比數學運算(w-[calc(33%-1rem)])。始終使用 CSS Grid(grid grid-cols-1 md:grid-cols-3 gap-6)。

3.F 依賴項驗證(強制)

在導入任何第三方函式庫之前,請檢查 package.json。如果缺少該套件,請先輸出安裝命令。絕對不要假設某個函式庫已經存在。


4. 設計工程指令(偏差修正)

LLM 預設會使用陳腔濫調。主動覆寫這些預設值。每個規則都有一個基於上下文的覆寫路徑。

4.1 字體排印

  • 展示 / 標題: 預設 text-4xl md:text-6xl tracking-tighter leading-none。

  • 內文 / 段落: 預設 text-base text-gray-600 leading-relaxed max-w-[65ch]。

  • 無襯線字體選擇:

    • 不鼓勵作為預設: Inter。優先選擇 Geist、Outfit、Cabinet Grotesk、Satoshi 或符合品牌的襯線字體。
    • 覆寫: 當使用者明確要求中性 / 標準 / Linear 風格的感覺,或者當需求是公共部門 / 無障礙優先的網站時,可以使用 Inter。
  • 需要知道的字體搭配: Geist + Geist Mono、Satoshi + JetBrains Mono、Cabinet Grotesk + Inter Tight、GT America + IBM Plex Mono。

  • 襯線字體規範(非常不鼓勵作為預設):

    • 對於任何專案,非常不鼓勵將襯線字體作為預設字體。「它感覺很有創意/高級/編輯風格」並不是選擇襯線字體的理由。代理人的預設心智模型認為「創意需求 = 襯線字體」是經過多輪生產測試後,AI 最顯著的習慣性特徵。
    • 僅在以下其中一項明確成立時,襯線字體才是可接受的:
      • 品牌需求中明確提到了襯線字體名稱,或者
      • 美感家族真的是編輯器風格 / 奢華 / 出版 / 手稿 / 傳統 / 復古,而且你能清楚說明為什麼這個特定的襯線字體適合這個特定的品牌
    • 對於所有其他情況(創意代理商、設計工作室、現代品牌、高級消費品、作品集、生活風格),預設使用無襯線展示字體(Geist Display, ABC Diatype, Söhne Breit, Cabinet Grotesk Display, Migra Sans, GT Walsheim, Inter Display, PP Neue Montreal)。無襯線展示字體並不「無聊」——它們是預設選項,就如同黑色是時尚界的預設顏色。
    • 強調規則(相關): 當你想在標題中強調一個詞(例如動態的「and spatial design」技巧),請使用相同字體的斜體或粗體。不要為了增加視覺趣味,而在無襯線標題中插入一個隨機的襯線字詞(反之亦然)。混合字體家族的強調是業餘的。相同字體家族的斜體/粗體強調才是正確的做法。
    • 特別禁止作為預設: Fraunces 和 Instrument_Serif(兩個 LLM 最喜歡的展示用襯線字體)。
    • 如果使用了襯線字體(根據上述,很少見),請從這個集合中輪換使用,不要在連續的專案中重複使用同一個襯線字體:PP Editorial New, GT Sectra Display, Cardinal Grotesque, Reckless Neue, Tiempos Headline, Recoleta, Cormorant Garamond, Playfair Display, EB Garamond, IvyPresto, Migra, Editorial Old, Saol Display, Söhne Breit Kursiv, Domaine Display, Canela, Schnyder, Tobias, NB Architekt, I

Individual skills in this repo

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

leonxlnx/design-taste-frontend

Senior UI/UX Engineer. Architect digital interfaces overriding default LLM biases. Enforces metric-based rules, strict component architecture, CSS hardware acceleration, and balanced design engineering.

leonxlnx/design-taste-frontend-v1

The original v1 taste-skill, preserved for projects depending on its exact behavior. The current default is `design-taste-frontend` (v2 experimental), which is a substantial rewrite. Use this v1 install name only if you need exact backward compatibility.

leonxlnx/full-output-enforcement

Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.

leonxlnx/gpt-taste

Elite UX/UI & Advanced GSAP Motion Engineer. Enforces Python-driven true randomization for layout variance, strict AIDA page structure, wide editorial typography (bans 6-line wraps), gapless bento grids, strict GSAP ScrollTriggers (pinning, stacking, scrubbing), inline micro-images, and massive section spacing.

leonxlnx/high-end-visual-design

Teaches the AI to design like a high-end agency. Defines the exact fonts, spacing, shadows, card structures, and animations that make a website feel expensive. Blocks all the common defaults that make AI designs look cheap or generic.

leonxlnx/image-taste-frontend

Elite website image-to-code skill for Codex. For visually important web tasks, it must first generate the design image(s) itself, deeply analyze them, then implement the website to match them as closely as possible. In Codex, it must prefer large, readable, section-specific images instead of tiny compressed boards, generate fresh standalone images for sections or detail views instead of cropping old ones, avoid lazy under-generation, avoid cards-inside-cards-inside-cards UI, and keep the hero clean, spacious, readable, and visible on a small laptop.

leonxlnx/image-to-code

Elite website image-to-code skill for Codex. For visually important web tasks, it must first generate the design image(s) itself, deeply analyze them, then implement the website to match them as closely as possible. In Codex, it must prefer large, readable, section-specific images instead of tiny compressed boards, generate fresh standalone images for sections or detail views instead of cropping old ones, avoid lazy under-generation, avoid cards-inside-cards-inside-cards UI, and keep the hero clean, spacious, readable, and visible on a small laptop.

leonxlnx/industrial-brutalist-ui

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

leonxlnx/minimalist-ui

Clean editorial-style interfaces. Warm monochrome palette, typographic contrast, flat bento grids, muted pastels. No gradients, no heavy shadows.

leonxlnx/redesign-existing-projects

Upgrades existing websites and apps to premium quality. Audits current design, identifies generic AI patterns, and applies high-end design standards without breaking functionality. Works with any CSS framework or vanilla CSS.

leonxlnx/stitch-design-taste

Semantic Design System Skill for Google Stitch. Generates agent-friendly DESIGN.md files that enforce premium, anti-generic UI standards — strict typography, calibrated color, asymmetric layouts, perpetual micro-motion, and hardware-accelerated performance.

leonxlnx/taste-skill

Premium brand-kit image generation skill for creating high-end brand-guidelines boards, logo systems, identity decks, and visual-world presentations. Trained for minimalist, cinematic, editorial, dark-tech, luxury, cultural, security, gaming, developer-tool, and consumer-app brand systems. Optimized for intentional logo concepting, refined composition, sparse typography, strong symbolic meaning, premium mockups, art-directed imagery, and flexible grid layouts.

leonxlnx/taste-skill

The original v1 taste-skill, preserved for projects depending on its exact behavior. The current default is `design-taste-frontend` (v2 experimental), which is a substantial rewrite. Use this v1 install name only if you need exact backward compatibility.

leonxlnx/taste-skill

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

leonxlnx/taste-skill

Elite UX/UI & Advanced GSAP Motion Engineer. Enforces Python-driven true randomization for layout variance, strict AIDA page structure, wide editorial typography (bans 6-line wraps), gapless bento grids, strict GSAP ScrollTriggers (pinning, stacking, scrubbing), inline micro-images, and massive section spacing.

leonxlnx/taste-skill

Elite mobile app image-generation skill for creating premium, app-native screen concepts and flows. Designed for iOS, Android, and cross-platform mobile products. Prioritizes clean hierarchy, comfortably readable text, strong multi-screen consistency, controlled color palettes, non-generic creative direction, textured surfaces, image-led composition, tasteful custom iconography, and clean phone mockup framing. By default, screens should be shown inside a subtle premium iPhone or similar phone mockup with a visible frame, while the main focus stays on the app content itself. This skill generates images only. It does not write code.

leonxlnx/taste-skill

Elite frontend image-direction skill for generating premium, conversion-aware website design references. CRITICAL OUTPUT RULE — generate ONE separate horizontal image FOR EVERY section. A landing page with 8 sections produces 8 images. Never compress multiple sections into one image. Enforces composition variety (not always left-text / right-image), background-image freedom, varied CTAs, varied hero scales (giant / mid / mini minimalist), narrative concept spine, second-read moments, and a single consistent palette across all images. Optimized for landing pages, marketing sites, and product comps that developers or coding models can accurately recreate.

leonxlnx/taste-skill

Elite website image-to-code skill for Codex. For visually important web tasks, it must first generate the design image(s) itself, deeply analyze them, then implement the website to match them as closely as possible. In Codex, it must prefer large, readable, section-specific images instead of tiny compressed boards, generate fresh standalone images for sections or detail views instead of cropping old ones, avoid lazy under-generation, avoid cards-inside-cards-inside-cards UI, and keep the hero clean, spacious, readable, and visible on a small laptop.

leonxlnx/taste-skill

Clean editorial-style interfaces. Warm monochrome palette, typographic contrast, flat bento grids, muted pastels. No gradients, no heavy shadows.

leonxlnx/taste-skill

Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.

相關技能