ui-pattern
它能做什么
这个工具会使用设计系统中现成的组件,为网站或应用创建界面区块,比如卡片、列表或表单。
适用场景
- ✓当你需要一个带标题和内容的卡片时。
- ✓当你想要一个可以横向滚动的列表时。
- ✓当你需要在卡片中放一个简单的表单时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/ui-pattern/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“创建一个带标题和内容的卡片,用来展示商品信息。”
每周 5 个新技能,1 分钟读完。
工作原理
你需要指定想要的界面区块类型(例如卡片、列表、表单),工具会使用现成的组件将其组装起来,并遵循既定的设计规则。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
UI Pattern Generator
When to Use
Use this skill when you need generate a composed UI pattern (card layout, list, form section, grid, etc.) using design system primitives.
When NOT to use
- For a single primitive component → use
/ss-component - For a full mobile screen → use
/ss-page - For an entire multi-page user flow → use
/ss-flow - For design tokens and color/spacing decisions → use
/ss-tokens
Pattern type: $0 Description: $ARGUMENTS
Available Pattern Types
Layout Patterns
- card-section: Card with title + content inside page section (
mx-6) - grid-2col: 2-column grid of cards (
grid grid-cols-2 gap-4 px-6) - scroll-horizontal: Horizontal scrolling card list (
flex gap-3 overflow-x-auto scrollbar-hide) - list-section: Vertical list of items inside a card
- form-section: Form with labeled inputs in a card
- stat-grid: Grid of StatCard components
Data Display Patterns
- data-table: Table with header and rows
- detail-card: Key-value pair display
- chart-card: Card wrapper for a Recharts chart
- ranking-list: Numbered ranking with highlight
Interactive Patterns
- action-sheet: Bottom sheet with action buttons
- filter-bar: Horizontal filter/tab bar
- search-header: Search input in header area
Instructions
Read the design system reference:
CLAUDE.mdfor conventionscomponents/ui/for available primitivescomponents/patterns/for existing patterns
Compose the pattern from existing components — DO NOT recreate primitives.
Follow the design system layout rules:
- Cards:
bg-card rounded-2xl p-6 shadow-[var(--shadow-card)] - Section wrapper:
mx-6for horizontal margin - Section title:
text-foreground font-bold text-[18px] mb-4 - List gap:
space-y-3 - Grid gap:
gap-4
- Cards:
Use semantic tokens for all visual properties.
Make the pattern a reusable component with props for dynamic content.
Example
User request:
Generate a composed UI pattern (card layout, list, form section, grid, etc.) using design system primitives.
Limitations
- Use this skill only when the task clearly matches its upstream source and local project context.
- Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.
- Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.
常见问题
什么是“primitives”或“components”?
它们是界面的基本构建模块,比如按钮、文本输入框或图标,这些都已经包含在设计系统中。
什么时候不应该使用这个工具?
不要用它来创建单个按钮或输入框,也不要用它来搭建整个页面或多页面流程。这些任务有其他工具可以完成。
什么是“semantic tokens”?
它们是代表视觉数值的名称,比如“主色”或“中等间距”,而不是直接使用 #FFFFFF 或 16px 这样的具体数值。
详情
作者的原始描述
Generate a composed UI pattern (card layout, list, form section, grid, etc.) using design system primitives
热度
- GitHub 星标
- 48k
- 排名
- #6041
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。