vibes-plug 2.11.0 → 3.9.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 (181) hide show
  1. package/.claude/rules/vibes-plug-core.md +5 -0
  2. package/.cursor/rules/vibes-plug-core.mdc +8 -3
  3. package/.cursorrules +9 -3
  4. package/AGENTS.md +25 -4
  5. package/CHANGELOG.md +151 -0
  6. package/CLAUDE.md +15 -8
  7. package/README.md +216 -641
  8. package/bin/vibes.mjs +1104 -0
  9. package/index.js +1 -1
  10. package/package.json +11 -3
  11. package/plugin.json +4 -3
  12. package/scripts/check-anti-slop.js +53 -0
  13. package/scripts/check-anti-slop.mjs +53 -0
  14. package/scripts/generate_swarm_gif.py +2 -2
  15. package/scripts/install.js +3 -1
  16. package/scripts/update_skills.js +1 -1
  17. package/scripts/update_skills.mjs +86 -0
  18. package/scripts/validate-skills.mjs +111 -0
  19. package/skills/accessibility-testing-expert/SKILL.md +117 -116
  20. package/skills/affective-computing-emotion-ai/SKILL.md +83 -0
  21. package/skills/agentic-coding-workflow-expert/SKILL.md +297 -0
  22. package/skills/agentic-memory-architect/SKILL.md +52 -0
  23. package/skills/agentic-micro-economy-architect/SKILL.md +92 -0
  24. package/skills/ai-llm-integration-expert/SKILL.md +330 -187
  25. package/skills/ai-media-generation-expert/SKILL.md +173 -172
  26. package/skills/ai-prompt-engineering-expert/SKILL.md +170 -50
  27. package/skills/ai-safety-governance-expert/SKILL.md +223 -0
  28. package/skills/angular-expert/SKILL.md +149 -148
  29. package/skills/anti-slop/SKILL.md +134 -0
  30. package/skills/api-design-expert/SKILL.md +4 -3
  31. package/skills/api-gateway-proxy-expert/SKILL.md +3 -2
  32. package/skills/app-analyzer-optimizer/SKILL.md +4 -3
  33. package/skills/apple-ecosystem-expert/SKILL.md +6 -5
  34. package/skills/astro-framework-expert/SKILL.md +201 -200
  35. package/skills/async-queue-temporal-expert/SKILL.md +218 -240
  36. package/skills/authentication-identity-expert/SKILL.md +79 -184
  37. package/skills/autonomous-red-teamer/SKILL.md +338 -203
  38. package/skills/autonomous-tdd-debugger/SKILL.md +6 -5
  39. package/skills/biome-linter-formatter-expert/SKILL.md +90 -89
  40. package/skills/blockchain-web3-expert/SKILL.md +116 -115
  41. package/skills/brainstorming/SKILL.md +392 -377
  42. package/skills/browser-automation-expert/SKILL.md +260 -222
  43. package/skills/bun-runtime-expert/SKILL.md +5 -4
  44. package/skills/chatbot-messaging-expert/SKILL.md +115 -114
  45. package/skills/ci-cd-devops-architect/SKILL.md +3 -2
  46. package/skills/cloud-hosting-expert/SKILL.md +5 -4
  47. package/skills/coderabbit/SKILL.md +5 -4
  48. package/skills/compliance-gdpr-privacy-expert/SKILL.md +3 -2
  49. package/skills/composable-mach-architect/SKILL.md +338 -0
  50. package/skills/cron-scheduler-expert/SKILL.md +5 -4
  51. package/skills/data-pipeline-etl-expert/SKILL.md +3 -2
  52. package/skills/data-telemetry-expert/SKILL.md +5 -4
  53. package/skills/data-visualization-expert/SKILL.md +155 -154
  54. package/skills/database-orm-expert/SKILL.md +102 -240
  55. package/skills/deep-research-analyst/SKILL.md +182 -0
  56. package/skills/dependency-upgrade-migrator/SKILL.md +11 -10
  57. package/skills/design-system-architect/SKILL.md +34 -3
  58. package/skills/desktop-electron-expert/SKILL.md +129 -128
  59. package/skills/documentation-site-expert/SKILL.md +60 -59
  60. package/skills/doku-mcp-server/SKILL.md +5 -4
  61. package/skills/doku-payment-gateway/SKILL.md +250 -232
  62. package/skills/domain-driven-design-expert/SKILL.md +3 -2
  63. package/skills/e2e-testing-expert/SKILL.md +5 -4
  64. package/skills/ecommerce-expert/SKILL.md +88 -87
  65. package/skills/email-notification-expert/SKILL.md +35 -7
  66. package/skills/ephemeral-generative-ui-architect/SKILL.md +88 -0
  67. package/skills/error-resilience-expert/SKILL.md +26 -4
  68. package/skills/event-driven-architect/SKILL.md +5 -4
  69. package/skills/feature-flag-analytics-expert/SKILL.md +3 -2
  70. package/skills/file-upload-media-expert/SKILL.md +5 -4
  71. package/skills/firebase-security-expert/SKILL.md +5 -4
  72. package/skills/form-validation-expert/SKILL.md +7 -6
  73. package/skills/frontier-ai-models-expert/SKILL.md +116 -0
  74. package/skills/fullstack-expert/SKILL.md +68 -144
  75. package/skills/gemini-agent-booster/SKILL.md +248 -172
  76. package/skills/geospatial-maps-expert/SKILL.md +81 -80
  77. package/skills/global-a11y-i18n-expert/SKILL.md +5 -4
  78. package/skills/glsl-shader-expert/SKILL.md +155 -71
  79. package/skills/go-programming-expert/SKILL.md +5 -4
  80. package/skills/graph-rag-knowledge-expert/SKILL.md +201 -159
  81. package/skills/graphql-apollo-expert/SKILL.md +5 -4
  82. package/skills/headless-cms-expert/SKILL.md +182 -181
  83. package/skills/hig/SKILL.md +5 -4
  84. package/skills/js-backend-expert/SKILL.md +219 -218
  85. package/skills/legacy-code-translator/SKILL.md +6 -5
  86. package/skills/llm-finops-router/SKILL.md +52 -0
  87. package/skills/local-slm-edge-ai-expert/SKILL.md +168 -167
  88. package/skills/logging-error-tracking-expert/SKILL.md +5 -4
  89. package/skills/mcp-server-architect/SKILL.md +316 -294
  90. package/skills/micro-frontend-architect/SKILL.md +5 -4
  91. package/skills/mobile-expo-expert/SKILL.md +5 -4
  92. package/skills/modern-css-native-expert/SKILL.md +190 -189
  93. package/skills/monorepo-architect/SKILL.md +5 -4
  94. package/skills/mpa-orchestrator/SKILL.md +41 -4
  95. package/skills/multi-agent-orchestration/SKILL.md +388 -254
  96. package/skills/mvc-expert/SKILL.md +5 -4
  97. package/skills/n8n-automation-expert/SKILL.md +90 -89
  98. package/skills/nextjs-app-router-expert/SKILL.md +3 -2
  99. package/skills/openapi-swagger-codegen-expert/SKILL.md +4 -3
  100. package/skills/payment-gateway-expert/SKILL.md +131 -128
  101. package/skills/pdf-document-generation-expert/SKILL.md +92 -91
  102. package/skills/performance-web-vitals/SKILL.md +5 -4
  103. package/skills/post-quantum-crypto-migrator/SKILL.md +3 -2
  104. package/skills/prd-architect/SKILL.md +85 -109
  105. package/skills/proactive-background-watcher/SKILL.md +5 -4
  106. package/skills/production-ready-hardener/SKILL.md +25 -27
  107. package/skills/pwa-offline-first-expert/SKILL.md +227 -185
  108. package/skills/pydantic-ai-expert/SKILL.md +162 -0
  109. package/skills/python-programming-expert/SKILL.md +5 -4
  110. package/skills/rate-limit-abuse-prevention/SKILL.md +5 -4
  111. package/skills/realtime-collaboration-expert/SKILL.md +3 -2
  112. package/skills/rich-text-editor-expert/SKILL.md +178 -177
  113. package/skills/rust-programming-expert/SKILL.md +5 -4
  114. package/skills/saas-architect/SKILL.md +155 -0
  115. package/skills/saas-billing/SKILL.md +394 -382
  116. package/skills/saas-multi-tenant/SKILL.md +7 -6
  117. package/skills/scalability-clean-code/SKILL.md +5 -4
  118. package/skills/search-engine-expert/SKILL.md +90 -89
  119. package/skills/self-healing-cloud-orchestrator/SKILL.md +3 -2
  120. package/skills/senior-frontend/SKILL.md +21 -18
  121. package/skills/senior-frontend/scripts/frontend_scaffolder.py +1 -1
  122. package/skills/seo/SKILL.md +4 -4
  123. package/skills/session-memory-manager/SKILL.md +129 -0
  124. package/skills/solidjs-expert/SKILL.md +81 -80
  125. package/skills/spa-orchestrator/SKILL.md +5 -4
  126. package/skills/sse-websocket-streaming-expert/SKILL.md +3 -2
  127. package/skills/state-management-expert/SKILL.md +5 -4
  128. package/skills/supabase-security-expert/SKILL.md +5 -4
  129. package/skills/svelte-sveltekit-expert/SKILL.md +92 -91
  130. package/skills/svg-animation-motion-expert/SKILL.md +3 -2
  131. package/skills/synthetic-data-finetuning-expert/SKILL.md +156 -0
  132. package/skills/tailwind-expert/SKILL.md +62 -5
  133. package/skills/tanstack-query-expert/SKILL.md +5 -4
  134. package/skills/tauri-expert/SKILL.md +5 -4
  135. package/skills/typescript-expert/SKILL.md +5 -4
  136. package/skills/ui-ux-pro-max/SKILL.md +7 -4
  137. package/skills/vector-db-rag-expert/SKILL.md +209 -208
  138. package/skills/vercel-ai-sdk-expert/SKILL.md +226 -0
  139. package/skills/voice-ai-realtime-agent/SKILL.md +243 -202
  140. package/skills/vue-frontend-expert/SKILL.md +5 -4
  141. package/skills/wasm-edge-computing-expert/SKILL.md +3 -2
  142. package/skills/web-3d-graphics-expert/SKILL.md +259 -82
  143. package/skills/web-game-engine-expert/SKILL.md +278 -50
  144. package/skills/web-scraper/SKILL.md +158 -157
  145. package/skills/website-design-cloner/SKILL.md +5 -4
  146. package/skills/webxr-ar-vr-expert/SKILL.md +105 -65
  147. package/skills/wordpress-headless-expert/SKILL.md +145 -144
  148. package/skills/zero-tech-debt-auditor/SKILL.md +115 -0
  149. package/skills/zero-to-prod-orchestrator/SKILL.md +281 -227
  150. package/skills/zero-trust-secret-vault/SKILL.md +3 -2
  151. package/BLUEPRINT.md +0 -309
  152. package/skills/ai-cost-token-optimizer/SKILL.md +0 -82
  153. package/skills/ai-evals-benchmark-expert/SKILL.md +0 -188
  154. package/skills/asisten-ramah/SKILL.md +0 -47
  155. package/skills/auto-doc-updater/SKILL.md +0 -220
  156. package/skills/autonomous-chaos-monkey/SKILL.md +0 -63
  157. package/skills/background-jobs-queue-expert/SKILL.md +0 -235
  158. package/skills/bootstrap-to-modern/SKILL.md +0 -94
  159. package/skills/database-migration-versioning-expert/SKILL.md +0 -90
  160. package/skills/edge-serverless-db-expert/SKILL.md +0 -99
  161. package/skills/mcp-client-orchestrator/SKILL.md +0 -76
  162. package/skills/mobile-push-notification-expert/SKILL.md +0 -71
  163. package/skills/monday-design-aesthetic/SKILL.md +0 -73
  164. package/skills/multiple-entry-points/SKILL.md +0 -91
  165. package/skills/project-context-mapper/SKILL.md +0 -85
  166. package/skills/saas-mvp-launcher/SKILL.md +0 -260
  167. package/skills/saas-transformer/SKILL.md +0 -500
  168. package/skills/saas-transformer/references/billing_integration_guide.md +0 -401
  169. package/skills/secure-fuzz-testing/SKILL.md +0 -207
  170. package/skills/self-evolving-memory-graph/SKILL.md +0 -91
  171. package/skills/session-context-loader/SKILL.md +0 -83
  172. package/skills/session-handoff-resume/SKILL.md +0 -164
  173. package/skills/skill-baru/SKILL.md +0 -178
  174. package/skills/supabase-migration/SKILL.md +0 -91
  175. package/skills/token-saver/SKILL.md +0 -119
  176. package/skills/ui-components-expert/SKILL.md +0 -166
  177. package/skills/vibe-code-gardener/SKILL.md +0 -181
  178. package/skills/visual-qa-vision-agent/SKILL.md +0 -71
  179. /package/skills/{saas-transformer → saas-architect}/references/feature_gating_patterns.md +0 -0
  180. /package/skills/{saas-transformer → saas-architect}/references/saas_transformation_checklist.md +0 -0
  181. /package/skills/{saas-transformer → saas-architect}/scripts/saas_transformation_scanner.py +0 -0
@@ -1,119 +0,0 @@
1
- ---
2
- name: token-saver
3
- description: "Skill to implement token saving scheme, concise, and focused on essential changes / Skill untuk menerapkan skema penghematan token, ringkas, dan fokus pada perubahan esensial tanpa basa-basi."
4
- author: "Roedy Rustam"
5
- ---
6
-
7
- # Token Saver Protocol (2026 Edition)
8
-
9
- [English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
10
-
11
- ---
12
-
13
- <a name="english"></a>
14
- ## English
15
-
16
- ### Description
17
- Implements token-efficient communication protocols for long-context AI coding sessions. Activates concise mode — minimizing response verbosity while maintaining precision and completeness of technical output.
18
-
19
- ### Trigger Conditions
20
- - User asks for token-saving mode, concise responses, or minimal output.
21
- - Session is running long and context window is being consumed rapidly.
22
- - User explicitly says "be concise", "save tokens", or "minimal".
23
-
24
- ### Token Budget Strategies for Long Context
25
-
26
- #### 1. Response Compression Rules (Active When Triggered)
27
- - **No preamble**: Skip "Of course! I'll help you with that...".
28
- - **No restatement**: Never repeat back what the user just said.
29
- - **No trailing summaries**: Don't summarize what you just did at the end.
30
- - **Code-first**: Show the code change immediately, explain briefly after.
31
- - **Diff format**: For small changes, show only the changed lines (not the full file).
32
- - **Bullet > prose**: Use bullet lists instead of paragraphs for explanations.
33
-
34
- #### 2. Tool Call Efficiency
35
- - **Batch parallel reads**: Read multiple files in a single turn (not sequentially).
36
- - **Targeted grep over full reads**: Use `grep_search` to find specific content before reading the whole file.
37
- - **Write once**: Produce correct output on first try — avoid edit-then-edit-again cycles.
38
- - **Skip confirmation requests**: Don't ask "Shall I proceed?" — just proceed.
39
-
40
- #### 3. Context Window Budget Awareness
41
- When working on a long session:
42
- ```
43
- Token budget allocation (for 200K context):
44
- ├── System prompt + skills: ~15K
45
- ├── Conversation history: ~50K (truncates older turns)
46
- ├── File contents read: ~100K (most expensive)
47
- └── Response generation: ~35K
48
- ```
49
- - Prefer `grep_search` over reading full large files.
50
- - Summarize large files mentally; only `view_file` the specific section needed.
51
- - When context is nearly full, create a checkpoint with `session-handoff-resume` skill.
52
-
53
- #### 4. Output Size Minimization
54
- For file edits:
55
- ```diff
56
- # Preferred: diff format showing only changes
57
- - const OLD_VALUE = 'old';
58
- + const NEW_VALUE = 'new';
59
- ```
60
-
61
- For explanations:
62
- ```
63
- # Preferred: 1-sentence rationale
64
- Changed X to Y because Z.
65
-
66
- # Avoid: multi-paragraph explanation of an obvious change
67
- ```
68
-
69
- #### 5. Code Generation — First Draft Quality
70
- Generate correct, production-ready code on the first attempt:
71
- - Apply all relevant best practices from skills without being asked.
72
- - Include error handling, types, and edge cases inline.
73
- - Avoid TODOs, placeholder values, or "implement this later" comments.
74
-
75
- ---
76
-
77
- <a name="bahasa-indonesia"></a>
78
- ## Bahasa Indonesia
79
-
80
- ### Deskripsi
81
- Mengimplementasikan protokol komunikasi hemat token untuk sesi coding AI yang panjang. Mengaktifkan mode ringkas — meminimalkan verbositas respons sambil mempertahankan presisi dan kelengkapan output teknis.
82
-
83
- ### Kondisi Pemicu
84
- - Pengguna meminta mode hemat token, respons ringkas, atau output minimal.
85
- - Sesi sudah panjang dan context window sedang dikonsumsi dengan cepat.
86
- - Pengguna secara eksplisit berkata "ringkas", "hemat token", atau "minimal".
87
-
88
- ### Strategi Token Budget untuk Konteks Panjang
89
-
90
- #### 1. Aturan Kompresi Respons (Aktif Saat Dipicu)
91
- - Tanpa pembuka: Lewati "Tentu saja! Saya akan membantu Anda dengan...".
92
- - Tanpa pengulangan: Jangan pernah mengulangi apa yang baru saja dikatakan pengguna.
93
- - Tanpa ringkasan di akhir: Jangan rangkum apa yang baru saja dilakukan.
94
- - Code-first: Tunjukkan perubahan kode segera, jelaskan singkat setelahnya.
95
- - Format diff: Untuk perubahan kecil, tunjukkan hanya baris yang berubah.
96
- - Poin > prosa: Gunakan daftar poin daripada paragraf.
97
-
98
- #### 2. Efisiensi Pemanggilan Tool
99
- - Baca beberapa file secara paralel dalam satu giliran.
100
- - Gunakan `grep_search` untuk menemukan konten spesifik sebelum membaca file lengkap.
101
- - Hasilkan output yang benar pada percobaan pertama.
102
- - Jangan tanyakan "Apakah saya harus melanjutkan?" — langsung lanjutkan.
103
-
104
- #### 3. Kesadaran Budget Context Window
105
- Alokasikan token secara bijak: batasi baca file besar, gunakan `grep_search` daripada membaca file penuh, dan buat checkpoint dengan skill `session-handoff-resume` saat konteks hampir penuh.
106
-
107
- #### 4. Minimalisasi Ukuran Output
108
- Gunakan format diff untuk edit file. Berikan penjelasan 1 kalimat untuk perubahan yang jelas.
109
-
110
- #### 5. Kualitas Draft Kode Pertama
111
- Hasilkan kode yang benar dan siap produksi pada percobaan pertama — termasuk error handling, tipe, dan edge case secara inline. Hindari TODO, nilai placeholder, atau komentar "implementasikan ini nanti".
112
-
113
- ---
114
-
115
- ## Orchestration & Integration
116
- - Integrates with `zero-to-prod-orchestrator`, `session-handoff-resume`, `brainstorming`, and `ai-cost-token-optimizer`.
117
-
118
- ## Integrasi Orkestrasi
119
- - Terintegrasi dengan `zero-to-prod-orchestrator`, `session-handoff-resume`, `brainstorming`, dan `ai-cost-token-optimizer`.
@@ -1,166 +0,0 @@
1
- ---
2
- name: ui-components-expert
3
- description: Expert guide for building production-quality UI components following the 4 pillars. Covers React 19, Radix UI, Base UI, Tailwind v4, Material Design 3 (M3), WCAG 2.2 / Panduan ahli membangun komponen UI berkualitas produksi dengan M3.
4
- author: "Roedy Rustam"
5
- ---
6
-
7
- # 🎨 UI Components Expert (2026/2027 Edition)
8
-
9
- [English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
10
-
11
- ---
12
-
13
- <a name="english"></a>
14
- ## English
15
-
16
- ### Description
17
- Evaluate, audit, and build production-quality UI components. Apply the 4 pillars of UI components with modern tooling: **shadcn/ui**, **Radix UI**, **Base UI**, **React 19**, **Tailwind v4**, **Material Design 3 (M3)**, **WCAG 2.2**, and micro-interaction design.
18
-
19
- ### Trigger Conditions
20
- - Build or review UI components (buttons, forms, modals, navigation, tooltips).
21
- - Implement accessible components (ARIA patterns, keyboard navigation).
22
- - Audit components against WCAG 2.2.
23
- - Set up component libraries (shadcn/ui, Radix UI, Base UI).
24
- - Add micro-interactions and animations.
25
-
26
- ## Orchestration & Integration
27
- This skill orchestrates and connects with:
28
- - `senior-frontend`: For overall React 19 / Next.js 15 architecture.
29
- - `tailwind-expert`: For Tailwind v4 styling and theming.
30
- - `design-system-architect`: For system-wide design tokens and primitives.
31
- - `hig`: For Human Interface Guidelines (Hierarchy, Harmony, Consistency).
32
-
33
- ### Component Stack (2026/2027)
34
- - **Headless Primitives**: Radix UI / Base UI (Accessibility, behavior).
35
- - **Component Library**: shadcn/ui (Pre-styled, customizable).
36
- - **Styling**: Tailwind CSS v4 (Utility-first, `@theme` tokens).
37
- - **Animation**: Motion / Framer Motion v12 (Spring physics).
38
- - **Icons**: Lucide React.
39
- - **Forms**: React Hook Form + Zod.
40
-
41
- ### The 4 Pillars of UI Components
42
-
43
- #### 1: Input Controls
44
- Capture user intent and data (Buttons, Forms, Selects).
45
- - **M3 Integration (if requested)**: Use M3 button variants: Filled, Tonal, Elevated, Outlined, and Text. Include FABs (Floating Action Buttons) for primary screen actions.
46
- - **Visual States**: Define `default`, `hover`, `active`, `focus`, `disabled`, and `error`.
47
- - **Touch Targets**: Minimum 44×44px (WCAG 2.5.8), M3 recommends 48x48px.
48
- - **Immediate Feedback**: Provide visual ripple or scale animation on interaction.
49
- - **Inline Validation**: Show errors on blur. Use `aria-invalid` and `aria-describedby`.
50
- - **Stack**: React Hook Form + Zod.
51
-
52
- #### 2: Navigation
53
- Move through application structure (Navbars, Tabs, Command Palettes).
54
- - **M3 Integration (if requested)**: Use M3 Navigation Bar for mobile (bottom), Navigation Rail for tablet, and Navigation Drawer for desktop.
55
- - **Active State**: Indicate current location with high-contrast visual indicators.
56
- - **Keyboard Navigation**: Support Arrow Keys for tabs, `Escape` to close.
57
- - **Responsive**: Bottom navigation (<768px), collapsible sidebar (tablet), full sidebar (desktop).
58
- - **Command Palette**: Add `⌘K` via `cmdk`.
59
- - **Next.js 15**: Use `<Link viewTransition>` for smooth transitions.
60
- - **ARIA**: Use `role="navigation"` and `aria-current="page"`.
61
-
62
- #### 3: Information & Feedback
63
- Display status and guidance (Toasts, Skeletons, Empty States).
64
- - **M3 Integration (if requested)**: Use Snackbar for transient messages. Use Badges on navigation icons for notifications.
65
- - **Color Semantics**: Green (success), red (error), yellow (warning), blue (info).
66
- - **Toasts**: Use **Sonner**. Limit to 3 concurrent. Auto-dismiss success, keep errors until dismissed.
67
- - **Loading**: Use Skeletons matching exact content layout over spinners (prevents CLS).
68
- - **Empty States**: Provide illustration, context, and clear CTA.
69
- - **ARIA**: `aria-live="polite"` (updates), `aria-live="assertive"` (critical).
70
-
71
- #### 4: Containers & Layout
72
- Group related content (Cards, Modals, Sheets).
73
- - **M3 Integration (if requested)**: Use M3 Card variants: Elevated, Filled, Outlined. Follow M3 Dialog guidelines for Modals.
74
- - **Modals**: Use Radix UI Dialog. It handles focus trapping and scroll locking automatically.
75
- - **Animation**: Animate in (`animate-in fade-in zoom-in-95`).
76
- - **Cards**: Use subtle shadows + borders. Avoid heavy drop shadows in light mode.
77
- - **Sheets**: Use bottom sheet for mobile secondary actions, side sheet for desktop.
78
-
79
- ### Micro-Interaction Checklist
80
- - [ ] Implement `:focus-visible` ring (2px, brand color) on all interactives.
81
- - [ ] **M3 State Layers**: If using M3, ensure interactive elements have distinct Hover, Focus, Pressed, and Dragged state layers.
82
- - [ ] Add loading state (spinner + disabled) to submit buttons.
83
- - [ ] Use **Framer Motion v12 spring physics** (`stiffness: 300, damping: 20`) for natural, snappy interactions. Avoid rigid linear transitions.
84
- - [ ] Use `transition-all duration-200 ease-out` for simple hovers.
85
- - [ ] Test dark mode for all states (especially error contrast).
86
-
87
- ### WCAG 2.2 Quick Reference
88
- - **1.4.3**: Text contrast ≥4.5:1.
89
- - **2.5.8**: Touch target ≥24×24px (min), 44×44px (target).
90
- - **2.4.7**: Visible focus indicator.
91
-
92
- ---
93
-
94
- <a name="bahasa-indonesia"></a>
95
- ## Bahasa Indonesia
96
-
97
- ### Deskripsi
98
- Evaluasi, audit, dan bangun komponen UI berkualitas produksi. Terapkan 4 pilar komponen UI dengan tooling modern: **shadcn/ui**, **Radix UI**, **Base UI**, **React 19**, **Tailwind v4**, **Material Design 3 (M3)**, **WCAG 2.2**, dan desain micro-interaction.
99
-
100
- ### Kondisi Pemicu
101
- - Membangun atau me-review komponen UI (tombol, form, modal, navigasi).
102
- - Implementasi komponen aksesibel (pola ARIA, navigasi keyboard).
103
- - Audit komponen berdasarkan WCAG 2.2.
104
- - Setup library komponen (shadcn/ui, Radix UI, Base UI).
105
- - Menambahkan micro-interaction dan animasi.
106
-
107
- ## Integrasi Orkestrasi
108
- Skill ini mengorkestrasi dan terhubung dengan:
109
- - `senior-frontend`: Untuk arsitektur keseluruhan React 19 / Next.js 15.
110
- - `tailwind-expert`: Untuk styling dan theming Tailwind v4.
111
- - `design-system-architect`: Untuk design token dan primitif skala sistem.
112
- - `hig`: Untuk panduan Human Interface (Hierarki, Harmoni, Konsistensi).
113
-
114
- ### QA Visual Mandatori
115
- - Wajib gunakan `browser_subagent` dan `visual-qa-vision-agent` untuk validasi layout.
116
- - Standar Pixel-Perfect: Jangan menebak ukuran. Ambil screenshot dan koreksi pergeseran tata letak.
117
-
118
- ### Stack Komponen (2026/2027)
119
- - **Headless**: Radix UI / Base UI.
120
- - **Library**: shadcn/ui.
121
- - **Styling**: Tailwind CSS v4.
122
- - **Animasi**: Motion / Framer Motion v12.
123
- - **Form**: React Hook Form + Zod.
124
-
125
- ### 4 Pilar Komponen UI
126
-
127
- #### 1: Kontrol Input
128
- Tangkap data (Tombol, Form, Select).
129
- - **Integrasi M3 (jika diminta)**: Gunakan varian tombol M3: Filled, Tonal, Elevated, Outlined, dan Text. Sertakan FABs (Floating Action Buttons).
130
- - Definisikan state visual: `default`, `hover`, `active`, `focus`, `disabled`, `error`.
131
- - Target sentuh minimal 44×44px (M3 merekomendasikan 48x48px).
132
- - Tampilkan error saat blur dengan `aria-invalid` dan `aria-describedby`.
133
- - Gunakan React Hook Form + Zod.
134
-
135
- #### 2: Navigasi
136
- Pergerakan pengguna (Navbar, Tab, Command Palette).
137
- - **Integrasi M3 (jika diminta)**: Gunakan Navigation Bar M3 untuk mobile, Navigation Rail untuk tablet, dan Navigation Drawer untuk desktop.
138
- - Gunakan indikator visual kontras tinggi untuk lokasi aktif.
139
- - Wajib dukung navigasi keyboard (Arrow Keys, Escape).
140
- - Responsive: Bottom navigation (<768px), sidebar desktop.
141
- - Gunakan `cmdk` untuk Command Palette `⌘K`.
142
- - Tandai navigasi aktif dengan `aria-current="page"`.
143
-
144
- #### 3: Informasi & Feedback
145
- Tampilkan status (Toast, Skeleton, Empty State).
146
- - **Integrasi M3 (jika diminta)**: Gunakan Snackbar untuk pesan sementara. Gunakan Badges pada ikon navigasi.
147
- - Gunakan warna semantik secara konsisten.
148
- - Gunakan **Sonner** untuk toast (maks 3 sekaligus).
149
- - Gunakan Skeleton persis sesuai layout (jangan gunakan spinner untuk layout) guna mencegah CLS.
150
- - Sediakan ilustrasi dan CTA pada Empty State.
151
-
152
- #### 4: Kontainer & Layout
153
- Kelompokkan konten (Card, Modal, Sheet).
154
- - **Integrasi M3 (jika diminta)**: Gunakan varian Card M3: Elevated, Filled, Outlined. Ikuti panduan Dialog M3 untuk modal.
155
- - Gunakan Radix UI Dialog untuk modal (menangani focus trap dan scroll lock).
156
- - Animasikan kemunculan modal (fade + scale).
157
- - Gunakan shadow tipis untuk elevasi card di mode terang.
158
- - Gunakan bottom sheet di mobile.
159
-
160
- ### Checklist Micro-Interaction
161
- - [ ] Ring `:focus-visible` (2px) pada elemen interaktif.
162
- - [ ] **State Layers M3**: Jika menggunakan M3, pastikan elemen interaktif memiliki lapisan status (Hover, Focus, Pressed, Dragged) yang berbeda.
163
- - [ ] State loading pada tombol.
164
- - [ ] Gunakan **Framer Motion v12 spring physics** (`stiffness: 300, damping: 20`) untuk interaksi alami.
165
- - [ ] Transisi hover `transition-all duration-200 ease-out`.
166
- - [ ] Uji kontras warna dark mode.
@@ -1,181 +0,0 @@
1
- ---
2
- name: vibe-code-gardener
3
- description: "Purger of AI slop, code bloat, context drift, and architectural decay in vibe-coded projects / Pembersih AI slop, kode membengkak, konteks drift, dan pembusukan arsitektur pada proyek vibe coding."
4
- author: "Roedy Rustam"
5
- ---
6
-
7
- # Vibe Code Gardener (2026 Edition)
8
-
9
- [English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
10
-
11
- ---
12
-
13
- <a name="english"></a>
14
- ## English
15
-
16
- ### Description
17
- Detects and purges AI-generated code quality issues — AI slop, code bloat, context drift, duplicated logic, dead code, misaligned patterns, and architectural decay in projects that have been heavily vibe-coded.
18
-
19
- ### Trigger Conditions
20
- - Codebase has grown out of control after many AI-assisted coding sessions.
21
- - Duplication, inconsistent patterns, or unexplained abstractions detected.
22
- - Features are getting harder to add or understand.
23
- - Tests are brittle or missing entirely.
24
- - The codebase has "AI smell" — overly verbose comments, unnecessary defensive code, duplicate utilities.
25
-
26
- ### AI Slop Detection Heuristics (2026)
27
-
28
- These are the most common AI-generated code quality issues to look for:
29
-
30
- #### 1. The "Just In Case" Over-Engineering
31
- AI models often add features or abstractions "for extensibility" that are never needed:
32
- ```typescript
33
- // 🔴 AI SLOP: Factory pattern for something that will never change
34
- const createUserRepository = (type: 'postgres' | 'mysql' | 'sqlite') => {
35
- if (type === 'postgres') return new PostgresUserRepo();
36
- // ...never switches in practice
37
- };
38
-
39
- // ✅ CLEAN: Just use the implementation
40
- const userRepo = new PostgresUserRepo();
41
- ```
42
-
43
- #### 2. The "Belt and Suspenders" Duplicate Guards
44
- AI adds null checks and validations at every layer unnecessarily:
45
- ```typescript
46
- // 🔴 AI SLOP: Triple-validated (already validated by Zod + DB schema + here)
47
- if (!user || !user.id || user.id === undefined || user.id === null || typeof user.id !== 'string') { ... }
48
-
49
- // ✅ CLEAN: Trust your types
50
- if (!user.id) { ... }
51
- ```
52
-
53
- #### 3. The "Graveyard of Dead Utilities"
54
- AI-generated helper files with functions that are defined but never used:
55
- - Search for exported functions with 0 usages: `grep -r "export function" --include="*.ts" | while read...`
56
- - Remove entire files of dead utilities.
57
-
58
- #### 4. Context Drift — Style Inconsistency
59
- Different sessions produce different coding styles in the same codebase:
60
- - Some files use `async/await`, others use `.then()` chains.
61
- - Some use `const` arrow functions, others use `function` declarations.
62
- - Mixed naming: `userId`, `user_id`, `UserID` in the same project.
63
- - **Fix**: Run a style unification pass with Prettier + ESLint rules.
64
-
65
- #### 5. Comment Pollution
66
- AI loves to narrate obvious code:
67
- ```typescript
68
- // 🔴 AI SLOP: Stating the obvious
69
- // Get the user from the database
70
- const user = await db.user.findUnique({ where: { id } });
71
- // Return the user
72
- return user;
73
-
74
- // ✅ CLEAN: No comment needed — code is self-explanatory
75
- const user = await db.user.findUnique({ where: { id } });
76
- return user;
77
- ```
78
-
79
- #### 6. The Bloated Component
80
- AI tends to put too much in one component across sessions:
81
- - Component renders conditionally across 5+ different states.
82
- - Component has 10+ props.
83
- - Component imports from 20+ different modules.
84
- - **Fix**: Apply Single Responsibility — split into sub-components.
85
-
86
- #### 7. Dependency Creep
87
- Each AI session may install new packages for tasks already solvable with existing deps:
88
- ```bash
89
- # Audit dependencies — find packages doing the same thing
90
- npx depcheck # Unused dependencies
91
- npx bundle-phobia-cli # Bundle size of each dep
92
- ```
93
-
94
- ### Gardening Protocol
95
-
96
- #### Phase 1: Discovery (Read Only)
97
- 1. Map the full file tree.
98
- 2. Identify largest files (likely bloated).
99
- 3. Find duplicated logic with semantic search.
100
- 4. Find unused exports and dead code.
101
- 5. Identify inconsistent patterns across files.
102
-
103
- #### Phase 2: Triage
104
- Categorize issues:
105
- - **Critical**: Bugs, security holes, data loss risks.
106
- - **High**: Duplicate business logic that will diverge.
107
- - **Medium**: Code smells that slow development.
108
- - **Low**: Style inconsistencies, over-verbose comments.
109
-
110
- #### Phase 3: Systematic Refactoring
111
- Work file by file, smallest changes first:
112
- 1. Remove dead code and unused imports.
113
- 2. Extract duplicated logic into shared utilities.
114
- 3. Simplify over-engineered abstractions.
115
- 4. Standardize naming conventions.
116
- 5. Add missing tests for business-critical paths.
117
-
118
- #### Phase 4: Prevention
119
- - Add ESLint rules to catch common AI slop patterns.
120
- - Add `depcheck` to CI to catch unused dependencies.
121
- - Add architecture tests (e.g., `arch-unit`) to enforce layer boundaries.
122
-
123
- ---
124
-
125
- <a name="bahasa-indonesia"></a>
126
- ## Bahasa Indonesia
127
-
128
- ### Deskripsi
129
- Mendeteksi dan membersihkan masalah kualitas kode yang dihasilkan AI — AI slop, kode yang membengkak, context drift, logika yang terduplikasi, kode mati, pola yang tidak konsisten, dan pembusukan arsitektur pada proyek yang banyak menggunakan vibe coding.
130
-
131
- ### Kondisi Pemicu
132
- - Codebase telah tumbuh tidak terkendali setelah banyak sesi coding berbantuan AI.
133
- - Duplikasi, pola tidak konsisten, atau abstraksi yang tidak dapat dijelaskan terdeteksi.
134
- - Fitur semakin sulit ditambahkan atau dipahami.
135
- - Test rapuh atau tidak ada sama sekali.
136
- - Codebase memiliki "AI smell" — komentar yang terlalu verbose, kode defensif yang tidak perlu, utilitas yang diduplikasi.
137
-
138
- ### Heuristik Deteksi AI Slop (2026)
139
-
140
- #### 1. Over-Engineering "Untuk Jaga-Jaga"
141
- Model AI sering menambahkan fitur atau abstraksi "untuk ekstensibilitas" yang tidak pernah dibutuhkan. Hapus factory pattern, strategy pattern, atau abstraksi lain yang tidak memiliki lebih dari satu implementasi.
142
-
143
- #### 2. "Belt and Suspenders" — Validasi Ganda Berlebihan
144
- AI menambahkan null check dan validasi di setiap layer yang sebenarnya sudah divalidasi oleh Zod, TypeScript, atau skema DB. Percayai tipe Anda.
145
-
146
- #### 3. "Kuburan Utilitas Mati"
147
- File helper yang dihasilkan AI dengan fungsi yang tidak pernah digunakan. Cari dan hapus ekspor dengan 0 penggunaan.
148
-
149
- #### 4. Context Drift — Inkonsistensi Gaya
150
- Sesi yang berbeda menghasilkan gaya koding yang berbeda: sebagian menggunakan `async/await`, yang lain menggunakan `.then()`; penamaan campuran `userId`, `user_id`, `UserID`. Perbaiki dengan satu pass Prettier + aturan ESLint.
151
-
152
- #### 5. Polusi Komentar
153
- AI suka mengomentari kode yang sudah jelas sendiri. Hapus komentar yang hanya mengulang apa yang sudah tertulis dalam kode.
154
-
155
- #### 6. Komponen yang Membengkak
156
- Komponen dengan terlalu banyak kondisi rendering, prop, atau impor. Terapkan Single Responsibility — pecah menjadi sub-komponen.
157
-
158
- #### 7. Creep Dependensi
159
- Setiap sesi AI mungkin menginstal paket baru untuk tugas yang sudah bisa diselesaikan dengan dependensi yang ada. Audit dengan `depcheck` dan `bundle-phobia-cli`.
160
-
161
- ### Protokol Berkebun
162
-
163
- #### Fase 1: Penemuan (Hanya Baca)
164
- Peta pohon file lengkap, identifikasi file terbesar, temukan logika yang terduplikasi, temukan ekspor yang tidak digunakan.
165
-
166
- #### Fase 2: Triase
167
- Kategorikan masalah: Kritis, Tinggi, Sedang, Rendah.
168
-
169
- #### Fase 3: Refactoring Sistematis
170
- Kerja file per file, perubahan terkecil dulu: hapus kode mati, ekstrak logika duplikat, sederhanakan abstraksi berlebih, standarisasi penamaan, tambahkan test yang hilang.
171
-
172
- #### Fase 4: Pencegahan
173
- Tambahkan aturan ESLint, `depcheck` di CI, dan architecture test untuk menjaga codebase tetap bersih.
174
-
175
- ---
176
-
177
- ## Orchestration & Integration
178
- - Integrates with `zero-to-prod-orchestrator`, `brainstorming`, `coderabbit`, and `dependency-upgrade-migrator`.
179
-
180
- ## Integrasi Orkestrasi
181
- - Terintegrasi dengan `zero-to-prod-orchestrator`, `brainstorming`, `coderabbit`, dan `dependency-upgrade-migrator`.
@@ -1,71 +0,0 @@
1
- ---
2
- name: visual-qa-vision-agent
3
- description: "Equips the AI agent with visual QA capabilities using Playwright/Puppeteer and the agent's innate Vision capabilities to self-correct UI layout, CSS alignment, and visual regressions."
4
- author: "Roedy Rustam"
5
- ---
6
-
7
- # Visual QA & Vision Agent
8
-
9
- [English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
10
-
11
- ---
12
-
13
- <a name="english"></a>
14
- ## English
15
-
16
- ### Orchestration & Integration
17
- Connects and orchestrates with relevant domain skills like `brainstorming`, `zero-to-prod-orchestrator`, and `project-context-mapper` to ensure cohesive execution.
18
-
19
- ### Description
20
- This skill transforms the agent from a blind code generator into a visual designer. Instead of hoping the CSS looks correct, the agent is instructed to write a script that takes a screenshot of the newly created component, analyzes the screenshot using its own Vision AI capabilities, and iteratively tweaks the CSS until it matches the design intent perfectly.
21
-
22
- ### Trigger Conditions
23
- Activate this skill when the user says:
24
- - "Fix the CSS, the button is misaligned."
25
- - "Make it look exactly like this mockup."
26
- - "Ensure the UI is responsive on mobile screens."
27
-
28
- ### Core Concepts
29
-
30
- #### 1. The Visual QA Loop
31
- 1. **Code:** The agent writes the HTML/CSS/React component.
32
- 2. **Serve:** The agent starts a local dev server in the background.
33
- 3. **Capture:** The agent runs a quick Playwright/Puppeteer script to take screenshots at various viewports (Mobile, Tablet, Desktop).
34
- 4. **Analyze:** The agent receives the screenshot (via the `view_file` tool on the image) and analyzes the visual hierarchy, contrast, and alignment.
35
- 5. **Correct:** The agent fixes margin, padding, or flexbox issues based on what it *saw*, not just what the code says.
36
-
37
- #### 2. Agent Constraints (Mandatory Visual Verification)
38
- - **NO BLIND CSS GUESSING**: You are strictly prohibited from finalizing a frontend component without verifying it visually first. You MUST use a `browser_subagent` to capture a screenshot of your work.
39
- - **Pixel-Perfect Validation**: Compare the screenshot against the initial design spec or generic UI/UX best practices. Iterate on the CSS until the visual output is flawless.
40
- - Always check contrast ratios visually if design tokens are overridden.
41
-
42
- ---
43
-
44
- ### Integration with Other Skills (MANDATORY)
45
- - `browser-automation-expert` — Provides the Playwright code needed to capture the screenshots.
46
- - `tailwind-expert` — Provides the CSS utility classes used to fix the alignment issues discovered by Vision.
47
- - `ui-components-expert` — Defines the correct visual standards (spacing, sizing) the agent should look for.
48
-
49
- ### Referenced By Orchestrators (MANDATORY)
50
- - `brainstorming` — Add to "UI/UX & Design Systems".
51
- - `zero-to-prod-orchestrator` — Phase 5 (Frontend / UI Validation).
52
-
53
- ---
54
-
55
- <a name="bahasa-indonesia"></a>
56
- ## Bahasa Indonesia
57
-
58
- ### Integrasi Orkestrasi
59
- Terhubung dan mengorkestrasi skill domain yang relevan seperti `brainstorming`, `zero-to-prod-orchestrator`, dan `project-context-mapper` untuk memastikan eksekusi yang kohesif.
60
-
61
- ### Deskripsi
62
- Skill ini memanfaatkan kemampuan *Vision* (penglihatan) bawaan AI untuk melakukan *Quality Assurance* (QA) visual. Agen tidak lagi sekadar menebak CSS secara buta, melainkan mengambil *screenshot* dari halaman yang dibuatnya, melihat hasilnya, dan mengkoreksi *margin/padding* secara mandiri.
63
-
64
- ### Kondisi Pemicu
65
- - Saat pengguna meminta untuk merapikan UI yang berantakan.
66
- - Saat melakukan *cloning* desain dari gambar *mockup*.
67
-
68
- ### Panduan Singkat
69
- - **Gunakan Mata Anda (Wajib Verifikasi Visual):** Anda dilarang keras memfinalisasi atau menyelesaikan tugas frontend tanpa melihat hasilnya terlebih dahulu. Anda WAJIB mengambil *screenshot*, melihatnya menggunakan tool `view_file`, dan memverifikasi layout secara visual (*pixel-perfect*).
70
- - **Siklus Visual:** Tulis Kode ➔ Ambil Screenshot ➔ Analisis dengan *Vision* ➔ Perbaiki Tailwind/CSS ➔ Selesai.
71
- - **Jangan Menebak:** Terkadang `justify-center` tidak berfungsi karena ada pembungkus (*wrapper*) absolut. Jangan menebak-nebak di dalam kode; lihat hasil akhirnya secara visual!