Communitygithub.com

字幕生成与时间轴对齐

根据视频音频生成或对齐准确、时机恰当的字幕轨道(SRT或WebVTT),确保字幕清晰可读且与语音同步。

字幕生成与时间轴对齐 是什么?

该技能专注于从视频音频生成高质量字幕文件(SRT或WebVTT),优先使用已有的旁白脚本作为基准进行音频对齐,否则先转录再纠正ASR错误。字幕提示严格对准语音,每条字幕至少显示1秒、最长7秒,避免中间出现空白间隙。每行32-42个字符,最多两行,阅读速度不超过约17字符/秒(约160-180词/分钟),行断在从句边界而非短语中间。支持SRT和WebVTT两种格式,输出符合规范的文本文件。对于教程内容,采用“干净字幕”策略(去掉填充词、保留含义),仅在法律或研究等场景下提供逐字版。最终输出用于下游的社交视频格式化工具或HTML5 <track>元素,不进行样式、颜色或动画处理。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/SkillMedev/skills/tree/HEAD/skills/captions-from-transcript

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

从转录生成字幕

字幕不是可选的锦上添花——它们是无障碍性的体现,能留住静音观看的用户,并且在教程中能强化精确的UI术语。本技能生成干净、时序准确的字幕文件。样式和嵌入处理由下游完成。

首先获取最准确的文本

准确性取决于起点:

  • 如果存在旁白脚本,将其作为基准事实。 它在技术术语和UI标签上已经正确。将脚本与音频对齐,而不是从头重新转录。
  • 否则转录音频(Whisper、平台自动字幕或任何ASR),然后根据视频进行纠正。ASR经常搞错产品名称、代码和缩写——逐一修正,确保与屏幕上的内容完全一致。

永远不要输出未经纠正的ASR结果。错误总是出现在最有价值的词汇上。

将提示与语音对齐

  • 每条提示在对应台词被说出时出现,结束时消失——与语音对齐,而不是武断的时间间隔。
  • 最短显示时间约1秒(即使是很短的提示),最长约7秒。超过则拆分。
  • 句子中间不要有空白;句子之间的少量空白可以接受,有助于可读性。

行宽与阅读速度规则

  • 每条提示1-2行,绝不使用3行。
  • 每行约32-42个字符。超过这个长度会挤满画面,超出安全区域。
  • 阅读速度 ≤ 约17字符/秒(≈160-180词/分钟)。如果某条提示超出该速度,文字会一闪而过——请拆分提示或延长时间。
  • 在从句边界处断行,绝不在短语中间断行。保持“前往设置页面”连在一起;不要将“前往”独立成行。

选择格式

  • SRT —— 通用格式,索引 + HH:MM:SS,mmm --> HH:MM:SS,mmm + 文本。用于上传到大多数平台和编辑器。
  • WebVTT (.vtt) —— WEBVTT 头部,HH:MM:SS.mmm 时间戳,支持提示定位/样式。用于HTML5 <track> 和网页播放器。

生成有效、可解析的输出——正确的时间戳标点(SRT在毫秒前使用逗号,VTT使用句点),提示之间空一行,末尾无空白字符。

干净版与逐字版

对于教程,使用干净版字幕:去掉填充词(“嗯”、“啊”、假开头),保留含义不变。准确保留技术术语、代码和UI标签。只有当用户明确需要(法律、研究、精确引用场景)时才使用严格逐字版。

同步质量检查

在视频的开始、中间和末尾处进行抽查——漂移会累积。确认提示按时出现,并在下一条开始前消失。修正任何在错误镜头画面中停留的字幕。

交付

完成的 .srt / .vtt 文件输入到社交视频格式化工具进行嵌入和平台样式处理,或者直接用于网页播放器的 <track> 元素。将颜色、字体、位置和动画留给那些步骤——本技能只输出准确、时序良好的文本,别无其他。

禁止事项

  • 不要对字幕进行样式、颜色、定位或嵌入操作——那是社交视频格式化工具的工作。
  • 不要逐词动画化文字——那是动态排版的工作。
  • 不要输出未经纠正的ASR结果;错误恰好集中在最重要的词汇上。
  • 不要为了不拆分提示而塞入3行或超出阅读速度预算——请拆分提示。

Individual skills in this repo

This repo contains 19 individual skills — each has its own dedicated page.

SkillMedev/skills

