animate-10x-better 1.0.0 → 1.1.0

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
@@ -1,55 +1,41 @@
1
1
  # animate-10x-better
2
2
 
3
- Instantly install curated programmatic video, animation, motion-graphics, and slide-deck skills across any AI coding CLI or IDE (Claude Code, Kiro CLI V3, Cursor, Gemini CLI, Codex CLI, OpenCode, Antigravity) and inject a clean skill routing guide into `AGENTS.md`.
3
+ Zero-bloat setup for programmatic video, animation reverse-engineering, 3D choreography, math animation, and slide-deck skills across any AI coding CLI or IDE (Claude Code, Kiro CLI V3, Cursor, Gemini CLI, Codex CLI, OpenCode, Antigravity).
4
4
 
5
5
  Zero external npm dependencies. Node.js 18+ ESM.
6
6
 
7
+ ## Why Folder Architecture?
8
+
9
+ Cloning 10 skill repositories upfront bloats your workspace and your agent's context window. Instead, running `npx animate-10x-better` completes in `<1 second` with **zero network clones by default**:
10
+
11
+ 1. Creates `./animate-10x-better/` (or `~/.agents/animate-10x-better/` with `--global`).
12
+ 2. Writes `animate-10x-better/AGENTS.md` — the 4-phase discovery, workspace theme-sync, storyboarding, and visual-verification playbook.
13
+ 3. Writes `animate-10x-better/SKILL.md` — the complete 11-repo skill catalog with descriptions, gotchas, and exact on-demand `npx skills add` commands.
14
+ 4. Injects a short, non-destructive pointer into your root `./AGENTS.md` (or `~/.agents/AGENTS.md` with `--global`) so your coding agent loads `AGENTS.md` and `SKILL.md` only when an animation or slide task arises, and installs only the single best engine on demand.
15
+
7
16
  ## Quick Start
8
17
 
9
18
  ```bash
10
19
  npx animate-10x-better
11
20
  ```
12
21
 
13
- Or install non-interactively with all presets:
22
+ Non-interactive fast local setup:
14
23
 
15
24
  ```bash
16
25
  npx animate-10x-better --yes
17
26
  ```
18
27
 
19
- Install globally (skills installed with `-g` and routing guide written to `~/.agents/AGENTS.md`):
28
+ Install globally under `~/.agents/`:
20
29
 
21
30
  ```bash
22
31
  npx animate-10x-better --global --yes
23
32
  ```
24
33
 
25
- ## Presets & Skill Catalog
26
-
27
- Pick a focused preset to keep your agent's context window lean, or install `all`.
28
-
29
- ### `video` — Programmatic Video, Motion & Cloning
30
- | Skill | Source Command | Best For |
31
- | :--- | :--- | :--- |
32
- | `reanimate` | `npx skills add NiazMorshed2007/reanimate -y` | Frame-by-frame animation cloning & reverse-engineering |
33
- | `hyperframes` | `npx skills add heygen-com/hyperframes -y` | HTML/CSS/GSAP video rendering, 450+ blocks, captions, voiceovers |
34
- | `remotion` | `npx skills add remotion-dev/skills -y` | React/TypeScript video templates, Mapbox/CesiumJS flyovers |
35
- | `manim` | `npx skills add iart-ai/manim-skills --skill manim -y` | Math, LaTeX equations, proofs, and algorithm explainers (Python) |
34
+ Optionally pre-install ONE engine skill right away with `--preset <name>`:
36
35
 
37
- ### `slides` — Developer Decks, Markdown Slides & PowerPoint
38
- | Skill | Source Command | Best For |
39
- | :--- | :--- | :--- |
40
- | `slidev` | `npx skills add slidevjs/slidev --skill slidev -y` | Developer talks with Markdown, Vue components, and code diffs |
41
- | `marp-slide` | `npx skills add jjmartres/ai-coding-agents --skill marp-slide -y` | Fast pure-Markdown slides exported to PDF/PPTX/HTML |
42
- | `revealjs` | `npx skills add ryanbbrown/revealjs-skill --skill revealjs -y` | Single-file portable browser decks with fragments & speaker notes |
43
- | `pptx` | `npx skills add anthropics/skills --skill pptx -y` | Editable PowerPoint (`.pptx`) decks via PptxGenJS |
44
-
45
- ### `3d` — Procedural TypeScript Motion & 3D Choreography
46
- | Skill | Source Command | Best For |
47
- | :--- | :--- | :--- |
48
- | `motion-canvas` | `npx skills add videozero/skills --skill motion-canvas -y` | Generator-based (`makeScene2D`) technical & architecture explainers |
49
- | `theatre-js` | `npx skills add noklip-io/agent-skills --skill theatre-js -y` | Three.js / React Three Fiber keyframed 3D camera & scene timelines |
50
-
51
- ### `all`
52
- Installs all 10 skill entries above.
36
+ ```bash
37
+ npx animate-10x-better --preset hyperframes --yes
38
+ ```
53
39
 
54
40
  ## CLI Options
55
41
 
@@ -58,20 +44,24 @@ Usage:
58
44
  npx animate-10x-better [options]
59
45
 
60
46
  Options:
