Chuyển đến nội dung
Skillpedia
Giao diện (UI/UX)48k · #6041

ui-pattern

Skill này làm gì

Công cụ này tạo các khối giao diện trực quan cho website hoặc ứng dụng, như thẻ, danh sách hoặc biểu mẫu, bằng các thành phần có sẵn từ một hệ thống thiết kế.

Khi nào nên dùng

  • ✓Khi bạn cần một thẻ có tiêu đề và nội dung.
  • ✓Khi bạn muốn một danh sách các mục cuộn ngang.
  • ✓Khi bạn cần một biểu mẫu đơn giản bên trong một thẻ.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/ui-pattern/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/ui-pattern/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tạo một thẻ có tiêu đề và nội dung để hiển thị thông tin sản phẩm.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Bạn chỉ định loại khối giao diện muốn tạo (ví dụ thẻ, danh sách, biểu mẫu), và công cụ dùng các thành phần có sẵn để lắp ghép, theo các quy tắc thiết kế đã định.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.
Câu hỏi thường gặp

“Primitives” hoặc “components” là gì?

Đây là các khối xây dựng cơ bản của giao diện, như nút, ô văn bản hoặc biểu tượng, đã có sẵn trong hệ thống thiết kế.

Khi nào KHÔNG nên dùng công cụ này?

Đừng dùng nó để tạo một nút hay ô nhập đơn lẻ, cũng không dùng để xây dựng toàn bộ màn hình hoặc luồng nhiều trang. Có các công cụ khác cho những việc đó.

“Semantic tokens” là gì?

Đây là các tên đại diện cho giá trị hình ảnh, như “primary color” (màu chính) hoặc “medium spacing” (khoảng cách vừa), thay vì dùng giá trị trực tiếp như “#FFFFFF” hoặc “16px”.

Chi tiết

Mô tả gốc của tác giả

Generate a composed UI pattern (card layout, list, form section, grid, etc.) using design system primitives

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#6041
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự