nexu-io/openmotion / skills/openmotion-recreate
openmotion-recreate
VerifiedRecreate a reference video (a link or file) as the user's own film with OpenMotion: rebuild it as an editable OpenMotion project and hand it over open in the editor, keeping the original content or swapping in the user's copy, brand and assets. This includes small edits to the user's own finished video when no editable project for it exists. "Make one like this" and "I want this feel" both count as recreation. In a workspace with the user's product material, a bare link alone means "make one like this for us". References that also contain portraits, product photography, live-action or AI footage, narration or music are in scope: those parts use configured media generation while the structure stays editable. Not for only analysing or discussing a video. Use openmotion-director when the reference is only inspiration for an original film, openmotion-template-to-video for an existing template, openmotion-production for edits to an existing editable OpenMotion project, and openmotion-video-to-template for a reusable template package.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 15.7 KB |
| agents/openai.yaml | config | 136 B |
| assets/reconstruction.js | script | 14.7 KB |
| references/rebuild.md | markdown | 3.9 KB |
| references/reconstruction.md | markdown | 22.6 KB |
| references/rendering.md | markdown | 8.7 KB |
| references/verify.md | markdown | 6.2 KB |
| scripts/measure_frame.mjs | script | 9.6 KB |
| scripts/measure_motion.py | script | 8.2 KB |
| scripts/observe_marks.py | script | 10.7 KB |
| scripts/register_motion.py | script | 8.4 KB |
| scripts/vision-tools.mjs | script | 2.9 KB |
scripts/vision-tools.mjs
View on GitHubimport assert from 'node:assert/strict';
import { readFile, access } from 'node:fs/promises';
import path from 'node:path';
import { fileURLToPath, pathToFileURL } from 'node:url';
import { spawn } from 'node:child_process';
const runScript = `
import runpy
import sys
from pathlib import Path
script = sys.argv.pop(1)
sys.path.insert(0, str(Path(script).resolve().parent))
runpy.run_path(script, run_name="__main__")
`;
async function runtimeRoot() {
let directory = fileURLToPath(new URL('../', import.meta.url));
for (;;) {
for (const name of ['openmotion-install.json', 'scope.json']) {
try {
const scope = JSON.parse(await readFile(path.join(directory, name), 'utf8'));
assert(path.isAbsolute(scope.runtimeRoot), 'Installation runtimeRoot must be absolute');
return scope.runtimeRoot;
} catch (error) { if (error.code !== 'ENOENT') throw error; }
}
try { await access(path.join(directory, 'scripts/vision-runtime.mjs')); return directory; }
catch (error) { if (error.code !== 'ENOENT') throw error; }
const parent = path.dirname(directory);
assert(parent !== directory, 'Cannot locate OpenMotion runtime. Repair this Skill installation.');
directory = parent;
}
}
try {
const [command, ...args] = process.argv.slice(2);
assert(['register', 'measure', 'observe', 'python', 'prepare'].includes(command), 'Usage: node vision-tools.mjs register|measure|observe|python|prepare [arguments]');
const root = await runtimeRoot();
const { ensureVisionRuntime, visionEnvironment } = await import(pathToFileURL(path.join(root, 'scripts/vision-runtime.mjs')).href);
const config = await ensureVisionRuntime(root);
if (command === 'prepare') console.log(JSON.stringify({ python: config.python, versions: config.runtime.vision }));
else {
const scripts = { register: 'register_motion.py', measure: 'measure_motion.py', observe: 'observe_marks.py' };
const script = command === 'python' ? [] : [path.join(root, 'skills/openmotion-recreate/scripts', scripts[command])];
const pythonArgs = [...script, ...args];
// Isolated Python omits the script directory. Restore only that explicit
// directory so sibling imports work without adopting host site-packages.
const invocation = pythonArgs[0] && !pythonArgs[0].startsWith('-') ? ['-c', runScript, ...pythonArgs] : pythonArgs;
const child = spawn(config.python, ['-I', ...invocation], { env: visionEnvironment(), stdio: 'inherit', windowsHide: true });
for (const signal of ['SIGINT', 'SIGTERM']) process.on(signal, () => child.kill(signal));
child.once('error', error => { console.error(error.message); process.exitCode = 1; });
child.once('exit', (code, signal) => { process.exitCode = code ?? (signal === 'SIGINT' ? 130 : 1); });
}
} catch (error) {
console.error('VISION_RUNTIME_ERROR: ' + error.message + '\nRun this entry with prepare to retry. Host permissions and network policy still apply.');
process.exitCode = 1;
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |