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 位。

列表默认按累计下载量排序,也可按星标排序;详情页排名按累计下载量计算。

累计下载
8,032
星标
5
全站下载量排名
#3,458
全站前 32% · 「AI 智能体」前 29%
平台累计下载星标评论
ClawHub ↗5,7845-
SkillHub ↗8,0325—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

规定先用 Tailwind 的默认间距、圆角与阴影再考虑自定义值,需要动画时用指定的动画库,入场与微动效优先用配套的动画工具。带键盘或焦点行为的控件必须用无障碍基础组件,同一交互面不混用多套组件体系,纯图标按钮要加标签。会丢失状态的破坏性操作要用确认弹窗。这些是带有特定偏好的 UI 规范。先检查项目既有的设计与技术要求;需要本地约定优先于本指导时,应明确说明。

资料发布于 2026-10-27

可以用来做什么

  • 新页面开工前定技术约束
  • 评审一处交互是否符合规范

什么时候用

  • 让 agent 自己写界面怕跑偏时
  • 组件选型要统一时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

按这套约束重写这个页面的样式
检查这个组件有没有违反无障碍要求

月度数据趋势

累计下载8,032
3,9276,1328,3362026-03 · 累计下载 4,2312026-05 · 累计下载 4,8802026-06 · 累计下载 5,1212026-07 · 累计下载 5,4122026-08 · 累计下载 5,5612026-09 · 累计下载 6,1002026-10 · 累计下载 8,03226-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-108,032—5
2026-096,100—5
2026-085,561+2.8%5
2026-075,412+5.7%5
2026-065,121+4.9%5
2026-054,880—5
2026-034,231—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),按月更新。口径说明见数据方法。