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.
- package/.claude-plugin/LICENSE +21 -0
- package/.claude-plugin/README.md +285 -0
- package/.claude-plugin/claude-plugin.json +106 -0
- package/.claude-plugin/index.js +318 -0
- package/.claude-plugin/lib/api-client.js +504 -0
- package/.claude-plugin/lib/rag-utils.js +442 -0
- package/.claude-plugin/package.json +418 -0
- package/LICENSE +21 -0
- package/README.md +350 -0
- package/agents/json/design-architect.json +57 -0
- package/agents/json/luna-auth.json +71 -0
- package/agents/json/luna-brand.json +66 -0
- package/agents/json/luna-cloudflare.json +261 -0
- package/agents/json/luna-code-review.json +63 -0
- package/agents/json/luna-deployment.json +68 -0
- package/agents/json/luna-documentation.json +85 -0
- package/agents/json/luna-hig.json +128 -0
- package/agents/json/luna-layout-designer.json +178 -0
- package/agents/json/luna-monitoring-observability.json +64 -0
- package/agents/json/luna-post-launch-review.json +68 -0
- package/agents/json/luna-requirements-analyzer.json +53 -0
- package/agents/json/luna-task-executor.json +63 -0
- package/agents/json/luna-task-planner.json +62 -0
- package/agents/json/luna-testing-validation.json +66 -0
- package/agents/luna-365-security.md +96 -0
- package/agents/luna-analytics.md +318 -0
- package/agents/luna-api-generator.md +654 -0
- package/agents/luna-auth.md +396 -0
- package/agents/luna-brand.md +248 -0
- package/agents/luna-cloudflare.md +728 -0
- package/agents/luna-code-review.md +487 -0
- package/agents/luna-database.md +453 -0
- package/agents/luna-deployment.md +202 -0
- package/agents/luna-design-architect.md +353 -0
- package/agents/luna-docker.md +615 -0
- package/agents/luna-documentation.md +177 -0
- package/agents/luna-full-test.md +910 -0
- package/agents/luna-glm-vision.md +211 -0
- package/agents/luna-hig.md +430 -0
- package/agents/luna-lemonsqueezy.md +441 -0
- package/agents/luna-monitoring-observability.md +199 -0
- package/agents/luna-openai-app.md +499 -0
- package/agents/luna-post-launch-review.md +191 -0
- package/agents/luna-rag-enhanced.md +1619 -0
- package/agents/luna-rag.md +1733 -0
- package/agents/luna-requirements-analyzer.md +189 -0
- package/agents/luna-run.md +620 -0
- package/agents/luna-seo.md +338 -0
- package/agents/luna-task-executor.md +371 -0
- package/agents/luna-task-planner.md +275 -0
- package/agents/luna-testing-validation.md +681 -0
- package/agents/luna-ui-fix.md +591 -0
- package/agents/luna-ui-test.md +600 -0
- package/agents/luna-user-guide.md +409 -0
- package/agents/site-auditor.md +83 -0
- package/commands/3d-mesh.md +12 -0
- package/commands/3d.md +12 -0
- package/commands/agent-boost.md +13 -0
- package/commands/ai-index.md +16 -0
- package/commands/api.md +12 -0
- package/commands/assert.md +17 -0
- package/commands/audience.md +12 -0
- package/commands/auth.md +17 -0
- package/commands/autopilot.md +12 -0
- package/commands/boost-finsavvy.md +10 -0
- package/commands/boost-org.md +10 -0
- package/commands/boost-project.md +12 -0
- package/commands/brand.md +17 -0
- package/commands/browser-test.md +18 -0
- package/commands/cf.md +26 -0
- package/commands/cfg.md +33 -0
- package/commands/chain.md +12 -0
- package/commands/challenge.md +13 -0
- package/commands/clone.md +12 -0
- package/commands/cmds.md +243 -0
- package/commands/collab.md +12 -0
- package/commands/compete.md +12 -0
- package/commands/config-rules.md +21 -0
- package/commands/connect-infra.md +10 -0
- package/commands/context-pack.md +13 -0
- package/commands/curb.md +12 -0
- package/commands/des.md +38 -0
- package/commands/devto.md +20 -0
- package/commands/dock.md +26 -0
- package/commands/docs.md +33 -0
- package/commands/e2e-flow.md +18 -0
- package/commands/email-routing.md +10 -0
- package/commands/feature.md +12 -0
- package/commands/figma.md +12 -0
- package/commands/fix.md +12 -0
- package/commands/flaky.md +12 -0
- package/commands/flow-record.md +12 -0
- package/commands/gamify.md +12 -0
- package/commands/ghost.md +12 -0
- package/commands/git-insights.md +12 -0
- package/commands/go-viral.md +16 -0
- package/commands/go.md +42 -0
- package/commands/graph-rag.md +13 -0
- package/commands/guard.md +12 -0
- package/commands/heal.md +17 -0
- package/commands/heygen.md +12 -0
- package/commands/hig.md +33 -0
- package/commands/idea.md +12 -0
- package/commands/imagine.md +12 -0
- package/commands/inbox.md +12 -0
- package/commands/lam.md +12 -0
- package/commands/landing.md +12 -0
- package/commands/launch.md +12 -0
- package/commands/learn.md +12 -0
- package/commands/leverage.md +12 -0
- package/commands/ll-365-secure.md +179 -0
- package/commands/ll-3d-mesh.md +94 -0
- package/commands/ll-3d.md +123 -0
- package/commands/ll-a11y-scan.md +143 -0
- package/commands/ll-a11y.md +71 -0
- package/commands/ll-agent-boost.md +92 -0
- package/commands/ll-agent-chain.md +104 -0
- package/commands/ll-ai-index.md +120 -0
- package/commands/ll-api-client.md +77 -0
- package/commands/ll-api.md +99 -0
- package/commands/ll-assert.md +73 -0
- package/commands/ll-audience.md +308 -0
- package/commands/ll-auth.md +145 -0
- package/commands/ll-autopilot.md +113 -0
- package/commands/ll-boost-finsavvy.md +106 -0
- package/commands/ll-boost-org.md +161 -0
- package/commands/ll-boost-project.md +118 -0
- package/commands/ll-brand.md +150 -0
- package/commands/ll-browser-test.md +203 -0
- package/commands/ll-challenge.md +124 -0
- package/commands/ll-changelog.md +80 -0
- package/commands/ll-ci.md +78 -0
- package/commands/ll-claude-instructions.md +80 -0
- package/commands/ll-clone.md +82 -0
- package/commands/ll-cloudflare.md +580 -0
- package/commands/ll-codemap.md +78 -0
- package/commands/ll-collab.md +87 -0
- package/commands/ll-compete.md +67 -0
- package/commands/ll-config-rules.md +255 -0
- package/commands/ll-config.md +434 -0
- package/commands/ll-connect-infra.md +123 -0
- package/commands/ll-context-pack.md +100 -0
- package/commands/ll-curb.md +164 -0
- package/commands/ll-debug.md +76 -0
- package/commands/ll-deploy.md +101 -0
- package/commands/ll-deps.md +70 -0
- package/commands/ll-design.md +86 -0
- package/commands/ll-devto-publish.md +172 -0
- package/commands/ll-dockerize.md +273 -0
- package/commands/ll-docs.md +123 -0
- package/commands/ll-e2e-flow.md +132 -0
- package/commands/ll-e2e-test.md +231 -0
- package/commands/ll-email-routing.md +130 -0
- package/commands/ll-env.md +70 -0
- package/commands/ll-execute.md +98 -0
- package/commands/ll-feature.md +80 -0
- package/commands/ll-figma.md +82 -0
- package/commands/ll-fix.md +76 -0
- package/commands/ll-flaky.md +151 -0
- package/commands/ll-flow-record.md +180 -0
- package/commands/ll-flowdocs.md +83 -0
- package/commands/ll-gamify.md +131 -0
- package/commands/ll-gemma4.md +84 -0
- package/commands/ll-ghost.md +79 -0
- package/commands/ll-git-insights.md +152 -0
- package/commands/ll-go-viral.md +171 -0
- package/commands/ll-graph-rag.md +113 -0
- package/commands/ll-guard.md +92 -0
- package/commands/ll-heal.md +135 -0
- package/commands/ll-heygen.md +203 -0
- package/commands/ll-hig.md +578 -0
- package/commands/ll-hld.md +84 -0
- package/commands/ll-i18n.md +74 -0
- package/commands/ll-idea.md +101 -0
- package/commands/ll-imagine.md +72 -0
- package/commands/ll-inbox.md +116 -0
- package/commands/ll-lam.md +93 -0
- package/commands/ll-landing.md +171 -0
- package/commands/ll-launch.md +100 -0
- package/commands/ll-learn.md +87 -0
- package/commands/ll-leverage.md +137 -0
- package/commands/ll-local-llm.md +131 -0
- package/commands/ll-ls-products.md +160 -0
- package/commands/ll-marketplace.md +130 -0
- package/commands/ll-mcp-publish.md +104 -0
- package/commands/ll-migrate.md +68 -0
- package/commands/ll-mock.md +79 -0
- package/commands/ll-money.md +87 -0
- package/commands/ll-monitor.md +120 -0
- package/commands/ll-morph.md +117 -0
- package/commands/ll-multi-agent.md +170 -0
- package/commands/ll-native.md +93 -0
- package/commands/ll-nexa.md +79 -0
- package/commands/ll-onboarding.md +84 -0
- package/commands/ll-openhands.md +78 -0
- package/commands/ll-organic-promote.md +260 -0
- package/commands/ll-parallel.md +74 -0
- package/commands/ll-payments.md +83 -0
- package/commands/ll-perf-trace.md +147 -0
- package/commands/ll-perf.md +65 -0
- package/commands/ll-persona.md +280 -0
- package/commands/ll-pipe.md +296 -0
- package/commands/ll-plan-impl.js +570 -0
- package/commands/ll-plan-v2.md +297 -0
- package/commands/ll-plan.md +87 -0
- package/commands/ll-postlaunch.md +109 -0
- package/commands/ll-pr.md +84 -0
- package/commands/ll-present.md +110 -0
- package/commands/ll-product-map.md +152 -0
- package/commands/ll-promote.md +352 -0
- package/commands/ll-publish.md +124 -0
- package/commands/ll-pulse.md +96 -0
- package/commands/ll-rag-guided.md +345 -0
- package/commands/ll-rag-upgrade.md +504 -0
- package/commands/ll-rag.md +343 -0
- package/commands/ll-record.md +114 -0
- package/commands/ll-refactor.md +71 -0
- package/commands/ll-requirements.md +71 -0
- package/commands/ll-review.md +92 -0
- package/commands/ll-rollback.md +66 -0
- package/commands/ll-routemap.md +79 -0
- package/commands/ll-rules.md +90 -0
- package/commands/ll-shortcuts.md +229 -0
- package/commands/ll-sing.md +99 -0
- package/commands/ll-site-audit.md +228 -0
- package/commands/ll-smart-route.md +92 -0
- package/commands/ll-smart-search.md +58 -0
- package/commands/ll-storybook.md +86 -0
- package/commands/ll-swarm.md +101 -0
- package/commands/ll-test.md +97 -0
- package/commands/ll-time-machine.md +72 -0
- package/commands/ll-ui-convert.md +433 -0
- package/commands/ll-video.md +108 -0
- package/commands/ll-vision-pipeline.md +247 -0
- package/commands/ll-vision.md +74 -0
- package/commands/ll-visual-diff.md +118 -0
- package/commands/ll-visual-qa.md +204 -0
- package/commands/ll-visual-regression.md +96 -0
- package/commands/ll-voice.md +138 -0
- package/commands/ll-watch.md +65 -0
- package/commands/ll-workflow.md +108 -0
- package/commands/ll-zen.md +98 -0
- package/commands/local-llm.md +12 -0
- package/commands/marketplace.md +13 -0
- package/commands/mcp-publish.md +16 -0
- package/commands/migrate.md +12 -0
- package/commands/money.md +12 -0
- package/commands/morph.md +12 -0
- package/commands/multi-agent.md +12 -0
- package/commands/native.md +12 -0
- package/commands/nexa.md +12 -0
- package/commands/oh.md +12 -0
- package/commands/organic-promote.md +16 -0
- package/commands/perf-trace.md +12 -0
- package/commands/perf.md +12 -0
- package/commands/persona.md +12 -0
- package/commands/pipe.md +21 -0
- package/commands/plan.md +38 -0
- package/commands/pr.md +12 -0
- package/commands/present.md +12 -0
- package/commands/product-map.md +13 -0
- package/commands/promote.md +16 -0
- package/commands/publish.md +12 -0
- package/commands/pulse.md +12 -0
- package/commands/q.md +35 -0
- package/commands/record.md +12 -0
- package/commands/refactor.md +12 -0
- package/commands/req.md +40 -0
- package/commands/retro.md +33 -0
- package/commands/rev.md +39 -0
- package/commands/rules.md +19 -0
- package/commands/search.md +12 -0
- package/commands/sec.md +34 -0
- package/commands/ship.md +39 -0
- package/commands/sing.md +12 -0
- package/commands/site-audit.md +12 -0
- package/commands/smart-route.md +13 -0
- package/commands/swarm.md +12 -0
- package/commands/test.md +39 -0
- package/commands/time-machine.md +12 -0
- package/commands/ui.md +33 -0
- package/commands/video.md +12 -0
- package/commands/vision.md +12 -0
- package/commands/voice.md +12 -0
- package/commands/vr.md +18 -0
- package/commands/watch.md +39 -0
- package/commands/workflow.md +19 -0
- package/commands/zen.md +12 -0
- package/package.json +76 -0
- package/setup.sh +382 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ll-multi-agent
|
|
3
|
+
displayName: Luna Multi-Agent
|
|
4
|
+
description: Run multiple AI agents in parallel on isolated git worktrees — race or consensus strategies, inspired by Agent of Empires
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: orchestration
|
|
7
|
+
agent: luna-task-executor
|
|
8
|
+
parameters:
|
|
9
|
+
- name: task
|
|
10
|
+
type: string
|
|
11
|
+
description: The task to distribute across parallel agents
|
|
12
|
+
required: true
|
|
13
|
+
prompt: true
|
|
14
|
+
- name: agents
|
|
15
|
+
type: number
|
|
16
|
+
description: "Number of parallel agents to spawn (default: 3)"
|
|
17
|
+
required: false
|
|
18
|
+
default: 3
|
|
19
|
+
- name: strategy
|
|
20
|
+
type: string
|
|
21
|
+
description: "Strategy: race (first wins), consensus (merge best parts) (default: race)"
|
|
22
|
+
required: false
|
|
23
|
+
default: race
|
|
24
|
+
mcp_servers:
|
|
25
|
+
- memory
|
|
26
|
+
- git
|
|
27
|
+
- sequential-thinking
|
|
28
|
+
prerequisites:
|
|
29
|
+
- name: git-worktree
|
|
30
|
+
check: "git worktree list"
|
|
31
|
+
install: "Requires git 2.15+ with worktree support"
|
|
32
|
+
optional: false
|
|
33
|
+
- name: tmux
|
|
34
|
+
check: "which tmux"
|
|
35
|
+
install: "brew install tmux (macOS) or apt install tmux (Linux)"
|
|
36
|
+
optional: true
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
# /multi-agent — Parallel AI Agents on Isolated Branches
|
|
40
|
+
|
|
41
|
+
Run multiple AI agents simultaneously on different git worktrees, each tackling the same task independently. Pick the best result (race) or merge the best parts (consensus). Inspired by Agent of Empires.
|
|
42
|
+
|
|
43
|
+
## What It Does
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
/multi-agent "Implement user authentication" --agents 3
|
|
47
|
+
│
|
|
48
|
+
├── SETUP: Create isolated environments
|
|
49
|
+
│ ├── git worktree add .worktrees/agent-1 -b agent/auth-1
|
|
50
|
+
│ ├── git worktree add .worktrees/agent-2 -b agent/auth-2
|
|
51
|
+
│ └── git worktree add .worktrees/agent-3 -b agent/auth-3
|
|
52
|
+
│
|
|
53
|
+
├── EXECUTE: Run agents in parallel
|
|
54
|
+
│ ├── Agent 1: Working in .worktrees/agent-1 ...
|
|
55
|
+
│ ├── Agent 2: Working in .worktrees/agent-2 ...
|
|
56
|
+
│ └── Agent 3: Working in .worktrees/agent-3 ...
|
|
57
|
+
│ (tmux sessions for real-time monitoring)
|
|
58
|
+
│
|
|
59
|
+
├── EVALUATE: Compare results
|
|
60
|
+
│ ├── Run tests in each worktree
|
|
61
|
+
│ ├── Score: test pass rate, code quality, coverage
|
|
62
|
+
│ ├── Compare approaches and trade-offs
|
|
63
|
+
│ └── Select winner or merge best parts
|
|
64
|
+
│
|
|
65
|
+
└── MERGE
|
|
66
|
+
├── race: Cherry-pick winner to main branch
|
|
67
|
+
└── consensus: Merge best files from each agent
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Strategies
|
|
71
|
+
|
|
72
|
+
### Race (default)
|
|
73
|
+
All agents work independently. The first one that passes all tests wins. Others are discarded.
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
Agent 1: ████████████ PASS ← Winner!
|
|
77
|
+
Agent 2: ██████████░░ FAIL
|
|
78
|
+
Agent 3: ████████░░░░ (still running, cancelled)
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Consensus
|
|
82
|
+
All agents complete their work. An evaluator agent reviews all solutions and merges the best parts from each.
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
Agent 1: Auth middleware (best) → KEEP
|
|
86
|
+
Agent 2: Token refresh (best) → KEEP
|
|
87
|
+
Agent 3: Test coverage (best) → KEEP
|
|
88
|
+
Result: Combined best of all three
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## How It Works
|
|
92
|
+
|
|
93
|
+
1. **Git worktrees**: Each agent gets an isolated working directory on its own branch
|
|
94
|
+
2. **Parallel execution**: Agents run concurrently via tmux or background processes
|
|
95
|
+
3. **Isolation**: No agent can see or interfere with another's work
|
|
96
|
+
4. **Evaluation**: Tests + code quality scoring determine the winner
|
|
97
|
+
5. **Cleanup**: Worktrees and branches are removed after merge
|
|
98
|
+
|
|
99
|
+
## Usage
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
/multi-agent "Implement OAuth2 login" # 3 agents, race
|
|
103
|
+
/multi-agent "Build dashboard" --agents 5 # 5 agents
|
|
104
|
+
/multi-agent "Refactor auth module" --strategy consensus # Merge best parts
|
|
105
|
+
/multi-agent "Write API tests" --agents 2 --strategy race # 2 agents race
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## Use Cases
|
|
109
|
+
|
|
110
|
+
| Use Case | Why |
|
|
111
|
+
|----------|-----|
|
|
112
|
+
| Parallel feature development | 3 approaches, pick the best |
|
|
113
|
+
| A/B code generation | Compare different architectures |
|
|
114
|
+
| Multi-approach problem solving | Consensus merges best of each |
|
|
115
|
+
| Competitive coding | Race to the best solution |
|
|
116
|
+
| Explore trade-offs | See how different agents solve it |
|
|
117
|
+
|
|
118
|
+
## Session Management
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
# Monitor running agents (tmux)
|
|
122
|
+
tmux attach -t luna-multi-agent # View all agent sessions
|
|
123
|
+
tmux select-window -t agent-1 # Focus on agent 1
|
|
124
|
+
|
|
125
|
+
# Manual control
|
|
126
|
+
/multi-agent status # Check progress
|
|
127
|
+
/multi-agent cancel # Stop all agents
|
|
128
|
+
/multi-agent results # View comparison
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## Output Structure
|
|
132
|
+
|
|
133
|
+
```
|
|
134
|
+
.worktrees/
|
|
135
|
+
├── agent-1/ # Isolated worktree (cleaned up after merge)
|
|
136
|
+
├── agent-2/
|
|
137
|
+
└── agent-3/
|
|
138
|
+
|
|
139
|
+
multi-agent-results/
|
|
140
|
+
├── comparison.md # Side-by-side analysis
|
|
141
|
+
├── scores.json # Per-agent scores
|
|
142
|
+
│ {
|
|
143
|
+
│ "agents": [
|
|
144
|
+
│ { "id": 1, "tests_passed": 42, "coverage": "94%", "score": 0.92 },
|
|
145
|
+
│ { "id": 2, "tests_passed": 38, "coverage": "87%", "score": 0.81 },
|
|
146
|
+
│ { "id": 3, "tests_passed": 40, "coverage": "91%", "score": 0.88 }
|
|
147
|
+
│ ],
|
|
148
|
+
│ "winner": 1,
|
|
149
|
+
│ "strategy": "race"
|
|
150
|
+
│ }
|
|
151
|
+
└── diffs/
|
|
152
|
+
├── agent-1.diff # Each agent's changes
|
|
153
|
+
├── agent-2.diff
|
|
154
|
+
└── agent-3.diff
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
## In Pipes
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
/pipe multi-agent "build feature" >> test >> ship
|
|
161
|
+
/pipe idea "my app" >> multi-agent "implement" --agents 5 >> rev >> ship
|
|
162
|
+
/pipe multi-agent "fix bug #42" --strategy consensus >> test >> pr
|
|
163
|
+
/pipe plan >> multi-agent "implement phase 1" >> flaky "npm test" >> ship
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
## Reference
|
|
167
|
+
|
|
168
|
+
- Inspired by: https://github.com/njbrake/agent-of-empires
|
|
169
|
+
- Git worktrees: `git worktree add <path> -b <branch>`
|
|
170
|
+
- tmux: Session management for parallel monitoring
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ll-native
|
|
3
|
+
displayName: Luna Native
|
|
4
|
+
description: Generate native mobile (iOS/Android) or desktop (macOS/Windows/Linux) apps from web code or description
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: creation
|
|
7
|
+
agent: luna-design-architect
|
|
8
|
+
parameters:
|
|
9
|
+
- name: source
|
|
10
|
+
type: string
|
|
11
|
+
description: Web app path, URL, or plain English description
|
|
12
|
+
required: true
|
|
13
|
+
prompt: true
|
|
14
|
+
- name: platform
|
|
15
|
+
type: string
|
|
16
|
+
description: "Platform: ios, android, macos, windows, linux, all"
|
|
17
|
+
required: true
|
|
18
|
+
prompt: true
|
|
19
|
+
- name: framework
|
|
20
|
+
type: string
|
|
21
|
+
description: "Framework: react-native (default), expo, flutter, swift-ui, kotlin-compose, electron, tauri"
|
|
22
|
+
required: false
|
|
23
|
+
default: react-native
|
|
24
|
+
mcp_servers:
|
|
25
|
+
- zai-mcp-server
|
|
26
|
+
- playwright
|
|
27
|
+
- fetch
|
|
28
|
+
- sequential-thinking
|
|
29
|
+
- ruflo
|
|
30
|
+
- memory
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
# /native — Web to Native in One Command
|
|
34
|
+
|
|
35
|
+
Transform your web app into a native mobile or desktop experience. Or describe what you want and Luna builds it from scratch.
|
|
36
|
+
|
|
37
|
+
## From Web to Native
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
/native ./my-next-app --platform ios --framework expo
|
|
41
|
+
│
|
|
42
|
+
▼
|
|
43
|
+
ANALYZE web app
|
|
44
|
+
├── Routes → Screens
|
|
45
|
+
├── Components → Native equivalents
|
|
46
|
+
├── State management → preserved
|
|
47
|
+
├── API calls → shared service layer
|
|
48
|
+
├── Auth flow → native auth (FaceID, biometrics)
|
|
49
|
+
└── Design → platform-native UI patterns
|
|
50
|
+
│
|
|
51
|
+
▼
|
|
52
|
+
TRANSFORM
|
|
53
|
+
├── React components → React Native components
|
|
54
|
+
├── CSS/Tailwind → StyleSheet / NativeWind
|
|
55
|
+
├── Next.js router → React Navigation
|
|
56
|
+
├── Web storage → AsyncStorage / SecureStore
|
|
57
|
+
├── Web push → Push notifications (APNs/FCM)
|
|
58
|
+
└── Web camera/GPS → native APIs
|
|
59
|
+
│
|
|
60
|
+
▼
|
|
61
|
+
ENHANCE for native
|
|
62
|
+
├── Haptic feedback on interactions
|
|
63
|
+
├── Native gestures (swipe, long press, pinch)
|
|
64
|
+
├── Offline mode with local cache
|
|
65
|
+
├── App icon and splash screen
|
|
66
|
+
├── Deep linking configuration
|
|
67
|
+
└── Platform-specific UX (iOS vs Android)
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Desktop Apps
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
/native ./web-app --platform macos --framework tauri # Lightweight native wrapper
|
|
74
|
+
/native ./web-app --platform all --framework electron # Cross-platform desktop
|
|
75
|
+
/native "A Notion-like editor for local markdown files" --platform macos --framework swift-ui
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Mobile Apps
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
/native ./dashboard --platform ios --framework expo # iOS from web dashboard
|
|
82
|
+
/native ./dashboard --platform android # Android
|
|
83
|
+
/native "Fitness tracker with Apple Watch" --platform ios --framework swift-ui
|
|
84
|
+
/native "Delivery driver app with GPS tracking" --platform all --framework flutter
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## In Pipes
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
/pipe native ./web-app ios >> hig >> test >> launch "App Store"
|
|
91
|
+
/pipe clone https://app.com >> native ios >> brand >> test >> ship
|
|
92
|
+
/pipe idea "my app" >> api >> go *5 >> native all >> test >> launch
|
|
93
|
+
```
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ll-nexa
|
|
3
|
+
displayName: Luna Nexa AI
|
|
4
|
+
description: Nexa-powered semantic code analysis — AI review, bug detection, architecture recommendations
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: ai
|
|
7
|
+
agent: luna-rag-enhanced
|
|
8
|
+
parameters:
|
|
9
|
+
- name: action
|
|
10
|
+
type: string
|
|
11
|
+
description: Action (review, bugs, explain, recommend, chat, debt)
|
|
12
|
+
required: true
|
|
13
|
+
prompt: true
|
|
14
|
+
- name: target
|
|
15
|
+
type: string
|
|
16
|
+
description: File path, directory, or question
|
|
17
|
+
required: true
|
|
18
|
+
prompt: true
|
|
19
|
+
workflow:
|
|
20
|
+
- connect_nexa_rag_server
|
|
21
|
+
- index_codebase_embeddings
|
|
22
|
+
- execute_ai_action
|
|
23
|
+
- generate_nexa_report
|
|
24
|
+
output:
|
|
25
|
+
- .luna/{current-project}/nexa-report.md
|
|
26
|
+
prerequisites: []
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
# Luna Nexa AI
|
|
30
|
+
|
|
31
|
+
Semantic code intelligence powered by Nexa embeddings + ChromaDB + LangChain.
|
|
32
|
+
|
|
33
|
+
## What This Command Does
|
|
34
|
+
|
|
35
|
+
Connects to the Nexa RAG MCP server for AI-powered code analysis using vector embeddings and LangChain chains.
|
|
36
|
+
|
|
37
|
+
## Actions
|
|
38
|
+
|
|
39
|
+
| Action | What It Does |
|
|
40
|
+
|--------|-------------|
|
|
41
|
+
| `review` | AI code review with semantic understanding of patterns |
|
|
42
|
+
| `bugs` | Bug detection — finds potential issues across codebase |
|
|
43
|
+
| `explain` | Explain code in natural language with context |
|
|
44
|
+
| `recommend` | Architecture recommendations based on codebase analysis |
|
|
45
|
+
| `chat` | Conversational codebase Q&A with memory |
|
|
46
|
+
| `debt` | Tech debt detection and prioritized cleanup plan |
|
|
47
|
+
| `test-gen` | Auto-generate tests from code analysis |
|
|
48
|
+
| `doc-gen` | Auto-generate documentation from code |
|
|
49
|
+
|
|
50
|
+
## Usage
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
/nexa review src/services/ # AI code review
|
|
54
|
+
/nexa bugs src/ # Find potential bugs
|
|
55
|
+
/nexa explain src/auth/middleware.ts # Explain code
|
|
56
|
+
/nexa recommend # Architecture recommendations
|
|
57
|
+
/nexa chat "how does billing work?" # Codebase Q&A
|
|
58
|
+
/nexa debt # Tech debt analysis
|
|
59
|
+
/nexa test-gen src/services/auth.ts # Generate tests
|
|
60
|
+
/nexa doc-gen src/routes/ # Generate docs
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Architecture
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
Your code -> Nexa Embeddings (bge-base-en-v1.5)
|
|
67
|
+
-> ChromaDB vector store
|
|
68
|
+
-> LangChain semantic search
|
|
69
|
+
-> AI analysis chain
|
|
70
|
+
-> Structured report
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Features
|
|
74
|
+
|
|
75
|
+
- Semantic code search (not just text matching)
|
|
76
|
+
- Cross-file relationship understanding
|
|
77
|
+
- Conversation memory for follow-up questions
|
|
78
|
+
- Supports 15+ AI tools via MCP protocol
|
|
79
|
+
- Indexes up to 1,000 files (free) / unlimited (pro)
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ll-onboarding
|
|
3
|
+
displayName: Luna Onboarding Guide Builder
|
|
4
|
+
description: Generate an onboarding guide — setup steps, first-use walkthrough, progressive disclosure, role-based paths
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: documentation
|
|
7
|
+
agent: luna-onboarding-builder
|
|
8
|
+
parameters:
|
|
9
|
+
- name: scope
|
|
10
|
+
type: string
|
|
11
|
+
description: Project or audience scope for onboarding guide
|
|
12
|
+
required: true
|
|
13
|
+
prompt: true
|
|
14
|
+
workflow:
|
|
15
|
+
- analyse_setup_requirements
|
|
16
|
+
- trace_first_use_experience
|
|
17
|
+
- define_progressive_disclosure_path
|
|
18
|
+
- identify_common_gotchas
|
|
19
|
+
- generate_onboarding_document
|
|
20
|
+
output:
|
|
21
|
+
- .luna/{current-project}/onboarding.md
|
|
22
|
+
prerequisites:
|
|
23
|
+
- source_code
|
|
24
|
+
- .luna/{current-project}/requirements.md (optional)
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
# Luna Onboarding Guide Builder
|
|
28
|
+
|
|
29
|
+
Generates a comprehensive onboarding guide from your codebase covering setup, first-use walkthrough, feature discovery, and role-based paths.
|
|
30
|
+
|
|
31
|
+
## What This Command Does
|
|
32
|
+
|
|
33
|
+
This command analyses your project's installation requirements, initial configuration, key features, and common pitfalls, then produces role-based onboarding guides with step-by-step instructions.
|
|
34
|
+
|
|
35
|
+
## Prerequisites
|
|
36
|
+
|
|
37
|
+
Requires in your current project:
|
|
38
|
+
- Source code
|
|
39
|
+
|
|
40
|
+
Optional for richer output:
|
|
41
|
+
- `.luna/{current-project}/requirements.md`
|
|
42
|
+
- `.luna/{current-project}/design.md`
|
|
43
|
+
|
|
44
|
+
## Usage Instructions
|
|
45
|
+
|
|
46
|
+
When you run this command, you'll be prompted for the scope:
|
|
47
|
+
- Press **ENTER** for full-project onboarding
|
|
48
|
+
- Type **developer** / **admin** / **user** for role-specific guides
|
|
49
|
+
|
|
50
|
+
## Execution Steps
|
|
51
|
+
|
|
52
|
+
1. **Setup Analysis**: Identifies tools, env vars, dependencies, and services needed
|
|
53
|
+
2. **First-Use Trace**: Maps the initial user experience step-by-step
|
|
54
|
+
3. **Progressive Disclosure**: Defines feature discovery order by importance
|
|
55
|
+
4. **Gotcha Detection**: Finds common first-time mistakes from the codebase
|
|
56
|
+
5. **Guide Generation**: Produces `onboarding.md` with checklists and paths
|
|
57
|
+
|
|
58
|
+
## Output Files
|
|
59
|
+
|
|
60
|
+
Creates in your current project:
|
|
61
|
+
- `.luna/{current-project}/onboarding.md`
|
|
62
|
+
|
|
63
|
+
Includes:
|
|
64
|
+
- Quick Start Guide (zero-to-running)
|
|
65
|
+
- Environment setup checklist
|
|
66
|
+
- First-use walkthrough with screenshot placeholders
|
|
67
|
+
- Feature discovery path (progressive disclosure)
|
|
68
|
+
- Common gotchas and solutions
|
|
69
|
+
- Role-based guides (developer / admin / end-user)
|
|
70
|
+
- Interactive onboarding checklist
|
|
71
|
+
|
|
72
|
+
## Next Steps in Workflow
|
|
73
|
+
|
|
74
|
+
After onboarding guide:
|
|
75
|
+
```
|
|
76
|
+
/luna-docs # Full project documentation
|
|
77
|
+
/luna-flowdocs # Detailed flow documentation
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Tips
|
|
81
|
+
|
|
82
|
+
- Onboarding guides reduce support burden and improve adoption
|
|
83
|
+
- Include the guide in your repo's CONTRIBUTING.md or docs/ directory
|
|
84
|
+
- Test the guide with a fresh environment to verify completeness
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ll-openhands
|
|
3
|
+
displayName: Luna OpenHands
|
|
4
|
+
description: Autonomous AI coding agent — delegate complex tasks to OpenHands for autonomous implementation
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: ai
|
|
7
|
+
agent: luna-task-executor
|
|
8
|
+
parameters:
|
|
9
|
+
- name: task
|
|
10
|
+
type: string
|
|
11
|
+
description: Task description for OpenHands to execute autonomously
|
|
12
|
+
required: true
|
|
13
|
+
prompt: true
|
|
14
|
+
- name: mode
|
|
15
|
+
type: string
|
|
16
|
+
description: Execution mode (autonomous, supervised, plan-only)
|
|
17
|
+
required: false
|
|
18
|
+
prompt: true
|
|
19
|
+
workflow:
|
|
20
|
+
- analyze_task_complexity
|
|
21
|
+
- prepare_openhands_context
|
|
22
|
+
- launch_openhands_agent
|
|
23
|
+
- monitor_execution
|
|
24
|
+
- review_changes
|
|
25
|
+
- validate_output
|
|
26
|
+
- generate_openhands_report
|
|
27
|
+
output:
|
|
28
|
+
- .luna/{current-project}/openhands-report.md
|
|
29
|
+
prerequisites: []
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
# Luna OpenHands
|
|
33
|
+
|
|
34
|
+
Delegate complex coding tasks to the OpenHands autonomous AI agent.
|
|
35
|
+
|
|
36
|
+
## What This Command Does
|
|
37
|
+
|
|
38
|
+
1. **Analyze** — evaluates task complexity and prepares context
|
|
39
|
+
2. **Context** — sends relevant codebase context to OpenHands
|
|
40
|
+
3. **Launch** — starts OpenHands agent via REST API
|
|
41
|
+
4. **Monitor** — streams execution progress via WebSocket/SSE
|
|
42
|
+
5. **Review** — validates generated code against project rules
|
|
43
|
+
6. **Validate** — runs tests and lint on OpenHands output
|
|
44
|
+
7. **Report** — documents what was changed and why
|
|
45
|
+
|
|
46
|
+
## Execution Modes
|
|
47
|
+
|
|
48
|
+
| Mode | Behavior |
|
|
49
|
+
|------|----------|
|
|
50
|
+
| `autonomous` | OpenHands works independently, reports when done |
|
|
51
|
+
| `supervised` | Pauses at each step for your approval |
|
|
52
|
+
| `plan-only` | Returns execution plan without implementing |
|
|
53
|
+
|
|
54
|
+
## Usage
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
/openhands "implement user settings page with profile edit"
|
|
58
|
+
/openhands "refactor the billing service to use LemonSqueezy webhooks" supervised
|
|
59
|
+
/openhands "add WebSocket support to the run logs endpoint" plan-only
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Integration Points
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
Luna CLI -> OpenHands REST API -> Agent Execution
|
|
66
|
+
↓ ↓
|
|
67
|
+
RAG context (Nexa) Code generation
|
|
68
|
+
↓ ↓
|
|
69
|
+
Project rules Validation & tests
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Safety
|
|
73
|
+
|
|
74
|
+
- All OpenHands output is validated against project rules
|
|
75
|
+
- 100-line file cap enforced on generated code
|
|
76
|
+
- Tests must pass before accepting changes
|
|
77
|
+
- Code review runs automatically on output
|
|
78
|
+
- Supervised mode for high-risk changes
|