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,135 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ll-heal
|
|
3
|
+
displayName: Luna Self-Heal
|
|
4
|
+
description: Continuously test, screenshot, detect issues, and auto-fix your app in a loop until healthy
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: automation
|
|
7
|
+
agent: luna-full-test
|
|
8
|
+
parameters:
|
|
9
|
+
- name: url
|
|
10
|
+
type: string
|
|
11
|
+
description: App URL to monitor and heal
|
|
12
|
+
required: true
|
|
13
|
+
prompt: true
|
|
14
|
+
- name: max_iterations
|
|
15
|
+
type: number
|
|
16
|
+
description: Max fix iterations (default 5)
|
|
17
|
+
required: false
|
|
18
|
+
prompt: false
|
|
19
|
+
workflow:
|
|
20
|
+
- launch_app_in_browser
|
|
21
|
+
- run_all_test_flows
|
|
22
|
+
- screenshot_every_page
|
|
23
|
+
- analyze_with_vision_ai
|
|
24
|
+
- identify_issues
|
|
25
|
+
- auto_fix_code
|
|
26
|
+
- retest_and_screenshot
|
|
27
|
+
- loop_until_healthy
|
|
28
|
+
- generate_heal_report
|
|
29
|
+
output:
|
|
30
|
+
- .luna/{current-project}/heal-report.md
|
|
31
|
+
prerequisites: []
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
# Luna Self-Heal
|
|
35
|
+
|
|
36
|
+
Continuously test, screenshot, detect, and fix your app until everything works.
|
|
37
|
+
|
|
38
|
+
## What This Command Does
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
Launch browser
|
|
42
|
+
→ Navigate every page
|
|
43
|
+
→ Screenshot everything
|
|
44
|
+
→ Vision AI: find issues
|
|
45
|
+
→ Fix code automatically
|
|
46
|
+
→ Retest
|
|
47
|
+
→ Still broken? Fix again
|
|
48
|
+
→ Repeat until healthy (max 5 iterations)
|
|
49
|
+
→ Report everything
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## The Heal Loop
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
Iteration 1:
|
|
56
|
+
├── Browse all routes
|
|
57
|
+
├── Screenshot 4 viewports per page
|
|
58
|
+
├── Vision AI detects: "Button overflows on mobile"
|
|
59
|
+
├── Reads src/components/Button.tsx
|
|
60
|
+
├── Fixes: adds responsive styles
|
|
61
|
+
└── Retests → Button fixed ✓
|
|
62
|
+
|
|
63
|
+
Iteration 2:
|
|
64
|
+
├── Browse all routes
|
|
65
|
+
├── Screenshot 4 viewports per page
|
|
66
|
+
├── Vision AI detects: "Dashboard chart not loading"
|
|
67
|
+
├── Reads src/components/Chart.tsx + API route
|
|
68
|
+
├── Fixes: corrects API endpoint URL
|
|
69
|
+
└── Retests → Chart loads ✓
|
|
70
|
+
|
|
71
|
+
Iteration 3:
|
|
72
|
+
├── Browse all routes
|
|
73
|
+
├── All screenshots pass
|
|
74
|
+
└── App is healthy ✓ → Generate report
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## What Gets Fixed
|
|
78
|
+
|
|
79
|
+
| Category | Issue Types |
|
|
80
|
+
|----------|------------|
|
|
81
|
+
| **Layout** | Overflow, broken grid, overlapping elements, misalignment |
|
|
82
|
+
| **Responsive** | Content cut off on mobile, horizontal scroll, tiny text |
|
|
83
|
+
| **Functionality** | Buttons not working, forms not submitting, broken links |
|
|
84
|
+
| **Data** | API errors, missing data, loading forever, empty states |
|
|
85
|
+
| **Styles** | Wrong colors, missing dark mode, inconsistent spacing |
|
|
86
|
+
| **Accessibility** | Missing focus, low contrast, no keyboard nav |
|
|
87
|
+
| **Performance** | Slow load, layout shifts, large images |
|
|
88
|
+
|
|
89
|
+
## Usage
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
/heal http://localhost:3000 # Full heal
|
|
93
|
+
/heal http://localhost:3000 --max 3 # Max 3 fix iterations
|
|
94
|
+
/heal https://staging.myapp.com # Heal staging
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## In Pipes
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
# Implement then heal
|
|
101
|
+
/pipe go *5 >> heal http://localhost:3000 >> pr
|
|
102
|
+
|
|
103
|
+
# Full autopilot: build, heal, ship
|
|
104
|
+
/pipe feature "add dashboard" >> heal http://localhost:3000 ?>> ship
|
|
105
|
+
|
|
106
|
+
# Heal after every deploy
|
|
107
|
+
/pipe ship >> heal https://staging.myapp.com ?>> approve "Promote to prod?"
|
|
108
|
+
|
|
109
|
+
# Continuous healing
|
|
110
|
+
/pipe watch src/ >> heal http://localhost:3000
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## Heal vs Other Test Commands
|
|
114
|
+
|
|
115
|
+
| Command | What It Does |
|
|
116
|
+
|---------|-------------|
|
|
117
|
+
| `/test` | Runs existing unit/integration tests |
|
|
118
|
+
| `/browser-test` | Tests flows + screenshots, reports failures |
|
|
119
|
+
| `/e2e-flow` | Generates Playwright test files |
|
|
120
|
+
| `/visual-regression` | Compares before/after screenshots |
|
|
121
|
+
| `/heal` | **Tests + screenshots + auto-fixes + retests in a loop until healthy** |
|
|
122
|
+
|
|
123
|
+
## Output
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
.luna/{project}/heal-report.md
|
|
127
|
+
.luna/{project}/browser-test/
|
|
128
|
+
screenshots/ # Final healthy screenshots
|
|
129
|
+
iterations/
|
|
130
|
+
1/ # Iteration 1 screenshots + fixes
|
|
131
|
+
screenshots/
|
|
132
|
+
fixes/
|
|
133
|
+
2/ # Iteration 2 screenshots + fixes
|
|
134
|
+
3/ # Final iteration (all healthy)
|
|
135
|
+
```
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ll-heygen
|
|
3
|
+
displayName: Luna HeyGen Transform
|
|
4
|
+
description: Transform any webapp into HeyGen-style professional dark UI — design tokens, components, layouts, flows, and AI avatar video generation
|
|
5
|
+
version: 2.0.0
|
|
6
|
+
category: creative
|
|
7
|
+
agent: luna-task-executor
|
|
8
|
+
parameters:
|
|
9
|
+
- name: url
|
|
10
|
+
type: string
|
|
11
|
+
description: Target webapp URL or local path to transform
|
|
12
|
+
required: true
|
|
13
|
+
prompt: true
|
|
14
|
+
- name: mode
|
|
15
|
+
type: string
|
|
16
|
+
description: "Mode: transform (apply design system), video (generate demo video), full (both)"
|
|
17
|
+
required: false
|
|
18
|
+
default: full
|
|
19
|
+
- name: avatar
|
|
20
|
+
type: string
|
|
21
|
+
description: "HeyGen avatar ID for video (or 'default')"
|
|
22
|
+
required: false
|
|
23
|
+
default: default
|
|
24
|
+
mcp_servers:
|
|
25
|
+
- playwright
|
|
26
|
+
- zai-mcp-server
|
|
27
|
+
prerequisites: []
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
# Luna HeyGen Transform
|
|
31
|
+
|
|
32
|
+
Transform any webapp into the HeyGen-style professional dark UI design system, then generate an AI avatar product video. Uses the exact design tokens, components, and patterns from the HeyGen/Pushci transformation guide.
|
|
33
|
+
|
|
34
|
+
## What This Command Does
|
|
35
|
+
|
|
36
|
+
### Transform Mode
|
|
37
|
+
Analyzes the target webapp and generates a complete redesign using the HeyGen dark UI pattern:
|
|
38
|
+
|
|
39
|
+
1. **Audit** — Screenshots the current webapp, identifies all pages and components
|
|
40
|
+
2. **Map** — Maps existing elements to the HeyGen design system equivalents
|
|
41
|
+
3. **Generate** — Produces a transformation guide specific to that webapp:
|
|
42
|
+
- CSS variables (design tokens) mapped to the app's brand color
|
|
43
|
+
- Component-by-component transformation specs
|
|
44
|
+
- Page layout restructuring (sidebar + content pattern)
|
|
45
|
+
- Navigation redesign
|
|
46
|
+
- Typography scale application
|
|
47
|
+
- Motion/transition specs
|
|
48
|
+
4. **Apply** — Generates the actual CSS/component code to transform the app
|
|
49
|
+
5. **Output** — Full transformation guide as an interactive HTML page (like the reference)
|
|
50
|
+
|
|
51
|
+
### Video Mode
|
|
52
|
+
Captures the transformed (or existing) webapp and produces a HeyGen AI avatar video.
|
|
53
|
+
|
|
54
|
+
### Full Mode (default)
|
|
55
|
+
Does both: transform the design, then record the demo video.
|
|
56
|
+
|
|
57
|
+
## Design System Applied
|
|
58
|
+
|
|
59
|
+
### Core Design Tokens
|
|
60
|
+
```css
|
|
61
|
+
:root {
|
|
62
|
+
/* Backgrounds (3-level depth) */
|
|
63
|
+
--bg-root: #0d0d0d; /* body */
|
|
64
|
+
--bg-surface: #141414; /* sidebar, cards */
|
|
65
|
+
--bg-raised: #1a1a1a; /* inputs, hover */
|
|
66
|
+
--bg-hover: #222222; /* active state */
|
|
67
|
+
|
|
68
|
+
/* Borders */
|
|
69
|
+
--border: #2a2a2a; /* subtle divider */
|
|
70
|
+
--border-em: #333333; /* emphasized */
|
|
71
|
+
|
|
72
|
+
/* Text */
|
|
73
|
+
--text-1: #f0f0f0; /* headings */
|
|
74
|
+
--text-2: #a0a0a0; /* body */
|
|
75
|
+
--text-3: #666666; /* meta */
|
|
76
|
+
|
|
77
|
+
/* Brand Accent (adapted per app) */
|
|
78
|
+
--accent: #7c5cfc;
|
|
79
|
+
--accent-dark:#6b4ef0;
|
|
80
|
+
--accent-glow:rgba(124,92,252,0.15);
|
|
81
|
+
|
|
82
|
+
/* Semantic */
|
|
83
|
+
--success: #22c55e;
|
|
84
|
+
--info: #3b82f6;
|
|
85
|
+
--warning: #f97316;
|
|
86
|
+
--danger: #ef4444;
|
|
87
|
+
|
|
88
|
+
/* Radius Scale */
|
|
89
|
+
--r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px;
|
|
90
|
+
|
|
91
|
+
/* Layout */
|
|
92
|
+
--sidebar-w: 220px;
|
|
93
|
+
--content-p: 28px 32px;
|
|
94
|
+
|
|
95
|
+
/* Transitions */
|
|
96
|
+
--t-fast: all 0.15s ease;
|
|
97
|
+
--t-spring: all 0.2s cubic-bezier(0.34, 1.3, 0.7, 1);
|
|
98
|
+
|
|
99
|
+
/* Typography */
|
|
100
|
+
--font-ui: 'SF Pro Display', system-ui, sans-serif;
|
|
101
|
+
--font-mono:'SF Mono', 'Fira Code', monospace;
|
|
102
|
+
}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Layout Pattern
|
|
106
|
+
- **App shell**: 2-column flex (fixed sidebar + scrollable main)
|
|
107
|
+
- **Sidebar**: 220px wide, `--bg-surface`, border-right
|
|
108
|
+
- **Content**: max-width 1100px, padding 28px 32px
|
|
109
|
+
- **Cards**: `--bg-surface`, 1px border, radius 14px, padding 18px
|
|
110
|
+
- **Grids**: auto-fill minmax(200px, 1fr), 14px gap
|
|
111
|
+
|
|
112
|
+
### Typography Scale
|
|
113
|
+
| Role | Size | Weight | Color |
|
|
114
|
+
|------|------|--------|-------|
|
|
115
|
+
| Page title | 22px | 600 | --text-1 |
|
|
116
|
+
| Section heading | 18px | 600 | --text-1 |
|
|
117
|
+
| Card title | 14px | 600 | --text-1 |
|
|
118
|
+
| Body / nav | 13.5px | 400 | --text-2 |
|
|
119
|
+
| Label | 12px | 600 | contextual |
|
|
120
|
+
| Caption | 11px | 400 | --text-3 |
|
|
121
|
+
| Divider label | 10px | 600 | uppercase tracking .1em |
|
|
122
|
+
|
|
123
|
+
### Component Patterns
|
|
124
|
+
- **Buttons**: Primary (accent bg), Secondary (raised bg + border), Ghost (transparent + border)
|
|
125
|
+
- **Inputs**: raised bg, border-em, 9px 12px padding, focus = accent border + glow
|
|
126
|
+
- **Cards**: surface bg, border, r-lg, hover = border-em + translateY(-1px)
|
|
127
|
+
- **Pills/Tabs**: border bottom 2px, active = accent color + border
|
|
128
|
+
- **Badges**: tinted bg (15% opacity) + semantic color text
|
|
129
|
+
- **Nav items**: 8px padding, r-sm radius, icon 16px + 10px gap
|
|
130
|
+
|
|
131
|
+
### Motion
|
|
132
|
+
- Hover: translateY(-1px) on cards, scale(0.97) on button press
|
|
133
|
+
- Focus: 3px box-shadow with accent-glow
|
|
134
|
+
- Page transitions: fade 0.2s or slide 0.3s
|
|
135
|
+
- Spring easing: cubic-bezier(0.34, 1.3, 0.7, 1) for interactive elements
|
|
136
|
+
|
|
137
|
+
## Usage
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
# Transform + video
|
|
141
|
+
/heygen https://myapp.com
|
|
142
|
+
|
|
143
|
+
# Just apply the design system
|
|
144
|
+
/heygen https://myapp.com transform
|
|
145
|
+
|
|
146
|
+
# Just generate video
|
|
147
|
+
/heygen https://myapp.com video
|
|
148
|
+
|
|
149
|
+
# Transform a local project
|
|
150
|
+
/heygen http://localhost:3000 transform
|
|
151
|
+
|
|
152
|
+
# With specific accent color (adapt the purple to your brand)
|
|
153
|
+
/heygen https://myapp.com --accent "#3b82f6"
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
## Output
|
|
157
|
+
|
|
158
|
+
```
|
|
159
|
+
.luna/{project}/heygen/
|
|
160
|
+
transformation-guide.html # Interactive guide (like the reference)
|
|
161
|
+
design-tokens.css # Ready-to-paste CSS variables
|
|
162
|
+
components.css # Component styles
|
|
163
|
+
layout.css # App shell + grid styles
|
|
164
|
+
page-specs/ # Per-page transformation specs
|
|
165
|
+
home.md
|
|
166
|
+
dashboard.md
|
|
167
|
+
settings.md
|
|
168
|
+
...
|
|
169
|
+
screenshots/ # Before/after captures
|
|
170
|
+
before/
|
|
171
|
+
after/
|
|
172
|
+
video/ # HeyGen video assets
|
|
173
|
+
video.mp4
|
|
174
|
+
voice/
|
|
175
|
+
flow.json
|
|
176
|
+
checklist.md # Transformation progress checklist
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
## How It Adapts Per App
|
|
180
|
+
|
|
181
|
+
The agent doesn't blindly copy HeyGen's UI. It:
|
|
182
|
+
|
|
183
|
+
1. **Detects the app's primary color** and maps it to `--accent`
|
|
184
|
+
2. **Identifies the navigation pattern** and restructures to sidebar layout
|
|
185
|
+
3. **Maps existing components** to the design system equivalents
|
|
186
|
+
4. **Preserves content and functionality** — only changes visual presentation
|
|
187
|
+
5. **Generates the transformation guide** as an interactive HTML page matching the reference format, but with the target app's specific pages, flows, and components
|
|
188
|
+
|
|
189
|
+
## Reference
|
|
190
|
+
The full design specification is at: `html/heygen-pushci-guide.html`
|
|
191
|
+
|
|
192
|
+
## In Pipes
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
# Transform then audit
|
|
196
|
+
/pipe heygen https://myapp.com transform >> site-audit https://myapp.com
|
|
197
|
+
|
|
198
|
+
# Full product launch
|
|
199
|
+
/pipe heygen https://myapp.com full >> browser-test https://myapp.com >> ship
|
|
200
|
+
|
|
201
|
+
# Transform, test, fix loop
|
|
202
|
+
/pipe heygen https://myapp.com transform >> browser-test >> fix >> heal
|
|
203
|
+
```
|