create-imessage-mockup
Render pixel-accurate iMessage screenshot mockups (DM or group) from a thread JSON. Supports minimal, with-keyboard, and full iPhone 15 Pro frame variants. Outputs HTML + PNG.
Install / Use
npx skills add gooseworks-ai/goose-skills --skill create-imessage-mockupInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Customer SupportSupported Platforms
Our assessment of create-imessage-mockup
create-imessage-mockup scores 93/100 on our quality scale, 97th of 327 Customer Support skills we index (top 30%).
Its SKILL.md is 14 KB long, well organised into 21 sections with 5 code examples: a thorough specification that gives an agent plenty to work with.
With 1,222 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 33 days ago, so create-imessage-mockup is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-10-26. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
create-imessage-mockup compared with similar skills
All 4 of these similar skills score higher than create-imessage-mockup; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| create-imessage-mockup (this skill)by gooseworks-ai | 93 | 1.2k | 33d ago | SKILL.md |
| algorithmic-artby anthropics | 100 | 177.9k | 33d ago | SKILL.md |
| pptxby anthropics | 100 | 177.9k | 33d ago | SKILL.md |
| designby nextlevelbuilder | 100 | 137.2k | 11d ago | SKILL.md |
| ui-ux-pro-maxby nextlevelbuilder | 100 | 137.2k | 11d ago | SKILL.md |
Frequently asked questions
- How do I install create-imessage-mockup?
- Run
npx skills add gooseworks-ai/goose-skills --skill create-imessage-mockup. The install tabs above show the steps for each supported agent. - Which AI agents does create-imessage-mockup work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is create-imessage-mockup safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is create-imessage-mockup still maintained?
- The repository was last updated 33 days ago, so create-imessage-mockup is actively maintained.
Skill content
View source on GitHubname: create-imessage-mockup description: Render pixel-accurate iMessage screenshot mockups (DM or group) from a thread JSON. Supports minimal, with-keyboard, and full iPhone 15 Pro frame variants. Outputs HTML + PNG. status: superseded superseded_by: phone-chat@1.2.0
Superseded: the video kit now does this with the phone-chat part, version 1.2.0, in the parts folder of this repository. Every phone-chat style is a style file that draws the same screen frame by frame from the plan's scenes, with the original sounds, in the kit's browser. This atom stays, unchanged in behaviour, for skills outside the kit until they move; its scripts still run.
create-imessage-mockup
Generate iMessage screenshots that look like real iOS captures — correct bubbles with tails, typing indicators, timestamps, "Delivered" captions, group avatars + sender names, keyboard chrome, and an optional iPhone 15 Pro bezel with Dynamic Island and status bar.
Purpose
Turn a structured thread JSON into a believable iMessage screenshot — first as standalone HTML (generate.js + templates/chat.css), then rasterized to PNG with headless Chromium (screenshot.js/render.js via Playwright). It is the atom you reach for when an ad, social post, or video scene needs a fake-but-convincing iOS message capture.
What it gets right, grounded in the renderer:
- Bubble runs and tails — blue
sentbubbles (right) and grayreceivedbubbles (left), with a curved tear-drop tail drawn only on the last bubble of each consecutive sender run (isLastOfRuningenerate.js). - Dark-themed iOS chrome —
theme: "dark"flips the page to the iOS dark conversation look; the status bar, Dynamic Island, and keyboard match iPhone 15 Pro. - Group affordances — group threads (
mode: "group") add per-sender colored avatar circles, sender names above the first bubble of a run, and a 4-tile group-header badge. - Beats for storyboards —
timestamppills, a static-but-mid-animationtypingthree-dot bubble,attachmentcards, and "Delivered"/"Read" captions let you stage individual frames of a conversation. - Three crops —
--minimal(bubbles only),--with-keyboard(header + iOS keyboard), and--with-iphone-frame(full bezel + Dynamic Island + status bar over a gradient backdrop).
The atom embeds no LLM — it is deterministic. The orchestrating agent is responsible for composing the thread JSON; the renderer only draws exactly what the JSON says.
When to use
- Need a fake iMessage screenshot for an ad, social post, video scene, or product mockup.
- Want a side-by-side hero image showing a conversation in an iPhone frame.
- Need a typing indicator or "Delivered" beat for a video storyboard.
If you're rendering programmatic graphic frames more broadly (cards, posters, infographics), use the goose-graphics skill instead.
Inputs
The skill is deterministic — it does not embed an LLM. To translate a free-form prompt into a thread, the orchestrating agent (you) composes a JSON file matching the schema below, then invokes the renderer.
Thread JSON schema
{
"mode": "dm" | "group",
"title": "Karaoke Crew",
"participants": [
{ "id": "me", "name": "Me", "self": true },
{ "id": "sarah", "name": "Sarah", "color": "#FF9500", "initials": "S" }
],
"messages": [
{ "type": "timestamp", "label": "iMessage\nToday 9:41 AM" },
{ "type": "timestamp", "bold": "Sat, Jan 2", "light": "11:07" },
{ "type": "text", "from": "sarah", "text": "Did we crash it?" },
{ "type": "text", "from": "me", "text": "Couldn't withstand our friendship", "delivered": true, "read": false },
{ "type": "typing", "from": "sarah" }
],
"keyboard": { "leftIcon": "plus" }
}
mode—dmorgroup. If omitted, auto-detected from the participant count.participants[].self: truemarks the user (sent bubbles, no avatar).participants[].coloris the avatar background; defaults from a 6-color palette.participants[].initialsdefaults to the first letter ofname.messages[]:timestamp— centered pill. Uselabel(newline-separated bold/light) or explicitboldandlightfields.text— text bubble.delivered: trueon the last sent bubble in a run renders the "Delivered" caption (or "Read" ifread: true).typing— animated three-dot bubble (rendered as a static mid-animation frame for screenshot determinism).
keyboard.leftIcon—"plus"(default) or"camera".
CLI
node render.js --thread examples/group-with-frame.json --with-iphone-frame
node render.js --thread examples/dm-with-keyboard.json --with-keyboard
node render.js --thread examples/dm-minimal.json --minimal
node render.js --thread my-thread.json --with-keyboard --output ./my-exports/ --name nightout
Flags
| Flag | Effect |
|---|---|
| --thread <path> | (required) JSON file matching the schema above |
| --prompt "<brief>" | prints the schema and exits — agent must compose a thread.json and re-invoke |
| --minimal | bubbles + timestamps only (no header, no keyboard, no frame) |
| --with-keyboard | bubbles + iOS keyboard chrome (default) |
| --with-iphone-frame | full iPhone 15 Pro bezel + Dynamic Island + status bar + soft gradient backdrop |
| --dm / --group | force chat mode (otherwise auto-detected from participants) |
| --name <slug> | override the output folder slug |
| --output <dir> | parent dir for the dated output folder; default ./imessage-mockup-exports/ |
Frame flags are mutually exclusive.
Output
<output>/<YYYY-MM-DD>-<slug>/
index.html # full standalone HTML
screenshot.png # rendered PNG (DPR 3, "Retina")
thread.json # copy of the input for reproducibility
Default <output> is ./imessage-mockup-exports/ in the cwd.
Workflow
- Receive a prompt or existing thread JSON.
- If only a prompt was given: compose a thread.json matching the schema, save it.
- Run
node render.js --thread <path> [flag]. - Open the resulting PNG to verify the layout. If something looks wrong (clipping, wrong tail side, missing avatar), edit the thread JSON or the relevant template under
templates/and re-render.
Setup (one-time)
cd skills/video/create-imessage-mockup
npm install
npx playwright install chromium
Files
| File | Purpose |
|---|---|
| render.js | CLI entry — parses flags, generates HTML, takes screenshot, writes outputs |
| generate.js | Thread JSON → standalone HTML page |
| screenshot.js | HTML → PNG via Playwright (chromium headless) |
| templates/chat.css | All visual styling (bubbles, tails, keyboard, iPhone frame) |
| templates/icons.js | Inline SVG icons (plus, camera, mic, signal, wifi, battery, chevron) |
| examples/*.json | 6 reference threads exercising every flag combination |
| tests/run-all.sh | Builders only, in the goose-skills repo (installs have no tests/): render every example into tests/output/ for visual review |
Testing
Builders, in the goose-skills repo (installed copies have no tests/ folder):
bash tests/run-all.sh
# inspect tests/output/<case>/<date-slug>/screenshot.png
The 6 cases cover: dm-minimal, dm-with-keyboard, dm-with-typing (camera-keyboard variant), dm-with-frame, group-with-frame, group-minimal.
Implementation pitfalls — do not re-introduce these bugs
These are mistakes that have already been made and fixed. If you modify the templates, do not undo them.
Bubble tail painting order
The iMessage tail in templates/chat.css is drawn with two pseudo-elements that both sit behind the bubble's background (z-index: -1 inside an isolation: isolate stacking context on .bubble):
::beforeis the colored bulge that extends past the tail-side edge.::afteris the page-color cutout that overlaps the bulge from outside, with a rounded corner that "carves" the tear-drop curve.
This works because ::after paints on top of ::before (later in source order = higher in paint order). In the overlap region the cutout wins, leaving only the curved tail tip of the bulge visible.
Do not swap these roles. If ::after is used for the bulge and ::before for the cutout, the cutout paints behind the bulge, so it does nothing — and the tail renders as a chunky rectangle with one rounded corner, not a curved tear-drop. This is how tails initially looked broken.
Do not remove isolation: isolate from .bubble without replacing it with another stacking-context trigger (z-index: 0, transform, etc.). Without a stacking context, z-index: -1 on the pseudo-elements will push them behind the page background, not just behind the bubble's own background, and the tail disappears entirely.
Tail vs. avatar overlap (group chats)
.avatar-slot has z-index: 3 and position: relative so it paints on top of the bubble next to it. This is required: without it, the bubble's tail (which extends ~7px to the left of the bubble for received messages) overlaps the avatar circle.
The avatar is a sibling of the bubble in the .row flex container, not a child of the bubble. The bubble's isolation: isolate does not contain it, so this stacking still works.
"Last bubble in a run" rule
Tails appear only on the last consecutive bubble from the same sender. Adding a tail to every bubble (or the first instead of the last) does not match iOS. The logic in generate.js walks the message list and sets isLastOfRun based on whether the next message is from the same from; do not change that without checking iOS reference screenshots.
Screenshot viewport
Modes use fullPage: true with a small initial viewport height (100px). This is intentional: Playwright extends the viewport to fit content but never shrinks it, so a small initial height + fullPage produces a tightly-cropped screenshot. Do not raise the viewport height to "make sure the screenshot fits" — that creates dead vertical space below the content.
The with-iphone-frame mode uses a fixed viewport (525×980) with fullPage: false because the frame itself defines the visible area; here we want the viewport to bound the screenshot to a single phone-sized rect.
Known limitations
- Image avatars not supported in v1 — only colored circle initials. Add an
avatarUrlfield and updatetemplates/chat.cssif needed. - Typing animation is static — captured as a mid-animation frame. The HTML itself does animate; only the PNG is frozen.
- No tapback reactions in v1 — schema reserves
{type: "reaction", target: <index>, kind: "heart"|...}but the renderer ignores it for now. - Emoji rendering depends on system fonts — Chromium ships with Noto Color Emoji on Linux/macOS; emoji should render but visually differ slightly from Apple Color Emoji.
Quality Checks
Before treating a render as final, verify against the iOS look:
- Output manifest — the output folder contains
index.html,screenshot.png, and a copiedthread.json(written byrender.js). - PNG dimensions —
minimalandwith-keyboardare 750px wide × DPR 3 = 2250px wide, with height growing to fit content (fullPage: true).with-iphone-frameis the fixed phone rect: 525×980 × DPR 3 = 1575×2940. Confirm withsips -g pixelWidth -g pixelHeight <png>(macOS) or any image tool. - Bubble sides + tails —
sent(self) bubbles hug the right and are blue;receivedbubbles hug the left and are gray. A tail appears only on the last bubble of each sender run — never on the middle bubbles, never on the first-of-run. - Group rendering — in
groupthreads each received run shows the sender's name above its first bubble and a colored avatar circle beside its last bubble; the group header shows up to 4 avatar tiles plus the title. - Captions — the final
sentbubble in a run withdelivered: trueshows a "Delivered" caption ("Read" if `r
Truncated for display — read the full file on GitHub.
Related Skills
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
pptx
177.9kUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an em…
design
137.2kComprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini, Atlas Cloud, or MuAPI AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social/ads/web/print), icon design (15 styles, SVG…
ui-ux-pro-max
137.2kUI/UX design intelligence for web, mobile, and desktop. This skill should be used when designing, building, reviewing, or fixing interfaces, including pages, components, design systems, accessibility, interaction, responsive layout, typography, color, charts, and stack-specific UI implementation.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