Designs REST API surfaces - resource naming, HTTP method and status-code semantics, error shapes, pagination, and filtering - and delivers an endpoint spec a consumer can build against without asking questions. Use when someone asks "how should I name this endpoint", "what status code should this return", "should this be PUT or PATCH", "how do I paginate this list", or is reviewing an API before it ships to external consumers. Do NOT use for planning breaking-change rollouts and deprecation windows - use api-versioning-strategist instead; for GraphQL type and resolver design - use graphql-schema instead; for generating client SDKs from an existing spec - use api-client-generator instead; for designing inbound webhook endpoints - use webhook-receiver-hardener instead.

SkillMedev/skills

Turns data and charts into a decision-driving narrative structured as headline finding, trend, implication, and recommended action - with finding-led chart titles, context for every number, annotation guidance, and honest flags on any conclusion the data cannot support. Use when someone says "turn these numbers into a story", "what's the takeaway from this data", "help me present these results to leadership", or has charts but no narrative. Do NOT use for compressing a long document into a one-pager - use executive-summary instead - or for running the analysis that produces the findings - use eda-playbook instead.

SkillMedev/skills

Use when a task needs live or historical money data - "convert USD to EUR", "current/past exchange rate", "FX rate on this date / over this range", or "current price of Bitcoin/Ethereum, market cap, 24h change". Frankfurter (ECB reference rates, no key) is the FX default; CoinGecko's free keyless tier covers crypto. Do NOT use for stock quotes or equities - no keyless stock API survives verification, say so instead of guessing; do NOT use for country economic indicators like GDP or inflation series - use government-open-data instead; if the request is a vague "I need live data", route through public-data-api-picker.

SkillMedev/skills

Builds a driver-based FP&A operating model linking business inputs to P&L, balance sheet, and cash flow outputs. Use when building an annual plan, preparing investor materials, running scenario analysis, or stress-testing the business.

SkillMedev/skills

Use when a task needs live geographic lookups - "geocode this address", "what's at these coordinates" (reverse geocoding), "lat/lon for this city", "which country/state is this ZIP or postal code in", or "country facts: capital, currency, population, flag". Nominatim (OpenStreetMap) is the geocoding default; Zippopotam for postal codes; APICountries for country facts. All keyless. Do NOT use for weather at a location - use weather-climate instead; do NOT use for country-level statistics over time (GDP, population trends) - use government-open-data instead; if the request is a vague "I need live data", route through public-data-api-picker.

SkillMedev/skills

Runs the full Getting Things Done loop - capture, clarify, organize, reflect, engage - building a trusted system of context lists, a projects list with defined next actions, and a weekly review habit. Use when someone says "I'm overwhelmed and things are slipping through the cracks", "set up GTD for me", "help me do a brain dump and organize it", or "my to-do list is a mess". Do NOT use for just running the weekly review ritual itself - use weekly-review instead - or for clearing an email backlog - use inbox-zero.

SkillMedev/skills

Processes any email backlog to zero using the 4Ds - Delete, Delegate, Defer, Do - with a mass-archive strategy for the obvious, a touch-each-email-once discipline, and a keep-it-clear system of batched processing windows, ruthless unsubscribing, filters, and a minimal folder setup. Use when someone says "I have 5,000 unread emails", "help me get to inbox zero", "email is eating my whole day", or treats their inbox as a to-do list. Do NOT use for drafting the reply emails themselves or prioritization rules for an ongoing support queue - use email-triage instead - or for protecting focus time around the email windows - use deep-work-planner instead.

SkillMedev/skills

Write landing-page copy section by section - hero, social proof, features-as-benefits, objections, CTA - leading with one promise and proving it down the page. Use when someone asks "write my landing page", "improve my hero headline", "what should the homepage say", "turn these features into benefits", or is shipping a new page for a launch or campaign. Do NOT use for testing and optimizing an existing page's conversion rate - use landing-page-cro instead; for the one-line claim itself use positioning-statement; for the full message ladder use messaging-hierarchy.

SkillMedev/skills

Improves an existing landing page's conversion rate through evidence-first CRO - audit heatmaps and recordings, write structured hypotheses, prioritize with ICE scoring, and run one-variable tests to statistical significance. Use when someone asks "why isn't my landing page converting", "audit this page before we scale spend", "which A/B test should we run first", or after a CVR drop or ahead of a paid-traffic push. Do NOT use for writing a new landing page from scratch - use landing-page-copy instead. Do NOT use for auditing the ad accounts sending the traffic - use paid-acquisition-audit instead. Do NOT use for reading the results of a finished experiment - use ab-test-analyzer instead.

SkillMedev/skills

Runs structured coaching sessions using values clarification and the GROW model, ending every session with one committed action, a deadline, and an if-then plan for the likely obstacle. Use when someone says "I feel stuck in my life", "help me figure out what I want", "hold me accountable to my goals", or "coach me through this decision". Do NOT use for building a stress toolkit - use stress-management instead - or a journaling practice - use journal-framework; for a standing goal-tracking system, use goals-accountability. Coaching, not therapy: signs of clinical distress route to a licensed professional.

