Community编程与开发github.com

SkillMedev/skills

开放的 Skill Me 目录——每个托管的技能作为一个可移植的、基于 MIT 许可的 SKILL.md 文件。

skills 是什么?

该技能提供了一个结构化的操作流程,用于高效驱动 Remotion 的渲染与迭代循环。它指导用户将 Remotion 构图渲染为 H.264 MP4 视频,并在此基础上通过自然语言反馈进行快速迭代。技能的核心原则是“外科手术式编辑”:仅修改反馈所涉及的特定值(如颜色、文案、动画参数),而不是重写整个场景文件,从而保留已批准的工作成果。它详细解释了如何配置分辨率、帧率、编解码器和并发度,并支持通过 JSON 数据驱动进行批量渲染和变体生成。当本地渲染成为瓶颈时,技能还指导如何利用 AWS Lambda 进行分布式渲染。关键成功指标包括避免帧数不匹配、资产和字体渲染正确,以及迭代仅修改必要的代码行。该技能适用于所有支持 Remotion 的平台(如 Claude Code、Cursor、Codex 等),通过清晰的步骤和“禁止”规则帮助用户避免常见陷阱,从而显著提升渲染迭代的效率和可靠性。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add SkillMedev/skills

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

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

文档

Remotion 渲染

驱动“渲染与迭代”循环:将构图转为 MP4,获取自然语言反馈,做出满足反馈的最小修改,然后重新渲染。代价高昂的失败模式是相反的循环——为了一个复制修改而重写整个场景文件,或者为了每次检查而全质量重新渲染——这会破坏已批准的工作以及让 Remotion 值得使用的迭代速度。

操作流程

第 1 步:收集输入

  • 构图 ID(src/Root.tsx 中 <Composition> 上的 id,不是文件名)和入口点(调用 registerRoot 的文件,通常是 src/index.ts)。
  • 目标:平台/宽高比(横屏 16:9、竖屏 9:16、正方形)、分辨率(默认 1080p;仅按要求提供 4K)以及是否需要透明通道。
  • 机器核心数(用于并发)以及这是单次渲染、迭代会话还是批量渲染。

第 2 步:基础渲染

npx remotion render src/index.ts <CompositionId> out/video.mp4

默认输出为 H.264 MP4,使用构图自身的宽度/高度/帧率;如果 out/ 目录不存在,Remotion 会创建它。

第 3 步:分辨率、帧率和编解码器预设

分辨率和帧率存在于 <Composition> 上(width/height/fps)——在源代码处更改它们。仅在需要缩放和容器时使用标志:

# 1080p 横屏 - 构图作者设置为 1920x1080@30
npx remotion render src/index.ts ProductDemo out/1080p.mp4

# 4K - 在不影响布局的情况下对 1080p 画布进行缩放
npx remotion render src/index.ts ProductDemo out/4k.mp4 --scale=2

# 9:16 竖屏 - 渲染一个作者设置为 1080x1920 的构图
npx remotion render src/index.ts ProductDemoVertical out/vertical.mp4

编解码器规则:

  • 社交媒体/网络分发保持 H.264 MP4(默认)——最大兼容性。
  • 透明通道:--codec=vp8 或 vp9(WebM),或用于剪辑工作流的 --codec=prores(带 alpha)。H.264 无法承载 alpha 通道。
  • 真正的 60fps 意味着在构图上的 fps={60},并且帧数相应缩放——仅通过标志更改 fps 会使所有按帧计时的动画不同步。

第 4 步:调优并发度

渲染是 CPU 密集型的(每一帧都是无头 Chromium 的截图)。默认大约是核心数的一半;显式调优是最简单的本地加速方式:

npx remotion render src/index.ts ProductDemo out/video.mp4 --concurrency=8

从物理核心数开始(--concurrency=50% 接受百分比);如果机器发生交换或热节流则减少——超过最佳点后,更多的 Chromium 标签页会使其变慢,而不是变快。

第 5 步:运行迭代优化循环

保持 Studio 打开(npx remotion studio,http://localhost:3000),以便用户即时预览;只在确认时进行完整渲染。

  1. 用户在 Studio 中预览并用自然语言给出反馈。
  2. 将其转换为外科手术式编辑——只更改相关值:
    • “太快了” → 扩大 interpolate 输入范围或提高弹簧 damping 值。
    • “Logo 应该更突出” → 降低弹簧 damping 值 / 添加过冲。
    • “更改 CTA 文案” → 编辑 prop / defaultProps,不碰其他东西。
    • “不同的强调色” → 更改颜色对象中的一个十六进制值。
    • “让最后一个特性停留更久” → 增加该 <Sequence> 的 durationInFrames,并重新推导构图的 durationInFrames 总数。
  3. 重新渲染,或让 Studio 热重载以进行视觉检查。

外科手术式编辑 vs 重写:当更改是值、prop、颜色或一个场景的时序时,原地编辑;仅当场景结构发生改变(添加/删除/重新排序场景——并将结构性创作路由到 remotion-compose)时,才重写。默认为外科手术式:它保留所有已批准的内容。

第 6 步:批量变体

构图是数据驱动的,因此 N 个变体 = JSON 文件中的 N 个 prop 集:

[
  { "out": "out/acme.mp4",   "props": { "logoText": "Acme",   "colors": { "accent": "#6C5CE7" }, "cta": "Try Acme" } },
  { "out": "out/globex.mp4", "props": { "logoText": "Globex", "colors": { "accent": "#00B894" }, "cta": "Try Globex" } }
]

--props 接受内联 JSON 或文件路径;对于超过几个变体的情况,编写一个小的 Node 脚本,读取 JSON 并为每个条目执行 shell 命令,或者使用 @remotion/renderer 的 renderMedia() 进行类型安全的循环。通过编辑 JSON 来本地化或 A/B 测试文案和颜色。

第 7 步:当本地成为瓶颈时使用 Lambda

当单次渲染在本地需要几分钟,或者批量很大时,再考虑使用 Lambda——它会将帧分发到无服务器工作进程中。否则本地更简单且免费。

npx remotion lambda functions deploy            # 每个 AWS 账户/区域只需一次
npx remotion lambda sites create src/index.ts --site-name=product-demo
npx remotion lambda render product-demo ProductDemo --props='{"logoText":"Acme"}'

需要根据 Remotion 的 Lambda 设置提供 AWS 凭据和 IAM 权限。

第 8 步:排查三个常见故障

  1. 帧数不匹配 - 动画提前结束或片段有死尾。原因:<Sequence> 持续时间更改了,但构图总数没变。修复:确保总数等于其所有序列之和;每次编辑时序后重新计算。这是渲染中排名第一的意外情况。
  2. 缺少 staticFile() 引用 - 渲染失败或资源为空。原因:通过路径或 public/ 目录之外导入的资源。修复:将其放在 public/assets/ 中并引用 staticFile("assets/<name>")。
  3. 字体闪烁/回退 - 文本以错误的字体渲染或发生位移。原因:@remotion/google-fonts 的 loadFont() 缺失或调用太晚。修复:在模块顶层调用 loadFont() 并应用返回的 fontFamily;然后渲染会等待字体。

交付物

out/ 目录中按请求预设渲染的文件,加上——对于迭代会话——循环提议:命名可调整的维度(节奏、文案、颜色、时序)并根据反馈重新渲染。对于批量渲染,则提供变体 JSON 和每个变体的输出。

禁止事项

  • 禁止为值级别的更改重写场景文件——外科手术式编辑可以保留已批准的工作。
  • 禁止仅通过标志更改帧率——需在构图上设置并重新缩放帧数。
  • 禁止更改 Sequence 持续时间而不重新推导构图的总 durationInFrames。
  • 禁止每次迭代都进行完整渲染——Studio 热重载是预览循环;在确认时渲染。
  • 禁止在机器正在交换或节流时,将并发度推高到物理核心数以上。
  • 禁止在本地渲染仅需几秒钟时使用 Lambda——它会增加 AWS 设置和成本,毫无意义。
  • 禁止在此创建新场景或重组构图——那是 remotion-compose 的职责。

质量标准

  • 输出以请求的分辨率/宽高比/帧率播放,没有死尾,也没有提前结束(构图总数与序列总和匹配)。
  • 资源和字体从第一帧开始就正确渲染——没有回退字体闪烁,没有空白资源。
  • 一次迭代只更改了反馈所需的那些行;所有先前已批准的内容保持不变。
  • 批量输出仅通过其 prop 集相互区分。

升级路径

场景创作、动画设计和组件结构转到 remotion-compose;项目脚手架转到 remotion-setup;评分和音频时序转到 sound-and-music-sync。

Individual skills in this repo

This repo contains 20 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

Produce an accurate, properly timed caption track (SRT or WebVTT) from a video's audio - transcribing or aligning to the voiceover script, timing cues to speech, and enforcing line-length and reading-speed rules so captions are readable and in sync. Use when someone says "generate captions", "make subtitles from the audio", "transcribe and caption this", "export an SRT or VTT", "the captions are out of sync", or "the subtitles flash by too fast to read". Do NOT use to burn-in, style, reframe, or position an existing caption track for a platform (9:16, brand styling, safe areas) - that is social-video-formatter; do NOT use to animate text word-by-word as a motion graphic - that is kinetic-typography; do NOT use to write the spoken script in the first place - that is narration-script.

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.

相关技能