CorrectRoadH

Ui Skills

AI 智慧體v1.0.0
作者:CorrectRoadH更新於 2026-05-11ui-skills@clawhub_correctroadh/ui-skills
Agent 框架

據 AlphaMoat 統計,截至 2026-10,Ui Skills 累計下載 8,032 次、獲 5 個星標,按累計下載量在本次參與排名的 10,914 個 AI 技能中排名第 3,458 位,在「AI 智慧體」分類(1,632 個)中排名第 461 位。

列表預設按累計下載量排序,也可按星標排序;詳情頁排名按累計下載量計算。

累計下載
8032
星標
5
全站下載量排名
#3,458
全站前 32% · 「AI 智慧體」前 29%
平台累計下載星標評論
ClawHub ↗57845-
SkillHub ↗80325—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

規定先用 Tailwind 的預設間距、圓角與陰影再考慮自定義值,需要動畫時用指定的動畫庫,入場與微動效優先用配套的動畫工具。帶鍵盤或焦點行為的控制元件必須用無障礙基礎元件,同一互動面不混用多套元件體系,純圖示按鈕要加標籤。會丟失狀態的破壞性操作要用確認彈窗。這些是帶有特定偏好的 UI 規範。先檢查專案既有的設計與技術需求;需要本地慣例優先於本指引時,應明確說明。

資料釋出於 2026-10-27

可以用來做什麼

  • 新頁面開工前定技術約束
  • 評審一處互動是否符合規範

什麼時候用

  • 讓 agent 自己寫介面怕跑偏時
  • 元件選型要統一時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

按這套約束重寫這個頁面的樣式
檢查這個元件有沒有違反無障礙要求

月度資料趨勢

累計下載8032
3927613283362026-03 · 累計下載 42312026-05 · 累計下載 48802026-06 · 累計下載 51212026-07 · 累計下載 54122026-08 · 累計下載 55612026-09 · 累計下載 61002026-10 · 累計下載 803226-0326-0926-10
星標5
4562026-03 · 星標 52026-05 · 星標 52026-06 · 星標 52026-07 · 星標 52026-08 · 星標 52026-09 · 星標 52026-10 · 星標 526-0326-0926-10

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-108032—5
2026-096100—5
2026-085561+2.8%5
2026-075412+5.7%5
2026-065121+4.9%5
2026-054880—5
2026-034231—5

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

2.9 KB · ClawHub v1.0.0
---
name: ui-skills
description: Opinionated constraints for building better interfaces with agents.
---

# UI Skills

Opinionated constraints for building better interfaces with agents.

## Stack
展開全部(共 75 行)

- MUST use Tailwind CSS defaults (spacing, radius, shadows) before custom values
- 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`](https://base-ui.com/react/components) 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
- MUST 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-x`)
- SHOULD use `size-x` for square elements instead of `w-x` + `h-x`

## 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

「AI 智慧體」分類下的熱門技能

資料月份:2026-10 · 下載/星標數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。