Communitygithub.com

产品演示视频创建器

通过自动化浏览器交互并捕获帧来创建产品演示视频。当用户想要录制 Web 应用的演示、导览、产品展示或交互式视频时使用。支持 Playwright CDP 屏幕录制以进行高质量捕获,并支持 FFmpeg 进行视频编码。

产品演示视频创建器 是什么?

此技能能够自动化创建产品演示视频,通过 Playwright 控制 Clawdbot 浏览器来模拟多步骤交互(如导航、点击、悬停、输入),并使用 CDP 屏幕录制捕获逐帧 JPEG 图像,最终利用 FFmpeg 编码为 MP4、GIF 或 WebM 格式。它非常适合用于录制 Web 应用的功能导览、产品演示或交互式教程,无需手动操作。该技能包含一个可定制的录制脚本 (`scripts/record-demo.js`),允许开发者定义演示序列、帧率、输出目录,并通过 CDP 连接到正在运行的 Clawdbot 浏览器。此外,还提供了编码脚本 (`scripts/frames-to-video.sh`),支持多种格式预设,并能灵活调整视频质量与文件大小。这一工作流在 Clawdbot、Cursor 等支持 Playwright 的 Agent 平台上运行,帮助开发者和产品团队快速生成高品质的客户面展示视频。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/sundial-org/awesome-openclaw-skills/tree/HEAD/skills/demo-video

在你喜欢的 AI 中提问

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

文档

演示视频创建器

通过自动化浏览器交互创建精美的产品演示视频。

概述

  1. 规划 演示序列(页面、交互、时间)
  2. 录制 使用 Playwright CDP 屏幕录制捕获帧
  3. 编码 使用 FFmpeg 生成视频

快速入门

前提条件

  • Clawdbot 浏览器正在运行(browser action=start profile=clawd)
  • 应用可通过浏览器访问(本地主机或远程)
  • 已安装 FFmpeg 用于编码

录制工作流

  1. 如果未运行,启动 Clawdbot 浏览器
  2. 手动或通过 browser action=open 导航到应用
  3. 根据目标应用自定义 scripts/record-demo.js
  4. 运行:node scripts/record-demo.js
  5. 编码:bash scripts/frames-to-video.sh

规划演示

参见 references/demo-planning.md 以获取以下指导:

  • 结构化演示序列
  • 时间与节奏
  • 交互模式
  • 使演示引人入胜的要素

脚本

scripts/record-demo.js

Playwright 模板脚本,可:

  • 通过 CDP 连接到 Clawdbot 浏览器
  • 启动屏幕录制捕获(JPEG 帧)
  • 执行演示序列(导航、点击、悬停、输入)
  • 将帧保存到输出目录

为每个演示自定义:

  • DEMO_SEQUENCES 数组 - 定义页面和交互
  • OUTPUT_DIR - 帧保存位置
  • FRAME_SKIP - 跳过每第 N 帧(值越小帧越多)

scripts/frames-to-video.sh

带有预设的 FFmpeg 编码脚本:

  • mp4 - H.264,良好的质量/大小平衡(默认)
  • gif - 用于嵌入的动画 GIF
  • webm - VP9,更小的文件

用法:./frames-to-video.sh [输入目录] [输出名称] [格式]

交互模式

// 导航
await page.goto('http://localhost/dashboard');
await page.waitForTimeout(2000);

// 点击元素
await page.locator('button:has-text("Create")').click();
await page.waitForTimeout(500);

// 悬停(显示工具提示、悬停状态)
await page.locator('.card').first().hover();
await page.waitForTimeout(1000);

// 输入文本
await page.locator('input[placeholder="Search"]').fill('query');
await page.waitForTimeout(500);

// 按键
await page.keyboard.press('Enter');
await page.keyboard.press('Escape');

// 滚动
await page.evaluate(() => window.scrollBy(0, 300));

提示

  • 时间:页面加载 2 秒,交互之间 0.5-1 秒,显示结果 1.5 秒
  • 帧跳过:使用 3-5 以获得流畅视频,8-10 以获得更小文件
  • 质量:JPEG 质量 85-90 可平衡大小与清晰度
  • 分辨率:浏览器窗口大小决定输出分辨率
  • 循环:GIF 应无缝循环 - 在起始位置结束

Individual skills in this repo

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

sundial-org/awesome-openclaw-skills

Complete X (Twitter) algorithm mastery - engagement weights, viral formulas, shadow ban avoidance, thread optimization, and growth strategies. Based on X's open-source code analysis and real creator data.

sundial-org/awesome-openclaw-skills

Text-to-speech conversion using node-edge-tts npm package for generating audio from text. Supports multiple voices, languages, speed adjustment, pitch control, and subtitle generation. Use when: (1) User requests audio/voice output with the "tts" trigger or keyword. (2) Content needs to be spoken rather than read (multitasking, accessibility, driving, cooking). (3) User wants a specific voice, speed, pitch, or format for TTS output.

sundial-org/awesome-openclaw-skills

Comprehensive video/audio processing with FFmpeg. Use for: (1) Video transcoding and format conversion, (2) Cutting and merging clips, (3) Audio extraction and manipulation, (4) Thumbnail and GIF generation, (5) Resolution scaling and quality adjustment, (6) Adding subtitles or watermarks, (7) Speed adjustment (slow/fast motion), (8) Color correction and filters.

sundial-org/awesome-openclaw-skills

Generate FFmpeg commands from natural language video editing requests - cut, trim, convert, compress, change aspect ratio, extract audio, and more.

sundial-org/awesome-openclaw-skills

Create a verbatim transcript for a YouTube URL using Google Gemini (speaker labels, paragraph breaks; no time codes). Use when the user asks to transcribe a YouTube video or wants a clean transcript (no timestamps).

sundial-org/awesome-openclaw-skills

Generate landing page code from product descriptions

sundial-org/awesome-openclaw-skills

Generate a beautiful HTML landing page from your package.json. Use when you need a quick marketing page for your project.

sundial-org/awesome-openclaw-skills

Founder vs employee personal branding strategies with LinkedIn positioning and exit planning

sundial-org/awesome-openclaw-skills

Monitor stock/crypto holdings, get price alerts, track portfolio performance

sundial-org/awesome-openclaw-skills

End-to-end AI video generation - create videos from text prompts using image generation, video synthesis, voice-over, and editing. Supports OpenAI DALL-E, Replicate models, LumaAI, Runway, and FFmpeg editing.

sundial-org/awesome-openclaw-skills

Local speech-to-text using faster-whisper. 4-6x faster than OpenAI Whisper with identical accuracy; GPU acceleration enables ~20x realtime transcription. Supports standard and distilled models with word-level timestamps.

sundial-org/exa-web-search-free

Free AI search via Exa MCP. Web search for news/info, code search for docs/examples from GitHub/StackOverflow, company research for business intel. No API key needed.

sundial-org/finance-news

Market news briefings with AI summaries. Use when asked about stock news, market updates, portfolio performance, morning/evening briefings, financial headlines, or price alerts. Supports US/Europe/Japan markets, WhatsApp delivery, and English/German output.

sundial-org/jina-reader

Web content extraction via Jina AI Reader API. Three modes: read (URL to markdown), search (web search + full content), ground (fact-checking). Extracts clean content without exposing server IP.

sundial-org/memory-setup

Enable and configure Moltbot/Clawdbot memory search for persistent context. Use when setting up memory, fixing "goldfish brain," or helping users configure memorySearch in their config. Covers MEMORY.md, daily logs, and vector search setup.

sundial-org/news-summary

This skill should be used when the user asks for news updates, daily briefings, or what's happening in the world. Fetches news from trusted international RSS feeds and can create voice summaries.

sundial-org/ontology

Typed knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linking related objects, enforcing constraints, planning multi-step actions as graph transformations, or when skills need to share state. Trigger on "remember", "what do I know about", "link X to Y", "show dependencies", entity CRUD, or cross-skill data access.

sundial-org/remind-me

Set reminders using natural language. Automatically creates one-time cron jobs and logs to markdown.

sundial-org/stock-market-pro

Professional stock price tracking, fundamental analysis, and financial reporting tool. Supports global markets (US, KR, etc.), Crypto, and Forex with real-time data. (1) Real-time quotes, (2) Valuation metrics (PE, EPS, ROE), (3) Earnings calendar and consensus, (4) High-quality Candlestick & Line charts with technical indicators (MA5/20/60).

相关技能