Skip to content

Jackywxsz/Jacky-motion

jacky-motion2-0

Verified

Jacky Motion 2.2 Hybrid:把中文口播稿变成可录屏的信息动画单文件 HTML。可选纯 HTML 手动推进(16:9 或 3:4)或配合 SRT 自动播放(16:9,含 B-roll 录屏画框)。流程为审稿、分镜、锁风格、装配与视觉验收;七种重点风格共享同一套版式、动效与质量门禁。

FileKindSize
SKILL.mdskill md9.0 KB
agents/openai.yamlconfig299 B
assets/base-template-portrait.htmlother15.5 KB
assets/base-template-srt.htmlother23.3 KB
assets/base-template.htmlother14.4 KB
assets/creator-ai-course.jpgbinary186.4 KB
assets/styles/apple-light-blue-glass.cssother3.3 KB
assets/styles/apple-tech-gradient.cssother2.9 KB
assets/styles/editorial-magazine.cssother2.8 KB
assets/styles/finance-studio-cards.cssother2.9 KB
assets/styles/ink-framework.cssother3.6 KB
assets/styles/manifesto-poster.cssother2.9 KB
assets/styles/newspaper-evidence.cssother3.5 KB
assets/styles/paper-collage.cssother3.8 KB
assets/styles/paper-craft-studio.cssother4.9 KB
assets/styles/sketch-note.cssother3.5 KB
references/beat-contract.mdmarkdown4.8 KB
references/html-production.mdmarkdown9.8 KB
references/hybrid-quality-gate.mdmarkdown7.5 KB
references/information-primitives.mdmarkdown2.3 KB
references/layout-skeletons-portrait.mdmarkdown11.6 KB
references/layout-skeletons.mdmarkdown17.4 KB
references/motion-language.mdmarkdown9.4 KB
references/portrait-adaptation.mdmarkdown4.9 KB
references/quality-check.mdmarkdown6.3 KB
references/script-audit.mdmarkdown1.9 KB
references/srt-autoplay.mdmarkdown4.6 KB
references/srt-beat-contract.mdmarkdown1.3 KB
references/srt-production.mdmarkdown2.2 KB
references/srt-quality-check.mdmarkdown1.6 KB
references/storyboard.mdmarkdown6.6 KB
scripts/check-layout-browser-srt.mjsexecutablescript6.2 KB
scripts/check-layout-browser.mjsexecutablescript8.6 KB
scripts/parse-srt.mjsexecutablescript2.2 KB
scripts/validate-motion-html-srt.mjsexecutablescript11.6 KB
scripts/validate-motion-html.mjsexecutablescript10.2 KB

scripts/parse-srt.mjs

View on GitHub
#!/usr/bin/env node
import fs from "node:fs";
import path from "node:path";

process.on("uncaughtException", (error) => {
  console.error(`FAIL ${error.message}`);
  process.exit(1);
});

const file = process.argv[2];
if (!file) {
  console.error("Usage: node parse-srt.mjs path/to/voiceover.srt");
  process.exit(2);
}

function parseTime(raw) {
  const match = raw.trim().match(/^(\d{1,2}):(\d{2}):(\d{2})[,.](\d{3})$/);
  if (!match) throw new Error(`Invalid SRT time: ${raw}`);
  const [, hh, mm, ss, ms] = match;
  if (Number(mm) > 59 || Number(ss) > 59) throw new Error(`Invalid SRT time: ${raw}`);
  return (((Number(hh) * 60 + Number(mm)) * 60 + Number(ss)) * 1000) + Number(ms);
}

const source = fs.readFileSync(file, "utf8").replace(/^\uFEFF/, "");
const blocks = source.replace(/\r\n?/g, "\n").trim().split(/\n{2,}/).filter(Boolean);
const cues = [];

for (const block of blocks) {
  const lines = block.split("\n").map((line) => line.trim());
  const timeLineIndex = lines.findIndex((line) => line.includes("-->"));
  if (timeLineIndex < 0) throw new Error(`Missing time range in block: ${block.slice(0, 80)}`);

  const range = lines[timeLineIndex].match(/^(.+?)\s*-->\s*(\S+)/);
  if (!range) throw new Error(`Invalid time range: ${lines[timeLineIndex]}`);
  const startMs = parseTime(range[1]);
  const endMs = parseTime(range[2]);
  if (endMs <= startMs) throw new Error(`Cue end must be after start: ${lines[timeLineIndex]}`);

  const text = lines.slice(timeLineIndex + 1)
    .join(" ")
    .replace(/<[^>]*>/g, "")
    .replace(/\{\\[^}]+\}/g, "")
    .replace(/\s+/g, " ")
    .trim();
  if (!text) throw new Error(`Cue at ${range[1]} has no text.`);

  const declaredIndex = Number(lines[0]);
  cues.push({
    index: Number.isInteger(declaredIndex) && timeLineIndex > 0 ? declaredIndex : cues.length + 1,
    startMs,
    endMs,
    text
  });
}

if (!cues.length) throw new Error("SRT contains no cues.");

cues.sort((a, b) => a.startMs - b.startMs || a.endMs - b.endMs);
for (let i = 1; i < cues.length; i += 1) {
  if (cues[i].startMs < cues[i - 1].endMs) {
    throw new Error(`Overlapping cues: ${cues[i - 1].index} and ${cues[i].index}.`);
  }
}

console.log(JSON.stringify({
  source: path.basename(file),
  durationMs: cues.at(-1).endMs,
  cues
}, null, 2));
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall