Skip to content

zenstory-ai/drama-skills / skills/short-drama-edit

short-drama-edit

Unverified

将已生成的短剧镜头与配音剪成成片,编写剪辑单并完成渲染验收。用于“剪成成片/套剪”“加字幕/画面文字”“统一响度”“调整成片剪辑节奏、配乐/字幕混音与渲染导出”或导出精修素材;需补素材或改故事时转回上游阶段。

assets/remotion/src/screen/ScreenText.tsx

View on GitHub
import React from "react";
import { Sequence, useVideoConfig } from "remotion";
import { ScreenTextStyle } from "../schema";
import { assertFamilyResolves } from "../font";
import { Caption } from "./Caption";
import { Card } from "./Card";
import { CornerChip } from "./CornerChip";
import { SystemPanel } from "./SystemPanel";
import { TaskPanel } from "./TaskPanel";
import { SANS, StyleProps } from "./tokens";

/** One component per style; swapping a look never touches parsing or timing. */
const STYLES: Record<ScreenTextStyle, React.FC<StyleProps>> = {
  caption: Caption,
  card: Card,
  system: SystemPanel,
  task: TaskPanel,
  corner: CornerChip,
};

const Checked: React.FC<StyleProps> = ({ text }) => {
  assertFamilyResolves(SANS, text.items.map((item) => item.text).join(""));
  const Style = STYLES[text.style];
  return <Style text={text} />;
};

/** Places one piece in output time; inside it, frame 0 is the piece's first frame. */
export const ScreenTextLayer: React.FC<StyleProps> = ({ text }) => {
  const { fps } = useVideoConfig();
  const from = Math.round(text.start * fps);
  const until = Math.round(text.end * fps);
  if (until <= from) return null;
  return (
    <Sequence from={from} durationInFrames={until - from} layout="none">
      <Checked text={text} />
    </Sequence>
  );
};
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: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 196kUpdated 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: 196kUpdated Claude CodeCodexVerifiedInstall