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,203 @@
1
+ ---
2
+ name: ll-browser-test
3
+ displayName: Luna Browser Test
4
+ description: Full browser integration testing — launch app, navigate flows, screenshot, auto-fix failures
5
+ version: 1.0.0
6
+ category: testing
7
+ agent: luna-full-test
8
+ parameters:
9
+ - name: url
10
+ type: string
11
+ description: App URL to test (e.g., http://localhost:3000 or https://app.example.com)
12
+ required: true
13
+ prompt: true
14
+ - name: flow
15
+ type: string
16
+ description: Flow to test (full, auth, dashboard, billing, settings, custom, all)
17
+ required: false
18
+ prompt: true
19
+ workflow:
20
+ - detect_app_and_routes
21
+ - launch_browser
22
+ - execute_test_flows
23
+ - capture_screenshots
24
+ - analyze_failures
25
+ - auto_fix_code
26
+ - retest_fixes
27
+ - generate_browser_report
28
+ output:
29
+ - .luna/{current-project}/browser-test/
30
+ - .luna/{current-project}/browser-test/report.md
31
+ prerequisites: []
32
+ ---
33
+
34
+ # Luna Browser Test
35
+
36
+ Launch your app in a real browser, test every flow, screenshot every page, and auto-fix failures.
37
+
38
+ ## What This Command Does
39
+
40
+ 1. **Detect** — scans your codebase for routes, pages, components
41
+ 2. **Launch** — starts Playwright browser (chromium, firefox, webkit)
42
+ 3. **Navigate** — walks through every user flow (with and without auth)
43
+ 4. **Screenshot** — captures every page state (desktop + mobile)
44
+ 5. **Analyze** — uses Vision AI to detect UI issues in screenshots
45
+ 6. **Auto-Fix** — fixes broken code, reruns the test
46
+ 7. **Loop** — keeps fixing and retesting until all flows pass
47
+ 8. **Report** — full visual report with before/after screenshots
48
+
49
+ ## Test Flows
50
+
51
+ ### Without Login (Public)
52
+ | Flow | What It Tests |
53
+ |------|--------------|
54
+ | Landing Page | Hero loads, CTAs visible, responsive layout |
55
+ | Marketing Pages | Features, pricing, about, contact |
56
+ | Documentation | Docs pages render, navigation works, code blocks display |
57
+ | Auth Pages | Sign-in form renders, OAuth buttons visible, validation works |
58
+ | 404/Error Pages | Error pages render correctly |
59
+ | SEO | Meta tags, OG images, canonical URLs, robots.txt |
60
+ | Performance | LCP < 2.5s, CLS < 0.1, no layout shifts |
61
+
62
+ ### With Login (Authenticated)
63
+ | Flow | What It Tests |
64
+ |------|--------------|
65
+ | Sign Up | Register with email, verify email, complete onboarding |
66
+ | Sign In | Email/password, OAuth (Google, GitHub, Microsoft, LinkedIn) |
67
+ | Dashboard | Data loads, widgets render, navigation works |
68
+ | CRUD Operations | Create, read, update, delete entities |
69
+ | Team Management | Invite member, accept invite, change role, remove member |
70
+ | Billing | View plan, upgrade, manage payment, view invoices |
71
+ | Settings | Update profile, change password, manage notifications |
72
+ | Workflows | Create workflow, add steps, test run, view logs |
73
+ | API Keys | Generate key, copy, revoke, test permissions |
74
+ | Search | Search queries return results, filters work |
75
+
76
+ ### Cross-Cutting
77
+ | Flow | What It Tests |
78
+ |------|--------------|
79
+ | Responsive | Every page at 375px, 768px, 1024px, 1440px |
80
+ | Dark Mode | Toggle dark mode, all components render correctly |
81
+ | Keyboard Navigation | Tab through all interactive elements, focus visible |
82
+ | Error States | Empty states, loading states, error boundaries |
83
+ | Network Errors | Offline mode, slow connection, API failures |
84
+ | Session Expiry | Token expiry, refresh flow, redirect to login |
85
+
86
+ ## Usage
87
+
88
+ ```
89
+ /browser-test http://localhost:3000 # Test everything
90
+ /browser-test http://localhost:3000 auth # Auth flows only
91
+ /browser-test http://localhost:3000 dashboard # Dashboard only
92
+ /browser-test http://localhost:3000 billing # Billing only
93
+ /browser-test https://staging.myapp.com all # Test staging
94
+ /browser-test http://localhost:3000 full # All flows + auto-fix
95
+ ```
96
+
97
+ ## Auto-Fix Loop
98
+
99
+ When a test fails:
100
+
101
+ ```
102
+ Test fails → Screenshot failure state
103
+ → Vision AI analyzes screenshot
104
+ → Identifies the UI issue (broken layout, missing element, wrong text)
105
+ → Reads the source code for that component
106
+ → Generates fix (max 100 lines per file)
107
+ → Applies fix
108
+ → Retests the same flow
109
+ → If pass → move to next flow
110
+ → If fail → try again (max 3 attempts)
111
+ → If still fails → log as blocker, continue to next flow
112
+ ```
113
+
114
+ ## Screenshot Strategy
115
+
116
+ Every page gets captured at 4 viewports:
117
+
118
+ | Viewport | Width | Device |
119
+ |----------|-------|--------|
120
+ | Mobile | 375px | iPhone 15 |
121
+ | Tablet | 768px | iPad |
122
+ | Laptop | 1024px | MacBook Air |
123
+ | Desktop | 1440px | External display |
124
+
125
+ Screenshots saved to:
126
+ ```
127
+ .luna/{project}/browser-test/screenshots/
128
+ landing/
129
+ desktop.png
130
+ laptop.png
131
+ tablet.png
132
+ mobile.png
133
+ dark-desktop.png
134
+ dark-mobile.png
135
+ dashboard/
136
+ desktop.png
137
+ mobile.png
138
+ auth/
139
+ signin-desktop.png
140
+ signin-mobile.png
141
+ signup-desktop.png
142
+ ...
143
+ ```
144
+
145
+ ## Test Credentials
146
+
147
+ Provide test credentials in `.luna/rules.yaml`:
148
+ ```yaml
149
+ browser_test:
150
+ url: http://localhost:3000
151
+ credentials:
152
+ email: test@example.com
153
+ password: TestPassword123!
154
+ oauth_mock: true # Mock OAuth providers in test
155
+ seed_data: true # Seed test data before running
156
+ ```
157
+
158
+ Or pass inline:
159
+ ```
160
+ /browser-test http://localhost:3000 --email test@example.com --password Test123!
161
+ ```
162
+
163
+ ## Vision AI Analysis
164
+
165
+ Each screenshot is analyzed for:
166
+ - **Layout issues** — overlapping elements, broken grids, overflow
167
+ - **Missing content** — empty containers, broken images, missing text
168
+ - **Style problems** — wrong colors, inconsistent spacing, font issues
169
+ - **Accessibility** — contrast ratio, missing focus indicators, touch targets
170
+ - **Apple HIG compliance** — spacing, typography, visual hierarchy
171
+ - **Brand consistency** — colors match brand guide, fonts correct
172
+ - **Responsive issues** — content cut off, horizontal scroll, tiny text
173
+ - **Dark mode issues** — unreadable text, wrong backgrounds, missing styles
174
+
175
+ ## In Pipes
176
+
177
+ ```
178
+ # Test then ship
179
+ /pipe browser-test http://localhost:3000 ?>> ship !>> fix
180
+
181
+ # Full flow: implement, test in browser, fix, ship
182
+ /pipe go *5 >> browser-test http://localhost:3000 full ?>> pr !>> (fix >> browser-test) *3?
183
+
184
+ # Test all viewports after UI changes
185
+ /pipe hig >> browser-test http://localhost:3000 >> a11y >> pr
186
+
187
+ # Brand check: generate brand, apply HIG, verify in browser
188
+ /pipe brand >> hig >> browser-test http://localhost:3000 >> approve "Looks good?" >> ship
189
+ ```
190
+
191
+ ## Output
192
+
193
+ ```
194
+ .luna/{project}/browser-test/
195
+ report.md # Full test report with pass/fail per flow
196
+ screenshots/ # All captured screenshots
197
+ {page}/{viewport}.png
198
+ fixes/ # Auto-fix diffs
199
+ {component}-fix.diff
200
+ failures/ # Failed test screenshots
201
+ {flow}-failure.png
202
+ coverage.json # Route coverage (which pages were tested)
203
+ ```
@@ -0,0 +1,124 @@
1
+ ---
2
+ name: ll-challenge
3
+ displayName: Luna Challenge
4
+ description: Timed coding challenges with AI judging — earn credits, climb leaderboards
5
+ version: 1.0.0
6
+ category: community
7
+ agent: luna-challenge-runner
8
+ parameters:
9
+ - name: difficulty
10
+ type: string
11
+ description: "Challenge difficulty level"
12
+ required: false
13
+ default: medium
14
+ enum: [easy, medium, hard]
15
+ - name: topic
16
+ type: string
17
+ description: "Optional topic filter: algorithms, api-design, refactoring, testing, security, performance"
18
+ required: false
19
+ workflow:
20
+ - fetch_challenge
21
+ - start_timer
22
+ - monitor_submission
23
+ - ai_judge_evaluate
24
+ - calculate_score
25
+ - update_leaderboard
26
+ output: []
27
+ prerequisites: []
28
+ ---
29
+
30
+ # Luna Challenge
31
+
32
+ Timed coding challenges with AI judging, inspired by flow-nexus. Solve real-world coding problems, get evaluated on correctness, performance, code quality, and innovation.
33
+
34
+ ## What This Command Does
35
+
36
+ 1. **Fetch Challenge** — pulls a challenge matching your difficulty and topic preferences
37
+ 2. **Start Timer** — begins the countdown (easy: 15min, medium: 30min, hard: 60min)
38
+ 3. **Monitor Submission** — watches for your solution file
39
+ 4. **AI Judge** — evaluates your submission across four dimensions
40
+ 5. **Calculate Score** — produces a composite score out of 100
41
+ 6. **Update Leaderboard** — posts your result to the global leaderboard
42
+
43
+ ## Usage
44
+
45
+ ```
46
+ /challenge
47
+ /challenge --difficulty easy
48
+ /challenge --difficulty hard --topic security
49
+ /challenge --topic algorithms
50
+ ```
51
+
52
+ ## Difficulty Levels
53
+
54
+ | Level | Time Limit | Complexity | Credits Earned |
55
+ |-------|-----------|------------|----------------|
56
+ | **Easy** | 15 minutes | Single function, clear spec | 10 credits |
57
+ | **Medium** | 30 minutes | Multi-file, edge cases | 25 credits |
58
+ | **Hard** | 60 minutes | Architecture, optimization | 50 credits |
59
+
60
+ ## Topics
61
+
62
+ | Topic | Example Challenges |
63
+ |-------|-------------------|
64
+ | **algorithms** | Implement a priority queue, graph traversal |
65
+ | **api-design** | Design a REST API for a feature, handle pagination |
66
+ | **refactoring** | Clean up legacy code, extract patterns |
67
+ | **testing** | Write tests for untested code, achieve coverage |
68
+ | **security** | Fix vulnerabilities, implement auth flow |
69
+ | **performance** | Optimize slow queries, reduce bundle size |
70
+
71
+ ## AI Judge Scoring
72
+
73
+ Your submission is evaluated on four dimensions:
74
+
75
+ | Dimension | Weight | What's Evaluated |
76
+ |-----------|--------|-----------------|
77
+ | **Correctness** | 40% | All test cases pass, edge cases handled |
78
+ | **Performance** | 20% | Time/space complexity, no unnecessary work |
79
+ | **Code Quality** | 25% | Readability, naming, structure, types |
80
+ | **Innovation** | 15% | Creative approach, elegant solution |
81
+
82
+ ## Scoring Breakdown
83
+
84
+ ```
85
+ Score = (correctness * 0.4) + (performance * 0.2)
86
+ + (quality * 0.25) + (innovation * 0.15)
87
+
88
+ Ranks:
89
+ 90-100: Legendary
90
+ 75-89: Expert
91
+ 60-74: Skilled
92
+ 40-59: Apprentice
93
+ 0-39: Novice
94
+ ```
95
+
96
+ ## Leaderboard
97
+
98
+ - **Global** — all-time top scorers across all topics
99
+ - **Weekly** — resets every Monday, top 10 earn bonus credits
100
+ - **Topic** — per-topic rankings for specialization bragging rights
101
+ - **Team** — aggregate scores for org/team competitions
102
+
103
+ ## Challenge Flow
104
+
105
+ ```
106
+ /challenge --difficulty medium --topic testing
107
+ > Challenge: "Write tests for UserService with 90%+ coverage"
108
+ > Time limit: 30 minutes
109
+ > Files created: .luna/challenges/challenge-2026-04-07/
110
+ > Timer started...
111
+
112
+ [You write your solution]
113
+
114
+ > Submission detected!
115
+ > Judging...
116
+ > Score: 82/100 (Expert)
117
+ > Correctness: 95/100
118
+ > Performance: 70/100
119
+ > Code Quality: 85/100
120
+ > Innovation: 65/100
121
+ > Credits earned: 25
122
+ > Leaderboard rank: #47 globally
123
+ ```
124
+
@@ -0,0 +1,80 @@
1
+ ---
2
+ name: ll-changelog
3
+ displayName: Luna Changelog
4
+ description: Auto-generate changelog from git history with semantic versioning
5
+ version: 1.0.0
6
+ category: documentation
7
+ agent: luna-documentation
8
+ parameters:
9
+ - name: version
10
+ type: string
11
+ description: Version number (e.g., 1.2.0) or 'auto' for semantic detection
12
+ required: false
13
+ prompt: true
14
+ - name: scope
15
+ type: string
16
+ description: Project or feature scope
17
+ required: true
18
+ prompt: true
19
+ workflow:
20
+ - read_git_history
21
+ - categorize_commits
22
+ - determine_version
23
+ - generate_changelog
24
+ - update_package_version
25
+ - generate_release_notes
26
+ output:
27
+ - CHANGELOG.md
28
+ - .luna/{current-project}/release-notes.md
29
+ prerequisites: []
30
+ ---
31
+
32
+ # Luna Changelog
33
+
34
+ Auto-generate changelogs from git commits with semantic versioning.
35
+
36
+ ## What This Command Does
37
+
38
+ 1. **Read** — parses git log since last tag/release
39
+ 2. **Categorize** — groups commits into Features, Fixes, Breaking Changes, etc.
40
+ 3. **Version** — determines semver bump (major/minor/patch) from commit types
41
+ 4. **Generate** — creates/updates CHANGELOG.md with new section
42
+ 5. **Update** — bumps version in package.json
43
+ 6. **Release Notes** — generates GitHub-ready release notes
44
+
45
+ ## Commit Categories
46
+
47
+ | Prefix | Category | Version Bump |
48
+ |--------|----------|-------------|
49
+ | `feat:` | Features | minor |
50
+ | `fix:` | Bug Fixes | patch |
51
+ | `BREAKING:` | Breaking Changes | major |
52
+ | `perf:` | Performance | patch |
53
+ | `docs:` | Documentation | — |
54
+ | `refactor:` | Code Changes | — |
55
+ | `test:` | Tests | — |
56
+ | `chore:` | Maintenance | — |
57
+
58
+ ## Usage
59
+
60
+ ```
61
+ /changelog # Auto-detect version
62
+ /changelog 2.0.0 # Specific version
63
+ /changelog auto # Semantic auto-bump
64
+ ```
65
+
66
+ ## Output Format
67
+
68
+ ```markdown
69
+ ## [1.2.0] - 2026-03-29
70
+
71
+ ### Features
72
+ - Add team billing page (#42)
73
+ - Support LinkedIn OAuth provider (#38)
74
+
75
+ ### Bug Fixes
76
+ - Fix password reset 401 error (#41)
77
+
78
+ ### Breaking Changes
79
+ - Remove legacy auth middleware (#40)
80
+ ```
@@ -0,0 +1,78 @@
1
+ ---
2
+ name: ll-ci
3
+ displayName: Luna CI Pipeline
4
+ description: Generate CI/CD pipeline — GitHub Actions or GitLab CI with lint, test, build, deploy stages
5
+ version: 1.0.0
6
+ category: devops
7
+ agent: luna-deployment
8
+ parameters:
9
+ - name: platform
10
+ type: string
11
+ description: CI platform (github-actions, gitlab-ci, bitbucket)
12
+ required: false
13
+ prompt: true
14
+ - name: scope
15
+ type: string
16
+ description: Project or feature scope
17
+ required: true
18
+ prompt: true
19
+ workflow:
20
+ - detect_project_stack
21
+ - generate_ci_config
22
+ - add_quality_gates
23
+ - add_deploy_stages
24
+ - add_notifications
25
+ - validate_config
26
+ - generate_ci_report
27
+ output:
28
+ - .github/workflows/ or .gitlab-ci.yml
29
+ - .luna/{current-project}/ci-report.md
30
+ prerequisites: []
31
+ ---
32
+
33
+ # Luna CI Pipeline
34
+
35
+ Generate production-grade CI/CD pipelines tailored to your stack.
36
+
37
+ ## What This Command Does
38
+
39
+ 1. **Detect** — identifies framework, package manager, test runner, deploy target
40
+ 2. **Generate** — creates CI config with all stages
41
+ 3. **Quality Gates** — adds lint, type-check, test, coverage, security scan
42
+ 4. **Deploy** — staging + production deploy with approval gates
43
+ 5. **Notifications** — Slack/Discord/email on failure
44
+ 6. **Validate** — checks config syntax
45
+ 7. **Report** — documents pipeline stages and triggers
46
+
47
+ ## Pipeline Stages
48
+
49
+ ```
50
+ PR Opened:
51
+ ├── Install dependencies (cached)
52
+ ├── Lint + Format check
53
+ ├── Type check (tsc --noEmit)
54
+ ├── Unit tests + coverage (>=90%)
55
+ ├── Security scan (npm audit)
56
+ └── Build validation
57
+
58
+ Merge to main:
59
+ ├── All PR checks
60
+ ├── Integration tests
61
+ ├── E2E tests (Playwright)
62
+ ├── Deploy to staging
63
+ ├── Smoke tests on staging
64
+ └── Deploy to production (manual approval)
65
+
66
+ Scheduled (nightly):
67
+ ├── Full E2E suite
68
+ ├── Dependency vulnerability scan
69
+ └── Performance benchmark
70
+ ```
71
+
72
+ ## Usage
73
+
74
+ ```
75
+ /ci # Auto-detect platform
76
+ /ci github-actions # Specific platform
77
+ /ci gitlab-ci # GitLab
78
+ ```
@@ -0,0 +1,80 @@
1
+ ---
2
+ name: ll-claude-instructions
3
+ displayName: Luna Claude Instructions Builder
4
+ description: Generate a comprehensive instructions file for the Claude Chrome browser extension from your codebase
5
+ version: 1.0.0
6
+ category: documentation
7
+ agent: luna-claude-instructions
8
+ parameters:
9
+ - name: scope
10
+ type: string
11
+ description: Project or feature scope for instructions generation
12
+ required: true
13
+ prompt: true
14
+ workflow:
15
+ - scan_all_pages_and_routes
16
+ - inventory_menus_buttons_forms
17
+ - map_user_flows
18
+ - catalogue_features_and_interactions
19
+ - generate_claude_instructions_file
20
+ output:
21
+ - .luna/{current-project}/claude-instructions.md
22
+ prerequisites:
23
+ - source_code
24
+ ---
25
+
26
+ # Luna Claude Instructions Builder
27
+
28
+ Generates a comprehensive instructions file for the Claude Chrome browser extension by analysing your entire codebase. The output covers all pages, menus, buttons, flows, routing, and features — ready to paste into the extension.
29
+
30
+ ## What This Command Does
31
+
32
+ This command crawls your project, inventories every UI element, maps all routes and navigation, documents user flows, and produces a single markdown file optimised for the Claude browser extension's custom instructions field.
33
+
34
+ ## Prerequisites
35
+
36
+ Requires in your current project:
37
+ - Source code with page/route components
38
+
39
+ No prior Luna artifacts are required — this skill works directly from code.
40
+
41
+ ## Usage Instructions
42
+
43
+ When you run this command, you'll be prompted for the scope:
44
+ - Press **ENTER** for full-project instructions
45
+ - Type **feature-name** for feature-specific instructions
46
+
47
+ ## Execution Steps
48
+
49
+ 1. **Page & Route Scan**: Discovers all pages, routes, and URL patterns
50
+ 2. **UI Inventory**: Catalogues menus, buttons, forms, modals, and interactive elements
51
+ 3. **Flow Mapping**: Traces user flows from entry to completion
52
+ 4. **Feature Catalogue**: Groups features with their UI elements and API calls
53
+ 5. **Instructions Generation**: Produces `claude-instructions.md` for the extension
54
+
55
+ ## Output Files
56
+
57
+ Creates in your current project:
58
+ - `.luna/{current-project}/claude-instructions.md`
59
+
60
+ The file includes:
61
+ - Application overview and tech stack
62
+ - Complete page inventory with purpose and UI elements
63
+ - Navigation map (sidebar, header, routing hierarchy)
64
+ - Feature catalogue with buttons, forms, and actions
65
+ - User flow descriptions step-by-step
66
+ - Component library reference
67
+ - Keyboard shortcuts
68
+
69
+ ## Next Steps in Workflow
70
+
71
+ After generating instructions:
72
+ - Paste into the Claude Chrome extension custom instructions
73
+ - Run `/luna-routemap` for a dedicated route-only map
74
+ - Run `/luna-flowdocs` for detailed Mermaid flow diagrams
75
+
76
+ ## Tips
77
+
78
+ - Run this after every major UI change to keep instructions current
79
+ - Combine with `/luna-codemap` for a comprehensive developer context
80
+ - The output is optimised for AI context — concise but complete
@@ -0,0 +1,82 @@
1
+ ---
2
+ name: ll-clone
3
+ displayName: Luna Clone
4
+ description: Analyze any app/website and generate a complete clone with your own design system and improvements
5
+ version: 1.0.0
6
+ category: creation
7
+ agent: luna-design-architect
8
+ parameters:
9
+ - name: url
10
+ type: string
11
+ description: URL of the app to analyze and clone
12
+ required: true
13
+ prompt: true
14
+ - name: improvements
15
+ type: string
16
+ description: What to improve over the original (optional)
17
+ required: false
18
+ mcp_servers:
19
+ - playwright
20
+ - puppeteer
21
+ - fetch
22
+ - zai-mcp-server
23
+ - image-extractor
24
+ - accessibility-scanner
25
+ - sequential-thinking
26
+ - ruflo
27
+ ---
28
+
29
+ # /clone �� Reverse Engineer Any App
30
+
31
+ Point at any live app. Luna screenshots every page, extracts the design system, maps the architecture, and generates a complete codebase with your improvements baked in.
32
+
33
+ ## Pipeline
34
+
35
+ ```
36
+ /clone https://linear.app --improvements "add AI triage, better mobile UX"
37
+
38
+ ┌───────────────┼───────────────┐
39
+ ▼ ▼ ▼
40
+ CAPTURE EXTRACT ANALYZE
41
+ playwright zai-mcp fetch
42
+ screenshots UI-to-code API routes
43
+ all pages design tokens data model
44
+ all viewports components auth flow
45
+ │ │ │
46
+ └───────────────┼───────────────┘
47
+
48
+ SYNTHESIZE
49
+ • Design system (colors, fonts, spacing)
50
+ • Component library (React/Vue/Svelte)
51
+ • Page layouts (responsive)
52
+ • API schema (OpenAPI)
53
+ • Data model (Prisma/Drizzle)
54
+ • Auth flow (NextAuth/Clerk)
55
+ • Your improvements layered on top
56
+
57
+
58
+ GENERATE
59
+ • Full project scaffold
60
+ • Every component implemented
61
+ • Every page routed
62
+ • API stubs with types
63
+ • Tests for critical paths
64
+ • CI/CD pipeline
65
+ • Deployment config
66
+ ```
67
+
68
+ ## Usage
69
+
70
+ ```bash
71
+ /clone https://notion.so # Full clone
72
+ /clone https://stripe.com/dashboard --improvements "simpler onboarding"
73
+ /clone https://vercel.com --improvements "add team chat, mobile app"
74
+ /clone ./competitor-screenshot.png # Clone from screenshot
75
+ ```
76
+
77
+ ## In Pipes
78
+
79
+ ```bash
80
+ /pipe clone https://app.com >> hig >> brand >> go *10 >> browser-test >> ship
81
+ /pipe clone https://app.com >> improve "add AI features" >> test >> deploy
82
+ ```