61
- --preset <video|slides|3d|all> Select skill preset to install
62
- -g, --global Install skills globally (-g) and write ~/.agents/AGENTS.md
63
- -y, --yes Skip interactive prompts and use defaults (preset: all)
64
- --dry-run Print commands and preview AGENTS.md changes without modifying anything
65
- -h, --help Show help and exit
47
+ --preset <name> Optionally pre-install ONE engine skill immediately
48
+ -g, --global Install folder and pointer under ~/.agents/ (and pass -g to --preset)
49
+ -y, --yes Skip any interactive prompt and finish local setup immediately
50
+ --dry-run Preview target files and any --preset command without modifying anything
51
+ -h, --help Show help and exit
66
52
  ```
67
53
 
54
+ ### Available `--preset` Values
55
+ - **Video & Motion:** `hyperframes`, `remotion`, `reanimate`, `manim`, `motion-canvas`, `theatre-js`
56
+ - **Slide Decks:** `slidev`, `marp`, `revealjs`, `pptx`
57
+
68
58
  ## Non-Destructive `AGENTS.md` & `CLAUDE.md` Updates
69
59
 
70
60
  - Target file: `./AGENTS.md` (project mode) or `~/.agents/AGENTS.md` (`--global` mode).
71
61
  - Uses `<!-- animate-10x-better:start -->` and `<!-- animate-10x-better:end -->` markers.
72
- - Re-running replaces only the marked block in-place without duplicating content.
73
- - Existing rules in `AGENTS.md` are always preserved.
74
- - In project mode, if `./CLAUDE.md` exists and does not already reference `AGENTS.md`, `@AGENTS.md` is appended automatically so Claude Code loads it too.
62
+ - Preserves existing blocks (such as `kiro-10x-better`, `design-10x-better`, and custom project rules).
63
+ - Re-running replaces only the `animate-10x-better` pointer block in-place without duplicating anything.
64
+ - In project mode, if `./CLAUDE.md` exists and does not already reference `AGENTS.md`, `@AGENTS.md` is appended automatically.
75
65
 
76
66
  ## License
77
67
 
package/bin/cli.mjs CHANGED
@@ -10,53 +10,50 @@ import { fileURLToPath } from "node:url";
10
10
  const START_MARKER = "<!-- animate-10x-better:start -->";
11
11
  const END_MARKER = "<!-- animate-10x-better:end -->";
12
12
 
13
- const PRESETS = {
14
- video: [
15
- { name: "reanimate", args: ["skills", "add", "NiazMorshed2007/reanimate", "-y"] },
16
- { name: "hyperframes", args: ["skills", "add", "heygen-com/hyperframes", "-y"] },
17
- { name: "remotion", args: ["skills", "add", "remotion-dev/skills", "-y"] },
18
- { name: "manim", args: ["skills", "add", "iart-ai/manim-skills", "--skill", "manim", "-y"] },
19
- ],
20
- slides: [
21
- { name: "slidev", args: ["skills", "add", "slidevjs/slidev", "--skill", "slidev", "-y"] },
22
- { name: "marp-slide", args: ["skills", "add", "jjmartres/ai-coding-agents", "--skill", "marp-slide", "-y"] },
23
- { name: "revealjs", args: ["skills", "add", "ryanbbrown/revealjs-skill", "--skill", "revealjs", "-y"] },
24
- { name: "pptx", args: ["skills", "add", "anthropics/skills", "--skill", "pptx", "-y"] },
25
- ],
26
- "3d": [
27
- { name: "motion-canvas", args: ["skills", "add", "videozero/skills", "--skill", "motion-canvas", "-y"] },
28
- { name: "theatre-js", args: ["skills", "add", "noklip-io/agent-skills", "--skill", "theatre-js", "-y"] },
29
- ],
13
+ const PRESET_SKILLS = {
14
+ hyperframes: { name: "hyperframes", args: ["skills", "add", "heygen-com/hyperframes", "--skill", "hyperframes", "-y"] },
15
+ remotion: { name: "remotion-best-practices", args: ["skills", "add", "remotion-dev/skills", "--skill", "remotion-best-practices", "-y"] },
16
+ reanimate: { name: "reanimate", args: ["skills", "add", "NiazMorshed2007/reanimate", "-y"] },
17
+ manim: { name: "manim", args: ["skills", "add", "iart-ai/manim-skills", "--skill", "manim", "-y"] },
18
+ "motion-canvas": { name: "motion-canvas", args: ["skills", "add", "videozero/skills", "--skill", "motion-canvas", "-y"] },
19
+ "theatre-js": { name: "theatre-js", args: ["skills", "add", "noklip-io/agent-skills", "--skill", "theatre-js", "-y"] },
20
+ slidev: { name: "slidev", args: ["skills", "add", "slidevjs/slidev", "--skill", "slidev", "-y"] },
21
+ marp: { name: "marp-slide", args: ["skills", "add", "jjmartres/ai-coding-agents", "--skill", "marp-slide", "-y"] },
22
+ revealjs: { name: "revealjs", args: ["skills", "add", "ryanbbrown/revealjs-skill", "--skill", "revealjs", "-y"] },
23
+ pptx: { name: "pptx", args: ["skills", "add", "anthropics/skills", "--skill", "pptx", "-y"] },
30
24
  };
31
25
 
32
- PRESETS.all = [...PRESETS.video, ...PRESETS.slides, ...PRESETS["3d"]];
33
-
34
- const VALID_PRESETS = Object.keys(PRESETS);
26
+ const VALID_PRESETS = Object.keys(PRESET_SKILLS);
35
27
 
36
28
  function printHelp() {
37
- console.log(`animate-10x-better - Install programmatic video, animation, and slide-deck skills
29
+ console.log(`animate-10x-better - Zero-bloat folder setup for programmatic video, animation & slide skills
38
30
 
39
31
  Usage:
40
32
  npx animate-10x-better [options]
41
33
 
34
+ Default Behavior (Zero Network Clones):
35
+ 1. Creates ./animate-10x-better/ (or ~/.agents/animate-10x-better/ with --global)
36
+ 2. Writes AGENTS.md (4-phase workflow playbook) and SKILL.md (11-repo skill catalog)
37
+ 3. Injects a short non-destructive pointer into ./AGENTS.md (or ~/.agents/AGENTS.md)
38
+ 4. Syncs @AGENTS.md into ./CLAUDE.md if present in project mode
39
+
42
40
  Options:
43
- --preset <video|slides|3d|all> Skill pack to install (default: interactive prompt, or "all" with --yes)
44
- -g, --global Pass -g to npx skills add and write ~/.agents/AGENTS.md
45
- -y, --yes Skip interactive prompts and use defaults
46
- --dry-run Preview skill commands and AGENTS.md injection without making changes
47
- -h, --help Show this help message and exit
48
-
49
- Presets:
50
- video Programmatic Video, Motion & Cloning (reanimate, hyperframes, remotion, manim)
51
- slides Developer Decks, Markdown Slides & PowerPoint (slidev, marp-slide, revealjs, pptx)
52
- 3d Procedural TypeScript Motion & 3D Choreography (motion-canvas, theatre-js)
53
- all All 10 skills from video, slides, and 3d
41
+ --preset <name> Optionally pre-install ONE engine skill immediately
42
+ -g, --global Install folder and pointer under ~/.agents/ (and pass -g to --preset)
43
+ -y, --yes Skip any interactive prompt and finish local setup immediately
44
+ --dry-run Preview target files and any --preset command without modifying anything
45
+ -h, --help Show this help message and exit
46
+
47
+ Available --preset Values:
48
+ Video & Motion: hyperframes, remotion, reanimate, manim, motion-canvas, theatre-js
49
+ Slide Decks: slidev, marp, revealjs, pptx
54
50
 
55
51
  Examples:
56
52
  npx animate-10x-better
57
- npx animate-10x-better --preset video
53
+ npx animate-10x-better --yes
58
54
  npx animate-10x-better --global --yes
59
- npx animate-10x-better --dry-run --preset slides`);
55
+ npx animate-10x-better --preset hyperframes --yes
56
+ npx animate-10x-better --dry-run`);
60
57
  }
61
58
 
62
59
  function parseArgs(argv) {
@@ -82,14 +79,14 @@ function parseArgs(argv) {
82
79
  } else if (arg === "--preset") {
83
80
  const value = argv[i + 1];
84
81
  if (!value || value.startsWith("-")) {
85
- throw new Error("Missing value for --preset. Expected one of: video, slides, 3d, all.");
82
+ throw new Error(`Missing value for --preset. Expected one of: ${VALID_PRESETS.join(", ")}.`);
86
83
  }
87
84
  options.preset = value.toLowerCase();
88
85
  i += 1;
89
86
  } else if (arg.startsWith("--preset=")) {
90
87
  const value = arg.slice("--preset=".length);
91
88
  if (!value) {
92
- throw new Error("Missing value for --preset. Expected one of: video, slides, 3d, all.");
89
+ throw new Error(`Missing value for --preset. Expected one of: ${VALID_PRESETS.join(", ")}.`);
93
90
  }
94
91
  options.preset = value.toLowerCase();
95
92
  } else {
@@ -106,49 +103,24 @@ function parseArgs(argv) {
106
103
  return options;
107
104
  }
108
105
 
109
- async function promptForPreset() {
110
- if (!process.stdin.isTTY) {
111
- return "all";
112
- }
106
+ function getTemplatesDir() {
107
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
108
+ return path.resolve(__dirname, "..", "templates");
109
+ }
113
110
 
114
- const rl = createInterface({ input: process.stdin, output: process.stdout });
115
- try {
116
- console.log("Select a skill preset to install:");
117
- console.log(" 1) video (reanimate, hyperframes, remotion, manim)");
118
- console.log(" 2) slides (slidev, marp-slide, revealjs, pptx)");
119
- console.log(" 3) 3d (motion-canvas, theatre-js)");
120
- console.log(" 4) all (all 10 skills - default)");
121
-
122
- const choiceMap = {
123
- "1": "video",
124
- video: "video",
125
- "2": "slides",
126
- slides: "slides",
127
- "3": "3d",
128
- "3d": "3d",
129
- "4": "all",
130
- all: "all",
131
- "": "all",
132
- };
111
+ function loadTemplates({ globalInstall }) {
112
+ const templatesDir = getTemplatesDir();
113
+ const folderAgents = fs.readFileSync(path.join(templatesDir, "folder-agents.md"), "utf8");
114
+ const folderSkill = fs.readFileSync(path.join(templatesDir, "folder-skill.md"), "utf8");
115
+ let rootPointer = fs.readFileSync(path.join(templatesDir, "root-agents-pointer.md"), "utf8").trim();
133
116
 
134
- while (true) {
135
- const answer = (await rl.question("Enter choice [1-4] (default: 4): ")).trim().toLowerCase();
136
- if (answer in choiceMap) {
137
- return choiceMap[answer];
138
- }
139
- console.log("Invalid selection. Please enter 1, 2, 3, 4, or a preset name.");
140
- }
141
- } catch {
142
- return "all";
143
- } finally {
144
- rl.close();
117
+ if (globalInstall) {
118
+ rootPointer = rootPointer
119
+ .replace("./animate-10x-better/AGENTS.md", "~/.agents/animate-10x-better/AGENTS.md")
120
+ .replace("./animate-10x-better/SKILL.md", "~/.agents/animate-10x-better/SKILL.md");
145
121
  }
146
- }
147
122
 
148
- function loadAgentsBlock() {
149
- const __dirname = path.dirname(fileURLToPath(import.meta.url));
150
- const templatePath = path.resolve(__dirname, "..", "templates", "agents-block.md");
151
- return fs.readFileSync(templatePath, "utf8").trim();
123
+ return { folderAgents, folderSkill, rootPointer };
152
124
  }
153
125
 
154
126
  function computeAgentsUpdate(existingContent, blockContent) {
@@ -190,54 +162,18 @@ function computeAgentsUpdate(existingContent, blockContent) {
190
162
  };
191
163
  }
192
164
 
193
- function installSkills(skills, { globalInstall, dryRun }) {
194
- const total = skills.length;
195
- const succeeded = [];
196
- const failed = [];
197
-
198
- for (let i = 0; i < total; i += 1) {
199
- const skill = skills[i];
200
- const cmdArgs = globalInstall ? [...skill.args, "-g"] : [...skill.args];
201
- const cmdDisplay = `npx ${cmdArgs.join(" ")}`;
165
+ function installLocalFolderAndPointer({ globalInstall, dryRun }) {
166
+ const baseDir = globalInstall ? path.join(os.homedir(), ".agents") : process.cwd();
167
+ const folderDir = path.join(baseDir, "animate-10x-better");
168
+ const folderAgentsPath = path.join(folderDir, "AGENTS.md");
169
+ const folderSkillPath = path.join(folderDir, "SKILL.md");
170
+ const rootAgentsPath = path.join(baseDir, "AGENTS.md");
202
171
 
203
- if (dryRun) {
204
- console.log(` [${i + 1}/${total}] ${skill.name}: ${cmdDisplay}`);
205
- succeeded.push(skill.name);
206
- continue;
207
- }
208
-
209
- console.log(`\n[${i + 1}/${total}] Installing ${skill.name}...`);
210
- console.log(`> ${cmdDisplay}`);
172
+ const { folderAgents, folderSkill, rootPointer } = loadTemplates({ globalInstall });
211
173
 
212
- const result = spawnSync("npx", cmdArgs, {
213
- stdio: "inherit",
214
- shell: process.platform === "win32",
215
- });
216
-
217
- if (result.error || result.status !== 0) {
218
- const reason = result.error ? result.error.message : `exit code ${result.status}`;
219
- console.warn(
220
- `Warning: Failed to install "${skill.name}" (${reason}).\n` +
221
- ` Run manually later: ${cmdDisplay}`
222
- );
223
- failed.push({ name: skill.name, command: cmdDisplay });
224
- } else {
225
- succeeded.push(skill.name);
226
- }
227
- }
228
-
229
- return { succeeded, failed };
230
- }
231
-
232
- function applyAgentsInjection({ globalInstall, dryRun }) {
233
- const targetPath = globalInstall
234
- ? path.join(os.homedir(), ".agents", "AGENTS.md")
235
- : path.join(process.cwd(), "AGENTS.md");
236
-
237
- const blockContent = loadAgentsBlock();
238
- const exists = fs.existsSync(targetPath);
239
- const existingContent = exists ? fs.readFileSync(targetPath, "utf8") : null;
240
- const { action, content } = computeAgentsUpdate(existingContent, blockContent);
174
+ const rootExists = fs.existsSync(rootAgentsPath);
175
+ const existingRoot = rootExists ? fs.readFileSync(rootAgentsPath, "utf8") : null;
176
+ const { action: rootAction, content: rootContent } = computeAgentsUpdate(existingRoot, rootPointer);
241
177
 
242
178
  const claudePath = !globalInstall ? path.join(process.cwd(), "CLAUDE.md") : null;
243
179
  const shouldUpdateClaude =
@@ -246,31 +182,103 @@ function applyAgentsInjection({ globalInstall, dryRun }) {
246
182
  !fs.readFileSync(claudePath, "utf8").includes("AGENTS.md");
247
183
 
248
184
  if (dryRun) {
249
- console.log(`\n[dry-run] AGENTS.md target: ${targetPath} (action: ${action})`);
250
- console.log("[dry-run] Block preview:\n");
251
- console.log(blockContent);
185
+ console.log("\n[dry-run] Local files that would be created/updated:");
186
+ console.log(` - Write: ${folderAgentsPath}`);
187
+ console.log(` - Write: ${folderSkillPath}`);
188
+ console.log(` - ${rootAction === "create" ? "Create" : rootAction === "update" ? "Update block in" : "Append block to"}: ${rootAgentsPath}`);
252
189
  if (shouldUpdateClaude) {
253
- console.log(`\n[dry-run] Would also append @AGENTS.md to ${claudePath}`);
190
+ console.log(` - Append @AGENTS.md to: ${claudePath}`);
254
191
  }
255
192
  return;
256
193
  }
257
194
 
258
- fs.mkdirSync(path.dirname(targetPath), { recursive: true });
259
- fs.writeFileSync(targetPath, content, "utf8");
195
+ fs.mkdirSync(folderDir, { recursive: true });
196
+ fs.writeFileSync(folderAgentsPath, folderAgents, "utf8");
197
+ fs.writeFileSync(folderSkillPath, folderSkill, "utf8");
198
+ fs.writeFileSync(rootAgentsPath, rootContent, "utf8");
199
+
200
+ console.log(` Wrote ${folderAgentsPath}`);
201
+ console.log(` Wrote ${folderSkillPath}`);
260
202
 
261
203
  const actionLabel =
262
- action === "create"
204
+ rootAction === "create"
263
205
  ? "Created"
264
- : action === "update"
265
- ? "Updated existing animate-10x-better block in"
266
- : "Appended routing guide to";
267
- console.log(`\n${actionLabel}: ${targetPath}`);
206
+ : rootAction === "update"
207
+ ? "Updated animate-10x-better pointer in"
208
+ : "Appended animate-10x-better pointer to";
209
+ console.log(` ${actionLabel} ${rootAgentsPath}`);
268
210
 
269
211
  if (shouldUpdateClaude) {
270
212
  const claudeContent = fs.readFileSync(claudePath, "utf8");
271
213
  const separator = claudeContent.endsWith("\n") ? "" : "\n";
272
214
  fs.writeFileSync(claudePath, `${claudeContent}${separator}\n@AGENTS.md\n`, "utf8");
273
- console.log(`Synced @AGENTS.md import into: ${claudePath}`);
215
+ console.log(` Synced @AGENTS.md import into ${claudePath}`);
216
+ }
217
+ }
218
+
219
+ function installPresetSkill(presetKey, { globalInstall, dryRun }) {
220
+ const skill = PRESET_SKILLS[presetKey];
221
+ const cmdArgs = globalInstall ? [...skill.args, "-g"] : [...skill.args];
222
+ const cmdDisplay = `npx ${cmdArgs.join(" ")}`;
223
+
224
+ if (dryRun) {
225
+ console.log(`\n[dry-run] Preset command that would run:`);
226
+ console.log(` - ${presetKey} (${skill.name}): ${cmdDisplay}`);
227
+ return true;
228
+ }
229
+
230
+ console.log(`\nInstalling optional preset "${presetKey}" (${skill.name})...`);
231
+ console.log(`> ${cmdDisplay}`);
232
+
233
+ try {
234
+ const result = spawnSync("npx", cmdArgs, {
235
+ stdio: "inherit",
236
+ shell: process.platform === "win32",
237
+ });
238
+
239
+ if (result.error || result.status !== 0) {
240
+ const reason = result.error ? result.error.message : `exit code ${result.status}`;
241
+ console.warn(
242
+ `Warning: Failed to pre-install "${presetKey}" (${reason}).\n` +
243
+ ` Your local animate-10x-better/ setup is still complete.\n` +
244
+ ` Run manually later: ${cmdDisplay}`
245
+ );
246
+ return false;
247
+ }
248
+ return true;
249
+ } catch (err) {
250
+ console.warn(
251
+ `Warning: Failed to pre-install "${presetKey}" (${err.message}).\n` +
252
+ ` Run manually later: ${cmdDisplay}`
253
+ );
254
+ return false;
255
+ }
256
+ }
257
+
258
+ async function promptOptionalPreset() {
259
+ if (!process.stdin.isTTY) {
260
+ return null;
261
+ }
262
+
263
+ const rl = createInterface({ input: process.stdin, output: process.stdout });
264
+ try {
265
+ console.log(
266
+ `\nOptional: Pre-install ONE engine skill now? (Press Enter to skip — agents install on demand from SKILL.md)`
267
+ );
268
+ console.log(` Available: ${VALID_PRESETS.join(", ")}`);
269
+ const answer = (await rl.question("Preset name (default: skip): ")).trim().toLowerCase();
270
+ if (!answer || answer === "skip" || answer === "none") {
271
+ return null;
272
+ }
273
+ if (!VALID_PRESETS.includes(answer)) {
274
+ console.log(`Unknown preset "${answer}"; skipping pre-install (you can install any skill on demand later).`);
275
+ return null;
276
+ }
277
+ return answer;
278
+ } catch {
279
+ return null;
280
+ } finally {
281
+ rl.close();
274
282
  }
275
283
  }
276
284
 
@@ -289,43 +297,42 @@ async function main() {
289
297
  process.exit(0);
290
298
  }
291
299
 
292
- const preset = options.preset ?? (options.yes ? "all" : await promptForPreset());
293
- const selectedSkills = PRESETS[preset];
294
-
295
300
  console.log(
296
- `\nanimate-10x-better — preset: "${preset}" (${selectedSkills.length} skill${
297
- selectedSkills.length === 1 ? "" : "s"
298
- }), scope: ${options.global ? "global (-g)" : "project"}${options.dryRun ? " [DRY RUN]" : ""}`
301
+ `\nanimate-10x-better — scope: ${options.global ? "global (~/.agents)" : "project (./)"}${
302
+ options.dryRun ? " [DRY RUN]" : ""
303
+ }`
299
304
  );
300
305
 
301
- if (options.dryRun) {
302
- console.log("\n[dry-run] Skill install commands that would run:");
303
- }
304
-
305
- const { succeeded, failed } = installSkills(selectedSkills, {
306
+ installLocalFolderAndPointer({
306
307
  globalInstall: options.global,
307
308
  dryRun: options.dryRun,
308
309
  });
309
310
 
310
- applyAgentsInjection({
311
- globalInstall: options.global,
312
- dryRun: options.dryRun,
313
- });
314
-
315
- if (!options.dryRun) {
316
- console.log(
317
- `\nDone! Installed ${succeeded.length}/${selectedSkills.length} skill(s).`
318
- );
319
- if (failed.length > 0) {
320
- console.log("\nThe following skills failed and can be installed manually:");
321
- for (const item of failed) {
322
- console.log(` - ${item.name}: ${item.command}`);
323
- }
311
+ if (options.dryRun) {
312
+ if (options.preset) {
313
+ installPresetSkill(options.preset, { globalInstall: options.global, dryRun: true });
314
+ } else {
315
+ console.log("\n[dry-run] No --preset specified: zero network skill downloads.");
324
316
  }
317
+ return;
318
+ }
319
+
320
+ const presetToInstall = options.preset ?? (options.yes ? null : await promptOptionalPreset());
321
+ if (presetToInstall) {
322
+ installPresetSkill(presetToInstall, { globalInstall: options.global, dryRun: false });
325
323
  }
324
+
325
+ console.log("\nDone! Agents can now read animate-10x-better/AGENTS.md and SKILL.md on demand.");
326
326
  }
327
327
 
328
- export { PRESETS, parseArgs, loadAgentsBlock, computeAgentsUpdate, applyAgentsInjection };
328
+ export {
329
+ PRESET_SKILLS,
330
+ VALID_PRESETS,
331
+ parseArgs,
332
+ loadTemplates,
333
+ computeAgentsUpdate,
334
+ installLocalFolderAndPointer,
335
+ };
329
336
 
330
337
  const isDirectExecution =
331
338
  Boolean(process.argv[1]) &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "animate-10x-better",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Install curated programmatic video, animation, and slide-deck skills across AI coding CLIs/IDEs and inject a clean routing guide into AGENTS.md.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -0,0 +1,35 @@
1
+ # Animation, Programmatic Video & Presentation Playbook (`animate-10x-better`)
2
+
3
+ You are responsible for producing crisp, intentional animations, programmatic videos, and slide decks. Never jump straight into coding without following these 4 phases in order.
4
+
5
+ ## Phase 1 — Understand Goal, Design & Workspace Theme
6
+ Before choosing an engine or writing code, clarify and inspect:
7
+ 1. **User Goal & Deliverable:** What is the output? (Product launch video, UI animation clone, math/code explainer, 3D sequence, developer talk deck, or editable `.pptx`?)
8
+ 2. **Existing Design & Brand Sync:** Inspect the workspace first! If `./DESIGN.md`, Tailwind config, CSS variables, brand logos, or existing components exist, inherit their exact color tokens, typography, and aesthetic tone automatically.
9
+ 3. **Specs & Constraints:** Confirm (or state smart defaults for):
10
+ - **Format / Aspect Ratio:** `16:9` (1920x1080 landscape), `9:16` (1080x1920 vertical/Reels), `1:1`, or widescreen slides.
11
+ - **Duration / Pacing:** Target length in seconds (for video) or slide count (for decks), plus energy level (minimal editorial, kinetic/punchy, cinematic, or educational).
12
+ - **Audio / Assets:** Whether voiceover, SFX, music, real product screenshots, or screen recordings are needed.
13
+
14
+ ## Phase 2 — Select & Load ONE Skill from `./SKILL.md`
15
+ 1. Read `./animate-10x-better/SKILL.md` and pick the **single best skill** matching the user's goal, tech stack, and OS/runtime environment.
16
+ 2. **Never mix engines** in the same deliverable unless explicitly requested (e.g., do not combine Remotion and HyperFrames in one video).
17
+ 3. **On-Demand Installation:** Check if the chosen skill already exists in `.agents/skills/`, `.kiro/skills/`, or `.claude/skills/`. If not installed yet, run its exact `npx skills add ... -y` command from `SKILL.md` first, then read the installed skill's `SKILL.md` and `references/` before scaffolding.
18
+ 4. **Never guess framework syntax** without loading the skill first.
19
+
20
+ ## Phase 3 — Plan the Beat Sheet / Outline Before Coding
21
+ Write a concise plan (either in chat or as a short `STORYBOARD.md` inside the deliverable folder):
22
+ - **Videos / Animations:** Scene-by-scene table with timestamps (`0.0s–2.5s`), visual focal point, on-screen copy, motion/transition cue, and audio cue.
23
+ - **Slide Decks:** Slide-by-slide outline enforcing **one core idea per slide** (split dense slides rather than shrinking fonts).
24
+ - **Animation Clones (`reanimate`):** Follow `reanimate`'s exact `spec.md` scope (Target, Destination stack, Fidelity) before capturing.
25
+
26
+ ## Phase 4 — Build & Mandatory Visual Verification Loop
27
+ Compiling code can still have clipped text, overlapping elements, wrong fonts, or broken timing. Before marking the task complete:
28
+ 1. **Use Official Scaffolds & Registries:** Prefer built-in registries/templates (e.g., `npx hyperframes catalog` / `hyperframes-registry`, `npx create-video@latest`) instead of hand-coding boilerplate from scratch.
29
+ 2. **Render & Inspect Key Frames / Slides:**
30
+ - **HyperFrames:** Run `npx hyperframes check --json`, snapshot key timestamps, inspect visually, then render with `npx hyperframes render`.
31
+ - **Remotion:** Render sample stills (`npx remotion still`) at key frames before final `npx remotion render`.
32
+ - **Reanimate:** Capture with `--clock virtual` (plus `--gl` for Canvas/WebGL), inspect labelled filmstrips, and run frame-by-frame comparisons until metrics pass.
33
+ - **Manim:** Preview fast in low quality (`manim -pql`) and verify a key frame before final high quality (`-pqh`).
34
+ - **Slides (`Slidev` / `Marp` / `Reveal.js` / `PPTX`):** Export or screenshot slides (`pdftoppm`, Playwright, or thumbnail script) and inspect for overflow, alignment, safe margins, and contrast.
35
+ 3. **Cap Fix Loops at 2–3 Tight Iterations:** Fix real visual defects cleanly and report the exact output file path (`output.mp4`, `deck.pptx`, `slides.pdf`, `index.html`, etc.).
@@ -0,0 +1,71 @@
1
+ ---
2
+ name: animate-10x-better-catalog
3
+ description: Complete catalog of programmatic video, animation reverse-engineering, 3D choreography, math animation, and slide-deck skills covering 11 repositories. Read this to select the exact best skill and install it on demand.
4
+ ---
5
+
6
+ # Programmatic Video, Animation & Slide Skills Catalog
7
+
8
+ Choose the **single best skill** below based on the user's goal, stack, and runtime prerequisites. If the skill is not yet installed locally, run its exact install command before building.
9
+
10
+ ---
11
+
12
+ ## 1. Programmatic Video & Motion Graphics
13
+
14
+ ### `hyperframes` — HTML-First Videos, Launch Films & Motion Graphics
15
+ - **Repo:** `https://github.com/heygen-com/hyperframes`
16
+ - **Install Core:** `npx skills add heygen-com/hyperframes --skill hyperframes -y`
17
+ - **Optional Registry Add-On (~450 ready-made transitions, charts, maps, captions, overlays):** `npx skills add heygen-com/hyperframes --skill hyperframes-registry -y`
18
+ - **Optional Media/Voiceover Add-On:** `npx skills add heygen-com/hyperframes --skill media-use -y`
19
+ - **Use When:** Building product launch videos, SaaS promos, kinetic typography, animated charts/maps, vertical clips, or PR walkthroughs using plain HTML/CSS/GSAP/Three.js rendered deterministically to MP4 with zero build step.
20
+ - **Gotcha:** Always pass `--skill hyperframes` (running `npx skills add heygen-com/hyperframes -y` without `--skill` installs all 9 sub-skills at once).
21
+
22
+ ### `remotion-best-practices` — React & TypeScript Programmatic Video
23
+ - **Repos:** `https://github.com/remotion-dev/remotion` & `https://github.com/remotion-dev/skills`
24
+ - **Install:** `npx skills add remotion-dev/skills --skill remotion-best-practices -y`
25
+ - **Use When:** The user specifically wants React/TypeScript video components, data-driven SaaS video templates, parameterized batch rendering, or already has a React codebase to reuse directly inside video frames.
26
+
27
+ ### `reanimate` — Clone & Reverse-Engineer Any Live Animation or Video
28
+ - **Repo:** `https://github.com/NiazMorshed2007/reanimate`
29
+ - **Install:** `npx skills add NiazMorshed2007/reanimate -y`
30
+ - **Use When:** The user points at a live URL, screen recording, MP4, GIF, or Lottie and wants an exact frame-by-frame rebuild in their project's own stack (CSS, Framer Motion, GSAP, Three.js/WebGL) backed by numerical timing/pixel comparisons.
31
+ - **Prerequisites / Gotcha:** Requires **Bun 1.1+** on macOS or Linux (Windows is untested); first run downloads ~250 MB (Playwright Chromium + static FFmpeg). Do not pick on unsupported environments without warning the user.
32
+
33
+ ### `motion-canvas` — TypeScript Procedural 2D Explainers & Code Diagrams
34
+ - **Repo:** `https://github.com/motion-canvas/motion-canvas`
35
+ - **Install:** `npx skills add videozero/skills --skill motion-canvas -y`
36
+ - **Use When:** Building procedural technical explainers, system architecture diagrams, state machines, and smooth code-transition animations using TypeScript generators (`makeScene2D`).
37
+
38
+ ### `manim` — Math, LaTeX Equations, Proofs & Algorithm Visualizations
39
+ - **Repo:** `https://github.com/ManimCommunity/manim`
40
+ - **Install:** `npx skills add iart-ai/manim-skills --skill manim -y`
41
+ - **Use When:** Creating 3Blue1Brown-style educational videos featuring LaTeX/MathTex equation morphs, coordinate axes, vectors, geometric proofs, 3D math surfaces, or step-by-step CS algorithm animations in Python.
42
+ - **Prerequisites:** Check `manim --version` first (requires Python 3.7+, FFmpeg, and LaTeX for `MathTex`).
43
+
44
+ ### `theatre-js` — 3D Scenes & Keyframed Camera Choreography
45
+ - **Repo:** `https://github.com/theatre-js/theatre`
46
+ - **Install:** `npx skills add noklip-io/agent-skills --skill theatre-js -y`
47
+ - **Use When:** Choreographing Three.js or React Three Fiber (`@theatre/core`, `@theatre/r3f`) 3D scenes that need keyframed timeline tracks, smooth camera flythroughs, and exported production JSON animation states.
48
+
49
+ ---
50
+
51
+ ## 2. Presentations & Slide Decks
52
+
53
+ ### `slidev` — Developer Talks (Markdown + Vue + Tailwind + Code)
54
+ - **Repo:** `https://github.com/slidevjs/slidev`
55
+ - **Install:** `npx skills add slidevjs/slidev --skill slidev -y`
56
+ - **Use When:** Building conference talks, code walkthroughs, or workshops needing Shiki syntax highlighting, magic-move code diffs, interactive Vue components, click animations (`v-click`), presenter mode, and PDF/PPTX/PNG export.
57
+
58
+ ### `marp-slide` — Fast Pure-Markdown Slide Decks
59
+ - **Repo:** `https://github.com/marp-team/marp`
60
+ - **Install:** `npx skills add jjmartres/ai-coding-agents --skill marp-slide -y`
61
+ - **Use When:** The user wants a clean, fast, single-file Markdown slide deck exported straight to PDF, PPTX, or HTML without needing Vue components or a heavy app scaffold.
62
+
63
+ ### `revealjs` — Standalone Browser Deck (Zero Build Step)
64
+ - **Repo:** `https://github.com/hakimel/reveal.js`
65
+ - **Install:** `npx skills add ryanbbrown/revealjs-skill --skill revealjs -y`
66
+ - **Use When:** The user wants a portable, zero-build HTML/CSS/JS web presentation supporting 2D vertical slide stacks, step fragments, and built-in speaker notes.
67
+
68
+ ### `pptx` — Editable PowerPoint (`.pptx`) Decks via PptxGenJS
69
+ - **Repo:** `https://github.com/gitbrent/PptxGenJS`
70
+ - **Install:** `npx skills add anthropics/skills --skill pptx -y`
71
+ - **Use When:** Stakeholders explicitly need a real, editable `.pptx` PowerPoint file generated programmatically with PptxGenJS and verified visually via slide-to-image thumbnails.
@@ -0,0 +1,6 @@
1
+ <!-- animate-10x-better:start -->
2
+ ## Programmatic Video, Animation & Slide Decks (`animate-10x-better`)
3
+ For ANY request involving programmatic videos, motion graphics, cloning web/video animations, 3D camera choreography, math/algorithm animations, or presentation slide decks:
4
+ 1. Read `./animate-10x-better/AGENTS.md` for the mandatory discovery, theme-sync, planning, and visual-verification workflow.
5
+ 2. Read `./animate-10x-better/SKILL.md` to choose the exact best skill/engine and install it on demand if not yet installed.
6
+ <!-- animate-10x-better:end -->
@@ -1,34 +0,0 @@
1
- <!-- animate-10x-better:start -->
2
- # Programmatic Video, Animation & Presentation Routing (`animate-10x-better`)
3
-
4
- You have specialized skills installed for programmatic video, motion graphics, animation reverse-engineering, and slide decks. **Never build animations or presentations from scratch without first selecting and loading the matching skill.**
5
-
6
- ## 1. Decision Matrix: What & When to Use Each Skill
7
-
8
- | Goal / Deliverable | Skill to Invoke | When to Choose It |
9
- | :--- | :--- | :--- |
10
- | **Clone / Reverse-Engineer an Existing Animation** | `/reanimate` | User shares a live URL, screen recording, MP4, GIF, or Lottie and wants an exact frame-by-frame rebuild in CSS, Framer Motion, GSAP, or Three.js. |
11
- | **HTML-First Videos, Product Launches & Voiceovers** | `/hyperframes` (`/hyperframes-registry`, `/media-use`) | Best for fast HTML/CSS/GSAP videos rendered to MP4, using 450+ pre-built visual blocks, kinetic captions, charts/maps, or generating voiceovers/SFX. |
12
- | **React / TypeScript Programmatic Video** | `/remotion-best-practices` (`/remotion-create`, `/remotion-maps`) | Best when the user wants React components, data-driven video templates, Mapbox/CesiumJS route flyovers, or SaaS video rendering pipelines. |
13
- | **Math, Equations, Proofs & Algorithm Explainers** | `/manim` | Best for LaTeX formulas, coordinate graphs, vectors, geometric proofs, and step-by-step computer science / algorithm visualizations (Python). |
14
- | **Procedural TypeScript Motion & Code Diagrams** | `/motion-canvas` | Best for generator-based (`makeScene2D`) technical explainers, system architecture animations, and smooth code transitions in TypeScript. |
15
- | **3D Scenes & Keyframed Camera Choreography** | `/theatre-js` | Best for Three.js / React Three Fiber (`@theatre/r3f`) scenes needing keyframed timeline control, camera paths, and exported animation state. |
16
- | **Developer Talk Slides (Markdown + Vue + Code)** | `/slidev` | Best for technical talks needing live code diffs, Shiki highlighting, interactive Vue components, and click-step animations. |
17
- | **Fast Pure-Markdown Slides** | `/marp-slide` | Best for quick lecture notes, internal docs, or clean bullet-driven decks exported straight from a single `.md` file to PDF/PPTX/HTML. |
18
- | **Standalone Browser Deck (Zero Build Step)** | `/revealjs` | Best when the user wants a single portable HTML presentation with 2D vertical slide stacks, fragments, and speaker notes. |
19
- | **Editable PowerPoint (`.pptx`) Deck** | `/pptx` | Best when the user explicitly needs an editable `.pptx` file for stakeholders, built programmatically with **PptxGenJS**. |
20
-
21
- ## 2. How to Execute (Mandatory Workflow)
22
-
23
- 1. **Load One Engine Skill First:** Activate the single best skill from the table above before installing packages or scaffolding files. Do NOT mix video/slide engines in the same project unless explicitly requested.
24
- 2. **Use Official Scaffolds & Registries:**
25
- - **HyperFrames:** Check `/hyperframes-registry` (`npx hyperframes catalog`) before hand-coding transitions/blocks. Preview with `npx hyperframes preview`, render with `npx hyperframes render`.
26
- - **Remotion:** Scaffold via `npx create-video@latest` and render via `npx remotion render`.
27
- - **Reanimate:** Capture using a virtual clock (`--clock virtual`, plus `--gl` for Canvas/WebGL) for deterministic frame diffs.
28
- - **Manim:** Render fast low-res previews (`manim -pql scene.py SceneName`) before final high-res (`-pqh`).
29
- - **Slidev / Marp / Reveal.js / PPTX:** Enforce one core idea per slide—split dense slides rather than shrinking text below readable sizes.
30
- 3. **Mandatory Visual Verification Loop (Token-Safe):**
31
- - Never assume compiling code looks good. Render sample frames at key timestamps (start, mid-action, end) or convert slides to images (`pdftoppm` / Playwright / thumbnail script).
32
- - Inspect the rendered images for clipped text, overlapping elements, contrast, and safe margins.
33
- - Cap visual fix loops at **2–3 tight iterations** and report the exact final file path (`output.mp4`, `deck.pptx`, `presentation.html`).
34
- <!-- animate-10x-better:end -->