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,280 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ll-persona
|
|
3
|
+
displayName: Luna Persona
|
|
4
|
+
description: Generate detailed user personas from your app's code, data model, and user flows — with AI avatars, journey maps, and behavioral profiles
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: strategy
|
|
7
|
+
agent: luna-requirements-analyzer
|
|
8
|
+
parameters:
|
|
9
|
+
- name: action
|
|
10
|
+
type: string
|
|
11
|
+
description: "Action: generate (create personas), analyze (profile real users), journey (map user journeys), interview (simulate user interviews), segment (cluster users), empathy (empathy maps)"
|
|
12
|
+
required: true
|
|
13
|
+
prompt: true
|
|
14
|
+
- name: source
|
|
15
|
+
type: string
|
|
16
|
+
description: "Source: auto (from codebase), data (from analytics), manual (you describe), url (analyze competitor users)"
|
|
17
|
+
required: false
|
|
18
|
+
default: auto
|
|
19
|
+
mcp_servers:
|
|
20
|
+
- sequential-thinking
|
|
21
|
+
- memory
|
|
22
|
+
- fetch
|
|
23
|
+
- playwright
|
|
24
|
+
- zai-mcp-server
|
|
25
|
+
- stability-ai
|
|
26
|
+
- git
|
|
27
|
+
- elevenlabs
|
|
28
|
+
- notebooklm
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
# /persona — Know Your Users Before They Know Themselves
|
|
32
|
+
|
|
33
|
+
Generate rich, data-driven user personas from your actual codebase. Luna reads your routes, features, auth flows, billing tiers, and data model to create personas that are grounded in what your product actually does — not marketing fiction.
|
|
34
|
+
|
|
35
|
+
## What Luna Analyzes
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
/persona generate
|
|
39
|
+
│
|
|
40
|
+
▼
|
|
41
|
+
READ YOUR CODEBASE
|
|
42
|
+
├── Auth system → who can sign up? (email, OAuth, SSO)
|
|
43
|
+
├── Billing tiers → what plan levels exist?
|
|
44
|
+
├── RBAC/permissions → what roles exist? (admin, member, viewer)
|
|
45
|
+
├── Features per tier → what's gated behind paid plans?
|
|
46
|
+
├── API scopes → what integrations exist?
|
|
47
|
+
├── Onboarding flow → what's the first-run experience?
|
|
48
|
+
├── Dashboard layout → what metrics do users see?
|
|
49
|
+
├── Settings page → what can users customize?
|
|
50
|
+
├── Mobile app → is there a mobile experience?
|
|
51
|
+
└── Data model → what entities do users create/manage?
|
|
52
|
+
│
|
|
53
|
+
▼
|
|
54
|
+
GENERATE PERSONAS (3-5 primary)
|
|
55
|
+
├── Each persona includes:
|
|
56
|
+
│ ├── Name, age, role, company size
|
|
57
|
+
│ ├── AI-generated avatar photo (Stability AI)
|
|
58
|
+
│ ├── Goals and motivations
|
|
59
|
+
│ ├── Pain points and frustrations
|
|
60
|
+
│ ├── Technical proficiency level
|
|
61
|
+
│ ├── Features they use most
|
|
62
|
+
│ ├── Billing tier they're on
|
|
63
|
+
│ ├── Devices and platforms
|
|
64
|
+
│ ├── Key workflows (mapped to your actual routes)
|
|
65
|
+
│ ├── Objections before purchasing
|
|
66
|
+
│ ├── What makes them churn
|
|
67
|
+
│ └── Quotes (in their voice)
|
|
68
|
+
│
|
|
69
|
+
└── Persona types derived from YOUR product:
|
|
70
|
+
├── Free tier explorer
|
|
71
|
+
├── Pro power user
|
|
72
|
+
├── Team admin/manager
|
|
73
|
+
├── Enterprise decision maker
|
|
74
|
+
├── Developer/API consumer
|
|
75
|
+
├── Non-technical end user
|
|
76
|
+
└── (custom based on your roles/tiers)
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Actions
|
|
80
|
+
|
|
81
|
+
### /persona generate
|
|
82
|
+
```
|
|
83
|
+
Creates 3-5 detailed personas:
|
|
84
|
+
|
|
85
|
+
┌──────────────────────────────────────────┐
|
|
86
|
+
│ 👤 PERSONA 1: "Alex Chen" │
|
|
87
|
+
│ Role: Senior Full-Stack Developer │
|
|
88
|
+
│ Company: Series A startup (25 people) │
|
|
89
|
+
│ Plan: Pro ($29/mo) │
|
|
90
|
+
│ Tech: React, Node, AWS → migrating to CF│
|
|
91
|
+
│ │
|
|
92
|
+
│ GOALS │
|
|
93
|
+
│ • Deploy AI agents without infra hassle │
|
|
94
|
+
│ • Automate code review and testing │
|
|
95
|
+
│ • Ship faster with small team │
|
|
96
|
+
│ │
|
|
97
|
+
│ PAIN POINTS │
|
|
98
|
+
│ • Current CI/CD too slow │
|
|
99
|
+
│ • Manual deployment process error-prone │
|
|
100
|
+
│ • Can't afford dedicated DevOps hire │
|
|
101
|
+
│ │
|
|
102
|
+
│ KEY WORKFLOWS │
|
|
103
|
+
│ • /dashboard → /agents → /agents/studio │
|
|
104
|
+
│ • /dashboard/chains → /chains/builder │
|
|
105
|
+
│ • /dashboard/api-keys (uses API daily) │
|
|
106
|
+
│ │
|
|
107
|
+
│ CHURN RISK │
|
|
108
|
+
│ • If agent execution is unreliable │
|
|
109
|
+
│ • If pricing increases without warning │
|
|
110
|
+
│ • If competitors offer better CLI │
|
|
111
|
+
│ │
|
|
112
|
+
│ QUOTE │
|
|
113
|
+
│ "I need something that just works. I │
|
|
114
|
+
│ don't have time to debug my tools." │
|
|
115
|
+
└──────────────────────────────────────────┘
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### /persona analyze
|
|
119
|
+
```
|
|
120
|
+
Profile real users from analytics/data:
|
|
121
|
+
├── Cluster users by behavior patterns
|
|
122
|
+
├── Identify power users vs casual users
|
|
123
|
+
├── Map feature adoption by segment
|
|
124
|
+
├── Detect churn signals per persona
|
|
125
|
+
├── Revenue concentration by persona type
|
|
126
|
+
├── Support ticket patterns by persona
|
|
127
|
+
└── Recommends product changes per segment
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### /persona journey
|
|
131
|
+
```
|
|
132
|
+
User Journey Map (per persona):
|
|
133
|
+
├── AWARENESS: How they discover your product
|
|
134
|
+
│ ├── Search terms they'd use
|
|
135
|
+
│ ├── Communities they're in
|
|
136
|
+
│ └── Content that would attract them
|
|
137
|
+
│
|
|
138
|
+
├── CONSIDERATION: What they evaluate
|
|
139
|
+
│ ├── Features they compare
|
|
140
|
+
│ ├── Competitors they check
|
|
141
|
+
│ ├── Pricing sensitivity
|
|
142
|
+
│ └── Questions they'd ask
|
|
143
|
+
│
|
|
144
|
+
├── ONBOARDING: First 10 minutes
|
|
145
|
+
│ ├── Signup friction points
|
|
146
|
+
│ ├── Time to first value
|
|
147
|
+
│ ├── "Aha moment" trigger
|
|
148
|
+
│ └── Drop-off risk points
|
|
149
|
+
│
|
|
150
|
+
├── ACTIVATION: First week
|
|
151
|
+
│ ├── Key actions that predict retention
|
|
152
|
+
│ ├── Features they try first
|
|
153
|
+
│ ├── Support needs
|
|
154
|
+
│ └── Upgrade triggers
|
|
155
|
+
│
|
|
156
|
+
├── RETENTION: Ongoing usage
|
|
157
|
+
│ ├── Daily/weekly workflows
|
|
158
|
+
│ ├── Feature depth over time
|
|
159
|
+
│ ├── Team expansion triggers
|
|
160
|
+
│ └── Advocacy signals
|
|
161
|
+
│
|
|
162
|
+
└── EXPANSION: Growth
|
|
163
|
+
├── Upgrade triggers
|
|
164
|
+
├── Team invite patterns
|
|
165
|
+
├── API integration depth
|
|
166
|
+
└── Referral likelihood
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
### /persona interview
|
|
170
|
+
```
|
|
171
|
+
Simulate user interviews with AI:
|
|
172
|
+
├── Luna role-plays AS each persona
|
|
173
|
+
├── You ask questions, persona responds in character
|
|
174
|
+
├── Grounded in your actual product features
|
|
175
|
+
├── Tests messaging, pricing, feature ideas
|
|
176
|
+
├── Voice mode available (ElevenLabs — each persona has unique voice)
|
|
177
|
+
├── Transcript saved for reference
|
|
178
|
+
└── Insights extracted and summarized
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### /persona segment
|
|
182
|
+
```
|
|
183
|
+
User Segmentation Analysis:
|
|
184
|
+
├── Behavioral clusters (usage patterns)
|
|
185
|
+
├── Value-based segments (revenue tiers)
|
|
186
|
+
├── Engagement segments (active/at-risk/churned)
|
|
187
|
+
├── Feature adoption segments
|
|
188
|
+
├── Platform segments (web/mobile/API/CLI)
|
|
189
|
+
├── Growth potential scoring
|
|
190
|
+
└── Actionable recommendations per segment
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### /persona empathy
|
|
194
|
+
```
|
|
195
|
+
Empathy Map (per persona):
|
|
196
|
+
┌────────────────┬────────────────┐
|
|
197
|
+
│ THINKS │ FEELS │
|
|
198
|
+
│ "Is this worth │ Excited about │
|
|
199
|
+
│ the price?" │ AI automation │
|
|
200
|
+
│ "Can my team │ Anxious about │
|
|
201
|
+
│ adopt this?" │ vendor lock-in │
|
|
202
|
+
├────────────────┼────────────────┤
|
|
203
|
+
│ SAYS │ DOES │
|
|
204
|
+
│ "We need to │ Compares 3 │
|
|
205
|
+
│ ship faster" │ tools before │
|
|
206
|
+
│ "Show me ROI" │ committing │
|
|
207
|
+
│ │ Trials free │
|
|
208
|
+
│ │ tier first │
|
|
209
|
+
└────────────────┴────────────────┘
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
## Usage
|
|
213
|
+
|
|
214
|
+
```bash
|
|
215
|
+
/persona generate # Auto from codebase
|
|
216
|
+
/persona generate --source url https://competitor.com # Competitor's users
|
|
217
|
+
/persona analyze # Profile real users
|
|
218
|
+
/persona journey "Alex Chen" # Journey map for persona
|
|
219
|
+
/persona interview # Simulate user interviews
|
|
220
|
+
/persona segment # Cluster users
|
|
221
|
+
/persona empathy "Alex Chen" # Empathy map
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
## In Pipes
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
# Product development informed by personas
|
|
228
|
+
/pipe persona generate >> idea "solve their biggest pain" >> plan >> go *5
|
|
229
|
+
|
|
230
|
+
# Marketing targeted by persona
|
|
231
|
+
/pipe persona generate >> ghost blog "content for each persona" >> publish all
|
|
232
|
+
|
|
233
|
+
# Pricing validation
|
|
234
|
+
/pipe persona generate >> money >> persona interview "test pricing reactions"
|
|
235
|
+
|
|
236
|
+
# Full product strategy
|
|
237
|
+
/pipe compete "competitor.com" >> persona generate >> persona journey >> present "product strategy"
|
|
238
|
+
|
|
239
|
+
# Onboarding optimization
|
|
240
|
+
/pipe persona journey >> e2e-flow >> browser-test >> fix >> persona interview "test new onboarding"
|
|
241
|
+
|
|
242
|
+
# Voice of customer
|
|
243
|
+
/pipe persona interview >> voice podcast "user insights" >> publish notion
|
|
244
|
+
|
|
245
|
+
# Feature prioritization
|
|
246
|
+
/pipe persona segment >> persona empathy >> present "feature priorities" >> share team
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
## Output
|
|
250
|
+
|
|
251
|
+
```
|
|
252
|
+
.luna/{project}/personas/
|
|
253
|
+
personas.md # All personas in detail
|
|
254
|
+
avatars/ # AI-generated avatar images
|
|
255
|
+
persona-1.png
|
|
256
|
+
persona-2.png
|
|
257
|
+
journeys/ # Journey maps per persona
|
|
258
|
+
alex-chen-journey.md
|
|
259
|
+
sarah-kim-journey.md
|
|
260
|
+
segments/ # Segmentation analysis
|
|
261
|
+
segments.json
|
|
262
|
+
segment-recommendations.md
|
|
263
|
+
interviews/ # Simulated interview transcripts
|
|
264
|
+
alex-chen-interview.md
|
|
265
|
+
empathy-maps/ # Empathy maps
|
|
266
|
+
alex-chen-empathy.md
|
|
267
|
+
summary.md # Executive summary
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
## What Makes This Different
|
|
271
|
+
|
|
272
|
+
| Traditional Personas | Luna Personas |
|
|
273
|
+
|---------------------|---------------|
|
|
274
|
+
| Made up in a workshop | Generated from your actual code |
|
|
275
|
+
| Based on assumptions | Based on your data model, roles, tiers |
|
|
276
|
+
| Static document | Living — updates as your product evolves |
|
|
277
|
+
| Text-only | AI avatars, voice simulations, journey maps |
|
|
278
|
+
| Generic demographics | Mapped to your specific routes and features |
|
|
279
|
+
| Can't validate | Simulate interviews to test ideas |
|
|
280
|
+
| One-time exercise | `/persona generate` anytime product changes |
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ll-pipe
|
|
3
|
+
displayName: Luna Pipeline Runner
|
|
4
|
+
description: Luna's AI programming language — combine commands with operators, variables, conditions, loops, and workflows
|
|
5
|
+
version: 2.0.0
|
|
6
|
+
category: workflow
|
|
7
|
+
agent: luna-task-executor
|
|
8
|
+
parameters:
|
|
9
|
+
- name: pipeline
|
|
10
|
+
type: string
|
|
11
|
+
description: Pipeline expression or saved workflow name
|
|
12
|
+
required: true
|
|
13
|
+
prompt: true
|
|
14
|
+
workflow:
|
|
15
|
+
- parse_pipeline_expression
|
|
16
|
+
- resolve_variables_and_imports
|
|
17
|
+
- validate_commands
|
|
18
|
+
- execute_pipeline
|
|
19
|
+
- collect_results
|
|
20
|
+
- generate_pipeline_report
|
|
21
|
+
output:
|
|
22
|
+
- .luna/{current-project}/pipeline-report.md
|
|
23
|
+
prerequisites: []
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
# Luna Pipe — AI Programming Language
|
|
27
|
+
|
|
28
|
+
Compose Luna commands into powerful pipelines with variables, conditions, loops, workflows, and more.
|
|
29
|
+
|
|
30
|
+
**Every command in a pipe is a Luna command.**
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Operators
|
|
35
|
+
|
|
36
|
+
### Flow Control
|
|
37
|
+
|
|
38
|
+
| Operator | Meaning | Example |
|
|
39
|
+
|----------|---------|---------|
|
|
40
|
+
| `>>` | Sequential | `req >> des >> plan` |
|
|
41
|
+
| `~~` | Parallel | `rev ~~ test ~~ sec` |
|
|
42
|
+
| `( )` | Group | `(rev ~~ test) >> ship` |
|
|
43
|
+
| `?>>` | If success | `test ?>> ship` |
|
|
44
|
+
| `!>>` | If failure | `test !>> fix` |
|
|
45
|
+
|
|
46
|
+
### Loops
|
|
47
|
+
|
|
48
|
+
| Operator | Meaning | Example |
|
|
49
|
+
|----------|---------|---------|
|
|
50
|
+
| `*N` | Loop N times | `go *5` |
|
|
51
|
+
| `*N?` | Loop up to N, stop on success | `(fix >> test) *3?` |
|
|
52
|
+
| `*N!` | Loop up to N, stop on failure | `go *10!` |
|
|
53
|
+
| `*?` | Loop until success (max 10) | `(fix >> test) *?` |
|
|
54
|
+
|
|
55
|
+
### Hooks
|
|
56
|
+
|
|
57
|
+
| Operator | Meaning | Example |
|
|
58
|
+
|----------|---------|---------|
|
|
59
|
+
| `@before:CMD` | Run before each step | `@before:rules` |
|
|
60
|
+
| `@after:CMD` | Run after each step | `@after:test` |
|
|
61
|
+
| `@each:CMD` | Before + after each step | `@each:rev` |
|
|
62
|
+
|
|
63
|
+
### Variables
|
|
64
|
+
|
|
65
|
+
| Operator | Meaning | Example |
|
|
66
|
+
|----------|---------|---------|
|
|
67
|
+
| `$name = CMD` | Capture output into variable | `$report = rev` |
|
|
68
|
+
| `$name` | Use variable as input to next step | `fix $report` |
|
|
69
|
+
| `$CMD.field` | Access output field | `$test.coverage` |
|
|
70
|
+
|
|
71
|
+
### Conditionals
|
|
72
|
+
|
|
73
|
+
| Operator | Meaning | Example |
|
|
74
|
+
|----------|---------|---------|
|
|
75
|
+
| `if COND >> CMD` | Run if condition true | `if $test.coverage < 90 >> fix` |
|
|
76
|
+
| `else >> CMD` | Run if condition false | `else >> ship` |
|
|
77
|
+
| `match VAR` | Switch on value | `match $env >> staging: ... >> prod: ...` |
|
|
78
|
+
|
|
79
|
+
### Error Handling
|
|
80
|
+
|
|
81
|
+
| Operator | Meaning | Example |
|
|
82
|
+
|----------|---------|---------|
|
|
83
|
+
| `try (CMDS)` | Try block | `try (go >> test >> ship)` |
|
|
84
|
+
| `catch (CMDS)` | Run on error | `catch (rollback >> fix)` |
|
|
85
|
+
| `finally (CMDS)` | Always run | `finally (docs >> changelog)` |
|
|
86
|
+
|
|
87
|
+
### Assertions
|
|
88
|
+
|
|
89
|
+
| Operator | Meaning | Example |
|
|
90
|
+
|----------|---------|---------|
|
|
91
|
+
| `assert COND` | Fail pipeline if false | `assert $test.coverage >= 90` |
|
|
92
|
+
| `assert files.max_lines <= 100` | Check file constraints | `assert files.max_lines <= 100` |
|
|
93
|
+
|
|
94
|
+
### Approval Gates
|
|
95
|
+
|
|
96
|
+
| Operator | Meaning | Example |
|
|
97
|
+
|----------|---------|---------|
|
|
98
|
+
| `approve "MSG"` | Pause for user confirmation | `approve "Ship to prod?"` |
|
|
99
|
+
|
|
100
|
+
### Context Blocks
|
|
101
|
+
|
|
102
|
+
| Operator | Meaning | Example |
|
|
103
|
+
|----------|---------|---------|
|
|
104
|
+
| `with scope:NAME` | Set scope for block | `with scope:billing (go *3 >> test)` |
|
|
105
|
+
| `with model:NAME` | Set AI model for block | `with model:opus (nexa review)` |
|
|
106
|
+
|
|
107
|
+
### Multi-Repo
|
|
108
|
+
|
|
109
|
+
| Operator | Meaning | Example |
|
|
110
|
+
|----------|---------|---------|
|
|
111
|
+
| `in REPO (CMDS)` | Run in specific repo | `in lunaos-engine (test >> ship)` |
|
|
112
|
+
|
|
113
|
+
### Map/Reduce
|
|
114
|
+
|
|
115
|
+
| Operator | Meaning | Example |
|
|
116
|
+
|----------|---------|---------|
|
|
117
|
+
| `map [ITEMS] >> CMD` | Apply to each item | `map [auth, billing, teams] >> (go >> test)` |
|
|
118
|
+
| `reduce CMD` | Merge results | `reduce pr` |
|
|
119
|
+
|
|
120
|
+
### Watch & Events
|
|
121
|
+
|
|
122
|
+
| Operator | Meaning | Example |
|
|
123
|
+
|----------|---------|---------|
|
|
124
|
+
| `watch PATH >> CMD` | Run on file change | `watch src/ >> test` |
|
|
125
|
+
| `on EVENT >> CMD` | Run on event | `on git:push >> (rev ~~ test) ?>> ship` |
|
|
126
|
+
|
|
127
|
+
### Timing
|
|
128
|
+
|
|
129
|
+
| Operator | Meaning | Example |
|
|
130
|
+
|----------|---------|---------|
|
|
131
|
+
| `timeout Nm CMD` | Timeout after N minutes | `timeout 5m (nexa review)` |
|
|
132
|
+
| `retry N CMD` | Retry N times on failure | `retry 3 test` |
|
|
133
|
+
|
|
134
|
+
### Snapshots
|
|
135
|
+
|
|
136
|
+
| Operator | Meaning | Example |
|
|
137
|
+
|----------|---------|---------|
|
|
138
|
+
| `snapshot` | Checkpoint current state | `snapshot >> go *5` |
|
|
139
|
+
| `diff` | Show changes since snapshot | `diff >> rev >> pr` |
|
|
140
|
+
|
|
141
|
+
### Named Workflows
|
|
142
|
+
|
|
143
|
+
| Operator | Meaning | Example |
|
|
144
|
+
|----------|---------|---------|
|
|
145
|
+
| `def NAME = PIPE` | Define reusable workflow | `def qg = (rev ~~ test ~~ sec)` |
|
|
146
|
+
| `run NAME` | Execute saved workflow | `run qg ?>> ship` |
|
|
147
|
+
| `import NAME` | Load from .luna/pipelines/ | `import team-pipeline` |
|
|
148
|
+
|
|
149
|
+
### Logging
|
|
150
|
+
|
|
151
|
+
| Operator | Meaning | Example |
|
|
152
|
+
|----------|---------|---------|
|
|
153
|
+
| `log "MSG"` | Log message to report | `log "Starting deploy"` |
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
## Complete Examples
|
|
158
|
+
|
|
159
|
+
### Standard Dev Workflow
|
|
160
|
+
```
|
|
161
|
+
/pipe req >> des >> plan >> go *5 >> rev >> test >> ship
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
### Full Workflow with All Safety Nets
|
|
165
|
+
```
|
|
166
|
+
/pipe try (
|
|
167
|
+
req >> des >> plan >>
|
|
168
|
+
@before:rules @after:test go *5 >>
|
|
169
|
+
(rev ~~ sec ~~ a11y) >>
|
|
170
|
+
assert $test.coverage >= 90 >>
|
|
171
|
+
assert files.max_lines <= 100 >>
|
|
172
|
+
approve "Ship to production?" >>
|
|
173
|
+
ship >> watch
|
|
174
|
+
) catch (
|
|
175
|
+
rollback >> fix >> test
|
|
176
|
+
) finally (
|
|
177
|
+
docs >> changelog
|
|
178
|
+
)
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### Quality Gate with Variables
|
|
182
|
+
```
|
|
183
|
+
/pipe $result = (rev ~~ test ~~ sec) >>
|
|
184
|
+
if $result.pass >> ship >> docs
|
|
185
|
+
else >> fix >> test >> ship
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
### Named Workflows
|
|
189
|
+
```
|
|
190
|
+
/pipe def quality = (rev ~~ test ~~ sec ~~ a11y)
|
|
191
|
+
/pipe def safe-ship = quality ?>> approve "Ship?" >> ship !>> fix >> quality
|
|
192
|
+
|
|
193
|
+
/pipe go *5 >> run safe-ship >> docs >> changelog
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Multi-Repo Deploy
|
|
197
|
+
```
|
|
198
|
+
/pipe in lunaos-engine (test >> ship) ~~
|
|
199
|
+
in lunaos-dashboard (test >> ship) ~~
|
|
200
|
+
in lunaos-studio (test >> ship) >>
|
|
201
|
+
log "All services deployed"
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### Map Across Features
|
|
205
|
+
```
|
|
206
|
+
/pipe map [auth, billing, teams, workflows] >> (
|
|
207
|
+
with scope:$item (go >> test >> rev)
|
|
208
|
+
) >> reduce pr
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
### AI Autopilot with Assertions
|
|
212
|
+
```
|
|
213
|
+
/pipe search "auth patterns" >>
|
|
214
|
+
nexa review >>
|
|
215
|
+
lam "improve auth security" >>
|
|
216
|
+
test >>
|
|
217
|
+
assert $test.pass >>
|
|
218
|
+
assert $test.coverage >= 90 >>
|
|
219
|
+
rev >> pr
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### Watch Mode (Continuous)
|
|
223
|
+
```
|
|
224
|
+
/pipe watch src/**/*.ts >> test >> rev
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
### Event-Driven
|
|
228
|
+
```
|
|
229
|
+
/pipe on git:push >> (rev ~~ test ~~ sec) ?>> ship !>> fix >> test
|
|
230
|
+
/pipe on schedule:daily >> deps >> sec >> perf
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
### Retry with Timeout
|
|
234
|
+
```
|
|
235
|
+
/pipe timeout 10m (nexa review) >> retry 3 (test) >> ship
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
### Snapshot + Diff for Safe Refactoring
|
|
239
|
+
```
|
|
240
|
+
/pipe snapshot >> refactor *3 >> diff >> test >> rev >> pr
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
### Feature with Auto-Fix Loop
|
|
244
|
+
```
|
|
245
|
+
/pipe @before:rules feature "add billing page" >>
|
|
246
|
+
(rev ~~ test ~~ sec) ?>> pr
|
|
247
|
+
!>> (fix >> test) *3? >> pr
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
### Brand Launch Pipeline
|
|
251
|
+
```
|
|
252
|
+
/pipe brand >> auth >> hig >> a11y >>
|
|
253
|
+
test >> approve "Launch?" >>
|
|
254
|
+
ship >> docs >> changelog >>
|
|
255
|
+
log "Launched!"
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
---
|
|
259
|
+
|
|
260
|
+
## Available Luna Commands
|
|
261
|
+
|
|
262
|
+
**Workflow**: `req`, `des`, `plan`, `go`, `rev`, `test`, `ship`, `watch`, `retro`
|
|
263
|
+
**Autopilot**: `feature`, `parallel`, `fix`, `debug`, `refactor`, `pr`
|
|
264
|
+
**Quality**: `rules`, `perf`, `a11y`, `deps`, `mock`, `storybook`
|
|
265
|
+
**Code Gen**: `auth`, `brand`, `api-client`, `migrate`, `i18n`, `ci`, `changelog`
|
|
266
|
+
**DevOps**: `env`, `rollback`, `dock`, `cf`, `sec`
|
|
267
|
+
**AI**: `nexa`, `lam`, `oh`, `chain`, `vision`, `search`, `q`
|
|
268
|
+
**Tools**: `hig`, `ui`, `docs`, `cfg`
|
|
269
|
+
|
|
270
|
+
---
|
|
271
|
+
|
|
272
|
+
## Execution Rules
|
|
273
|
+
|
|
274
|
+
1. All commands in a pipe are Luna commands (shortcuts or full names)
|
|
275
|
+
2. `>>` sequential — next starts after previous completes
|
|
276
|
+
3. `~~` parallel — all start simultaneously
|
|
277
|
+
4. `()` groups — treated as single unit
|
|
278
|
+
5. `?>>` / `!>>` — branch on success/failure
|
|
279
|
+
6. `*N` loops — repeat N times with variants `*N?`, `*N!`, `*?`
|
|
280
|
+
7. `@before` / `@after` / `@each` — hooks run on every step
|
|
281
|
+
8. `$var` — capture and pass output between steps
|
|
282
|
+
9. `if/else/match` — branch on conditions or values
|
|
283
|
+
10. `try/catch/finally` — structured error handling
|
|
284
|
+
11. `assert` — fail pipeline if condition not met
|
|
285
|
+
12. `approve` — pause for human confirmation
|
|
286
|
+
13. `with` — set context (scope, model) for a block
|
|
287
|
+
14. `in` — target specific repo
|
|
288
|
+
15. `map/reduce` — apply pipeline to list, merge results
|
|
289
|
+
16. `watch/on` — reactive and event-driven execution
|
|
290
|
+
17. `timeout/retry` — timing controls
|
|
291
|
+
18. `snapshot/diff` — track changes across pipeline
|
|
292
|
+
19. `def/run/import` — named reusable workflows
|
|
293
|
+
20. `log` — pipeline logging
|
|
294
|
+
21. Scope inheritance — all steps share project context
|
|
295
|
+
22. Fail-fast by default — use `?>>` / `!>>` / `try` for control
|
|
296
|
+
23. Report generated at `.luna/{project}/pipeline-report.md`
|