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,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: git-insights
|
|
3
|
+
displayName: Git Insights (shortcut)
|
|
4
|
+
description: "Shortcut: Repository analytics and visualization → /ll-git-insights"
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: shortcut
|
|
7
|
+
shortcut_for: ll-git-insights
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# /git-insights — Shortcut for /ll-git-insights
|
|
11
|
+
|
|
12
|
+
See /ll-git-insights for full documentation.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: go-viral
|
|
3
|
+
displayName: Go Viral (shortcut)
|
|
4
|
+
description: "Shortcut: Complete AI-first product launch — SEO + AI discovery + MCP registry + organic content + awesome lists -> /ll-go-viral"
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: deployment
|
|
7
|
+
shortcut_for: ll-go-viral
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# /go-viral — Every AI Agent Recommends Your Product
|
|
11
|
+
|
|
12
|
+
Shortcut for `/ll-go-viral`. One command to generate AI discovery files, publish to MCP registries, write launch content, submit to awesome lists, and ping search engines.
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
/go-viral --product_name "MyApp" --domain myapp.com --repo org/myapp --competitors "Tool A, Tool B" --category monitoring --install_command "npx myapp init"
|
|
16
|
+
```
|
package/commands/go.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: go
|
|
3
|
+
displayName: Execute (shortcut)
|
|
4
|
+
description: "Shortcut: Implement next task from the plan → /luna-execute"
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: implementation
|
|
7
|
+
agent: luna-task-executor
|
|
8
|
+
parameters:
|
|
9
|
+
- name: scope
|
|
10
|
+
type: string
|
|
11
|
+
description: Project or feature scope
|
|
12
|
+
required: true
|
|
13
|
+
prompt: true
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# /go — Execute Next Task
|
|
17
|
+
|
|
18
|
+
Shortcut for `/luna-execute`.
|
|
19
|
+
|
|
20
|
+
Picks up the next uncompleted task from your implementation plan and builds it.
|
|
21
|
+
|
|
22
|
+
## What it does
|
|
23
|
+
|
|
24
|
+
1. Finds next `[ ]` task in implementation plan
|
|
25
|
+
2. Implements code following design specs
|
|
26
|
+
3. Writes tests, marks task `[x]`, commits
|
|
27
|
+
|
|
28
|
+
## Usage
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
/go # implement next task
|
|
32
|
+
/go # repeat until all done
|
|
33
|
+
/go # keep going
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Run it repeatedly — each call completes one task.
|
|
37
|
+
|
|
38
|
+
## Next
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
/rev → /test → /ship
|
|
42
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: graph-rag
|
|
3
|
+
displayName: Graph RAG (shortcut)
|
|
4
|
+
description: "Shortcut: Knowledge graph RAG search -> /ll-graph-rag"
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: search
|
|
7
|
+
shortcut_for: ll-graph-rag
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# /graph-rag — Graph RAG
|
|
11
|
+
|
|
12
|
+
Shortcut for `/ll-graph-rag`. Knowledge graph search with community detection — 30-60% better retrieval than flat vector search.
|
|
13
|
+
|
package/commands/heal.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: heal
|
|
3
|
+
displayName: Self-Heal (shortcut)
|
|
4
|
+
description: "Shortcut: Test, screenshot, auto-fix in a loop until healthy -> /ll-heal"
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: automation
|
|
7
|
+
shortcut_for: ll-heal
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# /heal — Self-Healing App
|
|
11
|
+
|
|
12
|
+
Shortcut for `/ll-heal`. Continuously test, screenshot, fix, retest until app is healthy.
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
/heal http://localhost:3000
|
|
16
|
+
/pipe go *5 >> heal http://localhost:3000 ?>> ship
|
|
17
|
+
```
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: heygen
|
|
3
|
+
displayName: HeyGen (shortcut)
|
|
4
|
+
description: "Shortcut: Generate AI avatar product videos → /ll-heygen"
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: shortcut
|
|
7
|
+
shortcut_for: ll-heygen
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# /heygen — Shortcut for /ll-heygen
|
|
11
|
+
|
|
12
|
+
See /ll-heygen for full documentation.
|
package/commands/hig.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: hig
|
|
3
|
+
displayName: Apple HIG Audit (shortcut)
|
|
4
|
+
description: "Shortcut: Apple Human Interface Guidelines compliance check → /luna-hig"
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: design
|
|
7
|
+
agent: luna-hig
|
|
8
|
+
parameters:
|
|
9
|
+
- name: scope
|
|
10
|
+
type: string
|
|
11
|
+
description: Component or page to audit
|
|
12
|
+
required: true
|
|
13
|
+
prompt: true
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# /hig — Apple HIG Audit
|
|
17
|
+
|
|
18
|
+
Shortcut for `/luna-hig`.
|
|
19
|
+
|
|
20
|
+
Check your UI against Apple Human Interface Guidelines.
|
|
21
|
+
|
|
22
|
+
## What it does
|
|
23
|
+
|
|
24
|
+
1. Audits spacing, typography, color, layout
|
|
25
|
+
2. Checks accessibility (WCAG 2.1 AA)
|
|
26
|
+
3. Validates dark mode, motion, touch targets
|
|
27
|
+
4. Generates compliance report with fixes
|
|
28
|
+
|
|
29
|
+
## Usage
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
/hig
|
|
33
|
+
```
|
package/commands/idea.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: inbox
|
|
3
|
+
displayName: Inbox Zero (shortcut)
|
|
4
|
+
description: "Shortcut: AI email management → /ll-inbox"
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: shortcut
|
|
7
|
+
shortcut_for: ll-inbox
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# /inbox — Shortcut for /ll-inbox
|
|
11
|
+
|
|
12
|
+
See /ll-inbox for full documentation.
|
package/commands/lam.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: lam
|
|
3
|
+
displayName: LAM (shortcut)
|
|
4
|
+
description: "Shortcut: Goal-driven autonomous actions -> /ll-lam"
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: ai
|
|
7
|
+
shortcut_for: ll-lam
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# /lam — Large Action Model
|
|
11
|
+
|
|
12
|
+
Shortcut for `/ll-lam`. Goal-driven AI that understands your codebase and takes autonomous actions.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: landing
|
|
3
|
+
displayName: Landing Page (shortcut)
|
|
4
|
+
description: "Shortcut: Generate HeyGen-quality marketing landing page → /ll-landing"
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: shortcut
|
|
7
|
+
shortcut_for: ll-landing
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# /landing — Shortcut for /ll-landing
|
|
11
|
+
|
|
12
|
+
See /ll-landing for full documentation.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: leverage
|
|
3
|
+
displayName: Leverage Open Source (shortcut)
|
|
4
|
+
description: "Shortcut: Scan repos, extract patterns, generate integration plans → /ll-leverage"
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: shortcut
|
|
7
|
+
shortcut_for: ll-leverage
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# /leverage — Shortcut for /ll-leverage
|
|
11
|
+
|
|
12
|
+
See /ll-leverage for full documentation.
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ll-365-secure
|
|
3
|
+
displayName: Luna Microsoft 365 Security
|
|
4
|
+
description: Apply Microsoft 365 / Azure AD security hardening and BFF session authentication
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: security
|
|
7
|
+
agent: luna-365-security
|
|
8
|
+
parameters:
|
|
9
|
+
- name: scope
|
|
10
|
+
type: string
|
|
11
|
+
description: Project or feature scope for security hardening
|
|
12
|
+
required: true
|
|
13
|
+
prompt: true
|
|
14
|
+
workflow:
|
|
15
|
+
- audit_current_auth_flow
|
|
16
|
+
- implement_bff_session_exchange
|
|
17
|
+
- apply_security_headers
|
|
18
|
+
- configure_rate_limiting
|
|
19
|
+
- validate_jwt_verification
|
|
20
|
+
- generate_security_report
|
|
21
|
+
output:
|
|
22
|
+
- .luna/{current-project}/security-report.md
|
|
23
|
+
- src/lib/server/session-store.server.ts
|
|
24
|
+
- src/routes/auth/session/+server.ts
|
|
25
|
+
- src/hooks.server.ts (updated)
|
|
26
|
+
prerequisites:
|
|
27
|
+
- existing_authentication_flow (MSAL.js / Azure AD)
|
|
28
|
+
- .luna/{current-project}/requirements.md
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
# Luna Microsoft 365 Security
|
|
32
|
+
|
|
33
|
+
Applies enterprise-grade Microsoft 365 / Azure AD security hardening and BFF session authentication to your application. Based on the `365-security` and `bff-session-auth` skill protocols.
|
|
34
|
+
|
|
35
|
+
**Zero Azure Entra changes required.**
|
|
36
|
+
|
|
37
|
+
## What This Command Does
|
|
38
|
+
|
|
39
|
+
This command audits your current authentication flow, implements the BFF (Backend-for-Frontend) session exchange pattern, applies strict security headers, configures rate limiting, and validates JWT verification — all following Microsoft 365 best practices.
|
|
40
|
+
|
|
41
|
+
## Prerequisites
|
|
42
|
+
|
|
43
|
+
Requires:
|
|
44
|
+
- An existing authentication flow using MSAL.js v2+ (Auth Code + PKCE)
|
|
45
|
+
- Node.js `crypto` module available
|
|
46
|
+
- `.luna/{current-project}/requirements.md`
|
|
47
|
+
|
|
48
|
+
If you don't have authentication set up yet, first run:
|
|
49
|
+
```
|
|
50
|
+
/luna-execute # With auth setup task in your plan
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Execution Steps
|
|
54
|
+
|
|
55
|
+
### 1. Audit Current Auth Flow
|
|
56
|
+
- Verify Auth Code + PKCE is in use (not Implicit Flow)
|
|
57
|
+
- Check `cacheLocation` is `sessionStorage` (not `localStorage`)
|
|
58
|
+
- Ensure tokens never appear in URL fragments
|
|
59
|
+
- Flag any use of `localStorage` for token storage
|
|
60
|
+
|
|
61
|
+
### 2. Implement BFF Session Exchange
|
|
62
|
+
Creates server-side session management:
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
Login Flow:
|
|
66
|
+
MSAL.js → acquireTokenSilent → token (in JS for ~2 seconds)
|
|
67
|
+
Browser → POST /auth/session { token }
|
|
68
|
+
BFF → validates JWT → generates 256-bit session ID
|
|
69
|
+
BFF → stores { sessionId → accessToken, user, fingerprint }
|
|
70
|
+
BFF → Set-Cookie: __session=<id>; HttpOnly; Secure; SameSite=Strict
|
|
71
|
+
Browser → clears MSAL sessionStorage
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
**Files Created:**
|
|
75
|
+
- `src/lib/server/session-store.server.ts` — Server-side session store
|
|
76
|
+
- `src/routes/auth/session/+server.ts` — Session API endpoint (POST/GET/DELETE)
|
|
77
|
+
|
|
78
|
+
**Session Security Properties:**
|
|
79
|
+
| Property | Implementation |
|
|
80
|
+
|----------|---------------|
|
|
81
|
+
| Session ID entropy | 256 bits (`crypto.randomBytes(32)`) |
|
|
82
|
+
| Session fixation | ID created only after JWT validation |
|
|
83
|
+
| Cookie flags | `HttpOnly; Secure; SameSite=Strict; Path=/` |
|
|
84
|
+
| Fingerprint binding | `SHA-256(User-Agent + IP)` validated every request |
|
|
85
|
+
| Sliding TTL | 75 min, refreshed on each request |
|
|
86
|
+
| Absolute expiry | 8 hours hard cap |
|
|
87
|
+
|
|
88
|
+
### 3. Apply Security Headers
|
|
89
|
+
Updates `hooks.server.ts` with:
|
|
90
|
+
|
|
91
|
+
| Header | Value |
|
|
92
|
+
|--------|-------|
|
|
93
|
+
| `X-Content-Type-Options` | `nosniff` |
|
|
94
|
+
| `X-Frame-Options` | `DENY` |
|
|
95
|
+
| `Referrer-Policy` | `strict-origin-when-cross-origin` |
|
|
96
|
+
| `Permissions-Policy` | `camera=(), microphone=(), geolocation=()` |
|
|
97
|
+
| `X-XSS-Protection` | `0` (disabled in favor of CSP) |
|
|
98
|
+
| `Content-Security-Policy` | strict `script-src` |
|
|
99
|
+
|
|
100
|
+
### 4. Configure Rate Limiting
|
|
101
|
+
- General API: 100 req/min per IP
|
|
102
|
+
- Auth endpoints: 10 req/min per IP (OTP, login, session exchange)
|
|
103
|
+
- Sliding window with periodic cleanup of stale buckets
|
|
104
|
+
|
|
105
|
+
### 5. Validate JWT Verification
|
|
106
|
+
Ensures server-side JWT validation covers:
|
|
107
|
+
- **Signature** via JWKS endpoint
|
|
108
|
+
- **Audience** (`aud` claim)
|
|
109
|
+
- **Issuer** (`iss` — both v1 and v2 formats)
|
|
110
|
+
- **Expiration** (`exp` with 30s clock skew tolerance)
|
|
111
|
+
|
|
112
|
+
Issuer formats accepted:
|
|
113
|
+
- v2: `https://login.microsoftonline.com/{tenant}/v2.0`
|
|
114
|
+
- v1: `https://sts.windows.net/{tenant}/`
|
|
115
|
+
|
|
116
|
+
### 6. Generate Security Report
|
|
117
|
+
Creates `.luna/{current-project}/security-report.md` with:
|
|
118
|
+
- Checklist of all security measures applied
|
|
119
|
+
- Attack vectors covered (XSS, CSRF, AiTM, token replay)
|
|
120
|
+
- Remaining Azure Portal tasks (Conditional Access, FIDO2, etc.)
|
|
121
|
+
- Testing checklist for verification
|
|
122
|
+
|
|
123
|
+
## Attack Vectors Covered
|
|
124
|
+
|
|
125
|
+
| Attack | Defense |
|
|
126
|
+
|--------|---------|
|
|
127
|
+
| XSS → token theft | BFF session exchange (HTTP-only cookies) |
|
|
128
|
+
| AiTM phishing | FIDO2 keys (Azure Portal) |
|
|
129
|
+
| Device code abuse | Restrict device code flow (Azure Portal) |
|
|
130
|
+
| Token in logs | Never log tokens or HMAC payloads |
|
|
131
|
+
| Open proxy | Path allowlisting on all proxy routes |
|
|
132
|
+
| CSRF | `SameSite=Strict` + Origin validation |
|
|
133
|
+
| Brute force | Rate limiting on auth endpoints |
|
|
134
|
+
| Token replay | Client fingerprint binding, short TTL |
|
|
135
|
+
|
|
136
|
+
## Output Files
|
|
137
|
+
|
|
138
|
+
Creates in your current project:
|
|
139
|
+
```
|
|
140
|
+
.luna/{current-project}/security/
|
|
141
|
+
├── security-report.md # Comprehensive audit report
|
|
142
|
+
src/lib/server/
|
|
143
|
+
├── session-store.server.ts # BFF session store
|
|
144
|
+
src/routes/auth/session/
|
|
145
|
+
├── +server.ts # Session API endpoint
|
|
146
|
+
src/
|
|
147
|
+
├── hooks.server.ts # Updated with security middleware
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
## Testing Checklist
|
|
151
|
+
|
|
152
|
+
After running this command, verify:
|
|
153
|
+
- [ ] Login → `__session` cookie set, `sessionStorage` empty
|
|
154
|
+
- [ ] API calls work with cookie auth (no Bearer header)
|
|
155
|
+
- [ ] `GET /auth/session` returns valid + TTL
|
|
156
|
+
- [ ] Logout → cookie cleared, server session destroyed
|
|
157
|
+
- [ ] Idle timeout → re-auth works
|
|
158
|
+
- [ ] Fingerprint mismatch (different User-Agent) → session rejected
|
|
159
|
+
- [ ] Session expiry → 401 → silent re-auth
|
|
160
|
+
- [ ] Multiple tabs → session shared via cookie
|
|
161
|
+
|
|
162
|
+
## Next Steps in Workflow
|
|
163
|
+
|
|
164
|
+
After security hardening, run tests:
|
|
165
|
+
```
|
|
166
|
+
/luna-test
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
Then proceed to deployment:
|
|
170
|
+
```
|
|
171
|
+
/luna-deploy
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
## Tips
|
|
175
|
+
|
|
176
|
+
- The in-memory session store is sufficient for internal dashboards. For user-facing apps, swap to Redis.
|
|
177
|
+
- The 2-second token window during initial auth is negligible risk vs. 8-hour `sessionStorage` exposure.
|
|
178
|
+
- Azure Portal tasks (Conditional Access, FIDO2) require admin access and are out-of-scope for this command.
|
|
179
|
+
- Run this command again after major auth changes to re-audit.
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ll-3d-mesh
|
|
3
|
+
displayName: Luna 3D Mesh
|
|
4
|
+
description: Generate 3D meshes from text descriptions using LLaMA-Mesh — text-to-3D for marketing heroes, product visuals, and icons
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: creative
|
|
7
|
+
agent: luna-task-executor
|
|
8
|
+
parameters:
|
|
9
|
+
- name: prompt
|
|
10
|
+
type: string
|
|
11
|
+
description: "What to generate (e.g., 'a diamond-shaped rotating cube', 'a stylized rocket', 'a 3D logo')"
|
|
12
|
+
required: true
|
|
13
|
+
prompt: true
|
|
14
|
+
- name: format
|
|
15
|
+
type: string
|
|
16
|
+
description: "Output: obj, html-preview, css-cube, video-loop"
|
|
17
|
+
required: false
|
|
18
|
+
default: html-preview
|
|
19
|
+
prerequisites: []
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
# Luna 3D Mesh — Text-to-3D Generation
|
|
23
|
+
|
|
24
|
+
Generate 3D meshes from text descriptions using NVIDIA's LLaMA-Mesh model, then export as OBJ files, embeddable HTML previews, CSS-only cubes, or looping video for marketing heroes.
|
|
25
|
+
|
|
26
|
+
## How It Works
|
|
27
|
+
|
|
28
|
+
LLaMA-Mesh is a fine-tuned LLaMA model that generates 3D mesh vertex coordinates and face definitions as plain text. No special vocabulary — it outputs OBJ-format mesh data directly.
|
|
29
|
+
|
|
30
|
+
### Step 1: Generate Mesh
|
|
31
|
+
Sends your prompt to LLaMA-Mesh (via HuggingFace Inference API or local model) to generate the 3D mesh as text.
|
|
32
|
+
|
|
33
|
+
### Step 2: Convert to Format
|
|
34
|
+
- **obj** — Raw OBJ file for Blender/Three.js
|
|
35
|
+
- **html-preview** — Embeddable Three.js viewer with auto-rotation
|
|
36
|
+
- **css-cube** — CSS-only rotating cube with mesh faces as textures
|
|
37
|
+
- **video-loop** — Renders a rotating loop as MP4 (for marketing heroes)
|
|
38
|
+
|
|
39
|
+
## Usage
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
# Generate a 3D diamond for marketing hero
|
|
43
|
+
/3d-mesh "a faceted diamond shape with sharp edges" html-preview
|
|
44
|
+
|
|
45
|
+
# Generate an icon mesh
|
|
46
|
+
/3d-mesh "a stylized rocket ship" obj
|
|
47
|
+
|
|
48
|
+
# Generate a rotating cube hero (like HeyGen)
|
|
49
|
+
/3d-mesh "a cube with rounded edges" css-cube
|
|
50
|
+
|
|
51
|
+
# Generate a video loop for landing page
|
|
52
|
+
/3d-mesh "an abstract geometric orb" video-loop
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Marketing Hero Pattern (HeyGen-style)
|
|
56
|
+
|
|
57
|
+
The rotating cube/diamond hero on HeyGen's landing page is a pre-rendered video loop. To replicate:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# Option 1: CSS-only rotating diamond (zero runtime cost)
|
|
61
|
+
/3d-mesh "diamond" css-cube
|
|
62
|
+
|
|
63
|
+
# Option 2: Generate mesh, render as video loop
|
|
64
|
+
/3d-mesh "faceted orb with holographic edges" video-loop
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
The CSS cube approach produces this pattern:
|
|
68
|
+
- `rotateZ(45deg)` + `rotateX(-20deg)` = diamond orientation
|
|
69
|
+
- 6 faces, each holding a product screenshot or avatar
|
|
70
|
+
- Iridescent edge glow via `box-shadow`
|
|
71
|
+
- 8-second rotation loop
|
|
72
|
+
|
|
73
|
+
## Output
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
.luna/{project}/3d-mesh/
|
|
77
|
+
mesh.obj # Raw 3D mesh
|
|
78
|
+
preview.html # Embeddable Three.js viewer
|
|
79
|
+
cube.html # CSS rotating cube
|
|
80
|
+
loop.mp4 # Video loop for hero sections
|
|
81
|
+
textures/ # Generated face textures
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## In Pipes
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
# Generate 3D hero, then build landing page
|
|
88
|
+
/pipe 3d-mesh "diamond orb" css-cube >> heygen https://myapp.com
|
|
89
|
+
|
|
90
|
+
# Generate mesh for product visualization
|
|
91
|
+
/pipe 3d-mesh "my product shape" html-preview >> docs
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Sources: [LLaMA-Mesh (NVIDIA)](https://github.com/nv-tlabs/LLaMA-Mesh), [HuggingFace Space](https://huggingface.co/spaces/Zhengyi/LLaMA-Mesh), [Paper](https://huggingface.co/papers/2411.09595)
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ll-3d
|
|
3
|
+
displayName: Luna 3D
|
|
4
|
+
description: Generate 3D models and visualizations — app architecture in 3D, component flowcharts, data flow animations, product mockups
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: creative
|
|
7
|
+
agent: luna-task-executor
|
|
8
|
+
parameters:
|
|
9
|
+
- name: what
|
|
10
|
+
type: string
|
|
11
|
+
description: "What to generate: architecture (3D system map), flow (component flowchart), mockup (device mockup), model (3D asset), dashboard (3D data viz)"
|
|
12
|
+
required: true
|
|
13
|
+
prompt: true
|
|
14
|
+
- name: source
|
|
15
|
+
type: string
|
|
16
|
+
description: Source — path to code, component name, or description
|
|
17
|
+
required: false
|
|
18
|
+
mcp_servers:
|
|
19
|
+
- tripo-3d
|
|
20
|
+
- stability-ai
|
|
21
|
+
- piapi
|
|
22
|
+
- fal-ai
|
|
23
|
+
- zai-mcp-server
|
|
24
|
+
- playwright
|
|
25
|
+
- git
|
|
26
|
+
- sequential-thinking
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
# /3d — Your Code in Three Dimensions
|
|
30
|
+
|
|
31
|
+
Visualize your architecture, components, and data flows as interactive 3D models. Generate product mockups, 3D assets, and spatial visualizations.
|
|
32
|
+
|
|
33
|
+
## Modes
|
|
34
|
+
|
|
35
|
+
### /3d architecture
|
|
36
|
+
```
|
|
37
|
+
3D System Architecture:
|
|
38
|
+
├── Each service as a 3D node (cube/sphere)
|
|
39
|
+
├── API connections as glowing lines
|
|
40
|
+
├── Data flow animated along connections
|
|
41
|
+
├── Color-coded by service type
|
|
42
|
+
│ ├── 🔵 Frontend (Next.js, React)
|
|
43
|
+
│ ├── 🟢 API (Hono, Workers)
|
|
44
|
+
│ ├── 🟡 Database (D1, KV)
|
|
45
|
+
│ ├── 🔴 External (Stripe, Auth)
|
|
46
|
+
│ └── 🟣 AI/ML (Agents, RAG)
|
|
47
|
+
├── Interactive: rotate, zoom, click nodes
|
|
48
|
+
├── Export: .glb, .obj, .html (Three.js)
|
|
49
|
+
└── Generated from your actual codebase
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### /3d flow
|
|
53
|
+
```
|
|
54
|
+
Component Flowchart (3D):
|
|
55
|
+
├── React component tree as 3D graph
|
|
56
|
+
├── Props flowing down as animated particles
|
|
57
|
+
├── State changes as color pulses
|
|
58
|
+
├── Event handlers as connection sparks
|
|
59
|
+
├── Zoom into any component for details
|
|
60
|
+
├── Export: interactive HTML, PNG, SVG
|
|
61
|
+
└── Reads your actual component files
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### /3d mockup
|
|
65
|
+
```
|
|
66
|
+
Device Mockups:
|
|
67
|
+
├── Your app rendered in 3D devices
|
|
68
|
+
│ ├── iPhone 15 Pro
|
|
69
|
+
│ ├── MacBook Pro
|
|
70
|
+
│ ├── iPad
|
|
71
|
+
│ ├── Apple Watch
|
|
72
|
+
│ └── Custom device
|
|
73
|
+
├── Real screenshots from your running app
|
|
74
|
+
├── Multiple angles and perspectives
|
|
75
|
+
├── Hero image quality (marketing-ready)
|
|
76
|
+
└── Export: PNG (transparent), .glb
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### /3d mock-api
|
|
80
|
+
```
|
|
81
|
+
API Visualization:
|
|
82
|
+
├── Each endpoint as a 3D node
|
|
83
|
+
├── Request/response flow animated
|
|
84
|
+
├── Auth middleware as gateway
|
|
85
|
+
├── Rate limits as traffic lights
|
|
86
|
+
├── Error paths in red
|
|
87
|
+
├── Success paths in green
|
|
88
|
+
├── Response time as node size
|
|
89
|
+
├── Live data from your actual API
|
|
90
|
+
└── Export: interactive HTML, PNG
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### /3d dashboard
|
|
94
|
+
```
|
|
95
|
+
3D Data Visualization:
|
|
96
|
+
├── Metrics as 3D bar/line/scatter charts
|
|
97
|
+
├── Real-time data if connected to API
|
|
98
|
+
├── Fly-through animation
|
|
99
|
+
├── VR-ready export (.glb)
|
|
100
|
+
└── Embedded in presentations
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Usage
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
/3d architecture # Full system in 3D
|
|
107
|
+
/3d architecture ./src # Specific directory
|
|
108
|
+
/3d flow ./src/components/Dashboard.tsx # Component tree
|
|
109
|
+
/3d mockup # Device mockups of your app
|
|
110
|
+
/3d mock-api # API endpoint visualization
|
|
111
|
+
/3d model "futuristic AI agent robot" # Custom 3D asset
|
|
112
|
+
/3d dashboard # 3D metrics visualization
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## In Pipes
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
/pipe 3d architecture >> present architecture >> share team
|
|
119
|
+
/pipe 3d mockup >> imagine hero >> publish producthunt
|
|
120
|
+
/pipe 3d flow >> record "component walkthrough" >> publish
|
|
121
|
+
/pipe 3d mock-api >> docs >> publish notion
|
|
122
|
+
/pipe 3d model "product mascot" >> brand >> video trailer >> publish
|
|
123
|
+
```
|