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,100 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ll-launch
|
|
3
|
+
displayName: Luna Launch
|
|
4
|
+
description: Full product launch sequence — deploy, monitor, announce, track metrics, auto-rollback if issues
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: deployment
|
|
7
|
+
agent: luna-deployment
|
|
8
|
+
parameters:
|
|
9
|
+
- name: target
|
|
10
|
+
type: string
|
|
11
|
+
description: "Target: staging, production, preview"
|
|
12
|
+
required: true
|
|
13
|
+
prompt: true
|
|
14
|
+
- name: strategy
|
|
15
|
+
type: string
|
|
16
|
+
description: "Strategy: instant, canary (5%→25%→100%), blue-green, rolling"
|
|
17
|
+
required: false
|
|
18
|
+
default: canary
|
|
19
|
+
mcp_servers:
|
|
20
|
+
- cloudflare
|
|
21
|
+
- git
|
|
22
|
+
- playwright
|
|
23
|
+
- zai-mcp-server
|
|
24
|
+
- image-compare
|
|
25
|
+
- accessibility-scanner
|
|
26
|
+
- fetch
|
|
27
|
+
- memory
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
# /launch — Ship with Confidence
|
|
31
|
+
|
|
32
|
+
Not just deploy. A full launch sequence with visual verification, progressive rollout, real-time monitoring, and automatic rollback.
|
|
33
|
+
|
|
34
|
+
## Launch Sequence
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
/launch production --strategy canary
|
|
38
|
+
│
|
|
39
|
+
▼
|
|
40
|
+
┌─── PRE-FLIGHT ────────────────────────────────┐
|
|
41
|
+
│ git: verify clean branch, all tests pass │
|
|
42
|
+
│ playwright: full browser test suite │
|
|
43
|
+
│ accessibility-scanner: WCAG AA compliance │
|
|
44
|
+
│ image-compare: screenshot baseline captured │
|
|
45
|
+
│ fetch: verify all external dependencies up │
|
|
46
|
+
└────────────────────┬──────────────────────────┘
|
|
47
|
+
▼
|
|
48
|
+
┌─── DEPLOY 5% CANARY ─────────────────────────┐
|
|
49
|
+
│ cloudflare: deploy to edge, route 5% traffic │
|
|
50
|
+
│ wait 5 minutes │
|
|
51
|
+
│ fetch: hit health endpoints │
|
|
52
|
+
│ playwright: smoke test against canary URL │
|
|
53
|
+
│ zai-mcp: analyze canary screenshots vs baseline│
|
|
54
|
+
│ CHECK: error rate < 0.1%? latency < p99? │
|
|
55
|
+
│ ├── PASS → promote to 25% │
|
|
56
|
+
│ └── FAIL → auto-rollback, alert, report │
|
|
57
|
+
└────────────────────┬──────────────────────────┘
|
|
58
|
+
▼
|
|
59
|
+
┌─── DEPLOY 25% ────────────────────────────────┐
|
|
60
|
+
│ cloudflare: route 25% traffic │
|
|
61
|
+
│ wait 10 minutes │
|
|
62
|
+
│ Same verification as 5% step │
|
|
63
|
+
│ CHECK: all signals green? │
|
|
64
|
+
│ ├── PASS → promote to 100% │
|
|
65
|
+
│ └── FAIL → auto-rollback to previous version │
|
|
66
|
+
└────────────────────┬──────────────────────────┘
|
|
67
|
+
▼
|
|
68
|
+
┌─── FULL DEPLOY ───────────────────────────────┐
|
|
69
|
+
│ cloudflare: route 100% traffic │
|
|
70
|
+
│ playwright: full regression suite │
|
|
71
|
+
│ image-compare: diff vs pre-deploy baseline │
|
|
72
|
+
│ memory: store deployment record │
|
|
73
|
+
│ git: tag release │
|
|
74
|
+
└────────────────────┬──────────────────────────┘
|
|
75
|
+
▼
|
|
76
|
+
┌─── POST-LAUNCH ───────────────────────────────┐
|
|
77
|
+
│ Generate deployment report │
|
|
78
|
+
│ Store screenshots as new baseline │
|
|
79
|
+
│ Update changelog │
|
|
80
|
+
│ memory: persist launch metrics for next time │
|
|
81
|
+
└───────────────────────────────────────────────┘
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Usage
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
/launch staging # Instant deploy to staging
|
|
88
|
+
/launch production # Canary deploy to production
|
|
89
|
+
/launch production --strategy blue-green # Blue-green swap
|
|
90
|
+
/launch production --strategy rolling # Rolling update
|
|
91
|
+
/launch preview # Deploy preview branch
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## In Pipes
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
/pipe test >> rev >> sec >> launch production
|
|
98
|
+
/pipe go *5 >> (test ~~ browser-test ~~ a11y) >> launch staging >> approve "Ship to prod?" >> launch production
|
|
99
|
+
/pipe swarm "build feature" >> test >> launch staging >> visual-diff >> launch production
|
|
100
|
+
```
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ll-learn
|
|
3
|
+
displayName: Luna Learn
|
|
4
|
+
description: Self-learning memory — Luna gets smarter with every task, remembering patterns, preferences, and successful approaches
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: intelligence
|
|
7
|
+
agent: luna-task-executor
|
|
8
|
+
parameters:
|
|
9
|
+
- name: action
|
|
10
|
+
type: string
|
|
11
|
+
description: "Action: status (show what Luna knows), teach (add knowledge), forget (remove), export, import"
|
|
12
|
+
required: false
|
|
13
|
+
default: status
|
|
14
|
+
mcp_servers:
|
|
15
|
+
- memory
|
|
16
|
+
- ruflo
|
|
17
|
+
- sequential-thinking
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# /learn — Luna Gets Smarter Over Time
|
|
21
|
+
|
|
22
|
+
Every command you run teaches Luna. Successful patterns are stored, failures are analyzed, and your preferences are remembered. Luna evolves with you.
|
|
23
|
+
|
|
24
|
+
## The Learning Loop
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
You run a command → Luna executes → Outcome observed
|
|
28
|
+
│
|
|
29
|
+
┌─────────────────────┤
|
|
30
|
+
▼ ▼
|
|
31
|
+
SUCCESS FAILURE
|
|
32
|
+
│ │
|
|
33
|
+
▼ ▼
|
|
34
|
+
DISTILL pattern ANALYZE root cause
|
|
35
|
+
Store in memory Store anti-pattern
|
|
36
|
+
│ │
|
|
37
|
+
└───────────┬───────────┘
|
|
38
|
+
▼
|
|
39
|
+
MEMORY BANK
|
|
40
|
+
│
|
|
41
|
+
├── Your code style preferences
|
|
42
|
+
├── Your architecture patterns
|
|
43
|
+
├── Your test strategy
|
|
44
|
+
├── Your deploy workflow
|
|
45
|
+
├── Your review standards
|
|
46
|
+
├── Common bugs in your codebase
|
|
47
|
+
├── Successful fix patterns
|
|
48
|
+
└── Failed approaches to avoid
|
|
49
|
+
│
|
|
50
|
+
▼
|
|
51
|
+
NEXT COMMAND
|
|
52
|
+
Luna applies learned patterns
|
|
53
|
+
Avoids known failures
|
|
54
|
+
Matches your style
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## What Luna Learns
|
|
58
|
+
|
|
59
|
+
| Category | Examples |
|
|
60
|
+
|----------|---------|
|
|
61
|
+
| **Code Style** | You prefer functional over class components, named exports, barrel files |
|
|
62
|
+
| **Architecture** | You use Zustand over Redux, Hono over Express, Zod for validation |
|
|
63
|
+
| **Testing** | You write integration tests first, mock at boundaries, 90%+ coverage |
|
|
64
|
+
| **Review** | You care about bundle size, hate magic numbers, enforce 200-line limit |
|
|
65
|
+
| **Deploy** | You use canary deploys, always run visual QA before production |
|
|
66
|
+
| **Naming** | camelCase for functions, PascalCase for components, kebab-case for files |
|
|
67
|
+
| **Failures** | "Don't use SPA mode with serve for static sites" (learned from this session!) |
|
|
68
|
+
|
|
69
|
+
## Usage
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
/learn # Show what Luna knows about you
|
|
73
|
+
/learn status # Same — full knowledge dashboard
|
|
74
|
+
/learn teach "Always use Bun over npm for this project"
|
|
75
|
+
/learn teach "Our API uses snake_case, not camelCase"
|
|
76
|
+
/learn forget "old pattern about Redux"
|
|
77
|
+
/learn export # Export knowledge as JSON
|
|
78
|
+
/learn import ./team.json # Import team's shared knowledge
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## In Pipes
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
/pipe learn >> go *5 # Apply learned patterns then code
|
|
85
|
+
/pipe go *5 >> test >> learn # Code, test, then distill learnings
|
|
86
|
+
/pipe learn export >> share team # Share learnings with team
|
|
87
|
+
```
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ll-leverage
|
|
3
|
+
displayName: Luna Leverage Open Source
|
|
4
|
+
description: Scan open-source repos, extract reusable patterns/features, and generate integration plans for your project
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: analysis
|
|
7
|
+
agent: luna-task-executor
|
|
8
|
+
parameters:
|
|
9
|
+
- name: repos
|
|
10
|
+
type: string
|
|
11
|
+
description: "GitHub repo URLs (comma-separated) or 'user:username' to scan all repos"
|
|
12
|
+
required: true
|
|
13
|
+
prompt: true
|
|
14
|
+
- name: target
|
|
15
|
+
type: string
|
|
16
|
+
description: "Your project to integrate into (e.g., 'lunaos', 'coderailflow', or path)"
|
|
17
|
+
required: false
|
|
18
|
+
default: current
|
|
19
|
+
- name: depth
|
|
20
|
+
type: string
|
|
21
|
+
description: "Analysis depth: quick (README only), medium (+ key files), deep (full codebase)"
|
|
22
|
+
required: false
|
|
23
|
+
default: medium
|
|
24
|
+
prerequisites: []
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
# Luna Leverage Open Source
|
|
28
|
+
|
|
29
|
+
Scan any GitHub repo (or an entire user's repos), extract reusable features, patterns, and architecture decisions, then generate an integration plan for your project.
|
|
30
|
+
|
|
31
|
+
## What This Command Does
|
|
32
|
+
|
|
33
|
+
1. **Scan** — Fetches repo README, key source files, package.json, architecture
|
|
34
|
+
2. **Extract** — Identifies: features, tech stack, design patterns, APIs, unique innovations
|
|
35
|
+
3. **Compare** — Maps against your project's existing capabilities
|
|
36
|
+
4. **Gap Analysis** — Finds what the repo has that your project doesn't
|
|
37
|
+
5. **Integration Plan** — Generates specific code-level steps to adopt the best parts
|
|
38
|
+
6. **Reference Doc** — Creates a markdown reference sheet for team knowledge
|
|
39
|
+
|
|
40
|
+
## Usage
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
# Scan a single repo
|
|
44
|
+
/leverage https://github.com/ruvnet/ruflo --target lunaos
|
|
45
|
+
|
|
46
|
+
# Scan all repos from a user
|
|
47
|
+
/leverage user:ruvnet --target lunaos --depth quick
|
|
48
|
+
|
|
49
|
+
# Scan multiple repos
|
|
50
|
+
/leverage https://github.com/ruvnet/ruflo,https://github.com/ruvnet/RuVector --target lunaos
|
|
51
|
+
|
|
52
|
+
# Deep analysis with full codebase scan
|
|
53
|
+
/leverage https://github.com/elie222/inbox-zero --depth deep
|
|
54
|
+
|
|
55
|
+
# Just generate reference docs (no integration plan)
|
|
56
|
+
/leverage https://github.com/karpathy/nanoGPT --depth quick
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Output
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
.luna/{project}/leverage/
|
|
63
|
+
{repo-name}/
|
|
64
|
+
reference.md # What it is, features, stack, unique patterns
|
|
65
|
+
gap-analysis.md # What it has that you don't
|
|
66
|
+
integration-plan.md # Step-by-step adoption guide
|
|
67
|
+
key-files.md # Most important source files + summaries
|
|
68
|
+
summary.md # Cross-repo comparison matrix
|
|
69
|
+
adoption-roadmap.md # Prioritized plan across all scanned repos
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Reference Doc Format
|
|
73
|
+
|
|
74
|
+
For each scanned repo, generates:
|
|
75
|
+
|
|
76
|
+
```markdown
|
|
77
|
+
# {Repo Name}
|
|
78
|
+
**URL**: {url}
|
|
79
|
+
**Stars**: {count} | **Language**: {lang} | **License**: {license}
|
|
80
|
+
|
|
81
|
+
## What It Does
|
|
82
|
+
{2-3 sentence description}
|
|
83
|
+
|
|
84
|
+
## Key Features
|
|
85
|
+
- Feature 1: {description}
|
|
86
|
+
- Feature 2: {description}
|
|
87
|
+
|
|
88
|
+
## Tech Stack
|
|
89
|
+
| Layer | Technology |
|
|
90
|
+
|-------|-----------|
|
|
91
|
+
| ... | ... |
|
|
92
|
+
|
|
93
|
+
## Architecture Patterns Worth Adopting
|
|
94
|
+
1. {Pattern}: {why it's good, how to apply}
|
|
95
|
+
|
|
96
|
+
## Unique Innovations
|
|
97
|
+
- {Innovation}: {what makes it special}
|
|
98
|
+
|
|
99
|
+
## API / Integration Points
|
|
100
|
+
- {endpoint/SDK}: {how to call it}
|
|
101
|
+
|
|
102
|
+
## Relevance to {Your Project}
|
|
103
|
+
- Direct competitor: Yes/No
|
|
104
|
+
- Features to adopt: {list}
|
|
105
|
+
- Estimated integration effort: {hours}
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## How It Works
|
|
109
|
+
|
|
110
|
+
### Quick Scan
|
|
111
|
+
- Fetches README.md via GitHub API
|
|
112
|
+
- Extracts: description, features, stack, stars
|
|
113
|
+
- Generates reference doc only
|
|
114
|
+
|
|
115
|
+
### Medium Scan (default)
|
|
116
|
+
- Quick scan + reads key files (package.json, main entry, config)
|
|
117
|
+
- Identifies architecture patterns
|
|
118
|
+
- Generates gap analysis + integration plan
|
|
119
|
+
|
|
120
|
+
### Deep Scan
|
|
121
|
+
- Medium scan + clones repo to temp dir
|
|
122
|
+
- Analyzes full source tree (respects .gitignore)
|
|
123
|
+
- Maps every feature to your project's equivalent
|
|
124
|
+
- Generates code-level integration steps
|
|
125
|
+
|
|
126
|
+
## In Pipes
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
# Scan competitor, then integrate best features
|
|
130
|
+
/pipe leverage https://github.com/competitor/app >> fix
|
|
131
|
+
|
|
132
|
+
# Scan, plan, execute
|
|
133
|
+
/pipe leverage https://github.com/cool/project >> product-map >> go
|
|
134
|
+
|
|
135
|
+
# Research phase: scan multiple, then plan
|
|
136
|
+
/pipe leverage user:ruvnet --depth quick >> context-pack >> plan
|
|
137
|
+
```
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ll-local-llm
|
|
3
|
+
displayName: Luna Local LLM
|
|
4
|
+
description: Run AI agents locally using llamafile — zero cost, fully offline, OpenAI-compatible API
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: infrastructure
|
|
7
|
+
agent: luna-task-executor
|
|
8
|
+
parameters:
|
|
9
|
+
- name: action
|
|
10
|
+
type: string
|
|
11
|
+
description: "Action: start (launch llamafile server), stop (shut down), status (check running)"
|
|
12
|
+
required: true
|
|
13
|
+
prompt: true
|
|
14
|
+
- name: model
|
|
15
|
+
type: string
|
|
16
|
+
description: "Model to run (default: qwen3.5-0.8b)"
|
|
17
|
+
required: false
|
|
18
|
+
default: qwen3.5-0.8b
|
|
19
|
+
mcp_servers:
|
|
20
|
+
- memory
|
|
21
|
+
- git
|
|
22
|
+
prerequisites:
|
|
23
|
+
- name: llamafile
|
|
24
|
+
check: "which llamafile || ls ~/.local/bin/llamafile"
|
|
25
|
+
install: "curl -fLo llamafile https://github.com/mozilla-ai/llamafile/releases/latest/download/llamafile && chmod +x llamafile && mv llamafile ~/.local/bin/"
|
|
26
|
+
optional: false
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
# /local-llm — Zero-Cost Local AI with llamafile
|
|
30
|
+
|
|
31
|
+
Run AI agents entirely offline using llamafile. Downloads and runs a single binary that exposes an OpenAI-compatible API at `localhost:8080`. Use Luna CLI's `--local` flag to route all agent calls through llamafile instead of Claw Gateway.
|
|
32
|
+
|
|
33
|
+
## What It Does
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
/local-llm start
|
|
37
|
+
│
|
|
38
|
+
├── CHECK: llamafile binary available?
|
|
39
|
+
│ ├── YES → Continue
|
|
40
|
+
│ └── NO → Download from GitHub releases
|
|
41
|
+
│
|
|
42
|
+
├── DOWNLOAD MODEL (if not cached)
|
|
43
|
+
│ ├── qwen3.5-0.8b (default, 800 MB, fast)
|
|
44
|
+
│ ├── llama-3.1-8b (8 GB, balanced)
|
|
45
|
+
│ ├── mistral-7b (7 GB, general purpose)
|
|
46
|
+
│ └── codellama-13b (13 GB, code-focused)
|
|
47
|
+
│
|
|
48
|
+
├── START SERVER
|
|
49
|
+
│ ├── Launch llamafile on localhost:8080
|
|
50
|
+
│ ├── OpenAI-compatible /v1/chat/completions
|
|
51
|
+
│ ├── GPU auto-detection (Metal, CUDA, Vulkan)
|
|
52
|
+
│ └── Print status + connection URL
|
|
53
|
+
│
|
|
54
|
+
└── CONFIGURE LUNA
|
|
55
|
+
├── Set LUNA_LOCAL=true
|
|
56
|
+
├── Route --local flag to localhost:8080
|
|
57
|
+
└── All agents use local model
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## How It Works
|
|
61
|
+
|
|
62
|
+
1. **Single binary**: llamafile bundles model + runtime into one executable
|
|
63
|
+
2. **OpenAI-compatible**: Drop-in replacement for OpenAI API at localhost:8080
|
|
64
|
+
3. **GPU acceleration**: Auto-detects Metal (macOS), CUDA (Linux), Vulkan
|
|
65
|
+
4. **Luna integration**: `--local` flag on any Luna command routes through llamafile
|
|
66
|
+
5. **Model caching**: Downloaded models are cached in `~/.llamafile/models/`
|
|
67
|
+
|
|
68
|
+
## Available Models
|
|
69
|
+
|
|
70
|
+
| Model | Size | Speed | Best For |
|
|
71
|
+
|-------|------|-------|----------|
|
|
72
|
+
| qwen3.5-0.8b | 800 MB | Very fast | Quick tasks, offline dev |
|
|
73
|
+
| **gemma4:e2b** | **3 GB** | **Very fast** | **Edge, audio+vision, 128K ctx** |
|
|
74
|
+
| **gemma4:e4b** | **5 GB** | **Fast** | **Edge, audio+vision, 128K ctx** |
|
|
75
|
+
| mistral-7b | 7 GB | Fast | General purpose |
|
|
76
|
+
| llama-3.1-8b | 8 GB | Medium | Balanced quality |
|
|
77
|
+
| codellama-13b | 13 GB | Slower | Code generation |
|
|
78
|
+
| **gemma4:26b** | **15 GB** | **Fast (MoE)** | **Best open-source, 256K ctx, 3.8B active** |
|
|
79
|
+
| **gemma4:31b** | **18 GB** | **Medium** | **Highest quality open model, 256K ctx** |
|
|
80
|
+
|
|
81
|
+
## Usage
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
/local-llm start # Start with default model
|
|
85
|
+
/local-llm start --model llama-3.1-8b # Start with specific model
|
|
86
|
+
/local-llm status # Check if running
|
|
87
|
+
/local-llm stop # Shut down server
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Luna CLI Integration
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
luna run --local "Write unit tests for auth" # Uses llamafile
|
|
94
|
+
luna chain --local plan >> go >> test # Full pipeline offline
|
|
95
|
+
luna agent --local "Refactor this module" # Agent uses local LLM
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Use Cases
|
|
99
|
+
|
|
100
|
+
| Use Case | Why |
|
|
101
|
+
|----------|-----|
|
|
102
|
+
| Offline development | No internet required |
|
|
103
|
+
| Free tier | Zero API costs |
|
|
104
|
+
| Air-gapped environments | Security-sensitive work |
|
|
105
|
+
| Privacy | Code never leaves your machine |
|
|
106
|
+
| CI runners | No API key management |
|
|
107
|
+
|
|
108
|
+
## Output Structure
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
~/.llamafile/
|
|
112
|
+
├── bin/llamafile # Binary
|
|
113
|
+
├── models/ # Cached model files
|
|
114
|
+
│ ├── qwen3.5-0.8b.gguf
|
|
115
|
+
│ └── llama-3.1-8b.gguf
|
|
116
|
+
└── logs/ # Server logs
|
|
117
|
+
└── llamafile.log
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## In Pipes
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
/pipe local-llm start >> go *5 >> test >> local-llm stop # Offline sprint
|
|
124
|
+
/pipe local-llm start >> swarm "build feature" --agents 3 # Local swarm
|
|
125
|
+
/pipe local-llm status >> if $running >> go >> else >> local-llm start >> go
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Reference
|
|
129
|
+
|
|
130
|
+
- llamafile: https://github.com/mozilla-ai/llamafile
|
|
131
|
+
- Models: https://huggingface.co/models?library=gguf
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ll-ls-products
|
|
3
|
+
displayName: Luna LemonSqueezy Products
|
|
4
|
+
description: Scan project and generate an HTML page with LemonSqueezy product definitions — descriptions, pricing tiers, features, and AI image prompts for hero, icon, social card, thumbnail, and variant cards
|
|
5
|
+
version: 2.0.0
|
|
6
|
+
category: monetization
|
|
7
|
+
parameters:
|
|
8
|
+
- name: output_path
|
|
9
|
+
type: string
|
|
10
|
+
description: Where to save the HTML file
|
|
11
|
+
required: false
|
|
12
|
+
prompt: false
|
|
13
|
+
workflow:
|
|
14
|
+
- analyze_project
|
|
15
|
+
- define_products_and_tiers
|
|
16
|
+
- generate_image_prompts
|
|
17
|
+
- write_html_file
|
|
18
|
+
output:
|
|
19
|
+
- scripts/ls-product-descriptions.html (or custom path)
|
|
20
|
+
prerequisites: []
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# Luna LemonSqueezy Product Page Generator
|
|
24
|
+
|
|
25
|
+
Scan the current project, define products with pricing tiers, generate AI image prompts, and **write a complete HTML file** where every field is click-to-copy — ready to paste into LemonSqueezy.
|
|
26
|
+
|
|
27
|
+
## Step 1 — Analyze the Project
|
|
28
|
+
|
|
29
|
+
Read these files in the current project:
|
|
30
|
+
|
|
31
|
+
- `package.json` — name, description
|
|
32
|
+
- `README.md` — features, tagline, value prop
|
|
33
|
+
- `CLAUDE.md` — mission, target user, architecture
|
|
34
|
+
- Marketing / landing pages — hero copy, feature lists, brand colors
|
|
35
|
+
- Any existing pricing, billing config, or plan definitions
|
|
36
|
+
- Source structure — to identify capabilities worth gating by tier
|
|
37
|
+
|
|
38
|
+
Extract:
|
|
39
|
+
- **Product name** and short tagline
|
|
40
|
+
- **Selling description** (2-3 sentences)
|
|
41
|
+
- **Target segments**: solo dev, pro user, team, enterprise
|
|
42
|
+
- **Feature list** ranked by customer value
|
|
43
|
+
- **Gating dimensions**: API calls, seats, instances, storage, retention, support SLA
|
|
44
|
+
- **Brand accent color** (default violet #8b5cf6 if not found)
|
|
45
|
+
|
|
46
|
+
## Step 2 — Define Products and Tiers
|
|
47
|
+
|
|
48
|
+
For each product, create 2-4 pricing tiers:
|
|
49
|
+
|
|
50
|
+
| Field | Content |
|
|
51
|
+
|-------|---------|
|
|
52
|
+
| Variant Name | `{Product} {Tier}` e.g. "MyApp Pro" |
|
|
53
|
+
| Price | Monthly USD integer e.g. `29` |
|
|
54
|
+
| Description | 2-3 sentences: what's included, limits, support |
|
|
55
|
+
| Features | 6-10 checkmark bullets |
|
|
56
|
+
|
|
57
|
+
Pricing rules:
|
|
58
|
+
- 3 tiers is ideal, 2-4 acceptable
|
|
59
|
+
- ~3-4x price jump between tiers
|
|
60
|
+
- Middle tier marked "Most Popular"
|
|
61
|
+
- Each tier unlocks meaningful new capabilities
|
|
62
|
+
|
|
63
|
+
## Step 3 — Generate AI Image Prompts
|
|
64
|
+
|
|
65
|
+
Generate **6 prompts total**: 4 product-level + 1 per variant tier.
|
|
66
|
+
|
|
67
|
+
Every prompt uses the same layout: **left third = visual icon/mark, right two-thirds = product name + value prop + feature details** with clear typography hierarchy.
|
|
68
|
+
|
|
69
|
+
### Product-Level Prompts (4)
|
|
70
|
+
|
|
71
|
+
**Hero (1270x760)**
|
|
72
|
+
Left third: product icon/symbol with accent glow.
|
|
73
|
+
Right two-thirds: "[Product Name]" headline in large white bold, tagline in gray below, 3 small icon-label feature pairs in accent color, "Start Free" pill CTA at bottom right. Black bg (#0a0a0f). Apple-quality.
|
|
74
|
+
|
|
75
|
+
**App Icon (1024x1024)**
|
|
76
|
+
Upper half: product icon/symbol centered with accent glow.
|
|
77
|
+
Lower half: "[Product Name]" in white bold, thin accent line separating icon from text.
|
|
78
|
+
Black bg, rounded corners. Works at 32px. SF Symbol simplicity.
|
|
79
|
+
|
|
80
|
+
**Open Graph (1200x630)**
|
|
81
|
+
Left third: product icon/symbol with light beam fanning right, illuminating faint holographic UI outlines.
|
|
82
|
+
Right two-thirds: "[Product Name]" headline, tagline in gray, feature labels in accent.
|
|
83
|
+
Grid at 3% opacity. Cinematic, premium.
|
|
84
|
+
|
|
85
|
+
**LS Thumbnail (800x400)**
|
|
86
|
+
Left third: product icon/symbol with accent glow.
|
|
87
|
+
Right two-thirds: "[Product Name]" headline, tagline, feature labels.
|
|
88
|
+
Clean, Apple-inspired spacing.
|
|
89
|
+
|
|
90
|
+
### Variant Tier Prompts (1 per tier, 800x400)
|
|
91
|
+
|
|
92
|
+
Left third: tier-scaled icon (single for personal, with orbital ring for pro, 3 in triangle for team/enterprise). Accent glow.
|
|
93
|
+
Right two-thirds: small accent label "[Tier]" (+ "Most Popular" badge if middle), large "$X/mo" headline in white bold, primary limit in gray, feature details in dimmer gray.
|
|
94
|
+
|
|
95
|
+
## Step 4 — Write the HTML File
|
|
96
|
+
|
|
97
|
+
Write a single self-contained HTML file to output path (default: `scripts/ls-product-descriptions.html`). Create dirs if needed.
|
|
98
|
+
|
|
99
|
+
### Structure
|
|
100
|
+
|
|
101
|
+
```
|
|
102
|
+
body > .container
|
|
103
|
+
h1 "[Product] — LemonSqueezy Product Setup"
|
|
104
|
+
p.subtitle with link to app.lemonsqueezy.com/products/new
|
|
105
|
+
.instructions (how-to-use steps)
|
|
106
|
+
.product
|
|
107
|
+
.product-header (h2 name + badge)
|
|
108
|
+
.variant "Product Setup"
|
|
109
|
+
.field: Product Name (click-to-copy)
|
|
110
|
+
.field: Product Description (click-to-copy)
|
|
111
|
+
.ai-prompt-label + .ai-prompt: Hero Image (click-to-copy)
|
|
112
|
+
.ai-prompt-label + .ai-prompt: App Icon (click-to-copy)
|
|
113
|
+
.ai-prompt-label + .ai-prompt: Open Graph (click-to-copy)
|
|
114
|
+
.ai-prompt-label + .ai-prompt: LS Thumbnail (click-to-copy)
|
|
115
|
+
.variant (repeat per tier)
|
|
116
|
+
.field: Variant Name (click-to-copy)
|
|
117
|
+
.field: Price (click-to-copy) + "USD, Monthly" hint
|
|
118
|
+
.field: Variant Description (click-to-copy)
|
|
119
|
+
ul.features-list (checkmark items)
|
|
120
|
+
.ai-prompt-label + .ai-prompt: Variant card (click-to-copy)
|
|
121
|
+
script: copyThis()
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Styling
|
|
125
|
+
|
|
126
|
+
```css
|
|
127
|
+
body — #0a0a0a bg, #e5e5e5 text, system font, 40px padding
|
|
128
|
+
.container — max-width 900px, centered
|
|
129
|
+
.product — #222 border, 12px radius
|
|
130
|
+
.product-header — #141414 bg, #222 border-bottom
|
|
131
|
+
.field-value — #111 bg, #222 border, hover #444
|
|
132
|
+
.field-value.copied — #00E5C3 border + "Copied!" top-right label
|
|
133
|
+
.variant-price — #00E5C3 teal
|
|
134
|
+
.ai-prompt — #0d1117 bg, #1a2332 border, monospace font
|
|
135
|
+
.ai-prompt.copied — #00E5C3 border + "Copied!" label
|
|
136
|
+
.ai-prompt-label — uppercase, small, #666 text, above prompt
|
|
137
|
+
.features-list li::before — "✓ " in #2ECC7B
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### JavaScript
|
|
141
|
+
|
|
142
|
+
```javascript
|
|
143
|
+
function copyThis(el) {
|
|
144
|
+
navigator.clipboard.writeText(el.innerText).then(() => {
|
|
145
|
+
el.classList.add('copied');
|
|
146
|
+
setTimeout(() => el.classList.remove('copied'), 1500);
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
Every `.field-value` and `.ai-prompt` has `onclick="copyThis(this)"`.
|
|
152
|
+
|
|
153
|
+
## After Generation
|
|
154
|
+
|
|
155
|
+
Tell the user:
|
|
156
|
+
1. Open the HTML file in a browser
|
|
157
|
+
2. Go to [app.lemonsqueezy.com/products/new](https://app.lemonsqueezy.com/products/new)
|
|
158
|
+
3. Click any field to copy, paste into the LS form
|
|
159
|
+
4. Create product first with name + description, then add variant tiers
|
|
160
|
+
5. Use the AI image prompts to generate product images in any AI image tool
|