vibes-plug 1.0.0 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/.github/workflows/publish.yml +20 -0
  2. package/AGENTS.md +66 -0
  3. package/BLUEPRINT.md +152 -60
  4. package/CHANGELOG.md +50 -0
  5. package/README.md +346 -194
  6. package/package.json +25 -25
  7. package/plugin.json +1 -1
  8. package/skills/ai-cost-token-optimizer/SKILL.md +52 -0
  9. package/skills/ai-llm-integration-expert/SKILL.md +180 -162
  10. package/skills/api-design-expert/SKILL.md +314 -310
  11. package/skills/app-analyzer-optimizer/SKILL.md +193 -189
  12. package/skills/apple-ecosystem-expert/SKILL.md +142 -0
  13. package/skills/async-queue-temporal-expert/SKILL.md +54 -0
  14. package/skills/authentication-identity-expert/SKILL.md +251 -20
  15. package/skills/auto-doc-updater/SKILL.md +214 -204
  16. package/skills/autonomous-chaos-monkey/SKILL.md +63 -0
  17. package/skills/autonomous-red-teamer/SKILL.md +59 -0
  18. package/skills/autonomous-swarm-director/SKILL.md +69 -0
  19. package/skills/autonomous-tdd-debugger/SKILL.md +65 -0
  20. package/skills/bootstrap-to-modern/SKILL.md +90 -86
  21. package/skills/brainstorming/SKILL.md +373 -353
  22. package/skills/browser-automation-expert/SKILL.md +46 -0
  23. package/skills/ci-cd-devops-architect/SKILL.md +72 -45
  24. package/skills/cloud-hosting-expert/SKILL.md +244 -244
  25. package/skills/coderabbit/SKILL.md +192 -192
  26. package/skills/cron-scheduler-expert/SKILL.md +298 -0
  27. package/skills/data-telemetry-expert/SKILL.md +213 -213
  28. package/skills/database-orm-expert/SKILL.md +294 -294
  29. package/skills/dependency-upgrade-migrator/SKILL.md +295 -0
  30. package/skills/design-system-architect/SKILL.md +27 -10
  31. package/skills/doku-mcp-server/SKILL.md +251 -0
  32. package/skills/doku-payment-gateway/SKILL.md +227 -0
  33. package/skills/e2e-testing-expert/SKILL.md +315 -315
  34. package/skills/edge-serverless-db-expert/SKILL.md +43 -0
  35. package/skills/email-notification-expert/SKILL.md +362 -0
  36. package/skills/error-resilience-expert/SKILL.md +480 -0
  37. package/skills/event-driven-architect/SKILL.md +81 -81
  38. package/skills/feature-flag-analytics-expert/SKILL.md +46 -0
  39. package/skills/file-upload-media-expert/SKILL.md +431 -0
  40. package/skills/form-validation-expert/SKILL.md +401 -0
  41. package/skills/fullstack-expert/SKILL.md +202 -202
  42. package/skills/fullstack-expert/references/api_design_guide.md +466 -466
  43. package/skills/fullstack-expert/references/multi_language_backend.md +528 -528
  44. package/skills/fullstack-expert/scripts/api_contract_validator.py +253 -253
  45. package/skills/fullstack-expert/scripts/architecture_analyzer.py +326 -326
  46. package/skills/gemini-agent-booster/SKILL.md +135 -135
  47. package/skills/global-a11y-i18n-expert/SKILL.md +81 -81
  48. package/skills/glsl-shader-expert/SKILL.md +101 -0
  49. package/skills/go-programming-expert/SKILL.md +295 -295
  50. package/skills/graphql-apollo-expert/SKILL.md +108 -0
  51. package/skills/hig/SKILL.md +188 -188
  52. package/skills/hyper-context-synthesizer/SKILL.md +55 -0
  53. package/skills/js-backend-expert/SKILL.md +34 -9
  54. package/skills/legacy-code-translator/SKILL.md +65 -0
  55. package/skills/llm-cost-arbitrage-router/SKILL.md +59 -0
  56. package/skills/logging-error-tracking-expert/SKILL.md +338 -0
  57. package/skills/mcp-client-orchestrator/SKILL.md +70 -0
  58. package/skills/mcp-server-architect/SKILL.md +194 -194
  59. package/skills/micro-frontend-architect/SKILL.md +106 -0
  60. package/skills/mobile-expo-expert/SKILL.md +186 -186
  61. package/skills/mobile-push-notification-expert/SKILL.md +51 -0
  62. package/skills/monday-design-aesthetic/SKILL.md +67 -67
  63. package/skills/monorepo-architect/SKILL.md +227 -227
  64. package/skills/mpa-orchestrator/SKILL.md +101 -101
  65. package/skills/multi-agent-orchestration/SKILL.md +234 -234
  66. package/skills/multiple-entry-points/SKILL.md +55 -55
  67. package/skills/mvc-expert/SKILL.md +231 -231
  68. package/skills/payment-gateway-expert/SKILL.md +45 -45
  69. package/skills/performance-web-vitals/SKILL.md +332 -332
  70. package/skills/post-quantum-crypto-migrator/SKILL.md +57 -0
  71. package/skills/prd-architect/SKILL.md +201 -191
  72. package/skills/proactive-background-watcher/SKILL.md +62 -0
  73. package/skills/production-ready-hardener/PRODUCTION_READINESS_REPORT.md +67 -0
  74. package/skills/production-ready-hardener/SKILL.md +173 -186
  75. package/skills/production-ready-hardener/references/production_checklist.md +161 -161
  76. package/skills/production-ready-hardener/scripts/production_readiness_scanner.py +881 -875
  77. package/skills/project-context-mapper/SKILL.md +79 -0
  78. package/skills/python-programming-expert/SKILL.md +263 -132
  79. package/skills/rate-limit-abuse-prevention/SKILL.md +371 -0
  80. package/skills/realtime-collaboration-expert/SKILL.md +45 -45
  81. package/skills/rust-programming-expert/SKILL.md +235 -235
  82. package/skills/saas-billing/SKILL.md +377 -377
  83. package/skills/saas-multi-tenant/SKILL.md +251 -237
  84. package/skills/saas-mvp-launcher/SKILL.md +10 -0
  85. package/skills/saas-transformer/SKILL.md +187 -144
  86. package/skills/saas-transformer/references/billing_integration_guide.md +401 -401
  87. package/skills/saas-transformer/references/feature_gating_patterns.md +137 -137
  88. package/skills/saas-transformer/references/saas_transformation_checklist.md +121 -121
  89. package/skills/saas-transformer/scripts/saas_transformation_scanner.py +39 -29
  90. package/skills/scalability-clean-code/SKILL.md +229 -229
  91. package/skills/self-evolving-memory-graph/SKILL.md +75 -0
  92. package/skills/self-healing-cloud-orchestrator/SKILL.md +57 -0
  93. package/skills/senior-frontend/SKILL.md +161 -161
  94. package/skills/senior-fullstack/SKILL.md +167 -167
  95. package/skills/seo/SKILL.md +235 -225
  96. package/skills/seo-geo/SKILL.md +188 -188
  97. package/skills/session-context-loader/SKILL.md +77 -0
  98. package/skills/session-handoff-resume/SKILL.md +158 -158
  99. package/skills/skill_baru/SKILL.md +172 -147
  100. package/skills/spa-orchestrator/SKILL.md +288 -288
  101. package/skills/state-management-expert/SKILL.md +272 -272
  102. package/skills/supabase-security-expert/SKILL.md +243 -243
  103. package/skills/tailwind-expert/SKILL.md +188 -188
  104. package/skills/tanstack-query-expert/SKILL.md +199 -199
  105. package/skills/token-saver/SKILL.md +119 -111
  106. package/skills/typescript-expert/SKILL.md +324 -279
  107. package/skills/ui-components-expert/SKILL.md +263 -46
  108. package/skills/ui-ux-pro-max/SKILL.md +202 -201
  109. package/skills/ui-ux-pro-max/scripts/__pycache__/core.cpython-310.pyc +0 -0
  110. package/skills/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-310.pyc +0 -0
  111. package/skills/ui_ux_expert/SKILL.md +17 -6
  112. package/skills/vector-db-rag-expert/SKILL.md +52 -0
  113. package/skills/vibe-code-gardener/SKILL.md +181 -173
  114. package/skills/visual-qa-vision-agent/SKILL.md +65 -0
  115. package/skills/vue-frontend-expert/SKILL.md +126 -0
  116. package/skills/web-3d-graphics-expert/SKILL.md +131 -0
  117. package/skills/web-game-engine-expert/SKILL.md +96 -0
  118. package/skills/web-scraper/SKILL.md +207 -205
  119. package/skills/website-design-cloner/SKILL.md +174 -0
  120. package/skills/webxr-ar-vr-expert/SKILL.md +117 -0
  121. package/skills/zero-to-prod-orchestrator/SKILL.md +206 -180
  122. package/skills/zero-trust-secret-vault/SKILL.md +40 -0
  123. package/vibes-swarm-demo.gif +0 -0
