Skip to content

nexu-io/openmotion / library/skills/openmotion-design-remix

openmotion-design-remix

Verified

OpenMotion — Adapt one of six bundled motion compositions using its MOTION_DESIGN.md, preserving timing and movement while replacing the user's copy. Use for these source-backed examples or as a concrete pattern for a reusable motion design package.

FileKindSize
LICENSEother10.5 KB
NOTICE.mdmarkdown1.9 KB
SKILL.mdskill md3.1 KB
agents/openai.yamlconfig53 B
assets/canopy-part-title/assets/leaf-surface-color.webpbinary64.3 KB
assets/canopy-part-title/assets/leaf-surface-normal.webpbinary135.6 KB
assets/canopy-part-title/index.htmlother57.1 KB
assets/canopy-part-title/poster.jpgbinary16.8 KB
assets/canopy-part-title/reference.mp4binary132 B
assets/code-3d-extrude/index.htmlother18.9 KB
assets/code-3d-extrude/poster.jpgbinary12.7 KB
assets/code-3d-extrude/reference.mp4binary132 B
assets/code-particle-assemble/index.htmlother16.0 KB
assets/code-particle-assemble/poster.jpgbinary10.9 KB
assets/code-particle-assemble/reference.mp4binary132 B
assets/liquid-glass-widgets/assets/hyperframes-logo-dark.svgother7.1 KB
assets/liquid-glass-widgets/index.htmlother25.5 KB
assets/liquid-glass-widgets/lib/liquid-glass.iife.jsscript34.2 KB
assets/liquid-glass-widgets/poster.jpgbinary23.2 KB
assets/liquid-glass-widgets/reference.mp4binary132 B
assets/ui-3d-reveal/index.htmlother98.2 KB
assets/ui-3d-reveal/poster.jpgbinary11.9 KB
assets/ui-3d-reveal/reference.mp4binary132 B
assets/wireframe-portal-title/assets/fonts/Geist-Bold.ttfbinary65.0 KB
assets/wireframe-portal-title/assets/fonts/Geist-OFL.txtmarkdown4.3 KB
assets/wireframe-portal-title/assets/fonts/Geist-Regular.ttfbinary65.0 KB
assets/wireframe-portal-title/assets/fonts/Geist-SemiBold.ttfbinary65.1 KB
assets/wireframe-portal-title/index.htmlother63.2 KB
assets/wireframe-portal-title/poster.jpgbinary13.1 KB
assets/wireframe-portal-title/reference.mp4binary132 B
cases.jsonconfig2.3 KB
evidence.jsonconfig11.5 KB
presets/canopy-part-title.jsonconfig314 B
presets/code-3d-extrude.jsonconfig1.3 KB
presets/code-particle-assemble.jsonconfig650 B
presets/liquid-glass-widgets.jsonconfig931 B
presets/ui-3d-reveal.jsonconfig594 B
presets/wireframe-portal-title.jsonconfig531 B
previews/canopy-part-title.jpgbinary33.2 KB
previews/canopy-part-title.mp4binary132 B
previews/code-3d-extrude.jpgbinary38.9 KB
previews/code-3d-extrude.mp4binary131 B
previews/code-particle-assemble.jpgbinary61.4 KB
previews/code-particle-assemble.mp4binary132 B
previews/encoding.jsonconfig4.0 KB
previews/liquid-glass-widgets.jpgbinary70.0 KB
previews/liquid-glass-widgets.mp4binary131 B
previews/ui-3d-reveal.jpgbinary39.4 KB
previews/ui-3d-reveal.mp4binary131 B
previews/wireframe-portal-title.jpgbinary79.6 KB
previews/wireframe-portal-title.mp4binary132 B
references/canopy-part-title/MOTION_DESIGN.mdmarkdown2.4 KB
references/code-3d-extrude/MOTION_DESIGN.mdmarkdown2.4 KB
references/code-particle-assemble/MOTION_DESIGN.mdmarkdown2.4 KB
references/liquid-glass-widgets/MOTION_DESIGN.mdmarkdown2.5 KB
references/ui-3d-reveal/MOTION_DESIGN.mdmarkdown2.5 KB
references/wireframe-portal-title/MOTION_DESIGN.mdmarkdown2.5 KB
scripts/encode-previews.mjsscript2.7 KB
scripts/localize.mjsscript1.5 KB
scripts/materialize.mjsscript4.2 KB
scripts/render-previews.mjsscript4.4 KB
sources.jsonconfig12.4 KB

scripts/encode-previews.mjs

View on GitHub
import assert from 'node:assert/strict';
import { mkdir, readFile, writeFile } from 'node:fs/promises';
import { spawnSync } from 'node:child_process';
import { createHash } from 'node:crypto';
import path from 'node:path';

const [capturePath, outputPath] = process.argv.slice(2);
assert(capturePath && outputPath, 'Usage: node scripts/encode-previews.mjs <capture-root> <new-output-dir>');
const capture = path.resolve(capturePath), output = path.resolve(outputPath);
const report = JSON.parse(await readFile(path.join(capture, 'render-report.json'), 'utf8'));
await mkdir(path.dirname(output), { recursive: true });
await mkdir(output);
function ffmpeg(args) {
  const p = spawnSync('ffmpeg', ['-hide_banner', '-loglevel', 'error', '-nostdin', ...args], { encoding: 'utf8' });
  if (p.error) throw p.error;
  assert.equal(p.status, 0, p.stderr);
}
const encoded = [];
for (const ref of report.filter(row => row.variant === 'reference')) {
  const remix = report.find(row => row.id === ref.id && row.variant === 'remix');
  assert(remix && ref.start === remix.start && ref.duration === remix.duration && ref.frames === remix.frames, 'Pairs must share source times and frame counts');
  assert.equal(ref.frames, Math.round(ref.duration * 12), 'Encode full frame captures, not still checks');
  assert.equal(ref.errors.length + remix.errors.length, 0, 'Fix capture errors first');
  const frames = variant => path.join(capture, 'frames', ref.id, variant, '%04d.png');
  const mp4 = path.join(output, ref.id + '.mp4');
  ffmpeg(['-framerate', '12', '-i', frames('reference'), '-framerate', '12', '-i', frames('remix'), '-filter_complex', '[0:v][1:v]hstack=inputs=2,scale=1280:360:flags=lanczos', '-c:v', 'libx264', '-crf', '18', '-pix_fmt', 'yuv420p', '-movflags', '+faststart', mp4]);
  ffmpeg(['-i', mp4, '-filter_complex', 'fps=12,scale=960:270:flags=lanczos,split[a][b];[a]palettegen=max_colors=128:stats_mode=diff[p];[b][p]paletteuse=dither=bayer:bayer_scale=4:diff_mode=rectangle', '-loop', '0', path.join(output, ref.id + '.gif')]);
  ffmpeg(['-ss', String(ref.duration / 2), '-i', mp4, '-frames:v', '1', '-q:v', '2', path.join(output, ref.id + '.jpg')]);
  const files = [];
  for (const extension of ['mp4', 'gif', 'jpg']) {
    const file = ref.id + '.' + extension, bytes = await readFile(path.join(output, file));
    files.push({ file, bytes: bytes.length, sha256: createHash('sha256').update(bytes).digest('hex') });
  }
  encoded.push({ id: ref.id, startSeconds: ref.start, durationSeconds: ref.duration, framesPerSide: ref.frames, fps: 12, audio: false, files });
  console.log(ref.id, files.map(f => `${f.file}: ${f.bytes}`).join(', '));
}
await writeFile(path.join(output, 'encoding.json'), JSON.stringify(encoded, null, 2) + '\n');
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall