zenstory-ai/drama-skills / skills/short-drama-edit
short-drama-edit
Unverified将已生成的短剧镜头与配音剪成成片,编写剪辑单并完成渲染验收。用于“剪成成片/套剪”“加字幕/画面文字”“统一响度”“调整成片剪辑节奏、配乐/字幕混音与渲染导出”或导出精修素材;需补素材或改故事时转回上游阶段。
assets/remotion/src/screen/Caption.tsx
View on GitHubimport React from "react";
import { AbsoluteFill, useCurrentFrame, useVideoConfig } from "remotion";
import { COLOURS, SANS, StyleProps, TOP_U, entrance, exit, unit } from "./tokens";
/** Clean, borderless caption card for locations, timestamps, titles, and narrative notes. */
export const Caption: React.FC<StyleProps> = ({ text }) => {
const frame = useCurrentFrame();
const { fps, height, width } = useVideoConfig();
const u = unit(height);
const shown = entrance(frame, fps, 0, 18);
return (
<AbsoluteFill
style={{
alignItems: "center",
paddingTop: u * TOP_U.caption,
opacity: exit(frame, fps, text, 0.18),
}}
>
<div
style={{
maxWidth: width * 0.84,
background: COLOURS.captionSurface,
borderRadius: u * 0.9,
boxShadow: `0 ${u * 0.6}px ${u * 2.4}px rgba(0,0,0,0.38)`,
padding: `${u * 1.1}px ${u * 2.4}px`,
fontFamily: SANS,
textAlign: "center",
transform: `translateY(${(1 - shown) * u * 2.2}px)`,
opacity: shown,
}}
>
{text.items.map((item, index) => (
<div
key={index}
style={{
fontSize: index === 0 ? u * 2.8 : u * 2.1,
fontWeight: index === 0 ? 900 : 700,
letterSpacing: `${u * 0.12}px`,
lineHeight: 1.38,
color: index === 0 ? COLOURS.captionInk : COLOURS.captionSub,
marginTop: index === 0 ? 0 : u * 0.45,
opacity: entrance(frame, fps, index * 0.06, 18),
}}
>
{item.text}
</div>
))}
</div>
</AbsoluteFill>
);
};
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: 196k | 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: 196k | 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: 196k | Updated | Claude CodeCodex | Verified | Install |