gooseworks-ai/goose-skills / skills/video/create-chatgpt-mockup
create-chatgpt-mockup
VerifiedRender pixel-accurate ChatGPT mobile (iOS) screen mockups in light mode from a thread JSON. Supports user text bubbles, user image attachments, assistant markdown prose, citation chips, the OpenAI spiral logo, the Apps-SDK GPT chip in the composer, and three header styles (model-tag, plain title, "Get Plus"). Fixed 9:16 viewport. Outputs HTML + PNG.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 14.9 KB |
| examples/01-sunscreen-image.json | config | 467 B |
| examples/02-sleep-apnea-long.json | config | 1.1 KB |
| examples/03-poem-iphone-mac.json | config | 1007 B |
| examples/04-empty-typing.json | config | 258 B |
| examples/05-seatfinch-gpt-chip.json | config | 596 B |
| examples/06-short-howto.json | config | 750 B |
| examples/assets/sunscreen-sky.svg | other | 3.1 KB |
| generate.js | script | 16.3 KB |
| package.json | manifest | 348 B |
| render.js | script | 3.0 KB |
| screenshot.js | script | 2.5 KB |
| skill.meta.json | config | 136 B |
| templates/chat.css | other | 16.6 KB |
| templates/icons.js | script | 11.5 KB |
| tests/expected-output.md | markdown | 2.8 KB |
| tests/human-test.md | markdown | 1.8 KB |
| tests/run-all.shexecutable | script | 414 B |
| tests/sample-input.md | markdown | 1.8 KB |
| tests/smoke-test.md | markdown | 796 B |
screenshot.js
View on GitHub#!/usr/bin/env node
/**
* screenshot.js — Capture a generated ChatGPT mobile HTML page as a PNG.
*
* Fixed 9:16 viewport (750 x 1334), DSF 3 → 2250 x 4002 PNG.
*/
const path = require('path');
const fs = require('fs');
const { execSync } = require('child_process');
const VIEWPORT = { width: 750, height: 1624 };
const DEVICE_SCALE = 3;
function parseArgs(argv) {
const args = {};
for (let i = 2; i < argv.length; i++) {
if (argv[i] === '--input' && argv[i + 1]) args.input = argv[++i];
else if (argv[i] === '--output' && argv[i + 1]) args.output = argv[++i];
else if (argv[i] === '--font-delay' && argv[i + 1]) args.fontDelay = parseInt(argv[++i], 10);
}
return args;
}
async function ensureChromium() {
let chromium;
try {
({ chromium } = require('playwright'));
} catch (err) {
if (err && err.code === 'MODULE_NOT_FOUND') {
console.error('Error: playwright not installed. Run `npm install` in the skill directory.');
process.exit(1);
}
throw err;
}
try {
chromium.executablePath();
} catch {
console.log('Installing chromium via playwright...');
execSync('npx playwright install chromium', { stdio: 'inherit' });
}
return chromium;
}
async function capture(args) {
const chromium = await ensureChromium();
const browser = await chromium.launch({ headless: true });
const context = await browser.newContext({
viewport: VIEWPORT,
deviceScaleFactor: DEVICE_SCALE,
});
const page = await context.newPage();
fs.mkdirSync(path.dirname(args.output), { recursive: true });
await page.goto(`file://${args.input}`, { waitUntil: 'networkidle', timeout: 15000 });
await page.waitForTimeout(args.fontDelay || 600);
await page.screenshot({
path: args.output,
type: 'png',
fullPage: false,
omitBackground: false,
});
await browser.close();
return { bytes: fs.statSync(args.output).size };
}
async function main() {
const args = parseArgs(process.argv);
if (!args.input || !args.output) {
console.error('Usage: node screenshot.js --input page.html --output out.png [--font-delay 600]');
process.exit(1);
}
args.input = path.resolve(args.input);
args.output = path.resolve(args.output);
console.log(`input=${args.input} output=${args.output}`);
const { bytes } = await capture(args);
console.log(`done — ${Math.round(bytes / 1024)} KB → ${args.output}`);
}
if (require.main === module) {
main().catch(err => {
console.error('Screenshot failed:', err.message);
process.exit(1);
});
}
module.exports = { capture, VIEWPORT, DEVICE_SCALE };
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |