luna-agents 2.0.1

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 (290) hide show
  1. package/.claude-plugin/LICENSE +21 -0
  2. package/.claude-plugin/README.md +285 -0
  3. package/.claude-plugin/claude-plugin.json +106 -0
  4. package/.claude-plugin/index.js +318 -0
  5. package/.claude-plugin/lib/api-client.js +504 -0
  6. package/.claude-plugin/lib/rag-utils.js +442 -0
  7. package/.claude-plugin/package.json +418 -0
  8. package/LICENSE +21 -0
  9. package/README.md +350 -0
  10. package/agents/json/design-architect.json +57 -0
  11. package/agents/json/luna-auth.json +71 -0
  12. package/agents/json/luna-brand.json +66 -0
  13. package/agents/json/luna-cloudflare.json +261 -0
  14. package/agents/json/luna-code-review.json +63 -0
  15. package/agents/json/luna-deployment.json +68 -0
  16. package/agents/json/luna-documentation.json +85 -0
  17. package/agents/json/luna-hig.json +128 -0
  18. package/agents/json/luna-layout-designer.json +178 -0
  19. package/agents/json/luna-monitoring-observability.json +64 -0
  20. package/agents/json/luna-post-launch-review.json +68 -0
  21. package/agents/json/luna-requirements-analyzer.json +53 -0
  22. package/agents/json/luna-task-executor.json +63 -0
  23. package/agents/json/luna-task-planner.json +62 -0
  24. package/agents/json/luna-testing-validation.json +66 -0
  25. package/agents/luna-365-security.md +96 -0
  26. package/agents/luna-analytics.md +318 -0
  27. package/agents/luna-api-generator.md +654 -0
  28. package/agents/luna-auth.md +396 -0
  29. package/agents/luna-brand.md +248 -0
  30. package/agents/luna-cloudflare.md +728 -0
  31. package/agents/luna-code-review.md +487 -0
  32. package/agents/luna-database.md +453 -0
  33. package/agents/luna-deployment.md +202 -0
  34. package/agents/luna-design-architect.md +353 -0
  35. package/agents/luna-docker.md +615 -0
  36. package/agents/luna-documentation.md +177 -0
  37. package/agents/luna-full-test.md +910 -0
  38. package/agents/luna-glm-vision.md +211 -0
  39. package/agents/luna-hig.md +430 -0
  40. package/agents/luna-lemonsqueezy.md +441 -0
  41. package/agents/luna-monitoring-observability.md +199 -0
  42. package/agents/luna-openai-app.md +499 -0
  43. package/agents/luna-post-launch-review.md +191 -0
  44. package/agents/luna-rag-enhanced.md +1619 -0
  45. package/agents/luna-rag.md +1733 -0
  46. package/agents/luna-requirements-analyzer.md +189 -0
  47. package/agents/luna-run.md +620 -0
  48. package/agents/luna-seo.md +338 -0
  49. package/agents/luna-task-executor.md +371 -0
  50. package/agents/luna-task-planner.md +275 -0
  51. package/agents/luna-testing-validation.md +681 -0
  52. package/agents/luna-ui-fix.md +591 -0
  53. package/agents/luna-ui-test.md +600 -0
  54. package/agents/luna-user-guide.md +409 -0
  55. package/agents/site-auditor.md +83 -0
  56. package/commands/3d-mesh.md +12 -0
  57. package/commands/3d.md +12 -0
  58. package/commands/agent-boost.md +13 -0
  59. package/commands/ai-index.md +16 -0
  60. package/commands/api.md +12 -0
  61. package/commands/assert.md +17 -0
  62. package/commands/audience.md +12 -0
  63. package/commands/auth.md +17 -0
  64. package/commands/autopilot.md +12 -0
  65. package/commands/boost-finsavvy.md +10 -0
  66. package/commands/boost-org.md +10 -0
  67. package/commands/boost-project.md +12 -0
  68. package/commands/brand.md +17 -0
  69. package/commands/browser-test.md +18 -0
  70. package/commands/cf.md +26 -0
  71. package/commands/cfg.md +33 -0
  72. package/commands/chain.md +12 -0
  73. package/commands/challenge.md +13 -0
  74. package/commands/clone.md +12 -0
  75. package/commands/cmds.md +243 -0
  76. package/commands/collab.md +12 -0
  77. package/commands/compete.md +12 -0
  78. package/commands/config-rules.md +21 -0
  79. package/commands/connect-infra.md +10 -0
  80. package/commands/context-pack.md +13 -0
  81. package/commands/curb.md +12 -0
  82. package/commands/des.md +38 -0
  83. package/commands/devto.md +20 -0
  84. package/commands/dock.md +26 -0
  85. package/commands/docs.md +33 -0
  86. package/commands/e2e-flow.md +18 -0
  87. package/commands/email-routing.md +10 -0
  88. package/commands/feature.md +12 -0
  89. package/commands/figma.md +12 -0
  90. package/commands/fix.md +12 -0
  91. package/commands/flaky.md +12 -0
  92. package/commands/flow-record.md +12 -0
  93. package/commands/gamify.md +12 -0
  94. package/commands/ghost.md +12 -0
  95. package/commands/git-insights.md +12 -0
  96. package/commands/go-viral.md +16 -0
  97. package/commands/go.md +42 -0
  98. package/commands/graph-rag.md +13 -0
  99. package/commands/guard.md +12 -0
  100. package/commands/heal.md +17 -0
  101. package/commands/heygen.md +12 -0
  102. package/commands/hig.md +33 -0
  103. package/commands/idea.md +12 -0
  104. package/commands/imagine.md +12 -0
  105. package/commands/inbox.md +12 -0
  106. package/commands/lam.md +12 -0
  107. package/commands/landing.md +12 -0
  108. package/commands/launch.md +12 -0
  109. package/commands/learn.md +12 -0
  110. package/commands/leverage.md +12 -0
  111. package/commands/ll-365-secure.md +179 -0
  112. package/commands/ll-3d-mesh.md +94 -0
  113. package/commands/ll-3d.md +123 -0
  114. package/commands/ll-a11y-scan.md +143 -0
  115. package/commands/ll-a11y.md +71 -0
  116. package/commands/ll-agent-boost.md +92 -0
  117. package/commands/ll-agent-chain.md +104 -0
  118. package/commands/ll-ai-index.md +120 -0
  119. package/commands/ll-api-client.md +77 -0
  120. package/commands/ll-api.md +99 -0
  121. package/commands/ll-assert.md +73 -0
  122. package/commands/ll-audience.md +308 -0
  123. package/commands/ll-auth.md +145 -0
  124. package/commands/ll-autopilot.md +113 -0
  125. package/commands/ll-boost-finsavvy.md +106 -0
  126. package/commands/ll-boost-org.md +161 -0
  127. package/commands/ll-boost-project.md +118 -0
  128. package/commands/ll-brand.md +150 -0
  129. package/commands/ll-browser-test.md +203 -0
  130. package/commands/ll-challenge.md +124 -0
  131. package/commands/ll-changelog.md +80 -0
  132. package/commands/ll-ci.md +78 -0
  133. package/commands/ll-claude-instructions.md +80 -0
  134. package/commands/ll-clone.md +82 -0
  135. package/commands/ll-cloudflare.md +580 -0
  136. package/commands/ll-codemap.md +78 -0
  137. package/commands/ll-collab.md +87 -0
  138. package/commands/ll-compete.md +67 -0
  139. package/commands/ll-config-rules.md +255 -0
  140. package/commands/ll-config.md +434 -0
  141. package/commands/ll-connect-infra.md +123 -0
  142. package/commands/ll-context-pack.md +100 -0
  143. package/commands/ll-curb.md +164 -0
  144. package/commands/ll-debug.md +76 -0
  145. package/commands/ll-deploy.md +101 -0
  146. package/commands/ll-deps.md +70 -0
  147. package/commands/ll-design.md +86 -0
  148. package/commands/ll-devto-publish.md +172 -0
  149. package/commands/ll-dockerize.md +273 -0
  150. package/commands/ll-docs.md +123 -0
  151. package/commands/ll-e2e-flow.md +132 -0
  152. package/commands/ll-e2e-test.md +231 -0
  153. package/commands/ll-email-routing.md +130 -0
  154. package/commands/ll-env.md +70 -0
  155. package/commands/ll-execute.md +98 -0
  156. package/commands/ll-feature.md +80 -0
  157. package/commands/ll-figma.md +82 -0
  158. package/commands/ll-fix.md +76 -0
  159. package/commands/ll-flaky.md +151 -0
  160. package/commands/ll-flow-record.md +180 -0
  161. package/commands/ll-flowdocs.md +83 -0
  162. package/commands/ll-gamify.md +131 -0
  163. package/commands/ll-gemma4.md +84 -0
  164. package/commands/ll-ghost.md +79 -0
  165. package/commands/ll-git-insights.md +152 -0
  166. package/commands/ll-go-viral.md +171 -0
  167. package/commands/ll-graph-rag.md +113 -0
  168. package/commands/ll-guard.md +92 -0
  169. package/commands/ll-heal.md +135 -0
  170. package/commands/ll-heygen.md +203 -0
  171. package/commands/ll-hig.md +578 -0
  172. package/commands/ll-hld.md +84 -0
  173. package/commands/ll-i18n.md +74 -0
  174. package/commands/ll-idea.md +101 -0
  175. package/commands/ll-imagine.md +72 -0
  176. package/commands/ll-inbox.md +116 -0
  177. package/commands/ll-lam.md +93 -0
  178. package/commands/ll-landing.md +171 -0
  179. package/commands/ll-launch.md +100 -0
  180. package/commands/ll-learn.md +87 -0
  181. package/commands/ll-leverage.md +137 -0
  182. package/commands/ll-local-llm.md +131 -0
  183. package/commands/ll-ls-products.md +160 -0
  184. package/commands/ll-marketplace.md +130 -0
  185. package/commands/ll-mcp-publish.md +104 -0
  186. package/commands/ll-migrate.md +68 -0
  187. package/commands/ll-mock.md +79 -0
  188. package/commands/ll-money.md +87 -0
  189. package/commands/ll-monitor.md +120 -0
  190. package/commands/ll-morph.md +117 -0
  191. package/commands/ll-multi-agent.md +170 -0
  192. package/commands/ll-native.md +93 -0
  193. package/commands/ll-nexa.md +79 -0
  194. package/commands/ll-onboarding.md +84 -0
  195. package/commands/ll-openhands.md +78 -0
  196. package/commands/ll-organic-promote.md +260 -0
  197. package/commands/ll-parallel.md +74 -0
  198. package/commands/ll-payments.md +83 -0
  199. package/commands/ll-perf-trace.md +147 -0
  200. package/commands/ll-perf.md +65 -0
  201. package/commands/ll-persona.md +280 -0
  202. package/commands/ll-pipe.md +296 -0
  203. package/commands/ll-plan-impl.js +570 -0
  204. package/commands/ll-plan-v2.md +297 -0
  205. package/commands/ll-plan.md +87 -0
  206. package/commands/ll-postlaunch.md +109 -0
  207. package/commands/ll-pr.md +84 -0
  208. package/commands/ll-present.md +110 -0
  209. package/commands/ll-product-map.md +152 -0
  210. package/commands/ll-promote.md +352 -0
  211. package/commands/ll-publish.md +124 -0
  212. package/commands/ll-pulse.md +96 -0
  213. package/commands/ll-rag-guided.md +345 -0
  214. package/commands/ll-rag-upgrade.md +504 -0
  215. package/commands/ll-rag.md +343 -0
  216. package/commands/ll-record.md +114 -0
  217. package/commands/ll-refactor.md +71 -0
  218. package/commands/ll-requirements.md +71 -0
  219. package/commands/ll-review.md +92 -0
  220. package/commands/ll-rollback.md +66 -0
  221. package/commands/ll-routemap.md +79 -0
  222. package/commands/ll-rules.md +90 -0
  223. package/commands/ll-shortcuts.md +229 -0
  224. package/commands/ll-sing.md +99 -0
  225. package/commands/ll-site-audit.md +228 -0
  226. package/commands/ll-smart-route.md +92 -0
  227. package/commands/ll-smart-search.md +58 -0
  228. package/commands/ll-storybook.md +86 -0
  229. package/commands/ll-swarm.md +101 -0
  230. package/commands/ll-test.md +97 -0
  231. package/commands/ll-time-machine.md +72 -0
  232. package/commands/ll-ui-convert.md +433 -0
  233. package/commands/ll-video.md +108 -0
  234. package/commands/ll-vision-pipeline.md +247 -0
  235. package/commands/ll-vision.md +74 -0
  236. package/commands/ll-visual-diff.md +118 -0
  237. package/commands/ll-visual-qa.md +204 -0
  238. package/commands/ll-visual-regression.md +96 -0
  239. package/commands/ll-voice.md +138 -0
  240. package/commands/ll-watch.md +65 -0
  241. package/commands/ll-workflow.md +108 -0
  242. package/commands/ll-zen.md +98 -0
  243. package/commands/local-llm.md +12 -0
  244. package/commands/marketplace.md +13 -0
  245. package/commands/mcp-publish.md +16 -0
  246. package/commands/migrate.md +12 -0
  247. package/commands/money.md +12 -0
  248. package/commands/morph.md +12 -0
  249. package/commands/multi-agent.md +12 -0
  250. package/commands/native.md +12 -0
  251. package/commands/nexa.md +12 -0
  252. package/commands/oh.md +12 -0
  253. package/commands/organic-promote.md +16 -0
  254. package/commands/perf-trace.md +12 -0
  255. package/commands/perf.md +12 -0
  256. package/commands/persona.md +12 -0
  257. package/commands/pipe.md +21 -0
  258. package/commands/plan.md +38 -0
  259. package/commands/pr.md +12 -0
  260. package/commands/present.md +12 -0
  261. package/commands/product-map.md +13 -0
  262. package/commands/promote.md +16 -0
  263. package/commands/publish.md +12 -0
  264. package/commands/pulse.md +12 -0
  265. package/commands/q.md +35 -0
  266. package/commands/record.md +12 -0
  267. package/commands/refactor.md +12 -0
  268. package/commands/req.md +40 -0
  269. package/commands/retro.md +33 -0
  270. package/commands/rev.md +39 -0
  271. package/commands/rules.md +19 -0
  272. package/commands/search.md +12 -0
  273. package/commands/sec.md +34 -0
  274. package/commands/ship.md +39 -0
  275. package/commands/sing.md +12 -0
  276. package/commands/site-audit.md +12 -0
  277. package/commands/smart-route.md +13 -0
  278. package/commands/swarm.md +12 -0
  279. package/commands/test.md +39 -0
  280. package/commands/time-machine.md +12 -0
  281. package/commands/ui.md +33 -0
  282. package/commands/video.md +12 -0
  283. package/commands/vision.md +12 -0
  284. package/commands/voice.md +12 -0
  285. package/commands/vr.md +18 -0
  286. package/commands/watch.md +39 -0
  287. package/commands/workflow.md +19 -0
  288. package/commands/zen.md +12 -0
  289. package/package.json +76 -0
  290. package/setup.sh +382 -0
@@ -0,0 +1,578 @@
1
+ # luna-hig - Apple Human Interface Guidelines Designer
2
+
3
+ ## Command Overview
4
+
5
+ The `luna-hig` command provides comprehensive Apple Human Interface Guidelines (HIG) compliance analysis and implementation guidance for your projects. It helps ensure your applications follow Apple's design principles for creating polished, professional user experiences on Apple platforms.
6
+
7
+ ## What This Command Does
8
+
9
+ - **HIG Compliance Analysis**: Analyzes your UI components and layouts against Apple HIG standards
10
+ - **Design System Recommendations**: Provides specific guidance for typography, colors, spacing, and motion
11
+ - **Accessibility Compliance**: Ensures your design meets Apple's accessibility requirements
12
+ - **Component Library**: Generates Apple HIG-compliant components and patterns
13
+ - **Code Generation**: Creates implementation-ready CSS/Tailwind and React components
14
+
15
+ ## Usage Instructions
16
+
17
+ ### Basic HIG Analysis
18
+ ```bash
19
+ luna-hig
20
+ ```
21
+ Analyzes the current project for HIG compliance and provides recommendations.
22
+
23
+ ### Component-Specific Analysis
24
+ ```bash
25
+ luna-hig component [component-name]
26
+ ```
27
+ Provides detailed HIG guidance for specific UI components (buttons, cards, navigation, etc.).
28
+
29
+ ### Design System Implementation
30
+ ```bash
31
+ luna-hig design-system
32
+ ```
33
+ Generates a complete Apple HIG-compliant design system for your project.
34
+
35
+ ### Accessibility Review
36
+ ```bash
37
+ luna-hig accessibility
38
+ ```
39
+ Performs comprehensive accessibility analysis based on Apple's guidelines.
40
+
41
+ ### Color Palette Analysis
42
+ ```bash
43
+ luna-hig colors
44
+ ```
45
+ Analyzes and suggests color improvements following Apple's semantic color system.
46
+
47
+ ### Typography Guidelines
48
+ ```bash
49
+ luna-hig typography
50
+ ```
51
+ Provides typography recommendations using Apple's San Francisco font scale.
52
+
53
+ ### Layout and Spacing
54
+ ```bash
55
+ luna-hig layout
56
+ ```
57
+ Analyzes layouts and provides spacing recommendations based on Apple's grid system.
58
+
59
+ ### Motion and Animation
60
+ ```bash
61
+ luna-hig motion
62
+ ```
63
+ Provides guidance for animations and transitions following Apple's motion principles.
64
+
65
+ ## Apple HIG Core Principles
66
+
67
+ ### 1. Clarity
68
+ - **Typography**: Text is legible at all sizes, use system fonts
69
+ - **Icons**: Precise, simple, and immediately recognizable
70
+ - **Negative Space**: Ample padding makes content breathable
71
+ - **Contrast**: Sufficient contrast for readability (WCAG AA minimum)
72
+
73
+ ### 2. Deference
74
+ - **Content First**: UI should never compete with content
75
+ - **Translucency**: Blur effects provide context without distraction
76
+ - **Minimal Chrome**: Reduce UI elements to essentials
77
+ - **Full-Screen**: Content fills the entire screen
78
+
79
+ ### 3. Depth
80
+ - **Layering**: Use shadows and elevation to show hierarchy
81
+ - **Motion**: Realistic animations convey spatial relationships
82
+ - **Transitions**: Maintain context during navigation
83
+ - **Z-axis**: Stack elements naturally
84
+
85
+ ## Design System Elements
86
+
87
+ ### Typography
88
+ - **Font Family**: San Francisco (SF Pro), system fonts
89
+ - **Scale**: 11, 13, 15, 17, 20, 24, 28, 34, 48, 60pt
90
+ - **Weights**: Regular (400), Medium (500), Semibold (600), Bold (700)
91
+ - **Line Height**: 1.2–1.5 for body text
92
+ - **Letter Spacing**: Tight for large headings, normal for body
93
+
94
+ ### Color Palette
95
+ - **System Colors:**
96
+ - Blue: `#007AFF` (Primary action)
97
+ - Green: `#34C759` (Success)
98
+ - Red: `#FF3B30` (Destructive)
99
+ - Orange: `#FF9500` (Warning)
100
+ - Gray: `#8E8E93` (Secondary text)
101
+ - **Semantic Usage:**
102
+ - Primary buttons: Blue
103
+ - Success states: Green
104
+ - Destructive actions: Red
105
+ - Disabled states: Gray with reduced opacity
106
+
107
+ ### Spacing System
108
+ - **Base Unit**: 4px or 8px
109
+ - **Common Spacings**: 4, 8, 12, 16, 20, 24, 32, 40, 48, 64px
110
+ - **Padding**: 16px standard, 20-24px for comfortable spacing
111
+ - **Margins**: 8-16px between related elements
112
+
113
+ ### Layout Grid
114
+ - **Mobile**: 4-column grid, 16px margins
115
+ - **Tablet**: 8-column grid, 20px margins
116
+ - **Desktop**: 12-column grid, 24px margins
117
+ - **Gutters**: 16-20px between columns
118
+
119
+ ### Advanced Layout Patterns
120
+
121
+ #### Navigation Layouts
122
+ - **Tab Bar**: 49pt height, 5-7 items max, icons with labels
123
+ - **Navigation Bar**: 44pt compact, 96pt large title
124
+ - **Sidebar Navigation**: 280pt minimum width, hierarchical structure
125
+ - **Floating Navigation**: 44pt touch targets, glassmorphism effect
126
+
127
+ #### Content Layouts
128
+ - **List Views**: 44pt row height, leading edge icons, trailing chevrons
129
+ - **Grid Layouts**: Flexible item sizing, 8pt spacing, 2-4 columns
130
+ - **Card Grids**: 16pt gutters, consistent aspect ratios
131
+ - **Masonry Layouts**: Variable heights, 4pt spacing baseline
132
+
133
+ #### Forms Layouts
134
+ - **Input Fields**: 44pt height, 16pt labels, clear button on right
135
+ - **Form Sections**: 16pt spacing between sections, 8pt within
136
+ - **Toggle Switches**: 51pt width, 31pt height, animated thumb
137
+ - **Picker Views**: 216pt height, wheel-style selection
138
+
139
+ #### Modal Layouts
140
+ - **Alert Controllers**: Centered, 270pt minimum width
141
+ - **Action Sheets**: Bottom sheet, 44pt button height
142
+ - **Popover Controllers**: Arrow pointing, content padding
143
+ - **Full Screen Modals**: Edge-to-edge content, navigation bar
144
+
145
+ #### Collection Layouts
146
+ - **Table View**: Grouped vs Plain sections, headers/footers
147
+ - **Collection View**: Flexible layouts, compositional layout
148
+ - **Stack Views**: Horizontal/vertical, spacing and alignment
149
+ - **Split Views**: Master-detail, sidebar detail, triple column
150
+
151
+ #### Floating UI Patterns
152
+ - **Floating Panels**: 12pt corner radius, drop shadows, drag handles
153
+ - **Context Menus**: 44pt menu items, icons with labels
154
+ - **Tooltips**: 12pt padding, 8pt corner radius, arrows
155
+ - **Callouts**: Pointing arrows, dismissible content
156
+
157
+ #### Adaptive Layouts
158
+ - **Dynamic Type**: Support 200-300% text scaling
159
+ - **Size Classes**: Compact vs Regular layouts
160
+ - **Orientation Changes**: Seamless transitions
161
+ - **Multi-window**: iPad split view, slide over
162
+
163
+ ### Touch Targets
164
+ - **Minimum Size**: 44x44pt (iOS), 48x48dp (Android)
165
+ - **Comfortable Size**: 48x48pt or larger
166
+ - **Spacing**: 8px minimum between interactive elements
167
+
168
+ ### Elevation & Shadows
169
+ ```css
170
+ /* Light elevation */
171
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12),
172
+ 0 1px 2px rgba(0, 0, 0, 0.24);
173
+
174
+ /* Medium elevation */
175
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1),
176
+ 0 2px 4px rgba(0, 0, 0, 0.06);
177
+
178
+ /* High elevation */
179
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15),
180
+ 0 5px 10px rgba(0, 0, 0, 0.1);
181
+ ```
182
+
183
+ ### Motion & Animation
184
+ - **Duration**: 200-300ms for micro-interactions, 400-500ms for transitions
185
+ - **Easing**: `cubic-bezier(0.4, 0.0, 0.2, 1)` for natural motion
186
+ - **Spring Animations**: For playful, responsive interactions
187
+ - **Fade + Scale**: Entrance animations (fade from 0.95 to 1)
188
+
189
+ ```css
190
+ .button {
191
+ transition: all 200ms cubic-bezier(0.4, 0.0, 0.2, 1);
192
+ }
193
+
194
+ .button:hover {
195
+ transform: scale(1.02);
196
+ }
197
+
198
+ .button:active {
199
+ transform: scale(0.98);
200
+ }
201
+ ```
202
+
203
+ ## Accessibility Requirements
204
+
205
+ ### Visual Accessibility
206
+ - **Color Contrast**: WCAG AA minimum (4.5:1 for normal text)
207
+ - **Touch Targets**: Minimum 44x44pt for all interactive elements
208
+ - **Text Scaling**: Support Dynamic Type up to 300%
209
+ - **Focus Indicators**: Clear, visible focus states
210
+
211
+ ### Motion Accessibility
212
+ - **Reduce Motion**: Respect `prefers-reduced-motion` setting
213
+ - **Alternative Text**: Provide descriptions for visual content
214
+ - **Screen Reader**: Support VoiceOver navigation
215
+
216
+ ## Component Patterns
217
+
218
+ ### Primary Button
219
+ - Background: System blue (`#007AFF`)
220
+ - Text: White, Semibold weight
221
+ - Height: 44pt minimum
222
+ - Corner radius: 8-12pt
223
+ - Touch feedback: Scale animation
224
+
225
+ ### Secondary Button
226
+ - Background: Transparent or light gray
227
+ - Text: System blue
228
+ - Border: 1pt system blue
229
+ - Same dimensions as primary button
230
+
231
+ ### Card Component
232
+ - Background: White or system background
233
+ - Corner radius: 12-16pt
234
+ - Shadow: Light elevation
235
+ - Padding: 16-20pt
236
+ - Border: None (subtle)
237
+
238
+ ### Navigation Bar
239
+ - Height: 44pt (compact), 96pt (large)
240
+ - Background: System background with blur
241
+ - Title: Large title or navigation title
242
+ - Button height: 44pt
243
+
244
+ ### Tab Bar
245
+ - Height: 49pt (iPhone), 50pt (iPad)
246
+ - Background: Blur effect with translucency
247
+ - Items: 5 maximum, icons with labels
248
+ - Active state: Blue tint with scale animation
249
+
250
+ ### List Item
251
+ - Height: 44pt minimum
252
+ - Structure: Leading icon, title, subtitle, trailing accessory
253
+ - Separators: 1pt hairline, 16pt inset
254
+ - Selection: Highlight with disclosure indicators
255
+
256
+ ### Card Component
257
+ - Background: White or system background
258
+ - Corner radius: 12-16pt
259
+ - Shadow: Light elevation with blur
260
+ - Padding: 16-20pt
261
+ - Border: None (subtle) or minimal stroke
262
+
263
+ ### Modal Components
264
+ - Alert: Centered, 270pt minimum width
265
+ - Action Sheet: Bottom sheet, 44pt buttons
266
+ - Popover: Arrow pointing, rounded corners
267
+ - Full Screen: Edge-to-edge with navigation
268
+
269
+ ### Floating Components
270
+ - Panel: 12pt corner radius, shadow, drag handle
271
+ - Button: 56pt circular (FAB), drop shadow
272
+ - Search Bar: 44pt height, rounded corners
273
+ - Context Menu: 8pt corner radius, blur background
274
+
275
+ ## Implementation Guidelines
276
+
277
+ ### CSS/Tailwind Implementation
278
+ ```css
279
+ /* Typography scale */
280
+ .text-xs { font-size: 11px; }
281
+ .text-sm { font-size: 13px; }
282
+ .text-base { font-size: 15px; }
283
+ .text-lg { font-size: 17px; }
284
+ .text-xl { font-size: 20px; }
285
+ .text-2xl { font-size: 24px; }
286
+ .text-3xl { font-size: 28px; }
287
+ .text-4xl { font-size: 34px; }
288
+ .text-5xl { font-size: 48px; }
289
+
290
+ /* Spacing scale */
291
+ .p-1 { padding: 4px; }
292
+ .p-2 { padding: 8px; }
293
+ .p-3 { padding: 12px; }
294
+ .p-4 { padding: 16px; }
295
+ .p-5 { padding: 20px; }
296
+ .p-6 { padding: 24px; }
297
+ .p-8 { padding: 32px; }
298
+ .p-10 { padding: 40px; }
299
+ .p-12 { padding: 48px; }
300
+
301
+ /* System colors */
302
+ .text-blue { color: #007AFF; }
303
+ .text-green { color: #34C759; }
304
+ .text-red { color: #FF3B30; }
305
+ .text-orange { color: #FF9500; }
306
+ .text-gray { color: #8E8E93; }
307
+
308
+ /* Elevations */
309
+ .shadow-sm { /* Light elevation */ }
310
+ .shadow-md { /* Medium elevation */ }
311
+ .shadow-lg { /* High elevation */ }
312
+ ```
313
+
314
+ ### React Component Examples
315
+ ```jsx
316
+ // HIG Compliant Button
317
+ const Button = ({ variant = 'primary', size = 'medium', children, ...props }) => {
318
+ const baseClasses = 'font-semibold rounded-lg transition-all duration-200';
319
+ const sizeClasses = {
320
+ small: 'px-3 py-2 text-sm',
321
+ medium: 'px-4 py-3 text-base',
322
+ large: 'px-6 py-4 text-lg'
323
+ };
324
+
325
+ const variantClasses = {
326
+ primary: 'bg-blue-500 text-white hover:bg-blue-600',
327
+ secondary: 'border border-blue-500 text-blue-500 hover:bg-blue-50',
328
+ destructive: 'bg-red-500 text-white hover:bg-red-600'
329
+ };
330
+
331
+ return (
332
+ <button
333
+ className={`${baseClasses} ${sizeClasses[size]} ${variantClasses[variant]}`}
334
+ style={{ minHeight: '44px' }}
335
+ {...props}
336
+ >
337
+ {children}
338
+ </button>
339
+ );
340
+ };
341
+
342
+ // HIG Compliant Card
343
+ const Card = ({ children, className = '', ...props }) => (
344
+ <div
345
+ className={`bg-white rounded-xl shadow-md p-4 ${className}`}
346
+ {...props}
347
+ >
348
+ {children}
349
+ </div>
350
+ );
351
+ ```
352
+
353
+ ## Testing and Validation
354
+
355
+ ### Automated Checks
356
+ - Color contrast validation
357
+ - Touch target size verification
358
+ - Typography scale consistency
359
+ - Spacing system adherence
360
+ - Accessibility compliance
361
+
362
+ ### Manual Review
363
+ - Visual hierarchy assessment
364
+ - Motion animation quality
365
+ - User flow navigation
366
+ - Context and depth evaluation
367
+ - Platform-specific considerations
368
+
369
+ ## Luna Agent Integration
370
+
371
+ When you run `luna-hig`, the agent will:
372
+
373
+ 1. **Prompt for scope**: Ask whether to analyze entire project or specific component
374
+ 2. **Prompt for analysis type**: Choose from 8 analysis types
375
+ 3. **Scan project**: Analyze existing UI components and styles
376
+ 4. **Generate reports**: Create comprehensive HIG analysis documentation
377
+ 5. **Provide examples**: Offer implementation-ready code and guidelines
378
+
379
+ ### Output Files
380
+ - `.luna/{project}/hig-analysis.md` - Comprehensive compliance reports
381
+ - `.luna/{project}/design-system/hig-tokens.md` - Design tokens and specifications
382
+ - `.luna/{project}/design-system/components.md` - HIG-compliant component library
383
+ - `.luna/{project}/{component}/hig-analysis.md` - Component-specific analysis
384
+
385
+ ## Resources
386
+
387
+ - **Official Apple HIG**: https://developer.apple.com/design/human-interface-guidelines
388
+ - **San Francisco Font**: https://developer.apple.com/fonts/
389
+ - **Color System**: https://developer.apple.com/design/human-interface-guidelines/color
390
+ - **Accessibility**: https://developer.apple.com/accessibility/
391
+
392
+ ## Examples and Templates
393
+
394
+ The `luna-hig` command can generate:
395
+ - Complete component libraries
396
+ - Design system documentation
397
+ - CSS/Tailwind configuration
398
+ - React/Vue/Svelte components
399
+ - Storybook documentation
400
+ - Accessibility test suites
401
+
402
+ Use `luna-hig help [topic]` for specific guidance on any of these areas.
403
+
404
+ ## Recommended Luna Agents for UI/UX Design
405
+
406
+ ### Core Design Agents
407
+ - **`luna-requirements`** - Analyze user requirements for design decisions
408
+ - **`luna-design-architect`** - Create comprehensive technical design specifications
409
+ - **`luna-hig`** - Ensure Apple HIG compliance and design system implementation
410
+
411
+ ### Specialized UI Agents
412
+
413
+ #### **`luna-layout-designer`** - Layout Architecture Specialist
414
+ **Capabilities**:
415
+ - Grid system design and responsive layouts
416
+ - Information architecture and content hierarchy
417
+ - Navigation flow and user journey mapping
418
+ - Multi-device layout optimization
419
+
420
+ **Use Cases**:
421
+ - Complex dashboard layouts
422
+ - Multi-step form flows
423
+ - Content-heavy applications
424
+ - Data visualization interfaces
425
+
426
+ #### **`luna-component-designer`** - Component System Architect
427
+ **Capabilities**:
428
+ - Atomic design system creation
429
+ - Component library architecture
430
+ - Design token system implementation
431
+ - Component variant and state management
432
+
433
+ **Use Cases**:
434
+ - Design system implementation
435
+ - Component library development
436
+ - UI consistency across applications
437
+ - Design token management
438
+
439
+ #### **`luna-interaction-designer`** - Animation and Motion Specialist
440
+ **Capabilities**:
441
+ - Micro-interaction design and implementation
442
+ - Gesture-based interface patterns
443
+ - Loading states and transition animations
444
+ - Spatial interface design
445
+
446
+ **Use Cases**:
447
+ - Mobile app animations
448
+ - Gesture-based interactions
449
+ - Loading and state transitions
450
+ - Spatial user interfaces
451
+
452
+ #### **`luna-accessibility-auditor`** - Accessibility Compliance Expert
453
+ **Capabilities**:
454
+ - WCAG and Apple accessibility compliance
455
+ - Screen reader optimization
456
+ - Voice Control and Switch Control support
457
+ - Reduced motion and high contrast modes
458
+
459
+ **Use Cases**:
460
+ - Accessibility compliance audits
461
+ - Screen reader optimization
462
+ - Alternative input method support
463
+ - Inclusive design implementation
464
+
465
+ #### **`luna-responsive-designer`** - Multi-Device Layout Specialist
466
+ **Capabilities**:
467
+ - Responsive design strategy and implementation
468
+ - Device-specific layout optimization
469
+ - Touch vs mouse interaction patterns
470
+ - Cross-platform consistency
471
+
472
+ **Use Cases**:
473
+ - Responsive web applications
474
+ - Cross-platform mobile apps
475
+ - Adaptive interface design
476
+ - Multi-device user experiences
477
+
478
+ #### **`luna-visual-designer`** - Visual Identity and Branding
479
+ **Capabilities**:
480
+ - Visual design system creation
481
+ - Brand guideline implementation
482
+ - Icon and illustration design
483
+ - Visual hierarchy and composition
484
+
485
+ **Use Cases**:
486
+ - Brand identity implementation
487
+ - Visual design systems
488
+ - Icon library creation
489
+ - Marketing material design
490
+
491
+ ### Workflow Integration
492
+
493
+ #### **Design Phase Workflow**:
494
+ 1. `luna-requirements` - Define user needs and requirements
495
+ 2. `luna-design-architect` - Create technical specifications
496
+ 3. `luna-layout-designer` - Design information architecture
497
+ 4. `luna-hig` - Ensure Apple HIG compliance
498
+ 5. `luna-component-designer` - Build component system
499
+
500
+ #### **Implementation Phase Workflow**:
501
+ 1. `luna-interaction-designer` - Design animations and transitions
502
+ 2. `luna-accessibility-auditor` - Ensure accessibility compliance
503
+ 3. `luna-responsive-designer` - Optimize for multiple devices
504
+ 4. `luna-visual-designer` - Finalize visual design
505
+
506
+ #### **Quality Assurance Workflow**:
507
+ 1. `luna-accessibility-auditor` - Accessibility testing
508
+ 2. `luna-testing-validation` - UI testing and validation
509
+ 3. `luna-monitoring-observability` - Performance monitoring
510
+ 4. `luna-post-launch-review` - Post-launch analysis
511
+
512
+ ### Agent Combinations for Different Project Types
513
+
514
+ #### **Mobile App Development**:
515
+ ```bash
516
+ luna-requirements
517
+ luna-design-architect
518
+ luna-hig
519
+ luna-interaction-designer
520
+ luna-accessibility-auditor
521
+ ```
522
+
523
+ #### **Web Application Development**:
524
+ ```bash
525
+ luna-requirements
526
+ luna-design-architect
527
+ luna-responsive-designer
528
+ luna-component-designer
529
+ luna-accessibility-auditor
530
+ ```
531
+
532
+ #### **Design System Implementation**:
533
+ ```bash
534
+ luna-hig
535
+ luna-component-designer
536
+ luna-visual-designer
537
+ luna-accessibility-auditor
538
+ luna-testing-validation
539
+ ```
540
+
541
+ #### **Complex Dashboard Development**:
542
+ ```bash
543
+ luna-requirements
544
+ luna-layout-designer
545
+ luna-hig
546
+ luna-responsive-designer
547
+ luna-interaction-designer
548
+ ```
549
+
550
+ ## Integration with Luna Ecosystem
551
+
552
+ The `luna-hig` agent works seamlessly with other Luna agents:
553
+ - Use after `luna-requirements` for design phase
554
+ - Complements `luna-design-architect` with UI-specific guidance
555
+ - Supports `luna-testing-validation` for accessibility testing
556
+ - Integrates with `luna-deployment` for design system assets
557
+
558
+ ### Specialized Agent Features
559
+
560
+ #### **Layout Analysis Types**:
561
+ - `luna-hig layout navigation` - Navigation and information architecture
562
+ - `luna-hig layout forms` - Form layouts and input patterns
563
+ - `luna-hig layout content` - Content display and hierarchy
564
+ - `luna-hig layout floating` - Floating UI elements and overlays
565
+
566
+ #### **Component Analysis Types**:
567
+ - `luna-hig components navigation` - Navigation bars, tabs, sidebars
568
+ - `luna-hig components lists` - Table views, collection views
569
+ - `luna-hig components controls` - Buttons, inputs, controls
570
+ - `luna-hig components modals` - Alerts, sheets, popovers
571
+
572
+ #### **Platform-Specific Analysis**:
573
+ - `luna-hig platform ios` - iOS-specific HIG guidelines
574
+ - `luna-hig platform macos` - macOS-specific patterns
575
+ - `luna-hig platform ipados` - iPadOS multi-window patterns
576
+ - `luna-hig platform web` - Web adaptation of HIG principles
577
+
578
+ Transform your project's UI to meet Apple's world-class design standards with `luna-hig` and the complete Luna design ecosystem! 🌙🎨
@@ -0,0 +1,84 @@
1
+ ---
2
+ name: ll-hld
3
+ displayName: Luna High-Level Design Builder
4
+ description: Generate a high-level design document from existing code — architecture, components, data flow, deployment
5
+ version: 1.0.0
6
+ category: design
7
+ agent: luna-hld-builder
8
+ parameters:
9
+ - name: scope
10
+ type: string
11
+ description: Project or service scope for HLD generation
12
+ required: true
13
+ prompt: true
14
+ workflow:
15
+ - analyse_architecture_patterns
16
+ - identify_components_and_boundaries
17
+ - map_data_flow_and_integrations
18
+ - document_deployment_topology
19
+ - generate_hld_document
20
+ output:
21
+ - .luna/{current-project}/hld.md
22
+ prerequisites:
23
+ - source_code
24
+ ---
25
+
26
+ # Luna High-Level Design Builder
27
+
28
+ Generates a high-level design (HLD) document from your existing codebase — architecture diagrams, component breakdown, data flow, tech stack rationale, and deployment architecture.
29
+
30
+ ## What This Command Does
31
+
32
+ This command analyses your project's architecture patterns, component boundaries, integrations, and deployment setup, then produces a comprehensive HLD document with Mermaid C4 diagrams.
33
+
34
+ ## Prerequisites
35
+
36
+ Requires in your current project:
37
+ - Source code
38
+
39
+ For richer output, also provide:
40
+ - `.luna/{current-project}/requirements.md`
41
+ - `.luna/{current-project}/design.md`
42
+
43
+ ## Usage Instructions
44
+
45
+ When you run this command, you'll be prompted for the scope:
46
+ - Press **ENTER** for full-project HLD
47
+ - Type **service-name** for service-specific HLD
48
+
49
+ ## Execution Steps
50
+
51
+ 1. **Architecture Analysis**: Identifies patterns (monolith, microservices, serverless)
52
+ 2. **Component Mapping**: Documents major components and their responsibilities
53
+ 3. **Data Flow**: Maps how data moves between components and external services
54
+ 4. **Deployment Topology**: Documents infrastructure, hosting, and CI/CD
55
+ 5. **HLD Generation**: Produces `hld.md` with Mermaid C4 diagrams
56
+
57
+ ## Output Files
58
+
59
+ Creates in your current project:
60
+ - `.luna/{current-project}/hld.md`
61
+
62
+ Includes:
63
+ - System context diagram (Mermaid C4)
64
+ - Component diagram with APIs and relationships
65
+ - Data flow diagram
66
+ - Tech stack summary with rationale
67
+ - Integration map (external services, webhooks)
68
+ - ER diagram of key entities
69
+ - Deployment architecture
70
+ - Non-functional requirements analysis
71
+
72
+ ## Next Steps in Workflow
73
+
74
+ After HLD generation:
75
+ ```
76
+ /luna-flowdocs # Document detailed user flows
77
+ /luna-codemap # Generate code-level structure map
78
+ ```
79
+
80
+ ## Tips
81
+
82
+ - Great for onboarding stakeholders or preparing architecture reviews
83
+ - Combine with `/luna-routemap` for a complete system picture
84
+ - Review generated diagrams for accuracy — inferred architecture may need fine-tuning