Skip to content

norahe0304-art/30x-video / cli/skill

30x-web-to-video

Flagged

Use when a user gives a brand URL and wants a premium launch, demo, or marketing video. Zero-manual workflow — Claude runs the V2 orchestrator itself (scrapes brand evidence, auto-installs missing tools, generates the first-cut Remotion project). User only sees the URL and the Studio preview.

FileKindSize
.gitignoreother103 B
AGENTS.mdmarkdown2.5 KB
FUSION-REPORT.mdmarkdown12.3 KB
README.mdmarkdown3.6 KB
SKILL.mdskill md30.7 KB
benchmarks/AGENTS.mdmarkdown773 B
benchmarks/README.mdmarkdown2.8 KB
benchmarks/manifest.jsonconfig5.9 KB
examples/INDEX.mdmarkdown1.8 KB
examples/caylent/MainVideo.tsxother6.0 KB
examples/caylent/scenes-v2/Act1V2.tsxother1.9 KB
examples/caylent/scenes-v2/Act2V2.tsxother2.5 KB
examples/caylent/scenes-v2/Act3V2.tsxother11.3 KB
examples/caylent/scenes-v2/Act4V2.tsxother8.6 KB
examples/caylent/scenes-v2/Act5V2.tsxother1.0 KB
examples/caylent/scenes/Act1.tsxother6.0 KB
examples/caylent/scenes/Act2.tsxother2.5 KB
examples/caylent/scenes/Act3.tsxother7.4 KB
examples/caylent/scenes/Act4.tsxother7.1 KB
examples/caylent/scenes/Act5.tsxother2.2 KB
examples/caylent/theme.tsscript1.2 KB
examples/cofounder/MainVideo.tsxother5.5 KB
examples/cofounder/scenes/AGENTS.mdmarkdown1.4 KB
examples/cofounder/scenes/Act1.tsxother2.3 KB
examples/cofounder/scenes/Act2.tsxother2.4 KB
examples/cofounder/scenes/Act3a.tsxother6.7 KB
examples/cofounder/scenes/Act3b.tsxother8.5 KB
examples/cofounder/scenes/Act3c.tsxother6.8 KB
examples/cofounder/scenes/Act4.tsxother4.4 KB
examples/cofounder/scenes/Act5.tsxother3.3 KB
examples/cofounder/scenes/World.tsxother4.0 KB
examples/cofounder/theme.tsscript1.5 KB
examples/happy-model/MainVideo.tsxother6.8 KB
examples/happy-model/scenes/AGENTS.mdmarkdown1.7 KB
examples/happy-model/scenes/Act1.tsxother7.9 KB
examples/happy-model/scenes/Act2.tsxother10.2 KB
examples/happy-model/scenes/Act3.tsxother15.6 KB
examples/happy-model/scenes/Act4.tsxother16.9 KB
examples/happy-model/scenes/Act5.tsxother9.0 KB
examples/happy-model/scenes/copy.tsscript588 B
examples/happy-model/theme.tsscript1.2 KB
examples/mana/MainVideo.tsxother4.9 KB
examples/mana/scenes/AGENTS.mdmarkdown926 B
examples/mana/scenes/Act1Open.tsxother2.8 KB
examples/mana/scenes/Act2Hero.tsxother3.3 KB
examples/mana/scenes/Act3Flavors.tsxother9.0 KB
examples/mana/scenes/Act4Label.tsxother7.3 KB
examples/mana/scenes/Act5Close.tsxother4.7 KB
examples/mana/scenes/World.tsxother7.2 KB
examples/mana/theme.tsscript2.6 KB
examples/parker/MainVideo.tsxother6.2 KB
examples/parker/scenes/AGENTS.mdmarkdown1.1 KB
examples/parker/scenes/Act1Hook.tsxother3.2 KB
examples/parker/scenes/Act2Meet.tsxother2.3 KB
examples/parker/scenes/Act2Problem.tsxother3.6 KB
examples/parker/scenes/Act3Steps.tsxother4.7 KB
examples/parker/scenes/Act4Proof.tsxother3.2 KB
examples/parker/scenes/Act5Close.tsxother2.6 KB
examples/parker/scenes/PaperWorld.tsxother6.8 KB
examples/parker/theme.tsscript1.6 KB
examples/perplexity-pc/MainVideo.tsxother4.5 KB
examples/perplexity-pc/scenes/Act1.tsxother2.1 KB
examples/perplexity-pc/scenes/Act2.tsxother2.7 KB
examples/perplexity-pc/scenes/Act3.tsxother3.1 KB
examples/perplexity-pc/scenes/Act4.tsxother1.6 KB
examples/perplexity-pc/scenes/Act5.tsxother2.0 KB
examples/perplexity-pc/theme.tsscript2.5 KB
references/AGENTS.mdmarkdown767 B
references/animations.mdmarkdown15.1 KB
references/audio.mdmarkdown8.6 KB
references/components.mdmarkdown9.5 KB
references/lottie.mdmarkdown5.1 KB
references/visual-effects.mdmarkdown5.0 KB
rules/AGENTS.mdmarkdown3.0 KB
rules/archetypes.mdmarkdown6.0 KB
rules/artifact-catalog.mdmarkdown10.8 KB
rules/beat-sync.mdmarkdown5.7 KB
rules/cards.mdmarkdown2.5 KB
rules/cinematic.mdmarkdown6.7 KB
rules/color.mdmarkdown2.2 KB
rules/composition.mdmarkdown13.2 KB
rules/creative-moves.mdmarkdown3.8 KB
rules/data-viz.mdmarkdown1.9 KB
rules/finish-gate.mdmarkdown5.2 KB
rules/layout.mdmarkdown6.6 KB
rules/media-resolve.mdmarkdown7.1 KB
rules/motion.mdmarkdown9.5 KB
rules/narration-sync.mdmarkdown5.5 KB
rules/narrative-templates.mdmarkdown10.4 KB
rules/narrative.mdmarkdown7.3 KB
rules/qc-gates.mdmarkdown11.3 KB
rules/taste.mdmarkdown12.6 KB
rules/transitions.mdmarkdown2.7 KB
rules/typography.mdmarkdown4.1 KB
rules/ui-mockups.mdmarkdown5.6 KB
rules/workflow.mdmarkdown53.2 KB
scaffold/.prettierrcother66 B
scaffold/AGENTS.mdmarkdown1.1 KB
scaffold/eslint.config.mjsscript79 B
scaffold/package-lock.jsonmanifest186.3 KB
scaffold/package.jsonmanifest1.5 KB
scaffold/remotion.config.tsscript219 B
scaffold/src/AGENTS.mdmarkdown831 B
scaffold/src/MainVideo.tsxother41.7 KB
scaffold/src/Root.tsxother2.3 KB
scaffold/src/components/AGENTS.mdmarkdown1.5 KB
scaffold/src/components/Animations.tsxother6.8 KB
scaffold/src/components/Atmosphere.tsxother8.1 KB
scaffold/src/components/Background.tsxother4.5 KB
scaffold/src/components/Captions.tsxother6.4 KB
scaffold/src/components/LogoEntrance.tsxother15.2 KB
scaffold/src/components/MockupTemplates.tsxother19.0 KB
scaffold/src/components/PhoneFrame.tsxother3.6 KB
scaffold/src/components/ShaderFX.tsxother5.3 KB
scaffold/src/components/Transitions.tsxother8.4 KB
scaffold/src/components/UI.tsxother3.0 KB
scaffold/src/components/VisualEffects.tsxother10.7 KB
scaffold/src/generated/AGENTS.mdmarkdown508 B
scaffold/src/generated/beat-map.tsscript1.1 KB
scaffold/src/generated/project-data.tsscript5.2 KB
scaffold/src/index.cssother576 B
scaffold/src/index.tsscript400 B
scaffold/src/lib/AGENTS.mdmarkdown411 B
scaffold/src/lib/fonts.tsscript867 B
scaffold/src/lib/modes.tsscript2.2 KB
scaffold/src/lib/utils.tsscript352 B
scaffold/src/theme.tsscript2.5 KB
scaffold/tsconfig.jsonconfig333 B
scripts/AGENTS.mdmarkdown2.4 KB
scripts/analyze-audiomap.pyscript13.3 KB
scripts/beat-sync.tsscript12.1 KB
scripts/benchmark-suite.tsscript17.8 KB
scripts/critique-scenes.tsscript10.1 KB
scripts/evidence-model.tsscript9.4 KB
scripts/generate-bgm.pyscript10.5 KB
scripts/iterate.tsscript4.0 KB
scripts/project-blueprint.tsscript12.1 KB
scripts/regenerate-scene.tsscript7.4 KB
scripts/render-qa.tsscript9.0 KB
scripts/scene-constitution.tsscript13.4 KB
scripts/timing-audit.tsscript9.5 KB
scripts/url-to-video.tsscript68.6 KB
scripts/visual-audit.tsscript26.5 KB

