@nguyenphp/antigravity-marketing 1.0.16 → 1.0.18

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 (252) hide show
  1. package/README.md +10 -5
  2. package/bin/index.js +4 -4
  3. package/package.json +1 -1
  4. package/templates/.agent/agents/backend-specialist.md +263 -0
  5. package/templates/.agent/agents/database-architect.md +226 -0
  6. package/templates/.agent/agents/debugger.md +225 -0
  7. package/templates/.agent/agents/devops-engineer.md +242 -0
  8. package/templates/.agent/agents/documentation-writer.md +104 -0
  9. package/templates/.agent/agents/explorer-agent.md +73 -0
  10. package/templates/.agent/agents/frontend-specialist.md +527 -0
  11. package/templates/.agent/agents/game-developer.md +162 -0
  12. package/templates/.agent/agents/mobile-developer.md +377 -0
  13. package/templates/.agent/agents/orchestrator.md +400 -0
  14. package/templates/.agent/agents/penetration-tester.md +188 -0
  15. package/templates/.agent/agents/performance-optimizer.md +187 -0
  16. package/templates/.agent/agents/project-planner.md +403 -0
  17. package/templates/.agent/agents/security-auditor.md +170 -0
  18. package/templates/.agent/agents/seo-specialist.md +111 -0
  19. package/templates/.agent/agents/test-engineer.md +158 -0
  20. package/templates/.agent/rules/GEMINI.md +248 -0
  21. package/templates/.agent/skills/analytics-marketing/SKILL.md +172 -324
  22. package/templates/.agent/skills/api-patterns/SKILL.md +81 -0
  23. package/templates/.agent/skills/api-patterns/api-style.md +42 -0
  24. package/templates/.agent/skills/api-patterns/auth.md +24 -0
  25. package/templates/.agent/skills/api-patterns/documentation.md +26 -0
  26. package/templates/.agent/skills/api-patterns/graphql.md +41 -0
  27. package/templates/.agent/skills/api-patterns/rate-limiting.md +31 -0
  28. package/templates/.agent/skills/api-patterns/response.md +37 -0
  29. package/templates/.agent/skills/api-patterns/rest.md +40 -0
  30. package/templates/.agent/skills/api-patterns/scripts/api_validator.py +211 -0
  31. package/templates/.agent/skills/api-patterns/security-testing.md +122 -0
  32. package/templates/.agent/skills/api-patterns/trpc.md +41 -0
  33. package/templates/.agent/skills/api-patterns/versioning.md +22 -0
  34. package/templates/.agent/skills/app-builder/SKILL.md +75 -0
  35. package/templates/.agent/skills/app-builder/agent-coordination.md +71 -0
  36. package/templates/.agent/skills/app-builder/feature-building.md +53 -0
  37. package/templates/.agent/skills/app-builder/project-detection.md +34 -0
  38. package/templates/.agent/skills/app-builder/scaffolding.md +118 -0
  39. package/templates/.agent/skills/app-builder/tech-stack.md +40 -0
  40. package/templates/.agent/skills/app-builder/templates/SKILL.md +39 -0
  41. package/templates/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
  42. package/templates/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
  43. package/templates/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
  44. package/templates/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
  45. package/templates/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
  46. package/templates/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
  47. package/templates/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
  48. package/templates/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +82 -0
  49. package/templates/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +100 -0
  50. package/templates/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +106 -0
  51. package/templates/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +101 -0
  52. package/templates/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
  53. package/templates/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +93 -0
  54. package/templates/.agent/skills/architecture/SKILL.md +55 -0
  55. package/templates/.agent/skills/architecture/context-discovery.md +43 -0
  56. package/templates/.agent/skills/architecture/examples.md +94 -0
  57. package/templates/.agent/skills/architecture/pattern-selection.md +68 -0
  58. package/templates/.agent/skills/architecture/patterns-reference.md +50 -0
  59. package/templates/.agent/skills/architecture/trade-off-analysis.md +77 -0
  60. package/templates/.agent/skills/banner-design/SKILL.md +192 -0
  61. package/templates/.agent/skills/banner-design/references/banner-sizes-and-styles.md +118 -0
  62. package/templates/.agent/skills/bash-linux/SKILL.md +199 -0
  63. package/templates/.agent/skills/behavioral-modes/SKILL.md +242 -0
  64. package/templates/.agent/skills/brainstorming/SKILL.md +163 -0
  65. package/templates/.agent/skills/brainstorming/dynamic-questioning.md +350 -0
  66. package/templates/.agent/skills/brand/SKILL.md +97 -0
  67. package/templates/.agent/skills/brand/references/approval-checklist.md +169 -0
  68. package/templates/.agent/skills/brand/references/asset-organization.md +157 -0
  69. package/templates/.agent/skills/brand/references/brand-guideline-template.md +140 -0
  70. package/templates/.agent/skills/brand/references/color-palette-management.md +186 -0
  71. package/templates/.agent/skills/brand/references/consistency-checklist.md +94 -0
  72. package/templates/.agent/skills/brand/references/logo-usage-rules.md +185 -0
  73. package/templates/.agent/skills/brand/references/messaging-framework.md +85 -0
  74. package/templates/.agent/skills/brand/references/typography-specifications.md +214 -0
  75. package/templates/.agent/skills/brand/references/update.md +118 -0
  76. package/templates/.agent/skills/brand/references/visual-identity.md +96 -0
  77. package/templates/.agent/skills/brand/references/voice-framework.md +88 -0
  78. package/templates/.agent/skills/brand/scripts/extract-colors.cjs +341 -0
  79. package/templates/.agent/skills/brand/scripts/inject-brand-context.cjs +349 -0
  80. package/templates/.agent/skills/brand/scripts/sync-brand-to-tokens.cjs +266 -0
  81. package/templates/.agent/skills/brand/scripts/validate-asset.cjs +387 -0
  82. package/templates/.agent/skills/brand/templates/brand-guidelines-starter.md +275 -0
  83. package/templates/.agent/skills/clean-code/SKILL.md +201 -0
  84. package/templates/.agent/skills/code-review-checklist/SKILL.md +109 -0
  85. package/templates/.agent/skills/copywriting/SKILL.md +250 -0
  86. package/templates/.agent/skills/database-design/SKILL.md +52 -0
  87. package/templates/.agent/skills/database-design/database-selection.md +43 -0
  88. package/templates/.agent/skills/database-design/indexing.md +39 -0
  89. package/templates/.agent/skills/database-design/migrations.md +48 -0
  90. package/templates/.agent/skills/database-design/optimization.md +36 -0
  91. package/templates/.agent/skills/database-design/orm-selection.md +30 -0
  92. package/templates/.agent/skills/database-design/schema-design.md +56 -0
  93. package/templates/.agent/skills/database-design/scripts/schema_validator.py +172 -0
  94. package/templates/.agent/skills/deployment-procedures/SKILL.md +241 -0
  95. package/templates/.agent/skills/docker-expert/SKILL.md +409 -0
  96. package/templates/.agent/skills/frontend-design/animation-guide.md +331 -0
  97. package/templates/.agent/skills/frontend-design/color-system.md +311 -0
  98. package/templates/.agent/skills/frontend-design/decision-trees.md +418 -0
  99. package/templates/.agent/skills/frontend-design/motion-graphics.md +306 -0
  100. package/templates/.agent/skills/frontend-design/scripts/accessibility_checker.py +183 -0
  101. package/templates/.agent/skills/frontend-design/scripts/ux_audit.py +722 -0
  102. package/templates/.agent/skills/frontend-design/typography-system.md +345 -0
  103. package/templates/.agent/skills/frontend-design/ux-psychology.md +541 -0
  104. package/templates/.agent/skills/frontend-design/visual-effects.md +383 -0
  105. package/templates/.agent/skills/frontend-slides/SKILL.md +92 -0
  106. package/templates/.agent/skills/frontend-slides/STYLE_PRESETS.md +347 -0
  107. package/templates/.agent/skills/frontend-slides/animation-patterns.md +110 -0
  108. package/templates/.agent/skills/frontend-slides/examples/n8n-jupviec-automation.html +789 -0
  109. package/templates/.agent/skills/frontend-slides/examples/n8n-jupviec-automation.pptx +0 -0
  110. package/templates/.agent/skills/frontend-slides/html-template.md +347 -0
  111. package/templates/.agent/skills/frontend-slides/scripts/export-pptx.py +58 -0
  112. package/templates/.agent/skills/frontend-slides/scripts/extract-pptx.py +96 -0
  113. package/templates/.agent/skills/frontend-slides/viewport-base.css +153 -0
  114. package/templates/.agent/skills/game-development/2d-games/SKILL.md +119 -0
  115. package/templates/.agent/skills/game-development/3d-games/SKILL.md +135 -0
  116. package/templates/.agent/skills/game-development/SKILL.md +167 -0
  117. package/templates/.agent/skills/game-development/game-art/SKILL.md +185 -0
  118. package/templates/.agent/skills/game-development/game-audio/SKILL.md +190 -0
  119. package/templates/.agent/skills/game-development/game-design/SKILL.md +129 -0
  120. package/templates/.agent/skills/game-development/mobile-games/SKILL.md +108 -0
  121. package/templates/.agent/skills/game-development/multiplayer/SKILL.md +132 -0
  122. package/templates/.agent/skills/game-development/pc-games/SKILL.md +144 -0
  123. package/templates/.agent/skills/game-development/vr-ar/SKILL.md +123 -0
  124. package/templates/.agent/skills/game-development/web-games/SKILL.md +150 -0
  125. package/templates/.agent/skills/geo-fundamentals/SKILL.md +156 -0
  126. package/templates/.agent/skills/geo-fundamentals/scripts/geo_checker.py +289 -0
  127. package/templates/.agent/skills/growth-engine/SKILL.md +244 -0
  128. package/templates/.agent/skills/i18n-localization/SKILL.md +154 -0
  129. package/templates/.agent/skills/i18n-localization/scripts/i18n_checker.py +241 -0
  130. package/templates/.agent/skills/lint-and-validate/SKILL.md +45 -0
  131. package/templates/.agent/skills/lint-and-validate/scripts/lint_runner.py +172 -0
  132. package/templates/.agent/skills/lint-and-validate/scripts/type_coverage.py +173 -0
  133. package/templates/.agent/skills/mcp-builder/SKILL.md +176 -0
  134. package/templates/.agent/skills/mobile-design/SKILL.md +394 -0
  135. package/templates/.agent/skills/mobile-design/decision-trees.md +516 -0
  136. package/templates/.agent/skills/mobile-design/mobile-backend.md +491 -0
  137. package/templates/.agent/skills/mobile-design/mobile-color-system.md +420 -0
  138. package/templates/.agent/skills/mobile-design/mobile-debugging.md +122 -0
  139. package/templates/.agent/skills/mobile-design/mobile-design-thinking.md +357 -0
  140. package/templates/.agent/skills/mobile-design/mobile-navigation.md +458 -0
  141. package/templates/.agent/skills/mobile-design/mobile-performance.md +767 -0
  142. package/templates/.agent/skills/mobile-design/mobile-testing.md +356 -0
  143. package/templates/.agent/skills/mobile-design/mobile-typography.md +433 -0
  144. package/templates/.agent/skills/mobile-design/platform-android.md +666 -0
  145. package/templates/.agent/skills/mobile-design/platform-ios.md +561 -0
  146. package/templates/.agent/skills/mobile-design/scripts/mobile_audit.py +670 -0
  147. package/templates/.agent/skills/mobile-design/touch-psychology.md +537 -0
  148. package/templates/.agent/skills/nestjs-expert/SKILL.md +552 -0
  149. package/templates/.agent/skills/nextjs-best-practices/SKILL.md +203 -0
  150. package/templates/.agent/skills/nodejs-best-practices/SKILL.md +333 -0
  151. package/templates/.agent/skills/parallel-agents/SKILL.md +175 -0
  152. package/templates/.agent/skills/performance-profiling/SKILL.md +143 -0
  153. package/templates/.agent/skills/performance-profiling/scripts/lighthouse_audit.py +76 -0
  154. package/templates/.agent/skills/plan-writing/SKILL.md +152 -0
  155. package/templates/.agent/skills/powershell-windows/SKILL.md +167 -0
  156. package/templates/.agent/skills/ppc-advertising/SKILL.md +183 -475
  157. package/templates/.agent/skills/prisma-expert/SKILL.md +355 -0
  158. package/templates/.agent/skills/python-patterns/SKILL.md +441 -0
  159. package/templates/.agent/skills/react-patterns/SKILL.md +198 -0
  160. package/templates/.agent/skills/red-team-tactics/SKILL.md +199 -0
  161. package/templates/.agent/skills/remotion-best-practices/SKILL.md +45 -111
  162. package/templates/.agent/skills/remotion-best-practices/rules/3d.md +4 -4
  163. package/templates/.agent/skills/remotion-best-practices/rules/animations.md +5 -7
  164. package/templates/.agent/skills/remotion-best-practices/rules/assets/charts-bar-chart.tsx +173 -0
  165. package/templates/.agent/skills/remotion-best-practices/rules/assets/text-animations-typewriter.tsx +100 -0
  166. package/templates/.agent/skills/remotion-best-practices/rules/assets/text-animations-word-highlight.tsx +103 -0
  167. package/templates/.agent/skills/remotion-best-practices/rules/assets.md +78 -0
  168. package/templates/.agent/skills/remotion-best-practices/rules/audio-visualization.md +198 -0
  169. package/templates/.agent/skills/remotion-best-practices/rules/audio.md +1 -4
  170. package/templates/.agent/skills/remotion-best-practices/rules/calculate-metadata.md +47 -17
  171. package/templates/.agent/skills/remotion-best-practices/rules/can-decode.md +75 -0
  172. package/templates/.agent/skills/remotion-best-practices/rules/charts.md +80 -48
  173. package/templates/.agent/skills/remotion-best-practices/rules/compositions.md +22 -14
  174. package/templates/.agent/skills/remotion-best-practices/rules/display-captions.md +79 -21
  175. package/templates/.agent/skills/remotion-best-practices/rules/extract-frames.md +229 -0
  176. package/templates/.agent/skills/remotion-best-practices/rules/ffmpeg.md +38 -0
  177. package/templates/.agent/skills/remotion-best-practices/rules/fonts.md +96 -54
  178. package/templates/.agent/skills/remotion-best-practices/rules/get-audio-duration.md +58 -0
  179. package/templates/.agent/skills/remotion-best-practices/rules/get-video-dimensions.md +68 -0
  180. package/templates/.agent/skills/remotion-best-practices/rules/get-video-duration.md +60 -0
  181. package/templates/.agent/skills/remotion-best-practices/rules/gifs.md +21 -18
  182. package/templates/.agent/skills/remotion-best-practices/rules/images.md +6 -2
  183. package/templates/.agent/skills/remotion-best-practices/rules/import-srt-captions.md +69 -0
  184. package/templates/.agent/skills/remotion-best-practices/rules/light-leaks.md +73 -0
  185. package/templates/.agent/skills/remotion-best-practices/rules/lottie.md +10 -7
  186. package/templates/.agent/skills/remotion-best-practices/rules/maps.md +412 -0
  187. package/templates/.agent/skills/remotion-best-practices/rules/measuring-dom-nodes.md +34 -0
  188. package/templates/.agent/skills/remotion-best-practices/rules/measuring-text.md +140 -0
  189. package/templates/.agent/skills/remotion-best-practices/rules/parameters.md +109 -0
  190. package/templates/.agent/skills/remotion-best-practices/rules/sequencing.md +13 -1
  191. package/templates/.agent/skills/remotion-best-practices/rules/sfx.md +26 -0
  192. package/templates/.agent/skills/remotion-best-practices/rules/subtitles.md +36 -0
  193. package/templates/.agent/skills/remotion-best-practices/rules/tailwind.md +11 -0
  194. package/templates/.agent/skills/remotion-best-practices/rules/text-animations.md +4 -115
  195. package/templates/.agent/skills/remotion-best-practices/rules/timing.md +19 -19
  196. package/templates/.agent/skills/remotion-best-practices/rules/transcribe-captions.md +70 -0
  197. package/templates/.agent/skills/remotion-best-practices/rules/transitions.md +117 -42
  198. package/templates/.agent/skills/remotion-best-practices/rules/transparent-videos.md +106 -0
  199. package/templates/.agent/skills/remotion-best-practices/rules/trimming.md +51 -0
  200. package/templates/.agent/skills/remotion-best-practices/rules/voiceover.md +99 -0
  201. package/templates/.agent/skills/seo-fundamentals/SKILL.md +83 -441
  202. package/templates/.agent/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
  203. package/templates/.agent/skills/server-management/SKILL.md +161 -0
  204. package/templates/.agent/skills/systematic-debugging/SKILL.md +109 -0
  205. package/templates/.agent/skills/tdd-workflow/SKILL.md +149 -0
  206. package/templates/.agent/skills/testing-patterns/SKILL.md +178 -0
  207. package/templates/.agent/skills/testing-patterns/scripts/test_runner.py +219 -0
  208. package/templates/.agent/skills/typescript-expert/SKILL.md +429 -0
  209. package/templates/.agent/skills/ui-ux-pro-max/SKILL.md +585 -170
  210. package/templates/.agent/skills/ui-ux-pro-max/data/charts.csv +26 -0
  211. package/templates/.agent/skills/ui-ux-pro-max/data/colors.csv +97 -0
  212. package/templates/.agent/skills/ui-ux-pro-max/data/icons.csv +101 -0
  213. package/templates/.agent/skills/ui-ux-pro-max/data/landing.csv +31 -0
  214. package/templates/.agent/skills/ui-ux-pro-max/data/products.csv +97 -0
  215. package/templates/.agent/skills/ui-ux-pro-max/data/prompts.csv +24 -0
  216. package/templates/.agent/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
  217. package/templates/.agent/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  218. package/templates/.agent/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  219. package/templates/.agent/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  220. package/templates/.agent/skills/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
  221. package/templates/.agent/skills/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  222. package/templates/.agent/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  223. package/templates/.agent/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
  224. package/templates/.agent/skills/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  225. package/templates/.agent/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  226. package/templates/.agent/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  227. package/templates/.agent/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  228. package/templates/.agent/skills/ui-ux-pro-max/data/styles.csv +59 -0
  229. package/templates/.agent/skills/ui-ux-pro-max/data/typography.csv +58 -0
  230. package/templates/.agent/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
  231. package/templates/.agent/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  232. package/templates/.agent/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
  233. package/templates/.agent/skills/ui-ux-pro-max/scripts/core.py +257 -0
  234. package/templates/.agent/skills/ui-ux-pro-max/scripts/design_system.py +487 -0
  235. package/templates/.agent/skills/ui-ux-pro-max/scripts/search.py +76 -0
  236. package/templates/.agent/skills/vue-expert/SKILL.md +374 -0
  237. package/templates/.agent/skills/vulnerability-scanner/SKILL.md +276 -0
  238. package/templates/.agent/skills/vulnerability-scanner/checklists.md +121 -0
  239. package/templates/.agent/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
  240. package/templates/.agent/skills/webapp-testing/SKILL.md +187 -0
  241. package/templates/.agent/skills/webapp-testing/scripts/playwright_runner.py +173 -0
  242. package/templates/.agent/workflows/brainstorm.md +113 -0
  243. package/templates/.agent/workflows/create.md +59 -0
  244. package/templates/.agent/workflows/debug.md +103 -0
  245. package/templates/.agent/workflows/deploy.md +176 -0
  246. package/templates/.agent/workflows/enhance.md +63 -0
  247. package/templates/.agent/workflows/orchestrate.md +237 -0
  248. package/templates/.agent/workflows/plan.md +89 -0
  249. package/templates/.agent/workflows/preview.md +80 -0
  250. package/templates/.agent/workflows/status.md +86 -0
  251. package/templates/.agent/workflows/test.md +144 -0
  252. package/templates/.agent/workflows/ui-ux-pro-max.md +231 -0
@@ -0,0 +1,86 @@
1
+ ---
2
+ description: Display agent and project status. Progress tracking and status board.
3
+ ---
4
+
5
+ # /status - Show Status
6
+
7
+ $ARGUMENTS
8
+
9
+ ---
10
+
11
+ ## Task
12
+
13
+ Show current project and agent status.
14
+
15
+ ### What It Shows
16
+
17
+ 1. **Project Info**
18
+ - Project name and path
19
+ - Tech stack
20
+ - Current features
21
+
22
+ 2. **Agent Status Board**
23
+ - Which agents are running
24
+ - Which tasks are completed
25
+ - Pending work
26
+
27
+ 3. **File Statistics**
28
+ - Files created count
29
+ - Files modified count
30
+
31
+ 4. **Preview Status**
32
+ - Is server running
33
+ - URL
34
+ - Health check
35
+
36
+ ---
37
+
38
+ ## Example Output
39
+
40
+ ```
41
+ === Project Status ===
42
+
43
+ 📁 Project: my-ecommerce
44
+ 📂 Path: C:/projects/my-ecommerce
45
+ 🏷️ Type: nextjs-ecommerce
46
+ 📊 Status: active
47
+
48
+ 🔧 Tech Stack:
49
+ Framework: next.js
50
+ Database: postgresql
51
+ Auth: clerk
52
+ Payment: stripe
53
+
54
+ ✅ Features (5):
55
+ • product-listing
56
+ • cart
57
+ • checkout
58
+ • user-auth
59
+ • order-history
60
+
61
+ ⏳ Pending (2):
62
+ • admin-panel
63
+ • email-notifications
64
+
65
+ 📄 Files: 73 created, 12 modified
66
+
67
+ === Agent Status ===
68
+
69
+ ✅ database-architect → Completed
70
+ ✅ backend-specialist → Completed
71
+ 🔄 frontend-specialist → Dashboard components (60%)
72
+ ⏳ test-engineer → Waiting
73
+
74
+ === Preview ===
75
+
76
+ 🌐 URL: http://localhost:3000
77
+ 💚 Health: OK
78
+ ```
79
+
80
+ ---
81
+
82
+ ## Technical
83
+
84
+ Status uses these scripts:
85
+ - `session_manager.py status`
86
+ - `auto_preview.py status`
@@ -0,0 +1,144 @@
1
+ ---
2
+ description: Test generation and test running command. Creates and executes tests for code.
3
+ ---
4
+
5
+ # /test - Test Generation and Execution
6
+
7
+ $ARGUMENTS
8
+
9
+ ---
10
+
11
+ ## Purpose
12
+
13
+ This command generates tests, runs existing tests, or checks test coverage.
14
+
15
+ ---
16
+
17
+ ## Sub-commands
18
+
19
+ ```
20
+ /test - Run all tests
21
+ /test [file/feature] - Generate tests for specific target
22
+ /test coverage - Show test coverage report
23
+ /test watch - Run tests in watch mode
24
+ ```
25
+
26
+ ---
27
+
28
+ ## Behavior
29
+
30
+ ### Generate Tests
31
+
32
+ When asked to test a file or feature:
33
+
34
+ 1. **Analyze the code**
35
+ - Identify functions and methods
36
+ - Find edge cases
37
+ - Detect dependencies to mock
38
+
39
+ 2. **Generate test cases**
40
+ - Happy path tests
41
+ - Error cases
42
+ - Edge cases
43
+ - Integration tests (if needed)
44
+
45
+ 3. **Write tests**
46
+ - Use project's test framework (Jest, Vitest, etc.)
47
+ - Follow existing test patterns
48
+ - Mock external dependencies
49
+
50
+ ---
51
+
52
+ ## Output Format
53
+
54
+ ### For Test Generation
55
+
56
+ ```markdown
57
+ ## 🧪 Tests: [Target]
58
+
59
+ ### Test Plan
60
+ | Test Case | Type | Coverage |
61
+ |-----------|------|----------|
62
+ | Should create user | Unit | Happy path |
63
+ | Should reject invalid email | Unit | Validation |
64
+ | Should handle db error | Unit | Error case |
65
+
66
+ ### Generated Tests
67
+
68
+ `tests/[file].test.ts`
69
+
70
+ [Code block with tests]
71
+
72
+ ---
73
+
74
+ Run with: `npm test`
75
+ ```
76
+
77
+ ### For Test Execution
78
+
79
+ ```
80
+ 🧪 Running tests...
81
+
82
+ ✅ auth.test.ts (5 passed)
83
+ ✅ user.test.ts (8 passed)
84
+ ❌ order.test.ts (2 passed, 1 failed)
85
+
86
+ Failed:
87
+ ✗ should calculate total with discount
88
+ Expected: 90
89
+ Received: 100
90
+
91
+ Total: 15 tests (14 passed, 1 failed)
92
+ ```
93
+
94
+ ---
95
+
96
+ ## Examples
97
+
98
+ ```
99
+ /test src/services/auth.service.ts
100
+ /test user registration flow
101
+ /test coverage
102
+ /test fix failed tests
103
+ ```
104
+
105
+ ---
106
+
107
+ ## Test Patterns
108
+
109
+ ### Unit Test Structure
110
+
111
+ ```typescript
112
+ describe('AuthService', () => {
113
+ describe('login', () => {
114
+ it('should return token for valid credentials', async () => {
115
+ // Arrange
116
+ const credentials = { email: 'test@test.com', password: 'pass123' };
117
+
118
+ // Act
119
+ const result = await authService.login(credentials);
120
+
121
+ // Assert
122
+ expect(result.token).toBeDefined();
123
+ });
124
+
125
+ it('should throw for invalid password', async () => {
126
+ // Arrange
127
+ const credentials = { email: 'test@test.com', password: 'wrong' };
128
+
129
+ // Act & Assert
130
+ await expect(authService.login(credentials)).rejects.toThrow('Invalid credentials');
131
+ });
132
+ });
133
+ });
134
+ ```
135
+
136
+ ---
137
+
138
+ ## Key Principles
139
+
140
+ - **Test behavior not implementation**
141
+ - **One assertion per test** (when practical)
142
+ - **Descriptive test names**
143
+ - **Arrange-Act-Assert pattern**
144
+ - **Mock external dependencies**
@@ -0,0 +1,231 @@
1
+ ---
2
+ description: Plan and implement UI
3
+ ---
4
+
5
+ # UI/UX Pro Max - Design Intelligence
6
+
7
+ Searchable database of UI styles, color palettes, font pairings, chart types, product recommendations, UX guidelines, and stack-specific best practices.
8
+
9
+ ## Prerequisites
10
+
11
+ Check if Python is installed:
12
+
13
+ ```bash
14
+ python3 --version || python --version
15
+ ```
16
+
17
+ If Python is not installed, install it based on user's OS:
18
+
19
+ **macOS:**
20
+ ```bash
21
+ brew install python3
22
+ ```
23
+
24
+ **Ubuntu/Debian:**
25
+ ```bash
26
+ sudo apt update && sudo apt install python3
27
+ ```
28
+
29
+ **Windows:**
30
+ ```powershell
31
+ winget install Python.Python.3.12
32
+ ```
33
+
34
+ ---
35
+
36
+ ## How to Use This Workflow
37
+
38
+ When user requests UI/UX work (design, build, create, implement, review, fix, improve), follow this workflow:
39
+
40
+ ### Step 1: Analyze User Requirements
41
+
42
+ Extract key information from user request:
43
+ - **Product type**: SaaS, e-commerce, portfolio, dashboard, landing page, etc.
44
+ - **Style keywords**: minimal, playful, professional, elegant, dark mode, etc.
45
+ - **Industry**: healthcare, fintech, gaming, education, etc.
46
+ - **Stack**: React, Vue, Next.js, or default to `html-tailwind`
47
+
48
+ ### Step 2: Search Relevant Domains
49
+
50
+ Use `search.py` multiple times to gather comprehensive information. Search until you have enough context.
51
+
52
+ ```bash
53
+ python3 .shared/ui-ux-pro-max/scripts/search.py "<keyword>" --domain <domain> [-n <max_results>]
54
+ ```
55
+
56
+ **Recommended search order:**
57
+
58
+ 1. **Product** - Get style recommendations for product type
59
+ 2. **Style** - Get detailed style guide (colors, effects, frameworks)
60
+ 3. **Typography** - Get font pairings with Google Fonts imports
61
+ 4. **Color** - Get color palette (Primary, Secondary, CTA, Background, Text, Border)
62
+ 5. **Landing** - Get page structure (if landing page)
63
+ 6. **Chart** - Get chart recommendations (if dashboard/analytics)
64
+ 7. **UX** - Get best practices and anti-patterns
65
+ 8. **Stack** - Get stack-specific guidelines (default: html-tailwind)
66
+
67
+ ### Step 3: Stack Guidelines (Default: html-tailwind)
68
+
69
+ If user doesn't specify a stack, **default to `html-tailwind`**.
70
+
71
+ ```bash
72
+ python3 .shared/ui-ux-pro-max/scripts/search.py "<keyword>" --stack html-tailwind
73
+ ```
74
+
75
+ Available stacks: `html-tailwind`, `react`, `nextjs`, `vue`, `svelte`, `swiftui`, `react-native`, `flutter`, `shadcn`
76
+
77
+ ---
78
+
79
+ ## Search Reference
80
+
81
+ ### Available Domains
82
+
83
+ | Domain | Use For | Example Keywords |
84
+ |--------|---------|------------------|
85
+ | `product` | Product type recommendations | SaaS, e-commerce, portfolio, healthcare, beauty, service |
86
+ | `style` | UI styles, colors, effects | glassmorphism, minimalism, dark mode, brutalism |
87
+ | `typography` | Font pairings, Google Fonts | elegant, playful, professional, modern |
88
+ | `color` | Color palettes by product type | saas, ecommerce, healthcare, beauty, fintech, service |
89
+ | `landing` | Page structure, CTA strategies | hero, hero-centric, testimonial, pricing, social-proof |
90
+ | `chart` | Chart types, library recommendations | trend, comparison, timeline, funnel, pie |
91
+ | `ux` | Best practices, anti-patterns | animation, accessibility, z-index, loading |
92
+ | `prompt` | AI prompts, CSS keywords | (style name) |
93
+
94
+ ### Available Stacks
95
+
96
+ | Stack | Focus |
97
+ |-------|-------|
98
+ | `html-tailwind` | Tailwind utilities, responsive, a11y (DEFAULT) |
99
+ | `react` | State, hooks, performance, patterns |
100
+ | `nextjs` | SSR, routing, images, API routes |
101
+ | `vue` | Composition API, Pinia, Vue Router |
102
+ | `svelte` | Runes, stores, SvelteKit |
103
+ | `swiftui` | Views, State, Navigation, Animation |
104
+ | `react-native` | Components, Navigation, Lists |
105
+ | `flutter` | Widgets, State, Layout, Theming |
106
+ | `shadcn` | shadcn/ui components, theming, forms, patterns |
107
+
108
+ ---
109
+
110
+ ## Example Workflow
111
+
112
+ **User request:** "Làm landing page cho dịch vụ chăm sóc da chuyên nghiệp"
113
+
114
+ **AI should:**
115
+
116
+ ```bash
117
+ # 1. Search product type
118
+ python3 .shared/ui-ux-pro-max/scripts/search.py "beauty spa wellness service" --domain product
119
+
120
+ # 2. Search style (based on industry: beauty, elegant)
121
+ python3 .shared/ui-ux-pro-max/scripts/search.py "elegant minimal soft" --domain style
122
+
123
+ # 3. Search typography
124
+ python3 .shared/ui-ux-pro-max/scripts/search.py "elegant luxury" --domain typography
125
+
126
+ # 4. Search color palette
127
+ python3 .shared/ui-ux-pro-max/scripts/search.py "beauty spa wellness" --domain color
128
+
129
+ # 5. Search landing page structure
130
+ python3 .shared/ui-ux-pro-max/scripts/search.py "hero-centric social-proof" --domain landing
131
+
132
+ # 6. Search UX guidelines
133
+ python3 .shared/ui-ux-pro-max/scripts/search.py "animation" --domain ux
134
+ python3 .shared/ui-ux-pro-max/scripts/search.py "accessibility" --domain ux
135
+
136
+ # 7. Search stack guidelines (default: html-tailwind)
137
+ python3 .shared/ui-ux-pro-max/scripts/search.py "layout responsive" --stack html-tailwind
138
+ ```
139
+
140
+ **Then:** Synthesize all search results and implement the design.
141
+
142
+ ---
143
+
144
+ ## Tips for Better Results
145
+
146
+ 1. **Be specific with keywords** - "healthcare SaaS dashboard" > "app"
147
+ 2. **Search multiple times** - Different keywords reveal different insights
148
+ 3. **Combine domains** - Style + Typography + Color = Complete design system
149
+ 4. **Always check UX** - Search "animation", "z-index", "accessibility" for common issues
150
+ 5. **Use stack flag** - Get implementation-specific best practices
151
+ 6. **Iterate** - If first search doesn't match, try different keywords
152
+ 7. **Split Into Multiple Files** - For better maintainability:
153
+ - Separate components into individual files (e.g., `Header.tsx`, `Footer.tsx`)
154
+ - Extract reusable styles into dedicated files
155
+ - Keep each file focused and under 200-300 lines
156
+
157
+ ---
158
+
159
+ ## Common Rules for Professional UI
160
+
161
+ These are frequently overlooked issues that make UI look unprofessional:
162
+
163
+ ### Icons & Visual Elements
164
+
165
+ | Rule | Do | Don't |
166
+ |------|----|----- |
167
+ | **No emoji icons** | Use SVG icons (Heroicons, Lucide, Simple Icons) | Use emojis like 🎨 🚀 ⚙️ as UI icons |
168
+ | **Stable hover states** | Use color/opacity transitions on hover | Use scale transforms that shift layout |
169
+ | **Correct brand logos** | Research official SVG from Simple Icons | Guess or use incorrect logo paths |
170
+ | **Consistent icon sizing** | Use fixed viewBox (24x24) with w-6 h-6 | Mix different icon sizes randomly |
171
+
172
+ ### Interaction & Cursor
173
+
174
+ | Rule | Do | Don't |
175
+ |------|----|----- |
176
+ | **Cursor pointer** | Add `cursor-pointer` to all clickable/hoverable cards | Leave default cursor on interactive elements |
177
+ | **Hover feedback** | Provide visual feedback (color, shadow, border) | No indication element is interactive |
178
+ | **Smooth transitions** | Use `transition-colors duration-200` | Instant state changes or too slow (>500ms) |
179
+
180
+ ### Light/Dark Mode Contrast
181
+
182
+ | Rule | Do | Don't |
183
+ |------|----|----- |
184
+ | **Glass card light mode** | Use `bg-white/80` or higher opacity | Use `bg-white/10` (too transparent) |
185
+ | **Text contrast light** | Use `#0F172A` (slate-900) for text | Use `#94A3B8` (slate-400) for body text |
186
+ | **Muted text light** | Use `#475569` (slate-600) minimum | Use gray-400 or lighter |
187
+ | **Border visibility** | Use `border-gray-200` in light mode | Use `border-white/10` (invisible) |
188
+
189
+ ### Layout & Spacing
190
+
191
+ | Rule | Do | Don't |
192
+ |------|----|----- |
193
+ | **Floating navbar** | Add `top-4 left-4 right-4` spacing | Stick navbar to `top-0 left-0 right-0` |
194
+ | **Content padding** | Account for fixed navbar height | Let content hide behind fixed elements |
195
+ | **Consistent max-width** | Use same `max-w-6xl` or `max-w-7xl` | Mix different container widths |
196
+
197
+ ---
198
+
199
+ ## Pre-Delivery Checklist
200
+
201
+ Before delivering UI code, verify these items:
202
+
203
+ ### Visual Quality
204
+ - [ ] No emojis used as icons (use SVG instead)
205
+ - [ ] All icons from consistent icon set (Heroicons/Lucide)
206
+ - [ ] Brand logos are correct (verified from Simple Icons)
207
+ - [ ] Hover states don't cause layout shift
208
+
209
+ ### Interaction
210
+ - [ ] All clickable elements have `cursor-pointer`
211
+ - [ ] Hover states provide clear visual feedback
212
+ - [ ] Transitions are smooth (150-300ms)
213
+ - [ ] Focus states visible for keyboard navigation
214
+
215
+ ### Light/Dark Mode
216
+ - [ ] Light mode text has sufficient contrast (4.5:1 minimum)
217
+ - [ ] Glass/transparent elements visible in light mode
218
+ - [ ] Borders visible in both modes
219
+ - [ ] Test both modes before delivery
220
+
221
+ ### Layout
222
+ - [ ] Floating elements have proper spacing from edges
223
+ - [ ] No content hidden behind fixed navbars
224
+ - [ ] Responsive at 320px, 768px, 1024px, 1440px
225
+ - [ ] No horizontal scroll on mobile
226
+
227
+ ### Accessibility
228
+ - [ ] All images have alt text
229
+ - [ ] Form inputs have labels
230
+ - [ ] Color is not the only indicator
231
+ - [ ] `prefers-reduced-motion` respected