跳到正文
Skillpedia
动效与动画6.0k · #14514

gg

它能做什么

这项技能为网页游戏制作短预告片,直接在游戏自身引擎中实时拍摄,而不是使用效果图。适合希望为已完成或即将推出的游戏制作宣传片的游戏开发者。

适用场景

  • ✓当你做好了一款网页游戏,想要预告片、宣传片或上线视频时。
  • ✓当你想为网页游戏制作即将上线的片段、片尾卡或标志揭示的时候。
  • ✓当你希望把游戏玩法混剪导出为带音乐的 MP4 时。

技能链接

https://github.com/srizzon/git-city/blob/main/.claude/skills/gg/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/srizzon/git-city/blob/main/.claude/skills/gg/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请为我的 three.js 游戏制作一段 20 秒的预告片,配上音乐和分享图。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会撰写影片方案,在一个能实时运行游戏的工作室中制作,允许你调整,然后导出带音乐的 MP4、海报和分享文案。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

/gg

You made a game. gg. Now it gets a trailer, shot in the game's own engine, not mocked up.

Every film gets its own visual direction, drawn from its project: its titles, end card, motion and music are designed for it, never carried over from Git City or from another film. The kit ships one project's treatment (Git City's, in kit/src/examples/gitcity/ and kit/tools/arrangements/gitcity.mjs) as an example of what a direction looks like in code, not as a default.

The film is data: takes on the music's beat grid. The studio plays it live in the game, and the export renders it frame by frame. The kit ships with this skill in kit/ (MIT). Its API, the studio and the craft notes are in kit/README.md: read it before building. This file covers the order of work, and the rules that each cost a round of rework when they were skipped.

Usage: /gg [direction] [options]. Options can be flags or plain language:

Option Default
--tone <preset or freeform> inferred (see Tones)
--kind teaser|trailer teaser if the game isn't out yet, trailer if it is
--duration <s> teaser 12–20s, trailer 20–35s

The deliverables go to gg-output/: plan.md, trailer.mp4, trailer.jpg and share-copy.txt. The film itself lives in the app, on a studio route.

Not a game? The skill works the same for a component library, an app or a dev tool. The "engine" is the real product UI: the library's components rendered on the stage, the app's real screens with stand-in data. A take drives them as a function of t the way a game take drives a camera: type into the real input, open the real dialog, toggle the real theme, resize the real layout. The verb is what a user does with it (compose a form, ship a command palette), the spectacle is what it does best (a hundred components re-theming in one frame, a table with a million rows scrolling). No mockups here either: no Figma frames, no screenshots.

0. One question first

Unless the invocation already steers ("a teaser, make it feel like…", --tone) or says "just go", ask one question (AskUserQuestion):

Do you want to steer this trailer, or should I make a first cut on my own?

  • First cut: I pick the angle, the tone and the moments, and you review it in the studio.
  • Steer: you tell me what people should feel at the end, and I pitch 2–3 scripts before building.
  • First cut: infer everything in steps 2–4, research included, then build straight away. The review happens in the studio (step 6).
  • Steer: ask two things: what the viewer should feel at the end ("I want to jump in and play", "pick a side"…), and whether it's a teaser or a launch trailer. Do the research in step 3 first. Then pitch 2–3 scripts as tables (time, picture, title card, sound), recommend one, and say why. Build the one they pick, one take at a time, with them watching. Keep the scripts they don't pick in plan.md for the next launch.

Why: a first cut that nobody can steer, built from a guess about the owner's idea, cost a whole round. Having them choose up front keeps the fast path fast and the owner's idea the owner's.

1. Set up the kit (skip if the project has a Studio from it)

  • Copy kit/src/ into the app (e.g. src/trailer-kit/), keeping kit/LICENSE with it, but leave out examples/gitcity/: it's Git City's look, read from the skill folder as an example only. Copy kit/tools/ next to the project's scripts, without arrangements/gitcity.mjs.
  • Add the scripts: "trailer:export": "node <tools>/export.mjs", and one for the audio (music.mjs and sfx.mjs, see the README).
  • Install the export's dependencies: npm i -D playwright, npx playwright install chromium, and ffmpeg (brew install ffmpeg, or npm i -D ffmpeg-static). Add gg-output/ to .gitignore.
  • Mount kit/src/examples/MinimalFilm.tsx on a route (Next.js: app/trailer/page.tsx). Start the dev server and check that the studio plays.
  • Not a React project? The studio is a React page, and the game runs inside one of its stages. Phaser: create the game on a div the stage owns. Plain three.js or canvas: hand the stage your renderer's canvas. Vite: add @vitejs/plugin-react for the trailer route only. Angular, Vue or Svelte UI: mount the real app or components in a stage (a custom element, or the framework's own bootstrap on a div the stage owns). What matters is that code can drive the game: set the camera, place the player, trigger the mechanic; or, for
常见问题

画面来自游戏本身吗?

是的。预告片在游戏自身引擎中拍摄,而不是模拟的效果。

导出前可以编辑影片吗?

可以。影片会在一个工作室中打开,你可以进行调整。

会输出哪些文件?

一份方案、一个 MP4 预告片、一张海报图片和分享文案。

详情

作者的原始描述

You made a game. gg. Turns a web game into a short trailer played live in its own engine: Claude writes the film, opens it in a studio for you to tweak, and exports the mp4 with its music, poster and share copy. Use when someone says \"/gg\" or \"let's gg this\", or asks for a trailer, teaser, launch video, gameplay montage, \"coming soon\" clip, end card or logo reveal for a web game (three.js, React Three Fiber, canvas, Phaser, DOM). Also for launch films of non-game web projects (component libraries, apps, dev tools), where the engine is the real product UI. Also use to add or fix a take in

repo: srizzon/git-city

热度

GitHub 星标
6.0k
排名
#14514
许可证
AGPL-3.0
更新时间
2026/10/26

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

相似技能