scripts/timing-audit.ts

View on GitHub
/**
 * [INPUT]: src/scenes/*.tsx files in the current working directory
 * [OUTPUT]: Markdown timing audit table per scene, exit code 0/1
 * [POS]: Standalone CLI script for Remotion video timing validation
 * [PROTOCOL]: 变更时更新此头部,然后检查 AGENTS.md
 */

// ================================================================
//  TIMING AUDIT — Remotion Scene Animation Validator
//  Run: npx tsx scripts/timing-audit.ts
// ================================================================

import { readdirSync, readFileSync } from "fs";
import { join, basename } from "path";

// ----------------------------------------------------------------
//  Types
// ----------------------------------------------------------------

interface AnimationHit {
  element: string;
  type: string;
  delay: number;
  content: string;
  finish: number;
}

interface SceneAudit {
  file: string;
  duration: number;
  animations: AnimationHit[];
}

// ----------------------------------------------------------------
//  Constants
// ----------------------------------------------------------------

const FADE_TRANSITION = 15;
const MIN_BREATHING = 45;
const SCENES_DIR = join(process.cwd(), "src", "scenes");

// ----------------------------------------------------------------
//  Regex Extractors
// ----------------------------------------------------------------

function extractNumber(src: string, pattern: RegExp, fallback: number): number {
  const m = src.match(pattern);
  return m ? Number(m[1]) : fallback;
}

function extractString(src: string, pattern: RegExp, fallback: string): string {
  const m = src.match(pattern);
  return m ? m[1] : fallback;
}

// Count chars in a text prop — handles {`...`} and "..." and {'...'}
function countTextChars(raw: string): number {
  const cleaned = raw
    .replace(/^\{[`'"]/,  "")
    .replace(/[`'"]\}$/,  "")
    .replace(/^["']/,     "")
    .replace(/["']$/,     "");
  return cleaned.length;
}

// ----------------------------------------------------------------
//  Animation Detectors
// ----------------------------------------------------------------

function findSplitText(src: string): AnimationHit[] {
  const hits: AnimationHit[] = [];
  const re = /<SplitText\b([^>]*(?:\n[^>]*)*)>/g;
  let m: RegExpExecArray | null;

  while ((m = re.exec(src)) !== null) {
    const block = m[1];
    const textRaw = extractString(block, /text\s*=\s*({[^}]+}|"[^"]+"|'[^']+')/, "");
    const chars   = countTextChars(textRaw);
    const delay   = extractNumber(block, /delay\s*=\s*\{?\s*(\d+)/, 0);
    const stagger = extractNumber(block, /staggerFrames\s*=\s*\{?\s*(\d+)/, 3);
    const finish  = delay + chars * stagger;

    hits.push({
      element: "SplitText",
      type: "split-char",
      delay,
      content: `${chars} chars, stagger=${stagger}`,
      finish,
    });
  }
  return hits;
}

function findTypewriter(src: string): AnimationHit[] {
  const hits: AnimationHit[] = [];
  const re = /<Typewriter\b([^>]*(?:\n[^>]*)*)>/g;
  let m: RegExpExecArray | null;

  while ((m = re.exec(src)) !== null) {
    const block = m[1];
    const textRaw = extractString(block, /text\s*=\s*({[^}]+}|"[^"]+"|'[^']+')/, "");
    const chars   = countTextChars(textRaw);
    const delay   = extractNumber(block, /delay\s*=\s*\{?\s*(\d+)/, 0);
    const speed   = extractNumber(block, /speed\s*=\s*\{?\s*([\d.]+)/, 1);
    const finish  = delay + Math.ceil(chars / speed);

    hits.push({
      element: "Typewriter",
      type: "typewriter",
      delay,
      content: `${chars} chars, speed=${speed}`,
      finish,
    });
  }
  return hits;
}

function findSpringStagger(src: string): AnimationHit[] {
  const hits: AnimationHit[] = [];

  // Pattern: array.map with index-based delay, e.g. delay={i * 8}
  const mapRe = /(\w+)\.map\(\s*\(\s*\w+\s*,\s*(\w+)\s*\)[\s\S]*?delay\s*=\s*\{\s*\2\s*\*\s*(\d+)/g;
  let m: RegExpExecArray | null;

  while ((m = mapRe.exec(src)) !== null) {
    const arrayName = m[1];
    const stagger   = Number(m[3]);

    // Try to find array length from const declaration
    const lenRe = new RegExp(`const\\s+${arrayName}\\s*=\\s*\\[([\\s\\S]*?)\\]`);
    const lenM  = src.match(lenRe);
    let count   = 6; // sensible fallback
    if (lenM) {
      // Count commas + 1 for rough item count
      count = (lenM[1].match(/,/g) || []).length + 1;
    }

    const baseDelay = extractNumber(
      src.slice(Math.max(0, m.index - 200), m.index + m[0].length + 200),
      /baseDelay\s*[:=]\s*(\d+)/,
      0
    );
    const finish = baseDelay + (count - 1) * stagger + 30; // +30 for spring settle

    hits.push({
      element: `${arrayName}.map stagger`,
      type: "spring-stagger",
      delay: baseDelay,
      content: `${count} items, gap=${stagger}f`,
      finish,
    });
  }
  return hits;
}

function findCountUp(src: string): AnimationHit[] {
  const hits: AnimationHit[] = [];
  const re = /<CountUp\b([^>]*(?:\n[^>]*)*)>/g;
  let m: RegExpExecArray | null;

  while ((m = re.exec(src)) !== null) {
    const block  = m[1];
    const delay  = extractNumber(block, /delay\s*=\s*\{?\s*(\d+)/, 0);
    const dur    = extractNumber(block, /duration\s*=\s*\{?\s*(\d+)/, 30);
    const finish = delay + dur;

    hits.push({
      element: "CountUp",
      type: "count-up",
      delay,
      content: `duration=${dur}f`,
      finish,
    });
  }
  return hits;
}

function findFadeIn(src: string): AnimationHit[] {
  const hits: AnimationHit[] = [];
  const re = /<FadeIn\b([^>]*(?:\n[^>]*)*)>/g;
  let m: RegExpExecArray | null;

  while ((m = re.exec(src)) !== null) {
    const block  = m[1];
    const delay  = extractNumber(block, /delay\s*=\s*\{?\s*(\d+)/, 0);
    const dur    = extractNumber(block, /duration\s*=\s*\{?\s*(\d+)/, 15);
    const finish = delay + dur;

    hits.push({
      element: "FadeIn",
      type: "fade-in",
      delay,
      content: `duration=${dur}f`,
      finish,
    });
  }
  return hits;
}

// ----------------------------------------------------------------
//  Scene Duration Extractor
// ----------------------------------------------------------------

function extractSceneDuration(src: string, filename: string): number {
  // Check for durationInFrames on Sequence/AbsoluteFill/Component
  const durationRe = /durationInFrames\s*[:=]\s*\{?\s*(\d+)/g;
  let best = 0;
  let m: RegExpExecArray | null;
  while ((m = durationRe.exec(src)) !== null) {
    const v = Number(m[1]);
    if (v > best) best = v;
  }

  // Also check for exported constant like SCENE_DURATION
  const constRe = /(?:DURATION|SCENE_DURATION|sceneDuration)\s*[:=]\s*(\d+)/i;
  const cm = src.match(constRe);
  if (cm && Number(cm[1]) > best) best = Number(cm[1]);

  if (best === 0) {
    console.warn(`  [WARN] Could not determine duration for ${filename}, skipping`);
  }
  return best;
}

// ----------------------------------------------------------------
//  Audit Runner
// ----------------------------------------------------------------

function auditScene(filepath: string): SceneAudit | null {
  const src  = readFileSync(filepath, "utf-8");
  const file = basename(filepath);
  const duration = extractSceneDuration(src, file);

  if (duration === 0) return null;

  const animations = [
    ...findSplitText(src),
    ...findTypewriter(src),
    ...findSpringStagger(src),
    ...findCountUp(src),
    ...findFadeIn(src),
  ];

  return { file, duration, animations };
}

// ----------------------------------------------------------------
//  Table Renderer
// ----------------------------------------------------------------

function renderTable(audit: SceneAudit): { output: string; hasFail: boolean } {
  let hasFail = false;
  const lines: string[] = [];

  lines.push("");
  lines.push(`TIMING AUDIT -- ${audit.file} (durationInFrames: ${audit.duration}f)`);
  lines.push("| Element | Type | delay | content | finish | breathing | Status |");
  lines.push("|---------|------|-------|---------|--------|-----------|--------|");

  if (audit.animations.length === 0) {
    lines.push("| (none)  | -    | -     | -       | -      | -         | SKIP   |");
  }

  for (const a of audit.animations) {
    const breathing = audit.duration - a.finish - FADE_TRANSITION;
    const pass      = breathing >= MIN_BREATHING;
    if (!pass) hasFail = true;

    const status = pass ? "PASS" : "**FAIL**";
    lines.push(
      `| ${a.element} | ${a.type} | ${a.delay}f | ${a.content} | ${a.finish}f | ${breathing}f | ${status} |`
    );
  }

  return { output: lines.join("\n"), hasFail };
}

// ----------------------------------------------------------------
//  Main
// ----------------------------------------------------------------

function main(): void {
  let files: string[];
  try {
    files = readdirSync(SCENES_DIR)
      .filter((f) => f.endsWith(".tsx"))
      .map((f) => join(SCENES_DIR, f))
      .sort();
  } catch {
    console.error(`ERROR: Cannot read ${SCENES_DIR}`);
    console.error("Run this script from your Remotion project root.");
    process.exit(2);
  }

  if (files.length === 0) {
    console.error(`ERROR: No .tsx files found in ${SCENES_DIR}`);
    process.exit(2);
  }

  console.log(`Scanning ${files.length} scene files in src/scenes/\n`);

  let anyFail = false;

  for (const f of files) {
    const audit = auditScene(f);
    if (!audit) continue;

    const { output, hasFail } = renderTable(audit);
    console.log(output);

    if (hasFail) anyFail = true;
  }

  console.log("\n" + "=".repeat(60));
  if (anyFail) {
    console.log("RESULT: FAIL — some animations overflow their scenes");
    process.exit(1);
  } else {
    console.log("RESULT: PASS — all animations have >= 45f breathing room");
    process.exit(0);
  }
}

main();
planning-and-task-breakdownaddyosmani/agent-skillsBreaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large to start, when you need to estimate scope, or when parallel work is possible.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
screenpipethedotmack/claude-memSearch screen and audio history recorded by Screenpipe and optionally save selected context into claude-mem. Use when the user asks to recall desktop activity, a meeting, or something seen in another app through Screenpipe.Stars: 118kUpdated Claude CodeCodexVerifiedInstall
contact-widgetnexu-io/open-designSelf-contained floating chat widget with welcome screen, social links, meeting button, and message input. Single HTML file, zero dependencies.Stars: 108kUpdated Claude CodeCodexVerifiedInstall
meeting-notesnexu-io/open-designMeeting notes page — title bar with attendees, agenda checklist, decisions block, action items table with owners + dates, and a "next meeting" footer. Use when the brief mentions "meeting notes", "minutes", "1:1 notes", "all-hands recap", or "会议纪要".Stars: 108kUpdated Claude CodeCodexVerifiedInstall