Langsung ke konten
Skillpedia
Antarmuka (UI/UX)48k Β· #6036

ui-component

Fungsinya

Agent ini membuat komponen visual baru untuk website atau aplikasi, dengan mengikuti serangkaian aturan desain dan pengodean tertentu. Agent ini memastikan komponen tersebut menyatu dengan tampilan dan nuansa keseluruhan proyek.

Kapan dipakai

  • βœ“Saat Anda membutuhkan tombol baru dengan tampilan tertentu.
  • βœ“Saat membuat kolom input teks yang mengikuti gaya proyek.
  • βœ“Saat menambahkan elemen visual baru, seperti kartu (card) atau peringatan (alert).

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/ui-component/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBuatkan komponen kartu baru untuk menampilkan informasi profil pengguna.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent ini membaca aturan desain proyek dan menggunakannya untuk menulis kode komponen baru. Agent ini memastikan kode mengikuti konvensi yang sudah ditetapkan, seperti penggunaan warna, jarak (spacing), dan aksesibilitas.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

UI Component Generator

When to Use

Use this skill when you need generate a new UI component following the StyleSeed design conventions.

When NOT to use

  • For full-page scaffolding β†’ use /ss-page
  • For composed multi-component patterns β†’ use /ss-pattern
  • For tweaking an existing component β€” just edit the file directly
  • For non-StyleSeed projects (no components/ui/ directory or no Tailwind v4)

Generate a new component: $0 Description: $ARGUMENTS

Instructions

  1. First, read the design system seed for context:

    • Read CLAUDE.md for component conventions
    • Read css/theme.css for available design tokens
    • Read components/ui/button.tsx as a reference pattern
  2. Follow these conventions strictly:

    • Use function declaration (not const)
    • Add data-slot="component-name" attribute
    • Use cn() from @/components/ui/utils for all className merging
    • Use React.ComponentProps<> for prop typing
    • Always support className prop for overrides
    • Use CVA (class-variance-authority) if the component has variants
    • Use semantic color tokens (bg-card, text-foreground) β€” never inline hex
  3. Design token usage:

    • Colors: text-foreground, bg-card, text-brand, text-muted-foreground, border-border
    • Shadows: shadow-[var(--shadow-card)], shadow-[var(--shadow-elevated)]
    • Radius: rounded-md, rounded-lg, rounded-2xl
    • Spacing: multiples of 6px (p-1.5, p-3, p-6)
    • Motion: duration-[var(--duration-fast)], ease-[var(--ease-default)]
  4. Typography rules:

    • Display (36-48px): leading-none tracking-[-0.02em]
    • Heading (18-24px): leading-snug tracking-[-0.01em]
    • Body (14-17px): leading-normal (default tracking)
    • Caption uppercase (10-13px): tracking-[0.05em]
    • Use size-* shorthand instead of w-* h-*
    • Use ms-*/me-* instead of ml-*/mr-* (logical properties)
  5. Accessibility requirements:

    • Minimum touch target: 44x44px (min-h-11 min-w-11)
    • Support aria-* attributes passthrough
    • Use focus-visible:ring-2 focus-visible:ring-ring for keyboard focus
    • Respect prefers-reduced-motion for animations
  6. Export the component as a named export (not default)

  7. Place the file in the appropriate directory:

    • Primitive/reusable β†’ src/components/ui/
    • Composed pattern β†’ src/components/patterns/

Example

User request:

Generate a new UI component following the StyleSeed design conventions.

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.
Pertanyaan umum

Apa itu 'design conventions'?

Ini adalah kumpulan aturan dan panduan yang menentukan bagaimana elemen visual sebuah website atau aplikasi dibuat dan ditata agar tampilannya konsisten.

Apa itu 'StyleSeed'?

StyleSeed adalah nama sistem desain tertentu yang digunakan agent ini sebagai acuan saat membuat komponen.

Bisakah saya memakai agent ini untuk mengubah komponen yang sudah ada?

Tidak, agent ini khusus untuk membuat komponen baru. Untuk memodifikasi komponen yang sudah ada, sebaiknya Anda mengedit file-nya secara langsung.

Detail

Deskripsi asli dari pembuat

Generate a new UI component following the StyleSeed design conventions

repo: sickn33/agentic-awesome-skills

Popularitas

Bintang GitHub
48k
Peringkat
#6036
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa