跳到正文
Skillpedia
界面(UI/UX)48k · #6041

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/ui-pattern/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Read the design system reference:

    • CLAUDE.md for conventions
    • components/ui/ for available primitives
    • components/patterns/ for existing patterns
  2. Compose the pattern from existing components — DO NOT recreate primitives.

  3. Follow the design system layout rules:

    • Cards: bg-card rounded-2xl p-6 shadow-[var(--shadow-card)]
    • Section wrapper: mx-6 for horizontal margin
    • Section title: text-foreground font-bold text-[18px] mb-4
    • List gap: space-y-3
    • Grid gap: gap-4
  4. Use semantic tokens for all visual properties.

  5. 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

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#6041
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能