SkillMedev/skills

Adapts English content for a target language and region - swapping idioms, setting the right formality register, replacing cultural references, converting dates, units, and currency - and delivers the localized text with a notes column explaining each adaptation and flagging what needs a native reviewer. Use when someone asks "localize this copy for the Japanese market", "adapt our marketing copy for the Mexican market", "make this translation sound native instead of literal", or a literal translation reads foreign, stiff, or risky. Do NOT use for auditing in-product UI text quality - use ux-writing-audit instead.

SkillMedev/skills

Turns a natural-language video brief into a complete, ready-to-preview Remotion composition - extracts duration, scenes, brand colors, aspect ratio, and real copy; plans the frame budget; and writes data-driven React/TypeScript using useCurrentFrame, interpolate, spring, AbsoluteFill, and Sequence, registered in Root.tsx. Use when someone says "build a 20-second product demo video", "animate a feature walkthrough", "write the Remotion code for this marketing clip", or wants a scene-by-scene composition they can scrub in Studio. Do NOT use for rendering, iterating, or batching the finished MP4 - use remotion-render instead - or for installing and scaffolding the project - use remotion-setup instead.

SkillMedev/skills

Scaffolds a new Remotion video project wired for Claude Code Agent Skills - Node check, create-video scaffold, skills install, folder conventions, Google Fonts, and a smoke-test render. Use whenever someone wants to start making videos with Remotion and Claude, even just "make product videos with Claude.

SkillMedev/skills

Classifies incident severity (SEV1-4) using impact, scope, and urgency signals and decides who to page. Use when an alert fires or a report comes in and a severity call must be made quickly.

SkillMedev/skills

Use the Skill Me catalog from inside any conversation - discover, install, and manage Claude skills through the Skill Me MCP, and load installed skills automatically each session.

SkillMedev/skills

Write one platform-native caption from a topic and brand voice, with a front-loaded hook, native length, and a single earned CTA. Use when the user gives a topic (and optionally brand voice or a described image/video) and asks for an Instagram, LinkedIn, X/Twitter, or TikTok caption. Do NOT use when the user wants a dedicated standalone LinkedIn post - use linkedin-post-writer instead; or a multi-post X thread - use tweet-thread-builder instead; or to adapt one existing piece of content into versions for several channels - use cross-platform-reformatter instead.

SkillMedev/skills

Reframe and export a finished video for social platforms - 9:16 ↔ 16:9 cropping, burned-in captions, a platform-native first frame, loop design, and per-platform specs (aspect, length, safe areas) for TikTok, Reels, Shorts, X, and LinkedIn. Use when someone says "make this vertical", "crop to 9:16", "format for TikTok/Reels/Shorts", "add captions/subtitles", "why is my video cut off on mobile", "resize for Instagram", or "export for social". Do NOT use when the question is about the storyboard or shot order before any video exists (use video-storyboard); the animation craft of how elements move (use motion-design-principles); animated word-by-word caption styling (use kinetic-typography); palette, contrast, or lighting (use motion-color-and-light); directing the product-demo content and screen choreography (use product-demo-director); or scoring, beat-syncing, or audio (use sound-and-music-sync) - this is the craft layer that decides WHAT to format for the feed, then hands a concrete spec to remotion-compo...

SkillMedev/skills

Writes and tunes PySpark jobs - join strategy and broadcast size limits, shuffle-partition sizing, skew diagnosis and salting, UDF avoidance, caching, and output file layout - with concrete size and skew thresholds. Use when someone asks "why is my Spark job slow", "should I broadcast this join", "one task takes forever while the rest finish", "my job OOMs during a join", or is writing a new PySpark ETL job. Do NOT use for Kafka topic, consumer-group, or streaming-pipeline design - use kafka-pipelines instead; do NOT use for single-machine dataframe work that fits in memory - use pandas-expert instead.

SkillMedev/skills

Builds clean, performant, accessible SwiftUI views with correct state ownership, scoped invalidation, and smooth list scrolling, and reviews existing SwiftUI code against a concrete frame-time and re-render budget. Use when someone asks "why does my SwiftUI list stutter", "should this be @State or @Observable", "my whole screen re-renders when one row changes", "how do I animate this transition", or wants a SwiftUI view built or refactored. Do NOT use for cross-platform React Native apps - use react-native-pro instead; do NOT use for Flutter widget trees - use flutter-widget-architect instead; do NOT use for Android Compose UIs - use jetpack-compose-builder instead.

相关技能