@@ -1,201 +1,202 @@
1
- ---
2
- name: ui-ux-pro-max
3
- description: "Comprehensive design guide & BM25 search engine for web and mobile applications across 11 tech stacks / Panduan desain komprehensif & mesin pencari BM25 untuk aplikasi web dan mobile di 11 tech stack."
4
- author: "Roedy Rustam"
5
- ---
6
-
7
- # UI/UX Pro Max - Design Intelligence System
8
-
9
- [English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
10
-
11
- ---
12
-
13
- <a name="english"></a>
14
- ## English
15
-
16
- ### Description
17
- UI/UX Pro Max is a comprehensive design intelligence engine equipped with an offline BM25 search index covering color palettes, typography, responsive patterns, icon sets, chart recommendations, UX guidelines, and stack-specific best practices across **11 technology stacks**.
18
-
19
- ### Trigger Conditions
20
- Reference these guidelines or run the CLI search engine when:
21
- - Designing new UI components, landing pages, or dashboards.
22
- - Choosing color schemes, font pairings, and design tokens.
23
- - Generating a complete design system recommendation for a project.
24
- - Auditing code for UX, accessibility (a11y), or performance issues.
25
- - Needing stack-specific code patterns (React, Next.js, Vue, Nuxt, Svelte, Tailwind, SwiftUI, React Native, Flutter, Shadcn).
26
-
27
- ---
28
-
29
- ### Python BM25 Search CLI Integration
30
-
31
- The skill includes a fast Python search engine in `scripts/search.py` that queries 12 domain CSV datasets and 11 tech-stack CSV datasets.
32
-
33
- #### 1. Generate Complete Design System Recommendation
34
- Run this before starting design/coding to get an aggregated design system spec:
35
- ```bash
36
- python scripts/search.py "<project/topic query>" --design-system -p "Project Name" -f markdown
37
- ```
38
- *Example:* `python scripts/search.py "SaaS analytics dashboard" --design-system -p "MetricsApp" -f markdown`
39
-
40
- #### 2. Domain-Specific Search
41
- Search specific design domains:
42
- ```bash
43
- python scripts/search.py "<query>" --domain <domain> --max-results 3
44
- ```
45
- - **Available Domains (`--domain`)**:
46
- - `style`: Visual design styles (Minimalism, Glassmorphism, Dark Mode, Aurora, Brutalism, Bento Grid, etc.)
47
- - `prompt`: Copy-paste ready AI prompts & CSS implementation checklists
48
- - `color`: Hex color palettes tailored by product type (Primary, Secondary, CTA, Background, Text)
49
- - `chart`: Chart type recommendations, library suggestions, accessibility & color guidance
50
- - `landing`: High-converting landing page layouts, section orders & CTA placement
51
- - `product`: Product-type specific design system blueprints (SaaS, E-commerce, Fintech, Crypto, etc.)
52
- - `ux`: UX anti-patterns, usability best practices, severity, and good/bad code examples
53
- - `typography`: Google font pairings, heading/body recommendations, mood keywords & CSS imports
54
- - `icons`: Icon usage guidance, SVG libraries (Lucide, Heroicons), and code imports
55
- - `react`: React & Next.js performance optimizations, re-render fixes & dynamic imports
56
- - `web`: Web interface guidelines (ARIA, focus traps, virtual list, form inputs)
57
-
58
- *Example:* `python scripts/search.py "fintech dark theme" --domain color`
59
-
60
- #### 3. Stack-Specific Guidelines Search
61
- Search guidelines tailored to your exact tech stack:
62
- ```bash
63
- python scripts/search.py "<query>" --stack <stack> --max-results 3
64
- ```
65
- - **Supported Stacks (`--stack`)**:
66
- - `html-tailwind` | `react` | `nextjs` | `vue` | `nuxtjs` | `nuxt-ui` | `svelte` | `swiftui` | `react-native` | `flutter` | `shadcn`
67
-
68
- *Example:* `python scripts/search.py "virtualized list performance" --stack react`
69
-
70
- ---
71
-
72
- ### Quick Reference for Professional Rules
73
-
74
- #### 1. Accessibility (WCAG 2.2) - CRITICAL
75
- - **Color Contrast**: Minimum 4.5:1 ratio for normal text, 3:1 for large text/UI components.
76
- - **Focus States**: Visible focus rings (`focus-visible:ring-2 focus-visible:ring-offset-2`) during keyboard navigation.
77
- - **Alt Text & ARIA**: Descriptive alt text for imagery; proper `aria-expanded`, `aria-controls`, and semantic HTML tags.
78
-
79
- #### 2. Touch & Interaction - CRITICAL
80
- - **Touch Target Size**: Minimum 44x44px for mobile devices.
81
- - **Loading & State**: Disable buttons during async requests to prevent duplicate submissions; show subtle spinners or skeleton loaders.
82
- - **Cursor Pointer**: Always add `cursor-pointer` to clickable/interactive elements.
83
-
84
- #### 3. Performance & Animation - HIGH / MEDIUM
85
- - **Image & Assets**: Use WebP/AVIF formats, `srcset`, explicit `width`/`height` attributes, and `loading="lazy"`.
86
- - **Micro-interactions**: Keep transition durations between 150ms–300ms (`ease-in-out`) for fast and responsive UI feel.
87
- - **Reduced Motion**: Respect `prefers-reduced-motion: reduce`.
88
-
89
- #### 4. Light/Dark Mode Contrast
90
- - **Light Mode**: High-contrast text (e.g. Slate-900 `#0F172A`); avoid pale grays for primary text. Ensure borders (`border-slate-200`) remain visible.
91
- - **Dark Mode**: High contrast foreground elements over dark slate/gray backgrounds; avoid pure black `#000000` text containers unless requested.
92
-
93
- #### 5. Dashboard & Information Hierarchy
94
- - **Layout Flow**: KPI summary cards top -> Trend charts middle -> Detailed data tables bottom.
95
- - **Visual Grid**: Consistent gaps/padding (16px / 24px). Clean subtle borders instead of heavy black dividers.
96
- - **Data Viz**: Maximum 3–5 coordinated colors in graphs. Responsive tooltips and legend alignment.
97
-
98
- ---
99
-
100
- ### UI/UX Design Pre-Delivery Checklist
101
- - [ ] **Visual Quality**: No emojis used as UI icons (use SVG icons from Lucide/Heroicons). Hover states do not cause layout shifts.
102
- - [ ] **Interaction**: `cursor-pointer` applied to all interactive elements. Smooth 150–300ms transitions.
103
- - [ ] **Contrast**: Text contrast ratio >= 4.5:1 in light mode. Visible borders in both light and dark modes.
104
- - [ ] **Layout & Responsive**: Tested across 375px, 768px, 1024px, 1440px breakpoints. No unintentional horizontal scrolling on mobile.
105
- - [ ] **Accessibility**: All images have meaningful `alt` text. Form inputs have explicitly connected `<label>` elements or `aria-label`.
106
-
107
- ---
108
-
109
- <a name="bahasa-indonesia"></a>
110
- ## Bahasa Indonesia
111
-
112
- ### Deskripsi
113
- UI/UX Pro Max adalah mesin kecerdasan desain komprehensif yang dilengkapi indeks pencarian BM25 offline. Mencakup palet warna, tipografi, pola tata letak responsif, rekomendasi ikon, grafik visualisasi data, pedoman UX, serta praktik terbaik untuk **11 tumpukan teknologi (technology stacks)**.
114
-
115
- ### Kondisi Pemicu
116
- Gunakan pedoman ini atau jalankan mesin pencari CLI ketika:
117
- - Mendesain komponen UI baru, landing page, atau dashboard.
118
- - Memilih skema warna, pasangan font, dan token desain.
119
- - Menghasilkan rekomendasi sistem desain (design system) lengkap untuk proyek.
120
- - Mengaudit kode untuk masalah UX, aksesibilitas (a11y), atau kinerja.
121
- - Membutuhkan pola kode spesifik stack (React, Next.js, Vue, Nuxt, Svelte, Tailwind, SwiftUI, React Native, Flutter, Shadcn).
122
-
123
- ---
124
-
125
- ### Integrasi CLI Pencarian Python BM25
126
-
127
- Skill ini dilengkapi mesin pencari Python cepat di `scripts/search.py` yang dapat mengueri 12 dataset CSV domain dan 11 dataset CSV tech-stack.
128
-
129
- #### 1. Generasi Rekomendasi Sistem Desain Lengkap
130
- Jalankan ini sebelum memulai desain/coding untuk mendapatkan spesifikasi sistem desain terintegrasi:
131
- ```bash
132
- python scripts/search.py "<kueri proyek/topik>" --design-system -p "Nama Proyek" -f markdown
133
- ```
134
- *Contoh:* `python scripts/search.py "SaaS analytics dashboard" --design-system -p "MetricsApp" -f markdown`
135
-
136
- #### 2. Pencarian Berdasarkan Domain
137
- Cari domain desain tertentu:
138
- ```bash
139
- python scripts/search.py "<kueri>" --domain <domain> --max-results 3
140
- ```
141
- - **Domain yang Tersedia (`--domain`)**:
142
- - `style`: Gaya desain visual (Minimalism, Glassmorphism, Dark Mode, Aurora, Brutalism, Bento Grid, dll.)
143
- - `prompt`: Prompt AI siap pakai & checklist implementasi CSS
144
- - `color`: Palet warna Hex sesuai jenis produk (Utama, Sekunder, CTA, Background, Teks)
145
- - `chart`: Rekomendasi jenis grafik, pustaka grafik, panduan kontras & aksesibilitas
146
- - `landing`: Tata letak landing page konversi tinggi, urutan seksi & penempatan CTA
147
- - `product`: Cetak biru sistem desain spesifik jenis produk (SaaS, E-commerce, Fintech, Crypto, dll.)
148
- - `ux`: Anti-pattern UX, praktik terbaik kegunaan, tingkat keparahan, serta contoh kode baik/buruk
149
- - `typography`: Pasangan font Google Fonts, rekomendasi font judul/isi, mood & CSS import
150
- - `icons`: Panduan penggunaan ikon, pustaka SVG (Lucide, Heroicons), & import kode
151
- - `react`: Optimasi performa React & Next.js, perbaikan re-render & dynamic import
152
- - `web`: Pedoman antarmuka web (ARIA, focus trap, virtual list, input form)
153
-
154
- *Contoh:* `python scripts/search.py "fintech dark theme" --domain color`
155
-
156
- #### 3. Pencarian Pedoman Spesifik Tech Stack
157
- Cari pedoman yang disesuaikan persis dengan tech stack proyek:
158
- ```bash
159
- python scripts/search.py "<kueri>" --stack <stack> --max-results 3
160
- ```
161
- - **Tech Stack yang Didukung (`--stack`)**:
162
- - `html-tailwind` | `react` | `nextjs` | `vue` | `nuxtjs` | `nuxt-ui` | `svelte` | `swiftui` | `react-native` | `flutter` | `shadcn`
163
-
164
- *Contoh:* `python scripts/search.py "virtualized list performance" --stack react`
165
-
166
- ---
167
-
168
- ### Acuan Cepat Aturan Profesional
169
-
170
- #### 1. Aksesibilitas (WCAG 2.2) - KRITIS
171
- - **Kontras Warna**: Rasio kontras minimal 4.5:1 untuk teks normal, 3:1 untuk teks besar/komponen UI.
172
- - **Focus States**: Tampilkan cincin fokus yang jelas (`focus-visible:ring-2 focus-visible:ring-offset-2`) saat menggunakan navigasi keyboard.
173
- - **Alt Text & ARIA**: Sediakan alt text deskriptif pada gambar; gunakan atribut `aria-expanded`, `aria-controls`, serta elemen HTML semantik.
174
-
175
- #### 2. Sentuhan & Interaksi - KRITIS
176
- - **Touch Target Size**: Ukuran area sentuh minimal 44x44px untuk perangkat mobile.
177
- - **Loading & State**: Nonaktifkan tombol selama operasi asinkron agar tidak terjadi submit ganda; tampilkan spinner halus atau skeleton loader.
178
- - **Cursor Pointer**: Wajib menambahkan `cursor-pointer` pada elemen interaktif yang dapat diklik.
179
-
180
- #### 3. Performa & Animasi - TINGGI / MENENGAH
181
- - **Aset Gambar**: Gunakan format WebP/AVIF, atribut `srcset`, dimensi `width`/`height` eksplisit, serta `loading="lazy"`.
182
- - **Mikro-interaksi**: Durasi transisi antara 150ms–300ms (`ease-in-out`) agar antarmuka terasa cepat dan responsif.
183
- - **Reduced Motion**: Hormati preferensi `prefers-reduced-motion: reduce`.
184
-
185
- #### 4. Kontras Mode Terang & Gelap
186
- - **Mode Terang**: Teks gelap kontras tinggi (misal Slate-900 `#0F172A`); hindari teks abu-abu pudar. Pastikan batas/border (`border-slate-200`) tetap terlihat.
187
- - **Mode Gelap**: Kontras tinggi antara elemen latar depan dengan latar belakang gelap; hindari kontainer teks serba hitam pekat `#000000` kecuali diminta khusus.
188
-
189
- #### 5. Dashboard & Hierarki Informasi
190
- - **Alur Tata Letak**: Kartu ringkasan KPI di atas -> Grafik tren di tengah -> Tabel detail data di bawah.
191
- - **Grid Visual**: Konsistensi gap/padding (16px / 24px). Gunakan border halus daripada pembatas tebal hitam.
192
- - **Visualisasi Data**: Maksimal 3–5 warna terkoordinasi dalam grafik. Tooltip responsif & perataan legenda yang rapi.
193
-
194
- ---
195
-
196
- ### Checklist Desain UI/UX Sebelum Delivery
197
- - [ ] **Visual**: Tidak menggunakan emoji sebagai ikon UI (gunakan ikon SVG seperti Lucide/Heroicons). Efek hover tidak menggeser tata letak.
198
- - [ ] **Interaksi**: `cursor-pointer` diterapkan pada semua elemen interaktif. Transisi halus 150–300ms.
199
- - [ ] **Kontras**: Rasio kontras teks minimal 4.5:1 pada mode terang. Border terlihat di kedua mode (terang & gelap).
200
- - [ ] **Tata Letak & Responsif**: Diuji pada breakpoint 375px, 768px, 1024px, 1440px. Tidak ada scroll horizontal tak disengaja pada perangkat mobile.
201
- - [ ] **Aksesibilitas**: Semua gambar memiliki `alt` text yang bermakna. Form input memiliki `<label>` terhubung atau `aria-label`.
1
+ ---
2
+ name: ui-ux-pro-max
3
+ description: "Comprehensive design guide & BM25 search engine for web and mobile applications across 11 tech stacks / Panduan desain komprehensif & mesin pencari BM25 untuk aplikasi web dan mobile di 11 tech stack."
4
+ author: "Roedy Rustam"
5
+ ---
6
+
7
+ # UI/UX Pro Max - Design Intelligence System
8
+
9
+ [English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
10
+
11
+ ---
12
+
13
+ <a name="english"></a>
14
+ ## English
15
+
16
+ ### Description
17
+ UI/UX Pro Max is a comprehensive design intelligence engine equipped with an offline BM25 search index covering color palettes, typography, responsive patterns, icon sets, chart recommendations, UX guidelines, and stack-specific best practices across **11 technology stacks**.
18
+
19
+ ### Trigger Conditions
20
+ Reference these guidelines or run the CLI search engine when:
21
+ - Designing new UI components, landing pages, or dashboards.
22
+ - Choosing color schemes, font pairings, and design tokens.
23
+ - Learning, reverse-engineering, or cloning website design templates & components directly from a target URL (Combine with `website-design-cloner`).
24
+ - Generating a complete design system recommendation for a project.
25
+ - Auditing code for UX, accessibility (a11y), or performance issues.
26
+ - Needing stack-specific code patterns (React, Next.js, Vue, Nuxt, Svelte, Tailwind, SwiftUI, React Native, Flutter, Shadcn).
27
+
28
+ ---
29
+
30
+ ### Python BM25 Search CLI Integration
31
+
32
+ The skill includes a fast Python search engine in `scripts/search.py` that queries 12 domain CSV datasets and 11 tech-stack CSV datasets.
33
+
34
+ #### 1. Generate Complete Design System Recommendation
35
+ Run this before starting design/coding to get an aggregated design system spec:
36
+ ```bash
37
+ python scripts/search.py "<project/topic query>" --design-system -p "Project Name" -f markdown
38
+ ```
39
+ *Example:* `python scripts/search.py "SaaS analytics dashboard" --design-system -p "MetricsApp" -f markdown`
40
+
41
+ #### 2. Domain-Specific Search
42
+ Search specific design domains:
43
+ ```bash
44
+ python scripts/search.py "<query>" --domain <domain> --max-results 3
45
+ ```
46
+ - **Available Domains (`--domain`)**:
47
+ - `style`: Visual design styles (Minimalism, Glassmorphism, Dark Mode, Aurora, Brutalism, Bento Grid, Spatial UI, WebGL 3D elements, etc.)
48
+ - `prompt`: Copy-paste ready AI prompts & CSS implementation checklists
49
+ - `color`: Hex color palettes tailored by product type (Primary, Secondary, CTA, Background, Text)
50
+ - `chart`: Chart type recommendations, library suggestions, accessibility & color guidance
51
+ - `landing`: High-converting landing page layouts, section orders & CTA placement
52
+ - `product`: Product-type specific design system blueprints (SaaS, E-commerce, Fintech, Crypto, AI-Native Chat Interfaces, etc.)
53
+ - `ux`: UX anti-patterns, usability best practices, severity, and good/bad code examples
54
+ - `typography`: Google font pairings, heading/body recommendations, mood keywords & CSS imports
55
+ - `icons`: Icon usage guidance, SVG libraries (Lucide, Heroicons), and code imports
56
+ - `react`: React & Next.js performance optimizations, re-render fixes & dynamic imports
57
+ - `web`: Web interface guidelines (ARIA, focus traps, virtual list, form inputs)
58
+
59
+ *Example:* `python scripts/search.py "fintech dark theme" --domain color`
60
+
61
+ #### 3. Stack-Specific Guidelines Search
62
+ Search guidelines tailored to your exact tech stack:
63
+ ```bash
64
+ python scripts/search.py "<query>" --stack <stack> --max-results 3
65
+ ```
66
+ - **Supported Stacks (`--stack`)**:
67
+ - `html-tailwind` | `react` | `nextjs` | `vue` | `nuxtjs` | `nuxt-ui` | `svelte` | `swiftui` | `react-native` | `flutter` | `shadcn`
68
+
69
+ *Example:* `python scripts/search.py "virtualized list performance" --stack react`
70
+
71
+ ---
72
+
73
+ ### Quick Reference for Professional Rules
74
+
75
+ #### 1. Accessibility (WCAG 2.2) - CRITICAL
76
+ - **Color Contrast**: Minimum 4.5:1 ratio for normal text, 3:1 for large text/UI components.
77
+ - **Focus States**: Visible focus rings (`focus-visible:ring-2 focus-visible:ring-offset-2`) during keyboard navigation.
78
+ - **Alt Text & ARIA**: Descriptive alt text for imagery; proper `aria-expanded`, `aria-controls`, and semantic HTML tags.
79
+
80
+ #### 2. Touch & Interaction - CRITICAL
81
+ - **Touch Target Size**: Minimum 44x44px for mobile devices.
82
+ - **Loading & State**: Disable buttons during async requests to prevent duplicate submissions; show subtle spinners or skeleton loaders.
83
+ - **Cursor Pointer**: Always add `cursor-pointer` to clickable/interactive elements.
84
+
85
+ #### 3. Performance & Animation - HIGH / MEDIUM
86
+ - **Image & Assets**: Use WebP/AVIF formats, `srcset`, explicit `width`/`height` attributes, and `loading="lazy"`.
87
+ - **Micro-interactions**: Keep transition durations between 150ms–300ms (`ease-in-out`) for fast and responsive UI feel.
88
+ - **Reduced Motion**: Respect `prefers-reduced-motion: reduce`.
89
+
90
+ #### 4. Light/Dark Mode Contrast
91
+ - **Light Mode**: High-contrast text (e.g. Slate-900 `#0F172A`); avoid pale grays for primary text. Ensure borders (`border-slate-200`) remain visible.
92
+ - **Dark Mode**: High contrast foreground elements over dark slate/gray backgrounds; avoid pure black `#000000` text containers unless requested.
93
+
94
+ #### 5. Dashboard & Information Hierarchy
95
+ - **Layout Flow**: KPI summary cards top -> Trend charts middle -> Detailed data tables bottom.
96
+ - **Visual Grid**: Consistent gaps/padding (16px / 24px). Clean subtle borders instead of heavy black dividers.
97
+ - **Data Viz**: Maximum 3–5 coordinated colors in graphs. Responsive tooltips and legend alignment.
98
+
99
+ ---
100
+
101
+ ### UI/UX Design Pre-Delivery Checklist
102
+ - [ ] **Visual Quality**: No emojis used as UI icons (use SVG icons from Lucide/Heroicons). Hover states do not cause layout shifts.
103
+ - [ ] **Interaction**: `cursor-pointer` applied to all interactive elements. Smooth 150–300ms transitions.
104
+ - [ ] **Contrast**: Text contrast ratio >= 4.5:1 in light mode. Visible borders in both light and dark modes.
105
+ - [ ] **Layout & Responsive**: Tested across 375px, 768px, 1024px, 1440px breakpoints. No unintentional horizontal scrolling on mobile.
106
+ - [ ] **Accessibility**: All images have meaningful `alt` text. Form inputs have explicitly connected `<label>` elements or `aria-label`.
107
+
108
+ ---
109
+
110
+ <a name="bahasa-indonesia"></a>
111
+ ## Bahasa Indonesia
112
+
113
+ ### Deskripsi
114
+ UI/UX Pro Max adalah mesin kecerdasan desain komprehensif yang dilengkapi indeks pencarian BM25 offline. Mencakup palet warna, tipografi, pola tata letak responsif, rekomendasi ikon, grafik visualisasi data, pedoman UX, serta praktik terbaik untuk **11 tumpukan teknologi (technology stacks)**.
115
+
116
+ ### Kondisi Pemicu
117
+ Gunakan pedoman ini atau jalankan mesin pencari CLI ketika:
118
+ - Mendesain komponen UI baru, landing page, atau dashboard.
119
+ - Memilih skema warna, pasangan font, dan token desain.
120
+ - Menghasilkan rekomendasi sistem desain (design system) lengkap untuk proyek.
121
+ - Mengaudit kode untuk masalah UX, aksesibilitas (a11y), atau kinerja.
122
+ - Membutuhkan pola kode spesifik stack (React, Next.js, Vue, Nuxt, Svelte, Tailwind, SwiftUI, React Native, Flutter, Shadcn).
123
+
124
+ ---
125
+
126
+ ### Integrasi CLI Pencarian Python BM25
127
+
128
+ Skill ini dilengkapi mesin pencari Python cepat di `scripts/search.py` yang dapat mengueri 12 dataset CSV domain dan 11 dataset CSV tech-stack.
129
+
130
+ #### 1. Generasi Rekomendasi Sistem Desain Lengkap
131
+ Jalankan ini sebelum memulai desain/coding untuk mendapatkan spesifikasi sistem desain terintegrasi:
132
+ ```bash
133
+ python scripts/search.py "<kueri proyek/topik>" --design-system -p "Nama Proyek" -f markdown
134
+ ```
135
+ *Contoh:* `python scripts/search.py "SaaS analytics dashboard" --design-system -p "MetricsApp" -f markdown`
136
+
137
+ #### 2. Pencarian Berdasarkan Domain
138
+ Cari domain desain tertentu:
139
+ ```bash
140
+ python scripts/search.py "<kueri>" --domain <domain> --max-results 3
141
+ ```
142
+ - **Domain yang Tersedia (`--domain`)**:
143
+ - `style`: Gaya desain visual (Minimalism, Glassmorphism, Dark Mode, Aurora, Brutalism, Bento Grid, Spatial UI, elemen WebGL 3D, dll.)
144
+ - `prompt`: Prompt AI siap pakai & checklist implementasi CSS
145
+ - `color`: Palet warna Hex sesuai jenis produk (Utama, Sekunder, CTA, Background, Teks)
146
+ - `chart`: Rekomendasi jenis grafik, pustaka grafik, panduan kontras & aksesibilitas
147
+ - `landing`: Tata letak landing page konversi tinggi, urutan seksi & penempatan CTA
148
+ - `product`: Cetak biru sistem desain spesifik jenis produk (SaaS, E-commerce, Fintech, Crypto, Antarmuka Chat AI-Native, dll.)
149
+ - `ux`: Anti-pattern UX, praktik terbaik kegunaan, tingkat keparahan, serta contoh kode baik/buruk
150
+ - `typography`: Pasangan font Google Fonts, rekomendasi font judul/isi, mood & CSS import
151
+ - `icons`: Panduan penggunaan ikon, pustaka SVG (Lucide, Heroicons), & import kode
152
+ - `react`: Optimasi performa React & Next.js, perbaikan re-render & dynamic import
153
+ - `web`: Pedoman antarmuka web (ARIA, focus trap, virtual list, input form)
154
+
155
+ *Contoh:* `python scripts/search.py "fintech dark theme" --domain color`
156
+
157
+ #### 3. Pencarian Pedoman Spesifik Tech Stack
158
+ Cari pedoman yang disesuaikan persis dengan tech stack proyek:
159
+ ```bash
160
+ python scripts/search.py "<kueri>" --stack <stack> --max-results 3
161
+ ```
162
+ - **Tech Stack yang Didukung (`--stack`)**:
163
+ - `html-tailwind` | `react` | `nextjs` | `vue` | `nuxtjs` | `nuxt-ui` | `svelte` | `swiftui` | `react-native` | `flutter` | `shadcn`
164
+
165
+ *Contoh:* `python scripts/search.py "virtualized list performance" --stack react`
166
+
167
+ ---
168
+
169
+ ### Acuan Cepat Aturan Profesional
170
+
171
+ #### 1. Aksesibilitas (WCAG 2.2) - KRITIS
172
+ - **Kontras Warna**: Rasio kontras minimal 4.5:1 untuk teks normal, 3:1 untuk teks besar/komponen UI.
173
+ - **Focus States**: Tampilkan cincin fokus yang jelas (`focus-visible:ring-2 focus-visible:ring-offset-2`) saat menggunakan navigasi keyboard.
174
+ - **Alt Text & ARIA**: Sediakan alt text deskriptif pada gambar; gunakan atribut `aria-expanded`, `aria-controls`, serta elemen HTML semantik.
175
+
176
+ #### 2. Sentuhan & Interaksi - KRITIS
177
+ - **Touch Target Size**: Ukuran area sentuh minimal 44x44px untuk perangkat mobile.
178
+ - **Loading & State**: Nonaktifkan tombol selama operasi asinkron agar tidak terjadi submit ganda; tampilkan spinner halus atau skeleton loader.
179
+ - **Cursor Pointer**: Wajib menambahkan `cursor-pointer` pada elemen interaktif yang dapat diklik.
180
+
181
+ #### 3. Performa & Animasi - TINGGI / MENENGAH
182
+ - **Aset Gambar**: Gunakan format WebP/AVIF, atribut `srcset`, dimensi `width`/`height` eksplisit, serta `loading="lazy"`.
183
+ - **Mikro-interaksi**: Durasi transisi antara 150ms–300ms (`ease-in-out`) agar antarmuka terasa cepat dan responsif.
184
+ - **Reduced Motion**: Hormati preferensi `prefers-reduced-motion: reduce`.
185
+
186
+ #### 4. Kontras Mode Terang & Gelap
187
+ - **Mode Terang**: Teks gelap kontras tinggi (misal Slate-900 `#0F172A`); hindari teks abu-abu pudar. Pastikan batas/border (`border-slate-200`) tetap terlihat.
188
+ - **Mode Gelap**: Kontras tinggi antara elemen latar depan dengan latar belakang gelap; hindari kontainer teks serba hitam pekat `#000000` kecuali diminta khusus.
189
+
190
+ #### 5. Dashboard & Hierarki Informasi
191
+ - **Alur Tata Letak**: Kartu ringkasan KPI di atas -> Grafik tren di tengah -> Tabel detail data di bawah.
192
+ - **Grid Visual**: Konsistensi gap/padding (16px / 24px). Gunakan border halus daripada pembatas tebal hitam.
193
+ - **Visualisasi Data**: Maksimal 3–5 warna terkoordinasi dalam grafik. Tooltip responsif & perataan legenda yang rapi.
194
+
195
+ ---
196
+
197
+ ### Checklist Desain UI/UX Sebelum Delivery
198
+ - [ ] **Visual**: Tidak menggunakan emoji sebagai ikon UI (gunakan ikon SVG seperti Lucide/Heroicons). Efek hover tidak menggeser tata letak.
199
+ - [ ] **Interaksi**: `cursor-pointer` diterapkan pada semua elemen interaktif. Transisi halus 150–300ms.
200
+ - [ ] **Kontras**: Rasio kontras teks minimal 4.5:1 pada mode terang. Border terlihat di kedua mode (terang & gelap).
201
+ - [ ] **Tata Letak & Responsif**: Diuji pada breakpoint 375px, 768px, 1024px, 1440px. Tidak ada scroll horizontal tak disengaja pada perangkat mobile.
202
+ - [ ] **Aksesibilitas**: Semua gambar memiliki `alt` text yang bermakna. Form input memiliki `<label>` terhubung atau `aria-label`.
@@ -34,11 +34,12 @@ Active when the user requests help with:
34
34
  - **Responsiveness Strategy**: Focus breakpoints on Desktop (≥1080px) and Tablet Landscape (768px – 1080px).
35
35
  - **Navigation**: Easy-to-reach sidebar/topbar navigation, ensuring user journeys require no more than 3 clicks to their destination.
36
36
  - **Usability & Interaction**: Prioritize simplicity and clarity. Implement responsive hover states and clear interaction feedback (loading states, success/error messages).
37
+ - **Cognitive Load Reduction**: Implement Progressive Disclosure. Do not overwhelm the user with all settings/buttons at once. Hide advanced features behind "Advanced" accordions or dropdowns.
37
38
 
38
- ### Modern SaaS Design Guidelines (Inspired by Monday.com)
39
- - **Visual Aesthetic**: Spacious, highly structured, clean white (`#FFFFFF`) or light gray (`#F9F9F9`) backgrounds with vibrant brand accents (e.g., `#0073ea` blue).
39
+ ### Modern SaaS Design Guidelines (Next-Gen Aesthetic)
40
+ - **Visual Aesthetic**: Move beyond flat design. Implement Premium styles like **Glassmorphism** (translucent backgrounds with `backdrop-blur-md`), dynamic Aurora gradients, or Bento Grid layouts. Backgrounds should feel spatial and alive.
40
41
  - **Typography**: Geometric sans-serif fonts with high contrast (extra-bold 48-60px for hero, medium 16-18px for body in muted gray `#676879`).
41
- - **Components**: Rounded corners for buttons (~8px) and large radius for cards (~12-16px) with subtle drop shadows (`shadow-sm`).
42
+ - **Components**: Rounded corners for buttons (~8px) and large radius for cards (~12-16px) with subtle drop shadows (`shadow-sm` to `shadow-xl` for elevation).
42
43
  - **Layout Flow**: Centered content with a max-width of 1200-1400px and very generous vertical section padding (80-120px) to create a premium feel.
43
44
 
44
45
  ### Modern & Professional Dashboard Design Guidelines
@@ -87,10 +88,10 @@ Aktif ketika pengguna meminta bantuan terkait:
87
88
  - **Navigasi**: Navigasi sidebar/topbar yang mudah dijangkau, dengan alur tidak lebih dari 3 klik ke tujuan.
88
89
  - **Usability & Interaction**: Utamakan kesederhanaan dan kejelasan, buat hover state yang responsif, dan sediakan feedback interaksi seperti loading state dan status sukses/error.
89
90
 
90
- ### Panduan Desain SaaS Modern (Terinspirasi Monday.com)
91
- - **Estetika Visual**: Luas, terstruktur, bersih dengan latar belakang putih (`#FFFFFF`) atau abu-abu terang (`#F9F9F9`), dipadukan dengan aksen merek yang cerah (mis. biru `#0073ea`).
91
+ ### Panduan Desain SaaS Modern (Estetika Next-Gen)
92
+ - **Estetika Visual**: Tinggalkan desain *flat* yang membosankan. Gunakan gaya Premium seperti **Glassmorphism** (latar tembus pandang dengan `backdrop-blur-md`), gradasi dinamis Aurora, atau tata letak Bento Grid. Latar belakang harus terasa spasial dan hidup.
92
93
  - **Tipografi**: Font sans-serif geometris dengan kontras tinggi (sangat tebal 48-60px untuk hero, sedang 16-18px abu-abu redup `#676879` untuk teks isi).
93
- - **Komponen**: Sudut melengkung untuk tombol (~8px) dan radius besar untuk kartu (~12-16px) dengan efek bayangan sangat halus (`shadow-sm`).
94
+ - **Komponen**: Sudut melengkung untuk tombol (~8px) dan radius besar untuk kartu (~12-16px) dengan efek bayangan halus yang memperlihatkan elevasi.
94
95
  - **Alur Tata Letak**: Konten terpusat dengan lebar maksimal 1200-1400px serta padding vertikal antar bagian yang sangat lega (80-120px) untuk kesan premium.
95
96
 
96
97
  ### Panduan Desain Dashboard Modern & Profesional
@@ -112,3 +113,13 @@ Aktif ketika pengguna meminta bantuan terkait:
112
113
  - Kartu (Cards): Berwarna putih bersih (`#FFFFFF`) atau dark slate-900 (`#1E293B`) dengan border halus (`1px border-slate-100/200`) serta drop shadow lembut (`shadow-sm` atau `shadow-md`).
113
114
  - Tipografi: Gunakan font Sans-serif yang sangat terbaca (seperti Inter, Outfit, Plus Jakarta Sans).
114
115
 
116
+
117
+ ---
118
+ ### 🎨 Automatic Visual Assets Generation Mandate (CRITICAL)
119
+ **MANDATORY**: Whenever you are building a new application, scaffolding a project, or finalizing the initial UI/UX, you MUST automatically use the `generate_image` tool to create a custom logo that perfectly matches the application's core concept and aesthetic.
120
+ This generated image MUST be explicitly used as:
121
+ 1. The primary application logo (e.g., in the header/navbar).
122
+ 2. The website favicon (`favicon.ico` or equivalent).
123
+ 3. The Open Graph (OG) image for SEO metadata (`og:image`).
124
+
125
+ Do not use placeholders for these assets. Generate and integrate them automatically.
@@ -0,0 +1,52 @@
1
+ ---
2
+ name: vector-db-rag-expert
3
+ description: "Expert guide for high-performance Vector Databases, RAG architectures, pgvector HNSW indexing, hybrid search (Dense + BM25), and semantic chunking / Panduan ahli Vector DB, arsitektur RAG, pgvector HNSW, dan hybrid search."
4
+ author: "Roedy Rustam"
5
+ ---
6
+
7
+ # Vector DB & Deep RAG Expert
8
+
9
+ [English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
10
+
11
+ ---
12
+
13
+ <a name="english"></a>
14
+ ## English
15
+
16
+ ### Purpose & Overview
17
+ Production-grade guidelines for Vector Databases (pgvector, Qdrant, Pinecone, Milvus), RAG indexing strategies, HNSW vector search, hybrid retrieval (dense vector embeddings + BM25 sparse keyword ranking), semantic document chunking, and RAG evaluation frameworks.
18
+
19
+ ### Key Capabilities
20
+ - **pgvector & Hybrid Search**: PostgreSQL `pgvector` HNSW indexing, cosine/L2 distance metric tuning, and BM25 hybrid re-ranking.
21
+ - **RAG Architecture**: Parent-Document retrieval, Hypothetical Document Embeddings (HyDE), and contextual compression.
22
+ - **RAG Evaluation**: Automated retrieval quality scoring using Ragas and TruLens.
23
+
24
+ ```typescript
25
+ import { sql } from 'drizzle-orm';
26
+
27
+ // Hybrid Search: Vector Cosine Similarity + Full Text Search
28
+ export async function hybridSearch(queryVector: number[], queryText: string, limit = 10) {
29
+ const result = await db.execute(sql`
30
+ SELECT id, title, content,
31
+ (1 - (embedding <=> ${JSON.stringify(queryVector)}::vector)) * 0.7 +
32
+ ts_rank(fts, websearch_to_tsquery('english', ${queryText})) * 0.3 AS score
33
+ FROM documents
34
+ ORDER BY score DESC
35
+ LIMIT ${limit};
36
+ `);
37
+ return result;
38
+ }
39
+ ```
40
+
41
+ ---
42
+
43
+ <a name="bahasa-indonesia"></a>
44
+ ## Bahasa Indonesia
45
+
46
+ ### Deskripsi
47
+ Panduan tingkat produksi untuk Vector Database (pgvector, Qdrant, Pinecone, Milvus), arsitektur RAG, indeks pgvector HNSW, hybrid search (dense + BM25 sparse re-ranking), semantic chunking, dan evaluasi RAG.
48
+
49
+ ### Fitur Utama
50
+ - **pgvector & Hybrid Search**: PostgreSQL `pgvector` HNSW indexing, tuning jarak cosine/L2, dan re-ranking BM25.
51
+ - **Arsitektur RAG**: Retrieval Parent-Document, HyDE (Hypothetical Document Embeddings), dan kompresi kontekstual.
52
+ - **Evaluasi RAG**: Scoring kualitas retrieval otomatis menggunakan Ragas dan TruLens.