@nguyenphp/antigravity-marketing 1.0.2 → 1.0.4

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/README.md CHANGED
@@ -32,7 +32,15 @@ This project is built upon and includes skills from:
32
32
  - 🎨 **[UI UX Pro Max](https://ui-ux-pro-max-skill.nextlevelbuilder.io/)** - Design intelligence skills (`ui-ux-pro-max`, `frontend-design`, `tailwind-patterns`)
33
33
  - 🛠️ **[ClaudeKit](https://claudekit.cc/)** - Production-ready skills (`seo-fundamentals`, `documentation-templates`)
34
34
 
35
- ## 🧠 Skills (24)
35
+ ## 🎥 Video Showcase (Automated via [Remotion](https://www.remotion.dev/))
36
+
37
+ ✨ **Video-Automation Skill**: This feature inherits its power directly from our Remotion-based skills, allowing for the programmatic creation of high-fidelity marketing videos.
38
+
39
+ | YouTube (16:9) | TikTok / Reels (9:16) |
40
+ |:---:|:---:|
41
+ | ![Antigravity Promo 16:9](file:///Users/mobileapp/Documents/antigravity-marketing/docs/assets/videos/antigravity-promo-169.mp4) | ![Antigravity Promo 9:16](file:///Users/mobileapp/Documents/antigravity-marketing/docs/assets/videos/antigravity-promo-916.mp4) |
42
+
43
+ ## 🧠 Skills (25)
36
44
 
37
45
  ### Content & Creative
38
46
  | Skill | Description |
@@ -40,6 +48,7 @@ This project is built upon and includes skills from:
40
48
  | `content-marketing` | Content strategy, copywriting, storytelling |
41
49
  | `branding-expert` | Brand identity, voice & tone, style guides |
42
50
  | `video-marketing` | Video strategy, YouTube SEO, short-form content |
51
+ | `video-automation` | **Automated marketing videos via Remotion** |
43
52
  | `content-repurposing` | Transform content into multiple formats |
44
53
 
45
54
  ### Growth & Acquisition
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nguyenphp/antigravity-marketing",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Marketing-focused AI agent skills kit for Gemini CLI",
5
5
  "main": "bin/index.js",
6
6
  "type": "module",
@@ -0,0 +1,117 @@
1
+ ---
2
+ name: video-automation
3
+ description: Automated video production using Remotion, covering all best practices from basics to advanced (3D, Charts, Captions).
4
+ allowed-tools: Read, RunCommand, Write
5
+ ---
6
+
7
+ # Video Automation - The Full Remotion Suite
8
+
9
+ > This skill integrates the complete Remotion best practices with the Antigravity design system. It allows the agent to build production-grade video ads automatically.
10
+
11
+ ---
12
+
13
+ ## 1. Antigravity Core Aesthetics (The Look)
14
+
15
+ Always apply these tokens to the Remotion components:
16
+ - **Background**: `#0a0a0c`
17
+ - **Primary**: `#00f2ff` (Neon Cyan)
18
+ - **Secondary**: `#ff00e5` (Neon Pink)
19
+ - **Glass**: `rgba(255, 255, 255, 0.05)` with `backdrop-filter: blur(10px)`
20
+ - **Fonts**: `Inter` or `Be Vietnam Pro` (Vietnamese Support)
21
+
22
+ ---
23
+
24
+ ## Usage Patterns (Agent Perspective)
25
+
26
+ ### 1. High-Fidelity Landing Page Cloning
27
+ When a user provides a URL (e.g., LadiPage) and asks to "Clone it":
28
+ 1. **Research Phase**: Use `browser_subagent` to extract:
29
+ - Primary and Accent brand colors.
30
+ - Hero images, service photos, and icons.
31
+ - Text headlines and hierarchy.
32
+ 2. **Implementation**: Use `interpolate`, `spring`, and `Sequence` to mirror the landing page sections into video scenes.
33
+ 3. **Aspect Ratios**: Always offer both 16:9 (Facebook Feed) and 9:16 (TikTok/Reels) to maximize reach.
34
+
35
+ ### 2. Antigravity Premium Styling (UI/UX Pro Max)
36
+ - **Glassmorphism**: Use `backdropFilter: 'blur(20px)'` with thin golden/neon borders.
37
+ - **Staggered Motion**: Map array indices and `frame` to small delays (`i * 10`) for fluid entry of elements.
38
+ - **Micro-animations**: Use `Math.sin(frame/10)` for pulsing CTA buttons or breathing backgrounds.
39
+
40
+ ## Troubleshooting & Rendering
41
+
42
+ ### FFmpeg Installation
43
+ Rendering requires FFmpeg. On macOS:
44
+ ```bash
45
+ brew install ffmpeg
46
+ ```
47
+
48
+ ### Headless Chrome Error
49
+ If `remotion render` fails with a browser launch error:
50
+ 1. Ensure Chrome is installed.
51
+ 2. If using Remotion v4.x, ensure `remotion`, `@remotion/cli`, and `@remotion/renderer` are on the latest versions (e.g., `>= 4.0.400`) to support the new Headless Shell.
52
+ 3. Pass the executable path if auto-detection fails:
53
+ ```bash
54
+ npx remotion render <id> --browser-executable="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
55
+ ```
56
+
57
+ ### Performance Tip
58
+ Use `npx remotion preview` with different ports (`--port=300x`) to show multiple variations for comparison.
59
+
60
+ ## 2. Comprehensive Module Rules (The Tech)
61
+
62
+ When building videos, refer to these specific implementation patterns:
63
+
64
+ ### 🎬 Animations & Timing
65
+ - **Interpolate EVERYTHING**: Use `interpolate(frame, [0, 20], [0, 1])` for smooth entries.
66
+ - **Springs**: Use `spring({frame, fps})` for snappy UI elements like buttons or cards.
67
+ - **Sequencing**: Wrap logical scenes in `<Sequence from={...} duration={...}>` to keep the timeline manageable.
68
+
69
+ ### 📝 Captions & Text
70
+ - **TikTok-Style**: Split text into arrays of 3-5 words. Use `display-captions` patterns.
71
+ - **Highlighting**: Change the color of the current word using the `Primary` neon color.
72
+ - **Typography**: Apply `text-shadow` for that glowing neon effect.
73
+
74
+ ### 📊 Charts & Data (For /analyze)
75
+ - **Animated Bars**: Animate the `width` or `height` of bar charts using `interpolate`.
76
+ - **Line Charts**: Use SVG `stroke-dasharray` and `stroke-dashoffset` to "draw" the lines.
77
+
78
+ ### 🌓 Transitions & Scenes
79
+ - **Slide/Fade**: Use `Transitions` patterns for moving between scenes.
80
+ - **Audio Overlap**: Ensure background music ducks slightly when voiceover or primary audio is playing.
81
+
82
+ ### 📦 Assets & Media
83
+ - **Img/Video Components**: ALWAYS use Remotion's specialized components for frame-accuracy.
84
+ - **Lottie**: Use `@remotion/lottie` for complex vector animations (marketing icons, stickers).
85
+ - **Trimming**: Handle `startFrom` and `endAt` props correctly to sync external clips.
86
+
87
+ ---
88
+
89
+ ## 3. How to Use (For Non-Tech Users)
90
+
91
+ The workflow is designed to be **AI-First**. The user provides the intent, and I (the Agent) do the execution.
92
+
93
+ ### Step 1: Brainstorming (The Prompt)
94
+ - **User**: "Tao muốn làm video ad TikTok cho campaign sale Tết, màu neon, có chữ nhảy kiểu TikTok."
95
+ - **Agent**: Dựa trên intent này, tao sẽ soạn kịch bản nháp (Storyboard) và chọn các rule phù hợp (Animations + Captions + Antigravity Style).
96
+
97
+ ### Step 2: Implementation (The Code)
98
+ - Tao sẽ tự động tạo file `remotion/MyVideo.tsx`.
99
+ - Tao sẽ cấu hình `Composition` trong `remotion/Root.tsx`.
100
+
101
+ ### Step 3: Simple Commands (The Interface)
102
+ Mầy chỉ cần quan tâm đúng 3 việc:
103
+ 1. **Preview**: `npx remotion preview` (Để xem thử trên browser).
104
+ 2. **Edit**: Nếu muốn đổi chữ, chỉ cần nói với tao "Đổi chữ A thành chữ B", tao sẽ tự sửa code.
105
+ 3. **Render**: `npx remotion render <id> out.mp4` (Để lấy file video cuối cùng).
106
+
107
+ ---
108
+
109
+ ## 4. Advanced Production Rules
110
+
111
+ - **3D Support**: Integrate `Three.js` (Three Fiber) for high-end product showcases.
112
+ - **Metadata**: Dynamically calculate duration based on audio length using `calculate-metadata`.
113
+ - **Fonts**: Load Google Fonts using `@remotion/google-fonts`.
114
+
115
+ ---
116
+
117
+ > **Note**: This skill acts as my "Brain" for Video. You don't need to read 30 files, I have already "learned" them and will apply them when you request a video.
@@ -70,11 +70,102 @@ Create campaign assets:
70
70
  - Tracking setup
71
71
  - Results report
72
72
 
73
+ ## Step 6: Presentation Builder (Optional)
74
+
75
+ Ask the user: **"Bạn có muốn tạo file thuyết trình HTML cho campaign này không?"**
76
+
77
+ If YES, follow these steps:
78
+
79
+ ### 6.1 Build HTML Presentation
80
+
81
+ Use the `ui-ux-pro-max` skill to create a stunning HTML presentation:
82
+
83
+ 1. Create a single-file HTML presentation with:
84
+ - Modern dark theme with gradient accents
85
+ - Slide-based navigation (arrow keys + click)
86
+ - Progress bar
87
+ - Touch/swipe support for mobile
88
+ - All CSS inline (no external dependencies)
89
+ - **Font selection**: Use Vietnamese-friendly fonts like `Inter`, `Be Vietnam Pro`, or `Roboto` if the content is in Vietnamese to avoid broken characters.
90
+
91
+ 2. Content slides should include:
92
+ - Title slide with campaign name
93
+ - Goals & KPIs
94
+ - Target audience
95
+ - Key messaging
96
+ - Marketing channels
97
+ - Timeline
98
+ - Content plan
99
+ - Success metrics
100
+ - CTA / Next steps
101
+
102
+ 3. Save to `docs/campaign-presentation.html`
103
+
104
+ ### 6.2 Preview Locally
105
+
106
+ Open the presentation in browser:
107
+
108
+ ```bash
109
+ # macOS
110
+ open docs/campaign-presentation.html
111
+
112
+ # Linux
113
+ xdg-open docs/campaign-presentation.html
114
+
115
+ # Windows
116
+ start docs/campaign-presentation.html
117
+ ```
118
+
119
+ ### 6.3 Deploy to Internet (Optional)
120
+
121
+ Ask the user: **"Bạn có muốn đẩy lên internet để chia sẻ không?"**
122
+
123
+ If YES, use nport to create a public URL:
124
+
125
+ ```bash
126
+ # Install nport if not installed
127
+ npm install -g nport
128
+
129
+ # Start a local server and expose it
130
+ npx serve docs -l 3000 &
131
+ nport 3000 -s <campaign-name>
132
+ ```
133
+
134
+ This will create a public URL like: `https://<campaign-name>.nport.link`
135
+
136
+ **Note**: The tunnel remains active for ~4 hours. Perfect for sharing presentations in meetings!
137
+
138
+ ## Step 7: Automated Video Production (Optional)
139
+
140
+ Ask the user: **"Bạn có muốn tạo video ad tự động cho campaign này không? (TikTok/Reels/Meta)"**
141
+ ## Bước 7: Sản xuất Video Tự động (Tùy chọn) ✨
142
+ Dành cho người dùng không rành kỹ thuật, Agent sẽ lo toàn bộ khâu code.
143
+
144
+ ### 7.1 Cách yêu cầu Agent
145
+ Mầy chỉ cần đưa yêu cầu bằng ngôn ngữ tự nhiên. Ví dụ:
146
+ - *"Clone cái landing page này thành video Facebook: [URL]"*
147
+ - *"Tạo một video TikTok giới thiệu tính năng X, phong cách neon, có hoa rơi."*
148
+ - *"Làm một bản 16:9 và một bản 9:16 cho chiến dịch Tết."*
149
+
150
+ ### 7.2 Xem Preview (Cực dễ)
151
+ Sau khi Agent code xong, mầy chỉ cần mở link Localhost mà Agent cung cấp (thường là `http://localhost:3000`).
152
+ - Nhấn **Space** để xem.
153
+ - Kéo thanh Timeline để soi từng frame.
154
+
155
+ ### 7.3 Xuất Video (Render)
156
+ Khi đã ưng ý, mầy chỉ cần bảo Agent: *"Xuất mp4 cho tao"*.
157
+ - Agent sẽ tự động kiểm tra FFmpeg.
158
+ - Nếu thiếu, Agent sẽ hướng dẫn mầy chạy: `brew install ffmpeg`.
159
+ - Sau đó Agent sẽ tự chạy lệnh render và mở file video lên cho mầy.
160
+
161
+ **Composition ID mầy cần biết:**
162
+ - Video Facebook (16:9): `JupViecTetAd`
163
+ - Video TikTok/Reels (9:16): `JupViecTetAd916` hoặc `JupViecTikTokAd`
164
+
73
165
  ## Skills Used
74
166
 
75
- - marketing-strategist
76
- - content-marketing
77
- - ppc-advertising
78
167
  - social-media-expert
79
168
  - email-marketing
80
169
  - analytics-marketing
170
+ - ui-ux-pro-max
171
+ - video-automation