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,99 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ll-api
|
|
3
|
+
displayName: Luna API Generator
|
|
4
|
+
description: Generate a complete API from a description — routes, validation, auth, tests, docs, deployment config
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: creation
|
|
7
|
+
agent: luna-api-generator
|
|
8
|
+
parameters:
|
|
9
|
+
- name: spec
|
|
10
|
+
type: string
|
|
11
|
+
description: API description in plain English, or path to OpenAPI spec
|
|
12
|
+
required: true
|
|
13
|
+
prompt: true
|
|
14
|
+
- name: framework
|
|
15
|
+
type: string
|
|
16
|
+
description: "Framework: hono (default), express, fastify, nest, flask, fastapi"
|
|
17
|
+
required: false
|
|
18
|
+
default: hono
|
|
19
|
+
- name: deploy
|
|
20
|
+
type: string
|
|
21
|
+
description: "Deploy target: cloudflare (default), vercel, aws-lambda, docker"
|
|
22
|
+
required: false
|
|
23
|
+
default: cloudflare
|
|
24
|
+
mcp_servers:
|
|
25
|
+
- sequential-thinking
|
|
26
|
+
- memory
|
|
27
|
+
- git
|
|
28
|
+
- fetch
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
# /api — From Description to Production API
|
|
32
|
+
|
|
33
|
+
Describe your API in English. Luna generates everything: routes, middleware, validation, auth, database schema, tests, docs, and deployment config.
|
|
34
|
+
|
|
35
|
+
## What Gets Generated
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
/api "User management API with auth, profiles, team invites, and admin panel"
|
|
39
|
+
│
|
|
40
|
+
▼
|
|
41
|
+
┌─────────────────────────────────────────────┐
|
|
42
|
+
│ SCHEMA │
|
|
43
|
+
│ ├── Prisma/Drizzle data model │
|
|
44
|
+
│ ├── Zod validation schemas │
|
|
45
|
+
│ ├── TypeScript interfaces │
|
|
46
|
+
│ └── Database migration files │
|
|
47
|
+
├─────────────────────────────────────────────┤
|
|
48
|
+
│ ROUTES │
|
|
49
|
+
│ ├── CRUD endpoints for each entity │
|
|
50
|
+
│ ├── Auth routes (register, login, refresh) │
|
|
51
|
+
│ ├── Admin routes (users, roles, audit) │
|
|
52
|
+
│ ├── Webhook endpoints │
|
|
53
|
+
│ └── Health check endpoint │
|
|
54
|
+
├─────────────────────────────────────────────┤
|
|
55
|
+
│ MIDDLEWARE │
|
|
56
|
+
│ ├── JWT auth + API key auth │
|
|
57
|
+
│ ├── Role-based access control (RBAC) │
|
|
58
|
+
│ ├── Rate limiting │
|
|
59
|
+
│ ├── CORS configuration │
|
|
60
|
+
│ ├── Request logging with correlation IDs │
|
|
61
|
+
│ └── Error handling with structured responses│
|
|
62
|
+
├─────────────────────────────────────────────┤
|
|
63
|
+
│ TESTS │
|
|
64
|
+
│ ├── Unit tests for every service │
|
|
65
|
+
│ ├── Integration tests for every route │
|
|
66
|
+
│ ├── Auth flow tests │
|
|
67
|
+
│ ├── Rate limit tests │
|
|
68
|
+
│ └── 90%+ coverage │
|
|
69
|
+
├─────────────────────────────────────────────┤
|
|
70
|
+
│ DOCS │
|
|
71
|
+
│ ├── OpenAPI 3.1 spec │
|
|
72
|
+
│ ├── Interactive Swagger UI │
|
|
73
|
+
│ ├── Postman collection │
|
|
74
|
+
│ └── cURL examples for every endpoint │
|
|
75
|
+
├─────────────────────────────────────────────┤
|
|
76
|
+
│ DEPLOY │
|
|
77
|
+
│ ├── wrangler.toml (Cloudflare) │
|
|
78
|
+
│ ├── Dockerfile │
|
|
79
|
+
│ ├── CI/CD pipeline │
|
|
80
|
+
│ └── Environment configuration │
|
|
81
|
+
└─────────────────────────────────────────────┘
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Usage
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
/api "E-commerce API with products, cart, checkout, and order tracking"
|
|
88
|
+
/api "Real-time chat API with rooms, messages, typing indicators, and file sharing"
|
|
89
|
+
/api ./openapi.yaml --framework fastify --deploy docker
|
|
90
|
+
/api "Webhook relay service that receives, queues, and retries webhook deliveries"
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## In Pipes
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
/pipe api "my API" >> test >> guard >> launch staging >> docs
|
|
97
|
+
/pipe idea "my product" >> api "$idea.api_spec" >> go *5 >> test >> ship
|
|
98
|
+
/pipe api "my API" >> morph to "GraphQL" >> test >> deploy
|
|
99
|
+
```
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ll-assert
|
|
3
|
+
displayName: Luna Assert
|
|
4
|
+
description: Validate project constraints — file size, coverage, security, accessibility thresholds
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: quality
|
|
7
|
+
agent: luna-code-review
|
|
8
|
+
parameters:
|
|
9
|
+
- name: checks
|
|
10
|
+
type: string
|
|
11
|
+
description: Assertions to validate (coverage, file-size, security, a11y, deps, all)
|
|
12
|
+
required: false
|
|
13
|
+
prompt: true
|
|
14
|
+
workflow:
|
|
15
|
+
- run_assertions
|
|
16
|
+
- report_results
|
|
17
|
+
output:
|
|
18
|
+
- .luna/{current-project}/assert-report.md
|
|
19
|
+
prerequisites: []
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
# Luna Assert
|
|
23
|
+
|
|
24
|
+
Validate project constraints and fail fast if thresholds aren't met.
|
|
25
|
+
|
|
26
|
+
## Built-in Assertions
|
|
27
|
+
|
|
28
|
+
| Assertion | What It Checks |
|
|
29
|
+
|-----------|---------------|
|
|
30
|
+
| `files.max_lines <= 100` | No source file exceeds 100 lines |
|
|
31
|
+
| `test.coverage >= 90` | Test coverage at or above 90% |
|
|
32
|
+
| `test.pass` | All tests passing |
|
|
33
|
+
| `security.critical == 0` | No critical vulnerabilities |
|
|
34
|
+
| `security.high == 0` | No high vulnerabilities |
|
|
35
|
+
| `a11y.critical == 0` | No critical accessibility issues |
|
|
36
|
+
| `deps.outdated <= 5` | Max 5 outdated dependencies |
|
|
37
|
+
| `deps.vulnerable == 0` | No vulnerable dependencies |
|
|
38
|
+
|
|
39
|
+
## Usage
|
|
40
|
+
|
|
41
|
+
### Standalone
|
|
42
|
+
```
|
|
43
|
+
/assert all # Run all assertions
|
|
44
|
+
/assert coverage # Coverage only
|
|
45
|
+
/assert file-size # File size only
|
|
46
|
+
/assert security # Security only
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### In Pipes
|
|
50
|
+
```
|
|
51
|
+
/pipe go *5 >> assert files.max_lines <= 100 >> test
|
|
52
|
+
/pipe test >> assert $test.coverage >= 90 >> ship
|
|
53
|
+
/pipe sec >> assert security.critical == 0 >> ship
|
|
54
|
+
/pipe go >> assert files.max_lines <= 100 >> assert test.pass >> pr
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### As Quality Gate
|
|
58
|
+
```
|
|
59
|
+
/pipe go *5 >> (
|
|
60
|
+
assert files.max_lines <= 100 ~~
|
|
61
|
+
assert test.coverage >= 90 ~~
|
|
62
|
+
assert security.critical == 0 ~~
|
|
63
|
+
assert a11y.critical == 0
|
|
64
|
+
) >> ship
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Custom Assertions
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
/pipe go >> assert $test.coverage >= 95 # Stricter coverage
|
|
71
|
+
/pipe go >> assert files.max_lines <= 80 # Stricter file size
|
|
72
|
+
/pipe go >> assert deps.vulnerable == 0 # Zero vulnerabilities
|
|
73
|
+
```
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ll-audience
|
|
3
|
+
displayName: Luna Audience
|
|
4
|
+
description: Deep customer intelligence — analyze who uses your app, predict behavior, detect churn, identify upsell opportunities, and generate growth strategies
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: strategy
|
|
7
|
+
agent: luna-analytics
|
|
8
|
+
parameters:
|
|
9
|
+
- name: action
|
|
10
|
+
type: string
|
|
11
|
+
description: "Action: profile (who are they), predict (what will they do), churn (who's leaving), growth (how to grow), cohort (group analysis), health (customer health score), ideal (ideal customer profile)"
|
|
12
|
+
required: true
|
|
13
|
+
prompt: true
|
|
14
|
+
- name: source
|
|
15
|
+
type: string
|
|
16
|
+
description: "Data source: codebase (from code), api (live data), mock (simulated), csv (import file)"
|
|
17
|
+
required: false
|
|
18
|
+
default: codebase
|
|
19
|
+
mcp_servers:
|
|
20
|
+
- sequential-thinking
|
|
21
|
+
- memory
|
|
22
|
+
- fetch
|
|
23
|
+
- git
|
|
24
|
+
- jupyter
|
|
25
|
+
- notebooklm
|
|
26
|
+
- playwright
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
# /audience — Customer Intelligence Engine
|
|
30
|
+
|
|
31
|
+
Understand every customer segment. Predict behavior. Detect churn before it happens. Find your best growth opportunities. All from your codebase or real data.
|
|
32
|
+
|
|
33
|
+
## Actions
|
|
34
|
+
|
|
35
|
+
### /audience profile
|
|
36
|
+
```
|
|
37
|
+
Customer Profile Analysis:
|
|
38
|
+
├── WHO uses your product?
|
|
39
|
+
│ ├── Company sizes (startup/SMB/enterprise)
|
|
40
|
+
│ ├── Industries and verticals
|
|
41
|
+
│ ├── Technical roles (developer/PM/designer/exec)
|
|
42
|
+
│ ├── Geographic distribution
|
|
43
|
+
│ └── How they found you
|
|
44
|
+
│
|
|
45
|
+
├── HOW do they use it?
|
|
46
|
+
│ ├── Most-used features (from route analytics)
|
|
47
|
+
│ ├── Average session length
|
|
48
|
+
│ ├── Peak usage times
|
|
49
|
+
│ ├── Mobile vs desktop ratio
|
|
50
|
+
│ ├── API vs UI usage split
|
|
51
|
+
│ └── Integration patterns
|
|
52
|
+
│
|
|
53
|
+
├── WHY do they stay?
|
|
54
|
+
│ ├── Core value drivers per segment
|
|
55
|
+
│ ├── Feature stickiness scores
|
|
56
|
+
│ ├── Network effects (team size growth)
|
|
57
|
+
│ └── Switching cost analysis
|
|
58
|
+
│
|
|
59
|
+
└── WHAT do they pay?
|
|
60
|
+
├── Revenue distribution by segment
|
|
61
|
+
├── ARPU by plan tier
|
|
62
|
+
├── Expansion revenue patterns
|
|
63
|
+
└── Price sensitivity indicators
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### /audience predict
|
|
67
|
+
```
|
|
68
|
+
Behavioral Prediction:
|
|
69
|
+
├── UPGRADE LIKELIHOOD
|
|
70
|
+
│ ├── Users approaching plan limits
|
|
71
|
+
│ ├── Feature usage patterns that precede upgrades
|
|
72
|
+
│ ├── Team growth signals
|
|
73
|
+
│ └── Ranked list of upgrade-ready users
|
|
74
|
+
│
|
|
75
|
+
├── CHURN RISK
|
|
76
|
+
│ ├── Declining engagement patterns
|
|
77
|
+
│ ├── Support ticket sentiment analysis
|
|
78
|
+
│ ├── Feature abandonment signals
|
|
79
|
+
│ ├── Payment failure correlation
|
|
80
|
+
│ └── Risk score per customer (1-100)
|
|
81
|
+
│
|
|
82
|
+
├── EXPANSION OPPORTUNITIES
|
|
83
|
+
│ ├── Users who'd benefit from higher tier
|
|
84
|
+
│ ├── Teams ready for enterprise features
|
|
85
|
+
│ ├── API-heavy users who need custom plans
|
|
86
|
+
│ └── Revenue impact if converted
|
|
87
|
+
│
|
|
88
|
+
└── VIRAL POTENTIAL
|
|
89
|
+
├── Users most likely to refer
|
|
90
|
+
├── Social proof candidates (public companies, influencers)
|
|
91
|
+
├── Community contribution likelihood
|
|
92
|
+
└── Case study candidates
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### /audience churn
|
|
96
|
+
```
|
|
97
|
+
Churn Analysis & Prevention:
|
|
98
|
+
├── EARLY WARNING SIGNALS
|
|
99
|
+
│ ├── Login frequency dropping
|
|
100
|
+
│ ├── Feature usage declining
|
|
101
|
+
│ ├── Support tickets increasing
|
|
102
|
+
│ ├── Team members being removed
|
|
103
|
+
│ ├── API calls decreasing
|
|
104
|
+
│ └── Billing payment failures
|
|
105
|
+
│
|
|
106
|
+
├── CHURN REASONS (from your product)
|
|
107
|
+
│ ├── Missing features (what they tried but couldn't do)
|
|
108
|
+
│ ├── Complexity (features they never discovered)
|
|
109
|
+
│ ├── Performance (slow workflows, timeouts)
|
|
110
|
+
│ ├── Competition (features competitors have)
|
|
111
|
+
│ ├── Price (approaching budget limits)
|
|
112
|
+
│ └── Fit (wrong product for their use case)
|
|
113
|
+
│
|
|
114
|
+
├── SAVE PLAYBOOKS (auto-generated)
|
|
115
|
+
│ ├── For price-sensitive churners → offer annual discount
|
|
116
|
+
│ ├── For complexity churners → trigger onboarding replay
|
|
117
|
+
│ ├── For missing-feature churners → show roadmap
|
|
118
|
+
│ ├── For performance churners → escalate to engineering
|
|
119
|
+
│ └── For fit churners → suggest alternatives gracefully
|
|
120
|
+
│
|
|
121
|
+
└── PREVENTION ACTIONS
|
|
122
|
+
├── Automated re-engagement emails
|
|
123
|
+
├── In-app nudges for underused features
|
|
124
|
+
├── Personal outreach triggers
|
|
125
|
+
└── Win-back campaigns for churned users
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### /audience growth
|
|
129
|
+
```
|
|
130
|
+
Growth Strategy Generation:
|
|
131
|
+
├── ACQUISITION
|
|
132
|
+
│ ├── Best channels by persona type
|
|
133
|
+
│ ├── Content topics that attract each segment
|
|
134
|
+
│ ├── SEO keywords by customer intent
|
|
135
|
+
│ ├── Community platforms where users hang out
|
|
136
|
+
│ └── Partnership opportunities
|
|
137
|
+
│
|
|
138
|
+
├── ACTIVATION
|
|
139
|
+
│ ├── Onboarding optimization per persona
|
|
140
|
+
│ ├── Time-to-first-value benchmarks
|
|
141
|
+
│ ├── Activation rate by signup source
|
|
142
|
+
│ └── A/B test suggestions for onboarding
|
|
143
|
+
│
|
|
144
|
+
├── RETENTION
|
|
145
|
+
│ ├── Feature adoption playbooks
|
|
146
|
+
│ ├── Engagement loop design
|
|
147
|
+
│ ├── Community building strategy
|
|
148
|
+
│ └── Loyalty program design
|
|
149
|
+
│
|
|
150
|
+
├── REVENUE
|
|
151
|
+
│ ├── Pricing optimization opportunities
|
|
152
|
+
│ ├── Upsell trigger automation
|
|
153
|
+
│ ├── Annual plan conversion strategy
|
|
154
|
+
│ └── Enterprise sales playbook
|
|
155
|
+
│
|
|
156
|
+
└── REFERRAL
|
|
157
|
+
├── Viral loop design
|
|
158
|
+
├── Referral program structure
|
|
159
|
+
├── Ambassador program
|
|
160
|
+
└── Case study pipeline
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### /audience cohort
|
|
164
|
+
```
|
|
165
|
+
Cohort Analysis:
|
|
166
|
+
├── By signup date (monthly cohorts)
|
|
167
|
+
│ ├── Retention curves per cohort
|
|
168
|
+
│ ├── Revenue per cohort over time
|
|
169
|
+
│ └── Feature adoption by cohort
|
|
170
|
+
│
|
|
171
|
+
├── By acquisition source
|
|
172
|
+
│ ├── Organic vs paid vs referral
|
|
173
|
+
│ ├── LTV by source
|
|
174
|
+
│ └── Best-performing channels
|
|
175
|
+
│
|
|
176
|
+
├── By plan tier
|
|
177
|
+
│ ├── Free→Pro conversion rates
|
|
178
|
+
│ ├── Pro→Team upgrade patterns
|
|
179
|
+
│ ├── Enterprise adoption timeline
|
|
180
|
+
│ └── Revenue concentration risk
|
|
181
|
+
│
|
|
182
|
+
└── By behavior
|
|
183
|
+
├── Power users vs casual
|
|
184
|
+
├── API-first vs UI-first
|
|
185
|
+
├── Solo vs team users
|
|
186
|
+
└── Feature-specific cohorts
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
### /audience health
|
|
190
|
+
```
|
|
191
|
+
Customer Health Score (per account):
|
|
192
|
+
┌──────────────────────────────────────┐
|
|
193
|
+
│ CUSTOMER: Acme Corp │
|
|
194
|
+
│ HEALTH SCORE: 72/100 ⚠️ │
|
|
195
|
+
│ │
|
|
196
|
+
│ ENGAGEMENT ████████░░ 78% │
|
|
197
|
+
│ ├── Login frequency: daily │
|
|
198
|
+
│ ├── Feature breadth: 6/12 features │
|
|
199
|
+
│ └── API calls: 1,200/day │
|
|
200
|
+
│ │
|
|
201
|
+
│ ADOPTION ██████░░░░ 62% │
|
|
202
|
+
│ ├── Team seats used: 4/10 │
|
|
203
|
+
│ ├── Integrations: 2 active │
|
|
204
|
+
│ └── Advanced features: 3/8 used │
|
|
205
|
+
│ │
|
|
206
|
+
│ SATISFACTION █████████░ 85% │
|
|
207
|
+
│ ├── Support tickets: 1 (resolved) │
|
|
208
|
+
│ ├── NPS response: 8/10 │
|
|
209
|
+
│ └── Last feedback: positive │
|
|
210
|
+
│ │
|
|
211
|
+
│ GROWTH ██████████ 95% │
|
|
212
|
+
│ ├── Team growing (2 invites pending)│
|
|
213
|
+
│ ├── Approaching tier limit │
|
|
214
|
+
│ └── Expansion revenue likely │
|
|
215
|
+
│ │
|
|
216
|
+
│ ⚠️ ACTION: Low adoption score │
|
|
217
|
+
│ → Trigger feature discovery email │
|
|
218
|
+
│ → Schedule success call │
|
|
219
|
+
└──────────────────────────────────────┘
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### /audience ideal
|
|
223
|
+
```
|
|
224
|
+
Ideal Customer Profile (ICP):
|
|
225
|
+
├── FIRMOGRAPHICS
|
|
226
|
+
│ ├── Company size: 10-100 employees
|
|
227
|
+
│ ├── Industry: SaaS, fintech, developer tools
|
|
228
|
+
│ ├── Revenue: $1M-$50M ARR
|
|
229
|
+
│ ├── Funding: Series A-B
|
|
230
|
+
│ └── Tech stack: React, Node, Cloudflare/AWS
|
|
231
|
+
│
|
|
232
|
+
├── BUYER PERSONA
|
|
233
|
+
│ ├── Title: CTO, VP Engineering, Lead Developer
|
|
234
|
+
│ ├── Reports to: CEO or CPO
|
|
235
|
+
│ ├── Budget authority: $500-$5000/mo
|
|
236
|
+
│ ├── Decision timeline: 2-4 weeks
|
|
237
|
+
│ └── Evaluation criteria: speed, reliability, DX
|
|
238
|
+
│
|
|
239
|
+
├── BEHAVIORAL SIGNALS
|
|
240
|
+
│ ├── Uses CI/CD (GitHub Actions, CircleCI)
|
|
241
|
+
│ ├── Has 5+ developers
|
|
242
|
+
│ ├── Ships weekly or faster
|
|
243
|
+
│ ├── Already uses AI tools
|
|
244
|
+
│ └── Active on GitHub/Twitter/Discord
|
|
245
|
+
│
|
|
246
|
+
├── DISQUALIFIERS
|
|
247
|
+
│ ├── Less than 3 developers
|
|
248
|
+
│ ├── No cloud infrastructure
|
|
249
|
+
│ ├── Waterfall development process
|
|
250
|
+
│ └── Regulated industry needing on-prem only
|
|
251
|
+
│
|
|
252
|
+
└── LOOK-ALIKE TARGETING
|
|
253
|
+
├── Companies similar to best customers
|
|
254
|
+
├── GitHub repos with matching tech stacks
|
|
255
|
+
├── Job postings mentioning your stack
|
|
256
|
+
└── Conference attendees in your space
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
## Usage
|
|
260
|
+
|
|
261
|
+
```bash
|
|
262
|
+
/audience profile # Who uses your product
|
|
263
|
+
/audience predict # Behavioral predictions
|
|
264
|
+
/audience churn # Churn analysis + prevention
|
|
265
|
+
/audience growth # Growth strategy
|
|
266
|
+
/audience cohort # Cohort analysis
|
|
267
|
+
/audience health # Customer health scores
|
|
268
|
+
/audience ideal # Ideal customer profile
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
## In Pipes
|
|
272
|
+
|
|
273
|
+
```bash
|
|
274
|
+
# Full customer intelligence
|
|
275
|
+
/pipe audience profile >> audience predict >> audience growth >> present "growth strategy"
|
|
276
|
+
|
|
277
|
+
# Churn prevention workflow
|
|
278
|
+
/pipe audience churn >> ghost email "win-back campaign" >> publish
|
|
279
|
+
|
|
280
|
+
# Persona-driven product development
|
|
281
|
+
/pipe persona generate >> audience ideal >> compete "top 3" >> idea "what to build next"
|
|
282
|
+
|
|
283
|
+
# Data-driven pricing
|
|
284
|
+
/pipe audience cohort >> audience predict >> money >> persona interview "test new pricing"
|
|
285
|
+
|
|
286
|
+
# Customer success automation
|
|
287
|
+
/pipe audience health >> if $health < 70 >> ghost email "re-engagement" >> notify cs-team
|
|
288
|
+
|
|
289
|
+
# Growth experiment design
|
|
290
|
+
/pipe audience growth >> plan >> go *5 >> test >> audience predict >> pulse
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
## Output
|
|
294
|
+
|
|
295
|
+
```
|
|
296
|
+
.luna/{project}/audience/
|
|
297
|
+
profile.md # Customer profile analysis
|
|
298
|
+
predictions.json # Behavioral predictions
|
|
299
|
+
churn-analysis.md # Churn risks and playbooks
|
|
300
|
+
growth-strategy.md # Growth recommendations
|
|
301
|
+
cohorts/ # Cohort analysis
|
|
302
|
+
by-date.md
|
|
303
|
+
by-source.md
|
|
304
|
+
by-tier.md
|
|
305
|
+
health-scores.json # Per-customer health scores
|
|
306
|
+
ideal-customer-profile.md # ICP definition
|
|
307
|
+
summary.md # Executive summary
|
|
308
|
+
```
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ll-auth
|
|
3
|
+
displayName: Luna Auth Builder
|
|
4
|
+
description: Build complete Auth.js authentication with social providers, setup guides, and LinkedIn company page
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: authentication
|
|
7
|
+
agent: luna-auth
|
|
8
|
+
parameters:
|
|
9
|
+
- name: scope
|
|
10
|
+
type: string
|
|
11
|
+
description: Project or feature scope for authentication setup
|
|
12
|
+
required: true
|
|
13
|
+
prompt: true
|
|
14
|
+
- name: providers
|
|
15
|
+
type: string
|
|
16
|
+
description: Comma-separated OAuth providers (google,github,microsoft,linkedin,apple,discord,twitter)
|
|
17
|
+
required: false
|
|
18
|
+
prompt: true
|
|
19
|
+
workflow:
|
|
20
|
+
- analyze_codebase_and_framework
|
|
21
|
+
- generate_auth_configuration
|
|
22
|
+
- implement_social_providers
|
|
23
|
+
- create_rbac_and_middleware
|
|
24
|
+
- generate_provider_setup_guide
|
|
25
|
+
- generate_linkedin_company_page
|
|
26
|
+
- generate_logo_prompt
|
|
27
|
+
- create_auth_report
|
|
28
|
+
output:
|
|
29
|
+
- .luna/{current-project}/auth/
|
|
30
|
+
- .luna/{current-project}/auth/auth-setup-guide.html
|
|
31
|
+
- .luna/{current-project}/auth/linkedin-company-page.md
|
|
32
|
+
- .luna/{current-project}/auth/auth-report.md
|
|
33
|
+
prerequisites:
|
|
34
|
+
- .luna/{current-project}/requirements.md
|
|
35
|
+
- .luna/{current-project}/design.md
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
# Luna Auth Builder
|
|
39
|
+
|
|
40
|
+
Build a complete Auth.js (NextAuth v5) authentication system with social OAuth providers, comprehensive HTML setup guides, LinkedIn company page content, and brand-matched logo prompts.
|
|
41
|
+
|
|
42
|
+
## What This Command Does
|
|
43
|
+
|
|
44
|
+
1. **Analyzes your codebase** to detect framework (Next.js, SvelteKit, Express, etc.) and existing auth patterns
|
|
45
|
+
2. **Generates full Auth.js configuration** with selected social providers:
|
|
46
|
+
- Google OAuth 2.0
|
|
47
|
+
- GitHub OAuth App
|
|
48
|
+
- Microsoft Entra ID (Azure AD)
|
|
49
|
+
- LinkedIn OpenID Connect
|
|
50
|
+
- Apple Sign-In
|
|
51
|
+
- Discord OAuth2
|
|
52
|
+
- Twitter/X OAuth 2.0
|
|
53
|
+
- Custom credentials (email/password)
|
|
54
|
+
3. **Implements RBAC** with role-based access control, protected routes, and middleware
|
|
55
|
+
4. **Creates a standalone HTML setup guide** with step-by-step instructions for each provider's developer console, including screenshots placeholders, callback URLs, and env var configuration
|
|
56
|
+
5. **Generates LinkedIn company page** content with description, tagline, about section, and product showcase text
|
|
57
|
+
6. **Creates a logo generation prompt** that matches your brand identity for use with AI image generators (DALL-E, Midjourney, etc.)
|
|
58
|
+
|
|
59
|
+
## Prerequisites
|
|
60
|
+
|
|
61
|
+
Requires in your current project:
|
|
62
|
+
- `.luna/{current-project}/requirements.md`
|
|
63
|
+
- `.luna/{current-project}/design.md`
|
|
64
|
+
|
|
65
|
+
If missing, run:
|
|
66
|
+
```bash
|
|
67
|
+
/luna-requirements
|
|
68
|
+
/luna-design
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Usage Instructions
|
|
72
|
+
|
|
73
|
+
When you run this command:
|
|
74
|
+
- **Scope**: Press ENTER for project-level or type feature name
|
|
75
|
+
- **Providers**: Enter comma-separated list (e.g., `google,github,microsoft,linkedin`) or press ENTER for all
|
|
76
|
+
|
|
77
|
+
## Execution Steps
|
|
78
|
+
|
|
79
|
+
1. **Codebase Analysis**: Detects framework, database, existing auth patterns, and package manager
|
|
80
|
+
2. **Auth.js Setup**: Generates `auth.ts` config, provider configs, Prisma adapter schema, env template
|
|
81
|
+
3. **Social Providers**: Configures each selected OAuth provider with proper scopes and profile mapping
|
|
82
|
+
4. **RBAC & Middleware**: Creates role enum, permission matrix, auth middleware, protected route helpers
|
|
83
|
+
5. **React/UI Components**: Generates sign-in page, sign-out button, session provider, avatar component
|
|
84
|
+
6. **HTML Setup Guide**: Creates a beautiful standalone HTML page with:
|
|
85
|
+
- Google Cloud Console setup (OAuth consent screen, credentials)
|
|
86
|
+
- GitHub Developer Settings (OAuth App creation)
|
|
87
|
+
- Microsoft Entra ID (App registration, redirect URIs)
|
|
88
|
+
- LinkedIn Developer Portal (app creation, OpenID Connect)
|
|
89
|
+
- Apple Developer (Services ID, Sign-In configuration)
|
|
90
|
+
- Discord Developer Portal (application setup)
|
|
91
|
+
- Twitter/X Developer Portal (OAuth 2.0 setup)
|
|
92
|
+
- Environment variable reference table
|
|
93
|
+
- Callback URL reference for each provider
|
|
94
|
+
- Troubleshooting section
|
|
95
|
+
7. **LinkedIn Company Page**: Generates ready-to-paste content:
|
|
96
|
+
- Company name, tagline, industry, size
|
|
97
|
+
- About section (2000 char max)
|
|
98
|
+
- Product description
|
|
99
|
+
- Specialties and hashtags
|
|
100
|
+
8. **Logo Prompt**: Creates an AI image generation prompt matching your brand for company logo
|
|
101
|
+
9. **Auth Report**: Summary of everything generated with next steps
|
|
102
|
+
|
|
103
|
+
## Output Files
|
|
104
|
+
|
|
105
|
+
Creates in your current project:
|
|
106
|
+
```
|
|
107
|
+
.luna/{current-project}/auth/
|
|
108
|
+
src/
|
|
109
|
+
auth.ts # Auth.js configuration
|
|
110
|
+
auth.config.ts # Provider configs
|
|
111
|
+
middleware.ts # Auth middleware
|
|
112
|
+
lib/
|
|
113
|
+
rbac.ts # Role-based access control
|
|
114
|
+
auth-helpers.ts # Server-side auth utilities
|
|
115
|
+
components/
|
|
116
|
+
auth-provider.tsx # Session provider wrapper
|
|
117
|
+
sign-in-form.tsx # Sign-in page with social buttons
|
|
118
|
+
user-avatar.tsx # Authenticated user avatar
|
|
119
|
+
protected-route.tsx # Client-side route protection
|
|
120
|
+
prisma/
|
|
121
|
+
auth-schema.prisma # User, Account, Session models
|
|
122
|
+
.env.auth.example # Environment variable template
|
|
123
|
+
auth-setup-guide.html # Standalone HTML setup guide
|
|
124
|
+
linkedin-company-page.md # LinkedIn company page content
|
|
125
|
+
logo-prompt.md # AI logo generation prompt
|
|
126
|
+
auth-report.md # Implementation summary
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
## Next Steps in Workflow
|
|
130
|
+
|
|
131
|
+
After auth setup:
|
|
132
|
+
```bash
|
|
133
|
+
/luna-execute # Integrate generated auth files into your project
|
|
134
|
+
/luna-test # Validate auth flows with integration tests
|
|
135
|
+
/luna-deploy # Deploy with OAuth callback URLs configured
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
## Tips
|
|
139
|
+
|
|
140
|
+
- Run with all providers first, then remove unused ones from config
|
|
141
|
+
- The HTML guide can be shared with team members who need to set up developer accounts
|
|
142
|
+
- LinkedIn company page content is optimized for SEO and discoverability
|
|
143
|
+
- Logo prompt is tuned for consistent brand identity across platforms
|
|
144
|
+
- Always set `AUTH_SECRET` with `npx auth secret` before deploying
|
|
145
|
+
- Test OAuth flows in development with `AUTH_URL=http://localhost:3000`
|