animate-10x-better 0.0.0-stage → 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 +67 -2
- package/bin/cli.mjs +346 -0
- package/package.json +37 -4
- package/templates/folder-agents.md +35 -0
- package/templates/folder-skill.md +71 -0
- package/templates/root-agents-pointer.md +6 -0
package/README.md
CHANGED
|
@@ -1,3 +1,68 @@
|
|
|
1
|
-
#
|
|
1
|
+
# animate-10x-better
|
|
2
2
|
|
|
3
|
-
|
|
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
|
+
|
|
5
|
+
Zero external npm dependencies. Node.js 18+ ESM.
|
|
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
|
+
|
|
16
|
+
## Quick Start
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npx animate-10x-better
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Non-interactive fast local setup:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npx animate-10x-better --yes
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Install globally under `~/.agents/`:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
npx animate-10x-better --global --yes
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Optionally pre-install ONE engine skill right away with `--preset <name>`:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
npx animate-10x-better --preset hyperframes --yes
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## CLI Options
|
|
41
|
+
|
|
42
|
+
```text
|
|
43
|
+
Usage:
|
|
44
|
+
npx animate-10x-better [options]
|
|
45
|
+
|
|
46
|
+
Options:
|
|
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
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Available `--preset` Values
|
|
55
|
+
- **Video & Motion:** `hyperframes`, `remotion`, `reanimate`, `manim`, `motion-canvas`, `theatre-js`
|
|
56
|
+
- **Slide Decks:** `slidev`, `marp`, `revealjs`, `pptx`
|
|
57
|
+
|
|
58
|
+
## Non-Destructive `AGENTS.md` & `CLAUDE.md` Updates
|
|
59
|
+
|
|
60
|
+
- Target file: `./AGENTS.md` (project mode) or `~/.agents/AGENTS.md` (`--global` mode).
|
|
61
|
+
- Uses `<!-- animate-10x-better:start -->` and `<!-- animate-10x-better:end -->` markers.
|
|
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.
|
|
65
|
+
|
|
66
|
+
## License
|
|
67
|
+
|
|
68
|
+
MIT
|
package/bin/cli.mjs
ADDED
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import fs from "node:fs";
|
|
4
|
+
import path from "node:path";
|
|
5
|
+
import os from "node:os";
|
|
6
|
+
import { spawnSync } from "node:child_process";
|
|
7
|
+
import { createInterface } from "node:readline/promises";
|
|
8
|
+
import { fileURLToPath } from "node:url";
|
|
9
|
+
|
|
10
|
+
const START_MARKER = "<!-- animate-10x-better:start -->";
|
|
11
|
+
const END_MARKER = "<!-- animate-10x-better:end -->";
|
|
12
|
+
|
|
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"] },
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const VALID_PRESETS = Object.keys(PRESET_SKILLS);
|
|
27
|
+
|
|
28
|
+
function printHelp() {
|
|
29
|
+
console.log(`animate-10x-better - Zero-bloat folder setup for programmatic video, animation & slide skills
|
|
30
|
+
|
|
31
|
+
Usage:
|
|
32
|
+
npx animate-10x-better [options]
|
|
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
|
+
|
|
40
|
+
Options:
|
|
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
|
|
50
|
+
|
|
51
|
+
Examples:
|
|
52
|
+
npx animate-10x-better
|
|
53
|
+
npx animate-10x-better --yes
|
|
54
|
+
npx animate-10x-better --global --yes
|
|
55
|
+
npx animate-10x-better --preset hyperframes --yes
|
|
56
|
+
npx animate-10x-better --dry-run`);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function parseArgs(argv) {
|
|
60
|
+
const options = {
|
|
61
|
+
preset: null,
|
|
62
|
+
global: false,
|
|
63
|
+
yes: false,
|
|
64
|
+
dryRun: false,
|
|
65
|
+
help: false,
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
for (let i = 0; i < argv.length; i += 1) {
|
|
69
|
+
const arg = argv[i];
|
|
70
|
+
|
|
71
|
+
if (arg === "-h" || arg === "--help") {
|
|
72
|
+
options.help = true;
|
|
73
|
+
} else if (arg === "-g" || arg === "--global") {
|
|
74
|
+
options.global = true;
|
|
75
|
+
} else if (arg === "-y" || arg === "--yes") {
|
|
76
|
+
options.yes = true;
|
|
77
|
+
} else if (arg === "--dry-run") {
|
|
78
|
+
options.dryRun = true;
|
|
79
|
+
} else if (arg === "--preset") {
|
|
80
|
+
const value = argv[i + 1];
|
|
81
|
+
if (!value || value.startsWith("-")) {
|
|
82
|
+
throw new Error(`Missing value for --preset. Expected one of: ${VALID_PRESETS.join(", ")}.`);
|
|
83
|
+
}
|
|
84
|
+
options.preset = value.toLowerCase();
|
|
85
|
+
i += 1;
|
|
86
|
+
} else if (arg.startsWith("--preset=")) {
|
|
87
|
+
const value = arg.slice("--preset=".length);
|
|
88
|
+
if (!value) {
|
|
89
|
+
throw new Error(`Missing value for --preset. Expected one of: ${VALID_PRESETS.join(", ")}.`);
|
|
90
|
+
}
|
|
91
|
+
options.preset = value.toLowerCase();
|
|
92
|
+
} else {
|
|
93
|
+
throw new Error(`Unknown option: ${arg}`);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
if (options.preset !== null && !VALID_PRESETS.includes(options.preset)) {
|
|
98
|
+
throw new Error(
|
|
99
|
+
`Invalid preset "${options.preset}". Expected one of: ${VALID_PRESETS.join(", ")}.`
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
return options;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
function getTemplatesDir() {
|
|
107
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
108
|
+
return path.resolve(__dirname, "..", "templates");
|
|
109
|
+
}
|
|
110
|
+
|
|
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();
|
|
116
|
+
|
|
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");
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
return { folderAgents, folderSkill, rootPointer };
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function computeAgentsUpdate(existingContent, blockContent) {
|
|
127
|
+
if (existingContent === null) {
|
|
128
|
+
return {
|
|
129
|
+
action: "create",
|
|
130
|
+
content: `${blockContent}\n`,
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
const startIdx = existingContent.indexOf(START_MARKER);
|
|
135
|
+
const endIdx =
|
|
136
|
+
startIdx !== -1
|
|
137
|
+
? existingContent.indexOf(END_MARKER, startIdx + START_MARKER.length)
|
|
138
|
+
: -1;
|
|
139
|
+
|
|
140
|
+
if (startIdx !== -1 && endIdx !== -1) {
|
|
141
|
+
const updated =
|
|
142
|
+
existingContent.slice(0, startIdx) +
|
|
143
|
+
blockContent +
|
|
144
|
+
existingContent.slice(endIdx + END_MARKER.length);
|
|
145
|
+
return {
|
|
146
|
+
action: "update",
|
|
147
|
+
content: updated,
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
if (existingContent.trim().length === 0) {
|
|
152
|
+
return {
|
|
153
|
+
action: "append",
|
|
154
|
+
content: `${blockContent}\n`,
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
const trimmedEnd = existingContent.replace(/(?:\r?\n)+$/, "");
|
|
159
|
+
return {
|
|
160
|
+
action: "append",
|
|
161
|
+
content: `${trimmedEnd}\n\n${blockContent}\n`,
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
|
|
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");
|
|
171
|
+
|
|
172
|
+
const { folderAgents, folderSkill, rootPointer } = loadTemplates({ globalInstall });
|
|
173
|
+
|
|
174
|
+
const rootExists = fs.existsSync(rootAgentsPath);
|
|
175
|
+
const existingRoot = rootExists ? fs.readFileSync(rootAgentsPath, "utf8") : null;
|
|
176
|
+
const { action: rootAction, content: rootContent } = computeAgentsUpdate(existingRoot, rootPointer);
|
|
177
|
+
|
|
178
|
+
const claudePath = !globalInstall ? path.join(process.cwd(), "CLAUDE.md") : null;
|
|
179
|
+
const shouldUpdateClaude =
|
|
180
|
+
Boolean(claudePath) &&
|
|
181
|
+
fs.existsSync(claudePath) &&
|
|
182
|
+
!fs.readFileSync(claudePath, "utf8").includes("AGENTS.md");
|
|
183
|
+
|
|
184
|
+
if (dryRun) {
|
|
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}`);
|
|
189
|
+
if (shouldUpdateClaude) {
|
|
190
|
+
console.log(` - Append @AGENTS.md to: ${claudePath}`);
|
|
191
|
+
}
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
|
|
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}`);
|
|
202
|
+
|
|
203
|
+
const actionLabel =
|
|
204
|
+
rootAction === "create"
|
|
205
|
+
? "Created"
|
|
206
|
+
: rootAction === "update"
|
|
207
|
+
? "Updated animate-10x-better pointer in"
|
|
208
|
+
: "Appended animate-10x-better pointer to";
|
|
209
|
+
console.log(` ${actionLabel} ${rootAgentsPath}`);
|
|
210
|
+
|
|
211
|
+
if (shouldUpdateClaude) {
|
|
212
|
+
const claudeContent = fs.readFileSync(claudePath, "utf8");
|
|
213
|
+
const separator = claudeContent.endsWith("\n") ? "" : "\n";
|
|
214
|
+
fs.writeFileSync(claudePath, `${claudeContent}${separator}\n@AGENTS.md\n`, "utf8");
|
|
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();
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
async function main() {
|
|
286
|
+
let options;
|
|
287
|
+
try {
|
|
288
|
+
options = parseArgs(process.argv.slice(2));
|
|
289
|
+
} catch (err) {
|
|
290
|
+
console.error(`Error: ${err.message}\n`);
|
|
291
|
+
printHelp();
|
|
292
|
+
process.exit(1);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
if (options.help) {
|
|
296
|
+
printHelp();
|
|
297
|
+
process.exit(0);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
console.log(
|
|
301
|
+
`\nanimate-10x-better — scope: ${options.global ? "global (~/.agents)" : "project (./)"}${
|
|
302
|
+
options.dryRun ? " [DRY RUN]" : ""
|
|
303
|
+
}`
|
|
304
|
+
);
|
|
305
|
+
|
|
306
|
+
installLocalFolderAndPointer({
|
|
307
|
+
globalInstall: options.global,
|
|
308
|
+
dryRun: options.dryRun,
|
|
309
|
+
});
|
|
310
|
+
|
|
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.");
|
|
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 });
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
console.log("\nDone! Agents can now read animate-10x-better/AGENTS.md and SKILL.md on demand.");
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
export {
|
|
329
|
+
PRESET_SKILLS,
|
|
330
|
+
VALID_PRESETS,
|
|
331
|
+
parseArgs,
|
|
332
|
+
loadTemplates,
|
|
333
|
+
computeAgentsUpdate,
|
|
334
|
+
installLocalFolderAndPointer,
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
const isDirectExecution =
|
|
338
|
+
Boolean(process.argv[1]) &&
|
|
339
|
+
fs.realpathSync(process.argv[1]) === fs.realpathSync(fileURLToPath(import.meta.url));
|
|
340
|
+
|
|
341
|
+
if (isDirectExecution) {
|
|
342
|
+
main().catch((err) => {
|
|
343
|
+
console.error(`Unexpected error: ${err.message}`);
|
|
344
|
+
process.exit(1);
|
|
345
|
+
});
|
|
346
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "animate-10x-better",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.1.0",
|
|
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
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"animate-10x-better": "bin/cli.mjs"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"bin",
|
|
11
|
+
"templates",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": ">=18"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"ai-agents",
|
|
19
|
+
"agent-skills",
|
|
20
|
+
"agents-md",
|
|
21
|
+
"animation",
|
|
22
|
+
"programmatic-video",
|
|
23
|
+
"remotion",
|
|
24
|
+
"hyperframes",
|
|
25
|
+
"manim",
|
|
26
|
+
"motion-canvas",
|
|
27
|
+
"theatre-js",
|
|
28
|
+
"slidev",
|
|
29
|
+
"marp",
|
|
30
|
+
"revealjs",
|
|
31
|
+
"pptx",
|
|
32
|
+
"claude-code",
|
|
33
|
+
"cursor",
|
|
34
|
+
"codex",
|
|
35
|
+
"gemini-cli",
|
|
36
|
+
"antigravity"
|
|
37
|
+
],
|
|
38
|
+
"license": "MIT"
|
|
39
|
+
}
|
|
@@ -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 -->
|