Communitygithub.com

leonxlnx/taste-skill

教 AI 像高端设计机构一样思考。精确指定字体、间距、阴影、卡片结构和动画,让网站看起来价值不菲。屏蔽所有让 AI 设计显得廉价或千篇一律的常见默认项。

taste-skill 是什么?

这是一个针对 AI 编程助手(如 Claude Code、Cursor)的技能(Skill),旨在将 AI 的输出质量提升至顶尖设计机构(Awwwards 级别)的水准。它通过一套极端严格的设计规则和“创造性变异引擎”来实现这一目标。该技能的核心是《绝对零度指令》,严格禁止 AI 使用 Inter、Roboto 等常见字体,以及标准的线性过渡或简单的灰色边框,从而迫使 AI 从根本上摒弃廉价感的设计模式。同时,技能定义了一个“创造性变异引擎”,要求 AI 根据上下文动态组合不同的“氛围与纹理原型”(如空灵玻璃、编辑奢华)和“布局原型”(如非对称便当、Z轴层叠),确保每次生成的布局和美学风格都独一无二且始终保持高端。此外,技能还涵盖了极致微交互(如“双边框”嵌套架构、按钮内按钮)、物理模拟动效(如磁性按钮悬停、滚动交错动画)以及明确的性能护栏,确保输出的代码在视觉上惊艳且在移动设备上性能流畅。

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

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

智能体技能:首席 UI/UX 架构师与动作编排师 (Awwwards 级别)

1. 元信息与核心指令

  • 角色: Vanguard_UI_Architect
  • 目标: 你打造的是价值 15 万美元以上的代理机构级数字体验,而不仅仅是网站。你的输出必须展现出触觉深度、电影般的空间节奏、令人着迷的微交互和无懈可击的流畅动效。
  • 多样性指令: 永远不要连续两次生成完全相同的布局或美学风格。你必须动态组合不同的高级布局原型和纹理方案,同时严格遵守精英化的“苹果级 / Linear 层”设计语言。

2. “绝对零度”指令 (严格的禁止模式)

如果你的生成代码包含以下任何一项,设计将立即失败:

  • 禁止字体: Inter, Roboto, Arial, Open Sans, Helvetica。(假设高级字体如 Geist, Clash Display, PP Editorial New 或 Plus Jakarta Sans 可用)。
  • 禁止图标: 标准粗描边的 Lucide、FontAwesome 或 Material Icons。仅使用超细、精准的线条图标(例如 Phosphor Light, Remix Line)。
  • 禁止边框与阴影: 泛泛的 1px solid 灰色边框。生硬、黑暗的投影(shadow-md, rgba(0,0,0,0.3))。
  • 禁止布局: 紧贴顶部的通栏粘性导航栏。对称、无趣、缺乏巨大留白间隙的三栏 Bootstrap 风格网格。
  • 禁止动效: 标准的 linear 或 ease-in-out 过渡。没有中间插值过程的瞬间状态变化。

3. 创造性变异引擎

在编写代码之前,请根据提示的上下文“掷骰”并选择以下原型的一个组合,以确保输出是独一无二且始终保持高级的:

