$npx -y skills add bitjaru/styleseed --skill ss-patternGenerate a composed UI pattern (card layout, list, form section, grid, etc.) using design system primitives
| 1 | # UI Pattern Generator |
| 2 | |
| 3 | ## When NOT to use |
| 4 | |
| 5 | - For a single primitive component → use `/ss-component` |
| 6 | - For a full mobile screen → use `/ss-page` |
| 7 | - For an entire multi-page user flow → use `/ss-flow` |
| 8 | - For design tokens and color/spacing decisions → use `/ss-tokens` |
| 9 | |
| 10 | Pattern type: **$0** |
| 11 | Description: $ARGUMENTS |
| 12 | |
| 13 | ## Available Pattern Types |
| 14 | |
| 15 | ### Layout Patterns |
| 16 | - **card-section**: Card with title + content inside page section (`mx-6`) |
| 17 | - **grid-2col**: 2-column grid of cards (`grid grid-cols-2 gap-4 px-6`) |
| 18 | - **scroll-horizontal**: Horizontal scrolling card list (`flex gap-3 overflow-x-auto scrollbar-hide`) |
| 19 | - **list-section**: Vertical list of items inside a card |
| 20 | - **form-section**: Form with labeled inputs in a card |
| 21 | - **stat-grid**: Grid of StatCard components |
| 22 | |
| 23 | ### Data Display Patterns |
| 24 | - **data-table**: Table with header and rows |
| 25 | - **detail-card**: Key-value pair display |
| 26 | - **chart-card**: Card wrapper for a Recharts chart |
| 27 | - **ranking-list**: Numbered ranking with highlight |
| 28 | |
| 29 | ### Interactive Patterns |
| 30 | - **action-sheet**: Bottom sheet with action buttons |
| 31 | - **filter-bar**: Horizontal filter/tab bar |
| 32 | - **search-header**: Search input in header area |
| 33 | |
| 34 | ## Instructions |
| 35 | |
| 36 | 1. Read the design system reference: |
| 37 | - `CLAUDE.md` for conventions |
| 38 | - `components/ui/` for available primitives |
| 39 | - `components/patterns/` for existing patterns |
| 40 | |
| 41 | 2. Compose the pattern from existing components — DO NOT recreate primitives. |
| 42 | |
| 43 | 3. Follow the design system layout rules: |
| 44 | - Cards: `bg-card rounded-2xl p-6 shadow-[var(--shadow-card)]` |
| 45 | - Section wrapper: `mx-6` for horizontal margin |
| 46 | - Section title: `text-foreground font-bold text-[18px] mb-4` |
| 47 | - List gap: `space-y-3` |
| 48 | - Grid gap: `gap-4` |
| 49 | |
| 50 | 4. Use semantic tokens for all visual properties. |
| 51 | |
| 52 | 5. Make the pattern a reusable component with props for dynamic content. |