gooseworks-ai/goose-skills / skills/video/render-chatgpt-chat
render-chatgpt-chat
VerifiedAssemble a ChatGPT chat-reveal video ad from a thread + timeline JSON — one continuous Playwright recording of a ChatGPT mobile chat (user types with the iOS keyboard up → taps send → keyboard slides down + header cluster swaps in one beat → one gray loading dot → the assistant answer streams in word-by-word) crossfaded into a designed end card, with subliminal ChatGPT SFX and an optional ducked music bed. FREE assembly (Playwright + ffmpeg); the recipe supplies the per-brand thread + timeline + end-card config and gates the paid music call to its own capability. The ChatGPT sibling of render-imessage-chat. Use for the chatgpt-chat format.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 9.3 KB |
| assets/sfx/key-tap.wav | binary | 3.1 KB |
| assets/sfx/response-done.wav | binary | 13.9 KB |
| assets/sfx/send-tap.wav | binary | 7.8 KB |
| assets/sfx/stream-tick.wav | binary | 2.0 KB |
| scripts/config.example.json | config | 3.5 KB |
| scripts/end-card.template.html | other | 2.5 KB |
| scripts/mockup/generate.js | script | 16.3 KB |
| scripts/mockup/templates/chat.css | other | 16.6 KB |
| scripts/mockup/templates/icons.js | script | 11.5 KB |
| scripts/package.json | manifest | 320 B |
| scripts/record-chat.jsexecutable | script | 14.5 KB |
| scripts/render-end-card.jsexecutable | script | 6.2 KB |
| scripts/stitch.shexecutable | script | 6.6 KB |
| skill.meta.json | config | 229 B |
| tests/smoke-test.md | markdown | 2.4 KB |
scripts/mockup/templates/chat.css
View on GitHub/* ChatGPT mobile (iOS) — pixel-targeted to ChatGPT 5.1 / 5.2 reference screenshots.
Light mode only. 9:16 viewport: 750 x 1334 (DSF 3 → 2250 x 4002 export). */
:root {
--gpt-bg: #FFFFFF;
--gpt-text: #0D0D0D; /* primary copy + icons */
--gpt-text-soft: #5D5D5D;
--gpt-meta: #9B9B9B;
--gpt-user-bubble: #F4F4F4; /* user message background — slightly cool gray */
--gpt-divider: #ECECEC;
--gpt-composer-border: #E5E5E5;
--gpt-send-bg-disabled: #E5E5E5;
--gpt-send-bg-active: #0D0D0D;
--gpt-send-icon-disabled: #BFBFBF;
--gpt-chip-border: #E5E5E5;
--gpt-link: #0D0D0D;
--gpt-citation-bg: #F4F4F4;
}
* { box-sizing: border-box; }
html, body {
margin: 0;
padding: 0;
background: var(--gpt-bg);
color: var(--gpt-text);
font-family: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont,
"Helvetica Neue", "Inter", "Segoe UI", Arial, sans-serif;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
/* ----- Stage (modern iPhone viewport, ~9:19.5) ----- */
/* 750 x 1624 matches modern iPhone Pro screen recordings (iPhone 14/16
Pro physical screen is 1179×2556, ratio 0.461). The older 9:16 ratio
(750×1334) reads as proportionally squat next to real iPhone screen
recordings. Don't change without re-shooting every static example
and the smoke-test mp4. */
.stage {
width: 750px;
height: 1624px;
margin: 0 auto;
background: var(--gpt-bg);
display: flex;
flex-direction: column;
position: relative;
overflow: hidden;
}
/* ----- iPhone status bar ----- */
.status-bar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 22px 36px 4px;
font-size: 22px;
font-weight: 600;
color: var(--gpt-text);
height: 56px;
letter-spacing: -0.2px;
}
.status-bar .time {
display: flex;
align-items: center;
gap: 6px;
font-variant-numeric: tabular-nums;
}
.status-bar .right-cluster {
display: flex;
align-items: center;
gap: 6px;
}
.status-bar .right-cluster svg {
display: block;
}
/* Up-rank a couple of glyphs so the proportions match iOS status bar. */
.status-bar .right-cluster svg[width="17"] { width: 22px; height: auto; }
.status-bar .right-cluster svg[width="27"] { width: 32px; height: auto; }
/* ----- ChatGPT header row ----- */
.gpt-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 18px 32px 14px;
background: var(--gpt-bg);
}
.gpt-header .left,
.gpt-header .right {
display: flex;
align-items: center;
gap: 18px;
}
.gpt-header .center {
display: flex;
align-items: center;
gap: 6px;
font-size: 22px;
font-weight: 600;
color: var(--gpt-text);
letter-spacing: -0.2px;
}
.gpt-header .center .model-tag {
color: var(--gpt-text);
margin-left: 4px;
font-weight: 500;
}
.gpt-header .center .chev-down {
display: inline-flex;
align-items: center;
margin-left: 4px;
transform: translateY(2px);
}
.gpt-header .center .chev-right {
display: inline-flex;
align-items: center;
margin-left: 6px;
transform: translateY(1px);
}
.gpt-header .hamburger svg { display: block; }
/* When the title is hard-left (e.g. just "ChatGPT" with no model tag), the
header collapses to: hamburger ... title ... edit-pencil. Use the
`header-style="title-center"` modifier on .gpt-header. */
.gpt-header.title-center {
justify-content: space-between;
}
.gpt-header.title-center .center {
font-weight: 600;
}
/* ----- Conversation scroller ----- */
.conversation {
flex: 1 1 auto;
display: flex;
flex-direction: column;
gap: 22px;
padding: 10px 32px 32px;
overflow: hidden;
}
/* ----- User message (right-aligned soft-gray bubble) ----- */
.row.user {
display: flex;
justify-content: flex-end;
margin-top: 6px;
}
.row.user .bubble {
background: var(--gpt-user-bubble);
color: var(--gpt-text);
padding: 18px 22px;
border-radius: 28px;
max-width: 78%;
font-size: 27px;
line-height: 1.35;
font-weight: 400;
letter-spacing: -0.2px;
word-wrap: break-word;
white-space: pre-wrap;
}
/* Image attachment that the user attached to their message. ChatGPT renders
this *above* the bubble, right-aligned, with the same rounded radius. */
.row.user-image {
display: flex;
justify-content: flex-end;
margin-bottom: 8px;
}
.row.user-image .attachment {
max-width: 84%;
border-radius: 28px;
overflow: hidden;
background: var(--gpt-user-bubble);
}
.row.user-image .attachment img {
display: block;
width: 100%;
height: auto;
border-radius: 28px;
}
/* Square aspect helper for product-style attachments (matches references). */
.row.user-image .attachment.square img {
aspect-ratio: 1 / 1;
object-fit: cover;
}
/* ----- Assistant message (plain prose, left-aligned, full-width) ----- */
.row.assistant {
display: flex;
flex-direction: column;
gap: 14px;
align-items: flex-start;
margin-top: 4px;
}
.row.assistant .assistant-body {
font-size: 27px;
line-height: 1.42;
color: var(--gpt-text);
letter-spacing: -0.15px;
font-weight: 400;
width: 100%;
}
.row.assistant .assistant-body p {
margin: 0 0 16px 0;
}
.row.assistant .assistant-body p:last-child { margin-bottom: 0; }
.row.assistant .assistant-body strong,
.row.assistant .assistant-body b {
font-weight: 700;
color: var(--gpt-text);
}
.row.assistant .assistant-body em,
.row.assistant .assistant-body i {
font-style: italic;
}
.row.assistant .assistant-body h1,
.row.assistant .assistant-body h2,
.row.assistant .assistant-body h3 {
font-weight: 700;
letter-spacing: -0.4px;
color: var(--gpt-text);
line-height: 1.25;
}
.row.assistant .assistant-body h1 { font-size: 32px; margin: 4px 0 12px; }
.row.assistant .assistant-body h2 { font-size: 30px; margin: 20px 0 10px; }
.row.assistant .assistant-body h3 { font-size: 27px; margin: 16px 0 6px; }
.row.assistant .assistant-body ul,
.row.assistant .assistant-body ol {
margin: 0 0 16px 0;
padding-left: 28px;
}
.row.assistant .assistant-body li { margin: 6px 0; }
/* Streaming-mode list replacement — see inlineListBulletsForStreaming.
The "• " is real text inside the .md-li, so it can be wrapped as a
streamable word and won't appear before the line's first content word. */
.row.assistant .assistant-body .md-list {
margin: 0 0 16px 0;
}
.row.assistant .assistant-body .md-li {
margin: 6px 0;
padding-left: 28px;
text-indent: -18px;
}
.row.assistant .assistant-body hr {
border: 0;
border-top: 1px solid var(--gpt-divider);
margin: 18px 0;
}
/* Bold-title-as-section convention (matches the sleep-apnea reference). */
.row.assistant .assistant-body .section-title {
font-weight: 700;
margin-bottom: 4px;
}
/* Citation chip after a sentence (e.g. "Johns Hopkins Medicine +1"). */
.row.assistant .assistant-body .cite {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 3px 10px;
margin-left: 6px;
border-radius: 999px;
background: var(--gpt-citation-bg);
font-size: 18px;
color: var(--gpt-text-soft);
vertical-align: 2px;
font-weight: 500;
letter-spacing: 0;
}
/* Lightbulb (or similar emoji) inline with a header — keeps it tight. */
.row.assistant .assistant-body .icon-prefix {
margin-right: 4px;
}
/* Feedback chips (thumbs up / down) under an assistant message. */
.row.assistant .feedback {
display: flex;
gap: 18px;
padding: 4px 2px 0;
}
.row.assistant .feedback svg { display: block; }
/* Optional ChatGPT spiral logo next to a response title. */
.row.assistant .title-row {
display: flex;
align-items: center;
gap: 14px;
}
.row.assistant .title-row .logo {
width: 30px;
height: 30px;
display: inline-flex;
align-items: center;
justify-content: center;
}
.row.assistant .title-row .title-text {
font-size: 28px;
font-weight: 700;
}
/* ----- Empty state (just OpenAI logo centered, used for "Memory Off" intro). ----- */
.empty-state {
flex: 1 1 auto;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 20px;
color: var(--gpt-meta);
font-size: 22px;
}
.empty-state .big-logo {
width: 80px;
height: 80px;
opacity: 0.45;
}
/* ----- Composer (bottom pill) ----- */
.composer-wrap {
padding: 14px 32px 30px;
background: var(--gpt-bg);
}
.composer {
display: flex;
align-items: center;
gap: 16px;
padding: 14px 20px;
border-radius: 999px;
background: var(--gpt-bg);
border: 1px solid var(--gpt-composer-border);
box-shadow: 0 1px 0 rgba(0,0,0,0.02);
min-height: 72px;
}
.composer .plus-btn {
flex: 0 0 auto;
width: 36px;
height: 36px;
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--gpt-text);
}
.composer .input {
flex: 1 1 auto;
font-size: 28px;
color: var(--gpt-text);
font-weight: 400;
letter-spacing: -0.1px;
padding: 0 2px;
/* Inline content flow so the blinking caret sits right after the last
character of typed text — flex would treat it as a separate flex child
and pin it to the right edge of the input. */
min-height: 34px;
line-height: 1.3;
}
.composer .input .placeholder { color: var(--gpt-meta); }
.composer .input .composer-text { color: var(--gpt-text); }
.composer .input .caret {
display: inline-block;
width: 2px;
height: 26px;
background: var(--gpt-text);
margin-left: 1px;
vertical-align: middle;
animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.composer .mic-btn {
flex: 0 0 auto;
width: 36px;
height: 36px;
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--gpt-text);
}
.composer .send-btn {
flex: 0 0 auto;
width: 52px;
height: 52px;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
background: var(--gpt-send-bg-disabled);
color: var(--gpt-send-icon-disabled);
}
.composer .send-btn.active {
background: var(--gpt-send-bg-active);
color: #FFFFFF;
}
.composer .send-btn.streaming {
background: var(--gpt-send-bg-active);
color: #FFFFFF;
}
/* When a custom GPT (Apps SDK style) is attached, the composer shows a chip
above the input row with the GPT name + an "x" to remove. */
.composer.with-chip {
border-radius: 32px;
flex-direction: column;
align-items: stretch;
padding: 12px 14px;
gap: 8px;
}
.composer.with-chip .gpt-chip {
display: inline-flex;
align-self: flex-start;
align-items: center;
gap: 8px;
padding: 6px 12px;
border: 1px solid var(--gpt-chip-border);
border-radius: 999px;
font-size: 22px;
font-weight: 600;
color: #2A66E0;
}
.composer.with-chip .gpt-chip .x { color: var(--gpt-meta); font-weight: 500; }
.composer.with-chip .input-row {
display: flex;
align-items: center;
gap: 14px;
}
.composer.with-chip .input-row .input { flex: 1 1 auto; }
/* ============================================================
Animation primitives (used by create-chatgpt-video-ad molecule)
Static-mode renders ignore these classes — they only kick in
when the message has popState/stream set.
============================================================ */
/* Rows that haven't entered the conversation yet are removed from layout,
so the conversation grows naturally as bubbles arrive (the same fix used
in create-imessage-mockup — opacity:0 would pre-allocate space). */
.row[data-pending="1"],
.row.loading-dot[data-pending="1"] {
display: none !important;
}
/* Pop-in for the user bubble after a send-tap. */
.row.pop-now {
animation: gpt-pop 220ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
transform-origin: 100% 100%;
}
.row.assistant.pop-now {
transform-origin: 0% 0%;
}
@keyframes gpt-pop {
0% { opacity: 0; transform: scale(0.92) translateY(6px); }
60% { opacity: 1; }
100% { opacity: 1; transform: scale(1) translateY(0); }
}
/* Word-by-word streaming reveal. Each .word starts at data-stream="0"
(invisible + blurred); the driver flips it to "1". The CSS transition
gives the fade-in ramp.
`display: inline` (not inline-block) — inline-block collapses adjacent
text-node whitespace inside parent block divs, which ate the spaces
between words inside .md-li bullet items. Inline preserves natural word
breaks; modern browsers honor `filter: blur()` on inline content too. */
.assistant-body.streaming-body .word {
display: inline;
transition: opacity 220ms ease-out, filter 220ms ease-out;
}
.assistant-body.streaming-body .word[data-stream="0"] {
opacity: 0;
filter: blur(2px);
}
.assistant-body.streaming-body .word[data-stream="1"] {
opacity: 1;
filter: none;
}
/* If the assistant body has streamed at all, also fade in the title row
words (driven by the same word-stream walker). */
.row.assistant .title-row .word { display: inline; transition: opacity 220ms ease-out, filter 220ms ease-out; }
.row.assistant .title-row .word[data-stream="0"] { opacity: 0; filter: blur(2px); }
/* Loading dot row — single dark gray solid circle that pulses softly. */
.row.loading-dot {
align-items: flex-start;
margin: 10px 0 0;
}
.row.loading-dot .dot {
width: 16px;
height: 16px;
border-radius: 50%;
background: #5D5D5D;
animation: gpt-dot-pulse 1.1s ease-in-out infinite;
}
@keyframes gpt-dot-pulse {
0%, 100% { opacity: 0.45; transform: scale(0.92); }
50% { opacity: 1.0; transform: scale(1.04); }
}
/* Header right-cluster cross-fade between "personPlus+dotted" and "edit+more".
Driver toggles data-active on `.right` to swap. */
.gpt-header .right[data-active] {
position: relative;
display: flex;
align-items: center;
}
.gpt-header .right[data-active] .cluster {
display: flex;
align-items: center;
gap: 18px;
transition: opacity 220ms ease-out;
}
.gpt-header .right[data-active] .cluster.primary { position: relative; }
.gpt-header .right[data-active] .cluster.alt {
position: absolute;
top: 50%;
right: 0;
transform: translateY(-50%);
}
.gpt-header .right[data-active="primary"] .cluster.primary { opacity: 1; }
.gpt-header .right[data-active="primary"] .cluster.alt { opacity: 0; }
.gpt-header .right[data-active="alt"] .cluster.primary { opacity: 0; }
.gpt-header .right[data-active="alt"] .cluster.alt { opacity: 1; }
/* Composer caret only blinks when present. */
.composer .input .caret {
/* override the static-mode blink with a softer fade so it doesn't
strobe during a 30fps recording */
animation: gpt-caret-blink 1.05s steps(2) infinite;
}
@keyframes gpt-caret-blink {
0%, 49.9% { opacity: 1; }
50%, 100% { opacity: 0; }
}
/* ============================================================
Inline iOS QWERTY keyboard — ported from create-apple-notes-mockup's
.kbd block. Scaled to the 750-wide ChatGPT stage. Absolute-positioned
at the bottom of .stage, transform-slides in/out via data-state.
============================================================ */
.kbd {
position: absolute;
left: 0;
right: 0;
bottom: 0;
background: #d1d4da;
padding: 16px 8px 0;
z-index: 5;
transition: transform 280ms cubic-bezier(0.3, 0, 0.2, 1);
}
.kbd[data-state="hidden"] { transform: translateY(100%); }
.kbd[data-state="shown"] { transform: translateY(0); }
.kbd-suggestions {
height: 58px;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
align-items: center;
font-size: 24px;
color: #1c1c1e;
margin-bottom: 8px;
}
.kbd-suggestion {
text-align: center;
border-right: 1px solid rgba(60, 60, 67, 0.18);
padding: 6px 0;
}
.kbd-suggestion:last-child { border-right: none; }
.kbd-row {
display: flex;
justify-content: center;
margin-bottom: 12px;
gap: 10px;
padding: 0 4px;
}
.kbd-row--abc { padding: 0 40px; }
.kbd-row--zxc { padding: 0 4px; }
.kbd-key {
flex: 1 1 0;
height: 76px;
background: #ffffff;
border-radius: 10px;
box-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
display: flex;
align-items: center;
justify-content: center;
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
"Helvetica Neue", sans-serif;
font-size: 38px;
font-weight: 400;
color: #1c1c1e;
}
.kbd-key--wide { flex: 1.6 1 0; background: #abafb8; }
.kbd-bottom {
display: flex;
gap: 10px;
padding: 0 4px;
align-items: center;
}
.kbd-bottom .kbd-key { font-size: 30px; height: 76px; }
.kbd-bottom .kbd-key--space { flex: 4.5 1 0; }
.kbd-bottom .kbd-key--num { flex: 1.1 1 0; background: #abafb8; }
.kbd-bottom .kbd-key--emoji { flex: 1.0 1 0; }
.kbd-bottom .kbd-key--return { flex: 1.4 1 0; background: #abafb8; }
.kbd-footer {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 38px 6px 38px;
height: 60px;
}
.kbd-footer svg { display: block; }
/* When the keyboard is shown, the composer pill rides above it. The
keyboard's effective height (~498px) is the offset we apply to the
composer's bottom edge. */
.stage[data-keyboard-shown="1"] .composer-wrap {
position: absolute;
left: 0;
right: 0;
bottom: 498px;
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |