record-promo by opusgamelabs/game-creator
npx skills add https://github.com/opusgamelabs/game-creator --skill record-promo自动为你的 Phaser 游戏捕捉流畅、高帧率的游戏画面——适用于 TikTok、Reels、Moltbook 或 X。录制过程中无需人工操作。
录制位于 $ARGUMENTS 路径下(如果未提供路径,则使用当前目录)游戏的宣传视频。
确认以下内容可用:
curl -s http://localhost:3000/)。如果没有,则在后台使用 npm run dev 启动一个。记下端口号。npx playwright --version。如果未安装:npm install -D @playwright/test && npx playwright install chromiumffmpeg -version | head -1。如果未找到,则告知用户安装(在 macOS 上使用 brew install ffmpeg)并停止。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
加载 promo-video 技能以获取完整技术参考。
读取游戏的源文件以了解:
src/scenes/GameScene.js —— 找到死亡/失败方法以便进行补丁处理src/core/EventBus.js —— 事件流src/core/Constants.js —— 输入按键、游戏尺寸src/main.js —— 验证 __GAME__ 和 __GAME_STATE__ 全局变量是否已暴露创建针对此特定游戏调整的 scripts/capture-promo.mjs:
1080 × 1920(9:16 移动设备竖屏)cp <plugin-root>/skills/promo-video/scripts/convert-highfps.sh <project-dir>/scripts/
chmod +x <project-dir>/scripts/convert-highfps.sh
mkdir -p output
node scripts/capture-promo.mjs --port <port>
bash scripts/convert-highfps.sh output/promo-raw.webm output/promo.mp4 0.5
在第5秒处提取缩略图并向用户展示:
ffmpeg -y -ss 5 -i output/promo.mp4 -frames:v 1 -update 1 output/promo-thumbnail.jpg
读取缩略图图像并显示。报告时长、帧率和文件大小。
/record-promo examples/flappy-bird
结果:修补掉死亡机制 → 为游戏控制生成输入序列 → 以 1080x1920(9:16)捕捉13秒的自主游戏画面 → 转换为 50 FPS 的 MP4 → 生成适用于 TikTok/Reels 的 output/promo.mp4。
告知用户:
宣传视频已录制完成!50 FPS,移动设备竖屏(1080×1920)。
文件:
output/promo.mp4将其发布到 TikTok、Reels 或 X 上,为你的游戏引流。
每周安装量
76
代码仓库
GitHub 星标数
31
首次出现
2026年2月25日
安全审计
安装于
claude-code66
gemini-cli40
github-copilot40
amp40
codex40
kimi-cli40
Autonomously capture smooth, high-FPS gameplay footage of your Phaser game — ready for TikTok, Reels, Moltbook, or X. No human input needed during recording.
Record a promo video of the game at $ARGUMENTS (or the current directory if no path given).
Verify these are available:
curl -s http://localhost:3000/). If not, start one with npm run dev in the background. Note the port.npx playwright --version. If not installed: npm install -D @playwright/test && npx playwright install chromiumffmpeg -version | head -1. If not found, tell the user to install it (brew install ffmpeg on macOS) and stop.Load the promo-video skill for the full technique reference.
Read the game's source files to understand:
src/scenes/GameScene.js — find death/failure methods to patch outsrc/core/EventBus.js — event flowsrc/core/Constants.js — input keys, game dimensionssrc/main.js — verify __GAME__ and __GAME_STATE__ globals are exposedCreate scripts/capture-promo.mjs adapted for this specific game:
1080 × 1920 (9:16 mobile portrait)cp <plugin-root>/skills/promo-video/scripts/convert-highfps.sh <project-dir>/scripts/
chmod +x <project-dir>/scripts/convert-highfps.sh
mkdir -p output
node scripts/capture-promo.mjs --port <port>
bash scripts/convert-highfps.sh output/promo-raw.webm output/promo.mp4 0.5
Extract a thumbnail at the 5-second mark and show it to the user:
ffmpeg -y -ss 5 -i output/promo.mp4 -frames:v 1 -update 1 output/promo-thumbnail.jpg
Read the thumbnail image and display it. Report duration, frame rate, and file size.
/record-promo examples/flappy-bird
Result: Patches out death → generates input sequence for the game's controls → captures 13s of autonomous gameplay at 1080x1920 (9:16) → converts to 50 FPS MP4 → output/promo.mp4 ready for TikTok/Reels.
Tell the user:
Promo video recorded! 50 FPS, mobile portrait (1080×1920).
File :
output/promo.mp4Post it to TikTok, Reels, or X to drive traffic to your game.
Weekly Installs
76
Repository
GitHub Stars
31
First Seen
Feb 25, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code66
gemini-cli40
github-copilot40
amp40
codex40
kimi-cli40
Skills CLI 使用指南:AI Agent 技能包管理器安装与管理教程
44,900 周安装