AGENT SKILL

Tailwind UI 设计规范校验

baseline-ui

验证动画时长、强制统一排版比例、检查组件可访问性,并防止 Tailwind CSS 项目中的布局反模式。在构建 UI 组件、审查 CSS 工具类、编写 React 视图样式或强化设计一致性时使用。

License 许可
MIT
所属仓库
CoralShades/acm-ai
最近更新
2026-04-18
Stars
★ 0
Forks
0

01 前言 Front Matter

name
baseline-ui
description
Validates animation durations, enforces typography scale, checks component accessibility, and prevents layout anti-patterns in Tailwind CSS projects. Use when building UI components, reviewing CSS utilities, styling React views, or enforcing design consistency.

02 资源文件 2

03 SKILL.md 正文

Baseline UI

Enforces an opinionated UI baseline to prevent AI-generated interface slop.

How to use

  • /baseline-ui Apply these constraints to any UI work in this conversation.

  • /baseline-ui <file> Review the file against all constraints below and output:

    • violations (quote the exact line/snippet)
    • why it matters (1 short sentence)
    • a concrete fix (code-level suggestion)

Stack

  • MUST use Tailwind CSS defaults unless custom values already exist or are explicitly requested
  • MUST use motion/react (formerly framer-motion) when JavaScript animation is required
  • SHOULD use tw-animate-css for entrance and micro-animations in Tailwind CSS
  • MUST use cn utility (clsx + tailwind-merge) for class logic

Components

  • MUST use accessible component primitives for anything with keyboard or focus behavior (Base UI, React Aria, Radix)
  • MUST use the project’s existing component primitives first
  • NEVER mix primitive systems within the same interaction surface
  • SHOULD prefer Base UI for new primitives if compatible with the stack
  • MUST add an aria-label to icon-only buttons
  • NEVER rebuild keyboard or focus behavior by hand unless explicitly requested

Interaction

  • MUST use an AlertDialog for destructive or irreversible actions
  • SHOULD use structural skeletons for loading states
  • NEVER use h-screen, use h-dvh
  • MUST respect safe-area-inset for fixed elements
  • MUST show errors next to where the action happens
  • NEVER block paste in input or textarea elements

Animation

  • NEVER add animation unless it is explicitly requested
  • MUST animate only compositor props (transform, opacity)
  • NEVER animate layout properties (width, height, top, left, margin, padding)
  • SHOULD avoid animating paint properties (background, color) except for small, local UI (text, icons)
  • SHOULD use ease-out on entrance
  • NEVER exceed 200ms for interaction feedback
  • MUST pause looping animations when off-screen
  • SHOULD respect prefers-reduced-motion
  • NEVER introduce custom easing curves unless explicitly requested
  • SHOULD avoid animating large images or full-screen surfaces

Typography

  • MUST use text-balance for headings and text-pretty for body/paragraphs
  • MUST use tabular-nums for data
  • SHOULD use truncate or line-clamp for dense UI
  • NEVER modify letter-spacing (tracking-*) unless explicitly requested

Layout

  • MUST use a fixed z-index scale (no arbitrary z-*)
  • SHOULD use size-* for square elements instead of w-* + h-*

Performance

  • NEVER animate large blur() or backdrop-filter surfaces
  • NEVER apply will-change outside an active animation
  • NEVER use useEffect for anything that can be expressed as render logic

Design

  • NEVER use gradients unless explicitly requested
  • NEVER use purple or multicolor gradients
  • NEVER use glow effects as primary affordances
  • SHOULD use Tailwind CSS default shadow scale unless explicitly requested
  • MUST give empty states one clear next action
  • SHOULD limit accent color usage to one per view
  • SHOULD use existing theme or Tailwind CSS color tokens before introducing new ones

04 同仓库更多 Skills

CoralShades
CoralShades/acm-ai

前端界面去 AI 化设计

uncodixfy

在生成前端代码时避免出现千篇一律的 AI/Codex UI 模式。每当生成 HTML、CSS、React、Vue、Svelte 或任何前端 UI 代码时使用本技能,以强制采用受 Linear、Raycast、Stripe 和 GitHub 启发的简洁、人工设计的美学,而非典型的 AI 生成界面。

软件开发工程师前端开发与界面实现
★ 0
CoralShades
CoralShades/acm-ai

Runpod GPU 工作负载管理

runpodctl

使用 Runpod CLI 管理你的 GPU 工作负载。

AI 工程师AI 平台资源管理
★ 0
CoralShades
CoralShades/acm-ai

LangGraph 状态持久化

langgraph-persistence

当你的 LangGraph 需要持久化状态、记住对话、回溯历史,或配置子图检查点(checkpointer)作用域时请调用本技能。涵盖检查点、thread_id、时间旅行、Store 与子图持久化模式。

AI 工程师智能体开发
★ 0
CoralShades
CoralShades/acm-ai

LangGraph 人机协作开发

langgraph-human-in-the-loop

实现人机协作(human-in-the-loop)模式、暂停等待审批,或处理 LangGraph 中的错误时请调用本技能。涵盖 interrupt()、Command(resume=...)、审批/验证工作流以及 4 层错误处理策略。

AI 工程师智能体开发
★ 0
CoralShades
CoralShades/acm-ai

LangGraph 开发基础

langgraph-fundamentals

编写任何 LangGraph 代码时请调用本技能。涵盖 StateGraph、状态模式(state schemas)、节点、边、Command、Send、invoke、流式处理与错误处理。

AI 工程师智能体开发
★ 0
CoralShades
CoralShades/acm-ai

LangChain RAG开发

langchain-rag

在构建任何检索增强生成(RAG)系统时调用本技能。涵盖文档加载器、RecursiveCharacterTextSplitter、embeddings(OpenAI)以及向量存储(Chroma、FAISS、Pinecone)。

AI 工程师RAG 检索增强开发
★ 0