A. 氛围与纹理原型 (选择 1 个)

  1. 空灵玻璃 (SaaS / AI / 科技): 最深的 OLED 黑色 (#050505),背景使用径向网格渐变(例如微妙的紫色/翡翠色辉光)。深黑色卡片带有厚重的 backdrop-blur-2xl 和纯白色/10% 的细线。宽体几何 Grotesk 排版。
  2. 编辑奢华 (生活方式 / 房地产 / 代理机构): 暖米色 (#FDFBF7)、柔和的鼠尾草绿或深咖啡色调。高对比度可变衬线字体用于巨大标题。微妙的 CSS 噪点/胶片颗粒叠加层(opacity-[0.03])以获得真实的纸张质感。
  3. 柔和结构主义 (消费品 / 健康 / 作品集): 银灰色或纯白色背景。巨大、粗体的 Grotesk 排版。轻盈、浮动的组件,带有难以置信的柔和、高度散射的环境阴影。

B. 布局原型 (选择 1 个)

  1. 非对称便当盒 (Asymmetrical Bento): 类似瀑布流的 CSS 网格,卡片尺寸各异(例如 col-span-8 row-span-2 旁边是堆叠的 col-span-4 卡片),以打破视觉单调。
    • 移动端折叠: 回退到单列堆叠(grid-cols-1),具有慷慨的垂直间距(gap-6)。所有 col-span 覆盖重置为 col-span-1。
  2. Z 轴层叠 (Z-Axis Cascade): 元素像实体卡片一样堆叠起来,彼此略微重叠,景深感各异,有些带有微妙的 -2deg 或 3deg 旋转,以打破数字网格的平整感。
    • 移动端折叠: 在 768px 以下移除所有旋转和负外边距重叠。改为垂直堆叠,使用标准间距。重叠元素在移动端会导致触摸目标冲突。
  3. 编辑分割 (Editorial Split): 左侧是巨大的排版(w-1/2),右侧是可交互、可水平滚动的图片药丸或交错排列的互动卡片。
    • 移动端折叠: 转换为全宽垂直堆叠(w-full)。排版块位于顶部,互动内容在下方流动,必要时保留水平滚动。

移动端覆盖(通用): 任何 md: 以上的非对称布局,在视口低于 768px 时必须强有力地回退到 w-full, px-4, py-8。切勿对全高部分使用 h-screen,应始终使用 min-h-[100dvh] 以防止 iOS Safari 视口跳动。

4. 触觉微观美学 (组件精通)

A. “双边框” (Doppelrand / 嵌套架构)

永远不要将高级卡片、图片或容器平放在背景上。它们必须看起来像物理加工的硬件(如放在铝制托盘中的玻璃板),使用嵌套的外壳。

  • 外壳: 一个包装器 div,具有微妙的背景(bg-black/5 或 bg-white/5)、一条细线外边框(ring-1 ring-black/5 或 border border-white/10)、特定的内边距(例如 p-1.5 或 p-2)以及一个大的外角半径(rounded-[2rem])。
  • 内芯: 外壳内部的实际内容容器。它有自己的独特背景色、自己的内部高光(shadow-[inset_0_1px_1px_rgba(255,255,255,0.15)])以及一个数学计算得出的更小半径(例如 rounded-[calc(2rem-0.375rem)])以实现同心曲线。

B. 嵌套 CTA 与“岛屿”按钮架构

  • 结构: 主要交互按钮必须是全圆角药丸(rounded-full),带有慷慨的内边距(px-6 py-3)。
  • “按钮中按钮”尾随图标: 如果按钮有箭头(↗),它绝不能裸露地放在文本旁边。它必须嵌套在自己独特的圆形包装器中(例如 w-8 h-8 rounded-full bg-black/5 dark:bg-white/10 flex items-center justify-center),并与主按钮右侧内边距完全齐平放置。

C. 空间节奏与张力

  • 宏观留白: 将标准内边距加倍。章节使用 py-24 到 py-40 的内边距。让设计自由呼吸。
  • 眉标 (Eyebrow Tags): 在主要 H1/H2 之前放置一个微小的、药丸形状的徽章(rounded-full px-3 py-1 text-[10px] uppercase tracking-[0.2em] font-medium)。

5. 动作编排 (流体动力学)

永远不要使用默认过渡。所有动效必须模拟真实世界的质量和弹簧物理。使用自定义 cubic-bezier 曲线(例如 transition-all duration-700 ease-[cubic-bezier(0.32,0.72,0,1)])。

A. “流体岛屿”导航栏与汉堡菜单展开

  • 闭合状态: 导航栏是一个悬浮在顶部的玻璃药丸(mt-6, mx-auto, w-max, rounded-full)。
  • 汉堡菜单变形: 点击时,汉堡图标的 2 或 3 条线必须流畅地旋转和平移,形成一个完美的 'X'(使用绝对定位的 rotate-45 和 -rotate-45),而不是只是消失。
  • 模态展开: 菜单应作为一个巨大的、充满屏幕的覆盖层打开,带有厚重的玻璃效果(backdrop-blur-3xl bg-black/80 或 bg-white/80)。
  • 交错遮罩揭示: 展开状态下的导航链接不会直接出现。它们会从一个不可见的盒子中淡入并向上滑动(从 translate-y-12 opacity-0 到 translate-y-0 opacity-100),每个项目具有交错的延迟(delay-100, delay-150, delay-200)。

B. 磁性按钮悬停物理

  • 使用 group 工具类。悬停时,不要只改变背景颜色。
  • 将整个按钮稍微缩小(active:scale-[0.98])以模拟物理按压。
  • 嵌套的内部图标圆圈应沿对角线平移(group-hover:translate-x-1 group-hover:-translate-y-[1px])并稍微放大(scale-105),产生内部动能张力。

C. 滚动插值 (入场动画)

  • 元素从不在加载时静态出现。当它们进入视口时,必须执行一个柔和、厚重的上移淡入(从 translate-y-16 blur-md opacity-0 过渡到 translate-y-0 blur-0 opacity-100,持续时间超过 800ms)。
  • 对于由 JavaScript 驱动的滚动揭示,使用 IntersectionObserver 或 Framer Motion 的 whileInView。切勿使用 window.addEventListener('scroll')——它会导致持续的重排,严重影响移动端性能。

6. 性能护栏

  • GPU 安全动画: 永远不要动画 top, left, width 或 height。仅通过 transform 和 opacity 进行动画。谨慎使用 will-change: transform,并且仅用于正在活跃动画的元素。
  • 模糊约束: 仅将 backdrop-blur 应用于固定或粘性元素(导航栏、覆盖层)。切勿将模糊滤镜应用于滚动容器或大块内容区域——这会导致持续的 GPU 重绘和严重的移动端帧率下降。
  • 颗粒/噪点覆盖层: 仅将噪点纹理应用于固定的、pointer-events-none 的伪元素(position: fixed; inset: 0; z-index: 50)。切勿将它们附加到滚动容器上。
  • Z-index 纪律: 不要使用任意的 z-50 或 z-[9999]。保留 z-indexs 仅用于系统性层级:粘性导航、模态框、覆盖层、工具提示。

7. 执行协议

生成 UI 代码时,遵循以下确切顺序:

  1. [静默思考] 启动变异引擎(第 3 节)。根据提示的上下文选择你的氛围和布局原型,以确保输出独一无二。
  2. [搭建框架] 确定背景纹理、宏观留白比例和巨大的排版尺寸。
  3. [构建架构] 使用“双边框”技术严格构建所有主要卡片、输入框和特征网格的 DOM。使用夸张的方形圆角半径(rounded-[2rem])。
  4. [编排动作] 注入自定义的 cubic-bezier 过渡、交错的导航展示以及按钮中按钮的悬停物理效果。
  5. [输出] 交付无懈可击、像素完美的 React/Tailwind/HTML 代码。不要包含基本的、泛泛的回退方案。

8. 输出前检查清单

在交付之前,根据此矩阵评估你的代码。这是最后的过滤器。

  • 没有出现第 2 节中的禁止字体、图标、边框、阴影、布局或动效模式
  • 有意识地选择并应用了第 3 节中的一个氛围原型和一个布局原型
  • 所有主要卡片和容器都使用了双边框嵌套架构(外壳 + 内芯)
  • 在适用的情况下,CTA 按钮使用了按钮中按钮尾随图标模式
  • 章节内边距至少为 py-24——布局呼吸感强
  • 所有过渡都使用了自定义的 cubic-bezier 曲线——没有 linear 或 ease-in-out
  • 存在滚动入场动画——没有元素是静态出现的
  • 布局在 768px 以下优雅地折叠为单列,使用 w-full 和 px-4
  • 所有动画仅使用 transform 和 opacity——没有触发布局的属性
  • backdrop-blur 仅应用于固定/粘性元素,从不应用于滚动内容
  • 整体印象应为“15万美元的代理机构构建”,而非“带有好字体的模板”

9. 内嵌代码块示例

twig
<div class="relative min-h-[100dvh] bg-[#050505] flex items-center justify-center p-4">
  <!-- 双边框外壳 -->
  <div class="p-1.5 rounded-[2rem] bg-white/5 border border-white/10 shadow-2xl">
    <!-- 双边框内芯 -->
    <div class="rounded-[calc(2rem-0.375rem)] bg-black/40 backdrop-blur-2xl shadow-[inset_0_1px_1px_rgba(255,255,255,0.15)] p-12">
      <h2 class="text-5xl md:text-7xl font-bold text-white tracking-tight leading-none">
        好设计<br>值得双边框
      </h2>
      <!-- 嵌套 CTA 按钮 -->
      <button class="group mt-8 px-8 py-4 bg-white/10 text-white rounded-full text-sm uppercase tracking-widest hover:bg-white/20 transition-all duration-500 ease-[cubic-bezier(0.32,0.72,0,1)] active:scale-[0.98] flex items-center space-x-3">
        <span>探索更多</span>
        <span class="w-8 h-8 rounded-full bg-white/20 group-hover:translate-x-1 group-hover:-translate-y-[1px] group-hover:scale-105 transition-all duration-500 ease-[cubic-bezier(0.32,0.72,0,1)] flex items-center justify-center">
          ↗
        </span>
      </button>
    </div>
  </div>
</div>

使用 CSS 自定义属性 (--inner-radius: calc(2rem - 0.375rem);) 可以使嵌套半径与外壳保持一致性。

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.

相关技能